Struct aws_sdk_eventbridge::types::builders::RuleBuilder
source · #[non_exhaustive]pub struct RuleBuilder { /* private fields */ }Expand description
A builder for Rule.
Implementations§
source§impl RuleBuilder
impl RuleBuilder
sourcepub fn set_arn(self, input: Option<String>) -> Self
pub fn set_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the rule.
sourcepub fn event_pattern(self, input: impl Into<String>) -> Self
pub fn event_pattern(self, input: impl Into<String>) -> Self
The event pattern of the rule. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
sourcepub fn set_event_pattern(self, input: Option<String>) -> Self
pub fn set_event_pattern(self, input: Option<String>) -> Self
The event pattern of the rule. For more information, see Events and Event Patterns in the Amazon EventBridge User Guide.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
The description of the rule.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
The description of the rule.
sourcepub fn schedule_expression(self, input: impl Into<String>) -> Self
pub fn schedule_expression(self, input: impl Into<String>) -> Self
The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)". For more information, see Creating an Amazon EventBridge rule that runs on a schedule.
sourcepub fn set_schedule_expression(self, input: Option<String>) -> Self
pub fn set_schedule_expression(self, input: Option<String>) -> Self
The scheduling expression. For example, "cron(0 20 * * ? *)", "rate(5 minutes)". For more information, see Creating an Amazon EventBridge rule that runs on a schedule.
sourcepub fn role_arn(self, input: impl Into<String>) -> Self
pub fn role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the role that is used for target invocation.
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.
sourcepub fn set_role_arn(self, input: Option<String>) -> Self
pub fn set_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the role that is used for target invocation.
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.
sourcepub fn managed_by(self, input: impl Into<String>) -> Self
pub fn managed_by(self, input: impl Into<String>) -> Self
If the rule was created on behalf of your account by an Amazon Web Services service, this field displays the principal name of the service that created the rule.
sourcepub fn set_managed_by(self, input: Option<String>) -> Self
pub fn set_managed_by(self, input: Option<String>) -> Self
If the rule was created on behalf of your account by an Amazon Web Services service, this field displays the principal name of the service that created the rule.
sourcepub fn event_bus_name(self, input: impl Into<String>) -> Self
pub fn event_bus_name(self, input: impl Into<String>) -> Self
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
sourcepub fn set_event_bus_name(self, input: Option<String>) -> Self
pub fn set_event_bus_name(self, input: Option<String>) -> Self
The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.
Trait Implementations§
source§impl Clone for RuleBuilder
impl Clone for RuleBuilder
source§fn clone(&self) -> RuleBuilder
fn clone(&self) -> RuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RuleBuilder
impl Debug for RuleBuilder
source§impl Default for RuleBuilder
impl Default for RuleBuilder
source§fn default() -> RuleBuilder
fn default() -> RuleBuilder
source§impl PartialEq<RuleBuilder> for RuleBuilder
impl PartialEq<RuleBuilder> for RuleBuilder
source§fn eq(&self, other: &RuleBuilder) -> bool
fn eq(&self, other: &RuleBuilder) -> bool
self and other values to be equal, and is used
by ==.