aws_sdk_databasemigration/client/
modify_event_subscription.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`ModifyEventSubscription`](crate::operation::modify_event_subscription::builders::ModifyEventSubscriptionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`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 DMS event notification subscription to be modified.</p><br>
    ///   - [`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 Amazon SNS topic created for event notification. The ARN is created by Amazon SNS when you create a topic and subscribe to it.</p><br>
    ///   - [`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 DMS resource that generates the events you want to subscribe to.</p> <p>Valid values: replication-instance | replication-task</p><br>
    ///   - [`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>A list of event categories for a source type that you want to subscribe to. Use the <code>DescribeEventCategories</code> action to see a list of event categories.</p><br>
    ///   - [`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; set to <b>true</b> to activate the subscription.</p><br>
    /// - On success, responds with [`ModifyEventSubscriptionOutput`](crate::operation::modify_event_subscription::ModifyEventSubscriptionOutput) with field(s):
    ///   - [`event_subscription(Option<EventSubscription>)`](crate::operation::modify_event_subscription::ModifyEventSubscriptionOutput::event_subscription): <p>The modified event subscription.</p>
    /// - On failure, responds with [`SdkError<ModifyEventSubscriptionError>`](crate::operation::modify_event_subscription::ModifyEventSubscriptionError)
    pub fn modify_event_subscription(&self) -> crate::operation::modify_event_subscription::builders::ModifyEventSubscriptionFluentBuilder {
        crate::operation::modify_event_subscription::builders::ModifyEventSubscriptionFluentBuilder::new(self.handle.clone())
    }
}