aws_sdk_notifications/client/
update_event_rule.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`UpdateEventRule`](crate::operation::update_event_rule::builders::UpdateEventRuleFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`arn(impl Into<String>)`](crate::operation::update_event_rule::builders::UpdateEventRuleFluentBuilder::arn) / [`set_arn(Option<String>)`](crate::operation::update_event_rule::builders::UpdateEventRuleFluentBuilder::set_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) to use to update the <code>EventRule</code>.</p><br>
7    ///   - [`event_pattern(impl Into<String>)`](crate::operation::update_event_rule::builders::UpdateEventRuleFluentBuilder::event_pattern) / [`set_event_pattern(Option<String>)`](crate::operation::update_event_rule::builders::UpdateEventRuleFluentBuilder::set_event_pattern):<br>required: **false**<br><p>An additional event pattern used to further filter the events this <code>EventRule</code> receives.</p> <p>For more information, see <a href="https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns.html">Amazon EventBridge event patterns</a> in the <i>Amazon EventBridge User Guide.</i></p><br>
8    ///   - [`regions(impl Into<String>)`](crate::operation::update_event_rule::builders::UpdateEventRuleFluentBuilder::regions) / [`set_regions(Option<Vec::<String>>)`](crate::operation::update_event_rule::builders::UpdateEventRuleFluentBuilder::set_regions):<br>required: **false**<br><p>A list of Amazon Web Services Regions that sends events to this <code>EventRule</code>.</p><br>
9    /// - On success, responds with [`UpdateEventRuleOutput`](crate::operation::update_event_rule::UpdateEventRuleOutput) with field(s):
10    ///   - [`arn(String)`](crate::operation::update_event_rule::UpdateEventRuleOutput::arn): <p>The Amazon Resource Name (ARN) to use to update the <code>EventRule</code>.</p>
11    ///   - [`notification_configuration_arn(String)`](crate::operation::update_event_rule::UpdateEventRuleOutput::notification_configuration_arn): <p>The ARN of the <code>NotificationConfiguration</code>.</p>
12    ///   - [`status_summary_by_region(HashMap::<String, EventRuleStatusSummary>)`](crate::operation::update_event_rule::UpdateEventRuleOutput::status_summary_by_region): <p>The status of the action by Region.</p>
13    /// - On failure, responds with [`SdkError<UpdateEventRuleError>`](crate::operation::update_event_rule::UpdateEventRuleError)
14    pub fn update_event_rule(&self) -> crate::operation::update_event_rule::builders::UpdateEventRuleFluentBuilder {
15        crate::operation::update_event_rule::builders::UpdateEventRuleFluentBuilder::new(self.handle.clone())
16    }
17}