aws_sdk_codestarnotifications/client/
update_notification_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 [`UpdateNotificationRule`](crate::operation::update_notification_rule::builders::UpdateNotificationRuleFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`arn(impl Into<String>)`](crate::operation::update_notification_rule::builders::UpdateNotificationRuleFluentBuilder::arn) / [`set_arn(Option<String>)`](crate::operation::update_notification_rule::builders::UpdateNotificationRuleFluentBuilder::set_arn):<br>required: **true**<br><p>The Amazon Resource Name (ARN) of the notification rule.</p><br>
7    ///   - [`name(impl Into<String>)`](crate::operation::update_notification_rule::builders::UpdateNotificationRuleFluentBuilder::name) / [`set_name(Option<String>)`](crate::operation::update_notification_rule::builders::UpdateNotificationRuleFluentBuilder::set_name):<br>required: **false**<br><p>The name of the notification rule.</p><br>
8    ///   - [`status(NotificationRuleStatus)`](crate::operation::update_notification_rule::builders::UpdateNotificationRuleFluentBuilder::status) / [`set_status(Option<NotificationRuleStatus>)`](crate::operation::update_notification_rule::builders::UpdateNotificationRuleFluentBuilder::set_status):<br>required: **false**<br><p>The status of the notification rule. Valid statuses include enabled (sending notifications) or disabled (not sending notifications).</p><br>
9    ///   - [`event_type_ids(impl Into<String>)`](crate::operation::update_notification_rule::builders::UpdateNotificationRuleFluentBuilder::event_type_ids) / [`set_event_type_ids(Option<Vec::<String>>)`](crate::operation::update_notification_rule::builders::UpdateNotificationRuleFluentBuilder::set_event_type_ids):<br>required: **false**<br><p>A list of event types associated with this notification rule. For a complete list of event types and IDs, see <a href="https://docs.aws.amazon.com/codestar-notifications/latest/userguide/concepts.html#concepts-api">Notification concepts</a> in the <i>Developer Tools Console User Guide</i>.</p><br>
10    ///   - [`targets(Target)`](crate::operation::update_notification_rule::builders::UpdateNotificationRuleFluentBuilder::targets) / [`set_targets(Option<Vec::<Target>>)`](crate::operation::update_notification_rule::builders::UpdateNotificationRuleFluentBuilder::set_targets):<br>required: **false**<br><p>The address and type of the targets to receive notifications from this notification rule.</p><br>
11    ///   - [`detail_type(DetailType)`](crate::operation::update_notification_rule::builders::UpdateNotificationRuleFluentBuilder::detail_type) / [`set_detail_type(Option<DetailType>)`](crate::operation::update_notification_rule::builders::UpdateNotificationRuleFluentBuilder::set_detail_type):<br>required: **false**<br><p>The level of detail to include in the notifications for this resource. BASIC will include only the contents of the event as it would appear in Amazon CloudWatch. FULL will include any supplemental information provided by AWS CodeStar Notifications and/or the service for the resource for which the notification is created.</p><br>
12    /// - On success, responds with [`UpdateNotificationRuleOutput`](crate::operation::update_notification_rule::UpdateNotificationRuleOutput)
13    /// - On failure, responds with [`SdkError<UpdateNotificationRuleError>`](crate::operation::update_notification_rule::UpdateNotificationRuleError)
14    pub fn update_notification_rule(&self) -> crate::operation::update_notification_rule::builders::UpdateNotificationRuleFluentBuilder {
15        crate::operation::update_notification_rule::builders::UpdateNotificationRuleFluentBuilder::new(self.handle.clone())
16    }
17}