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 Events and 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
pub 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
>
Creates a new builder-style object to manufacture PutRuleInput
The scheduling expression. For example, "cron(0 20 * * ? *)" or "rate(5 minutes)".
The event pattern. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
A description of the rule.
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.
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
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
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
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more