aws_sdk_redshift/client/modify_event_subscription.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 [`ModifyEventSubscription`](crate::operation::modify_event_subscription::builders::ModifyEventSubscriptionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`subscription_name(impl Into<String>)`](crate::operation::modify_event_subscription::builders::ModifyEventSubscriptionFluentBuilder::subscription_name) / [`set_subscription_name(Option<String>)`](crate::operation::modify_event_subscription::builders::ModifyEventSubscriptionFluentBuilder::set_subscription_name):<br>required: **true**<br><p>The name of the modified Amazon Redshift event notification subscription.</p><br>
7 /// - [`sns_topic_arn(impl Into<String>)`](crate::operation::modify_event_subscription::builders::ModifyEventSubscriptionFluentBuilder::sns_topic_arn) / [`set_sns_topic_arn(Option<String>)`](crate::operation::modify_event_subscription::builders::ModifyEventSubscriptionFluentBuilder::set_sns_topic_arn):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the SNS topic to be used by the event notification subscription.</p><br>
8 /// - [`source_type(impl Into<String>)`](crate::operation::modify_event_subscription::builders::ModifyEventSubscriptionFluentBuilder::source_type) / [`set_source_type(Option<String>)`](crate::operation::modify_event_subscription::builders::ModifyEventSubscriptionFluentBuilder::set_source_type):<br>required: **false**<br><p>The type of source that will be generating the events. For example, if you want to be notified of events generated by a cluster, you would set this parameter to cluster. If this value is not specified, events are returned for all Amazon Redshift objects in your Amazon Web Services account. You must specify a source type in order to specify source IDs.</p> <p>Valid values: cluster, cluster-parameter-group, cluster-security-group, cluster-snapshot, and scheduled-action.</p><br>
9 /// - [`source_ids(impl Into<String>)`](crate::operation::modify_event_subscription::builders::ModifyEventSubscriptionFluentBuilder::source_ids) / [`set_source_ids(Option<Vec::<String>>)`](crate::operation::modify_event_subscription::builders::ModifyEventSubscriptionFluentBuilder::set_source_ids):<br>required: **false**<br><p>A list of one or more identifiers of Amazon Redshift source objects. All of the objects must be of the same type as was specified in the source type parameter. The event subscription will return only events generated by the specified objects. If not specified, then events are returned for all objects within the source type specified.</p> <p>Example: my-cluster-1, my-cluster-2</p> <p>Example: my-snapshot-20131010</p><br>
10 /// - [`event_categories(impl Into<String>)`](crate::operation::modify_event_subscription::builders::ModifyEventSubscriptionFluentBuilder::event_categories) / [`set_event_categories(Option<Vec::<String>>)`](crate::operation::modify_event_subscription::builders::ModifyEventSubscriptionFluentBuilder::set_event_categories):<br>required: **false**<br><p>Specifies the Amazon Redshift event categories to be published by the event notification subscription.</p> <p>Values: configuration, management, monitoring, security, pending</p><br>
11 /// - [`severity(impl Into<String>)`](crate::operation::modify_event_subscription::builders::ModifyEventSubscriptionFluentBuilder::severity) / [`set_severity(Option<String>)`](crate::operation::modify_event_subscription::builders::ModifyEventSubscriptionFluentBuilder::set_severity):<br>required: **false**<br><p>Specifies the Amazon Redshift event severity to be published by the event notification subscription.</p> <p>Values: ERROR, INFO</p><br>
12 /// - [`enabled(bool)`](crate::operation::modify_event_subscription::builders::ModifyEventSubscriptionFluentBuilder::enabled) / [`set_enabled(Option<bool>)`](crate::operation::modify_event_subscription::builders::ModifyEventSubscriptionFluentBuilder::set_enabled):<br>required: **false**<br><p>A Boolean value indicating if the subscription is enabled. <code>true</code> indicates the subscription is enabled</p><br>
13 /// - On success, responds with [`ModifyEventSubscriptionOutput`](crate::operation::modify_event_subscription::ModifyEventSubscriptionOutput) with field(s):
14 /// - [`event_subscription(Option<EventSubscription>)`](crate::operation::modify_event_subscription::ModifyEventSubscriptionOutput::event_subscription): <p>Describes event subscriptions.</p>
15 /// - On failure, responds with [`SdkError<ModifyEventSubscriptionError>`](crate::operation::modify_event_subscription::ModifyEventSubscriptionError)
16 pub fn modify_event_subscription(&self) -> crate::operation::modify_event_subscription::builders::ModifyEventSubscriptionFluentBuilder {
17 crate::operation::modify_event_subscription::builders::ModifyEventSubscriptionFluentBuilder::new(self.handle.clone())
18 }
19}