aws_sdk_ses/client/
set_identity_notification_topic.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 [`SetIdentityNotificationTopic`](crate::operation::set_identity_notification_topic::builders::SetIdentityNotificationTopicFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`identity(impl Into<String>)`](crate::operation::set_identity_notification_topic::builders::SetIdentityNotificationTopicFluentBuilder::identity) / [`set_identity(Option<String>)`](crate::operation::set_identity_notification_topic::builders::SetIdentityNotificationTopicFluentBuilder::set_identity):<br>required: **true**<br><p>The identity (email address or domain) for the Amazon SNS topic.</p><important>  <p>You can only specify a verified identity for this parameter.</p> </important> <p>You can specify an identity by using its name or by using its Amazon Resource Name (ARN). The following examples are all valid identities: <code>sender@example.com</code>, <code>example.com</code>, <code>arn:aws:ses:us-east-1:123456789012:identity/example.com</code>.</p><br>
7    ///   - [`notification_type(NotificationType)`](crate::operation::set_identity_notification_topic::builders::SetIdentityNotificationTopicFluentBuilder::notification_type) / [`set_notification_type(Option<NotificationType>)`](crate::operation::set_identity_notification_topic::builders::SetIdentityNotificationTopicFluentBuilder::set_notification_type):<br>required: **true**<br><p>The type of notifications that are published to the specified Amazon SNS topic.</p><br>
8    ///   - [`sns_topic(impl Into<String>)`](crate::operation::set_identity_notification_topic::builders::SetIdentityNotificationTopicFluentBuilder::sns_topic) / [`set_sns_topic(Option<String>)`](crate::operation::set_identity_notification_topic::builders::SetIdentityNotificationTopicFluentBuilder::set_sns_topic):<br>required: **false**<br><p>The Amazon Resource Name (ARN) of the Amazon SNS topic. If the parameter is omitted from the request or a null value is passed, <code>SnsTopic</code> is cleared and publishing is disabled.</p><br>
9    /// - On success, responds with [`SetIdentityNotificationTopicOutput`](crate::operation::set_identity_notification_topic::SetIdentityNotificationTopicOutput)
10    /// - On failure, responds with [`SdkError<SetIdentityNotificationTopicError>`](crate::operation::set_identity_notification_topic::SetIdentityNotificationTopicError)
11    pub fn set_identity_notification_topic(
12        &self,
13    ) -> crate::operation::set_identity_notification_topic::builders::SetIdentityNotificationTopicFluentBuilder {
14        crate::operation::set_identity_notification_topic::builders::SetIdentityNotificationTopicFluentBuilder::new(self.handle.clone())
15    }
16}