Struct aws_sdk_eventbridge::input::PutRuleInput
source · [−]#[non_exhaustive]pub struct PutRuleInput {
pub name: Option<String>,
pub schedule_expression: Option<String>,
pub event_pattern: Option<String>,
pub state: Option<RuleState>,
pub description: Option<String>,
pub role_arn: Option<String>,
pub tags: Option<Vec<Tag>>,
pub event_bus_name: Option<String>,
}
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Option<String>
The name of the rule that you are creating or updating.
schedule_expression: Option<String>
The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5 minutes)".
event_pattern: Option<String>
The event pattern. For more information, see EventBridge event patterns in the Amazon EventBridge User Guide.
state: Option<RuleState>
Indicates whether the rule is enabled or disabled.
description: Option<String>
A description of the rule.
role_arn: Option<String>
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
If you're setting an event bus in another account as the target and that account granted permission to your account through an organization instead of directly by the account ID, you must specify a RoleArn
with proper permissions in the Target
structure, instead of here in this parameter.
The list of key-value pairs to associate with the rule.
event_bus_name: Option<String>
The name or ARN of the event bus to associate with this rule. If you omit this, the default event bus is used.
Implementations
sourceimpl PutRuleInput
impl PutRuleInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutRule, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<PutRule, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<PutRule
>
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture PutRuleInput
sourceimpl PutRuleInput
impl PutRuleInput
sourcepub fn schedule_expression(&self) -> Option<&str>
pub fn schedule_expression(&self) -> Option<&str>
The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5 minutes)".
sourcepub fn event_pattern(&self) -> Option<&str>
pub fn event_pattern(&self) -> Option<&str>
The event pattern. For more information, see EventBridge event patterns in the Amazon EventBridge User Guide.
sourcepub fn description(&self) -> Option<&str>
pub fn description(&self) -> Option<&str>
A description of the rule.
sourcepub fn role_arn(&self) -> Option<&str>
pub fn role_arn(&self) -> Option<&str>
The Amazon Resource Name (ARN) of the IAM role associated with the rule.
If you're setting an event bus in another account as the target and that account granted permission to your account through an organization instead of directly by the account ID, you must specify a RoleArn
with proper permissions in the Target
structure, instead of here in this parameter.
The list of key-value pairs to associate with the rule.
sourcepub fn event_bus_name(&self) -> Option<&str>
pub fn event_bus_name(&self) -> Option<&str>
The name or ARN of the event bus to associate with this rule. If you omit this, the default event bus is used.
Trait Implementations
sourceimpl Clone for PutRuleInput
impl Clone for PutRuleInput
sourcefn clone(&self) -> PutRuleInput
fn clone(&self) -> PutRuleInput
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for PutRuleInput
impl Debug for PutRuleInput
sourceimpl PartialEq<PutRuleInput> for PutRuleInput
impl PartialEq<PutRuleInput> for PutRuleInput
sourcefn eq(&self, other: &PutRuleInput) -> bool
fn eq(&self, other: &PutRuleInput) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &PutRuleInput) -> bool
fn ne(&self, other: &PutRuleInput) -> bool
This method tests for !=
.
impl StructuralPartialEq for PutRuleInput
Auto Trait Implementations
impl RefUnwindSafe for PutRuleInput
impl Send for PutRuleInput
impl Sync for PutRuleInput
impl Unpin for PutRuleInput
impl UnwindSafe for PutRuleInput
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more