Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Given an identity (email address or domain), sets the Amazon Simple
Notification Service (Amazon SNS) topic to which Amazon SES will publish
bounce, complaint, and/or delivery notifications for emails sent with
that identity as the Source
.
Unless feedback forwarding is enabled, you must specify Amazon SNS
topics for bounce and complaint notifications. For more information, see
SetIdentityFeedbackForwardingEnabled
.
This action is throttled at one request per second.
For more information about feedback notification, see the Amazon SES Developer Guide.
See: AWS API Reference for SetIdentityNotificationTopic.
- setIdentityNotificationTopic :: Text -> NotificationType -> SetIdentityNotificationTopic
- data SetIdentityNotificationTopic
- sintSNSTopic :: Lens' SetIdentityNotificationTopic (Maybe Text)
- sintIdentity :: Lens' SetIdentityNotificationTopic Text
- sintNotificationType :: Lens' SetIdentityNotificationTopic NotificationType
- setIdentityNotificationTopicResponse :: Int -> SetIdentityNotificationTopicResponse
- data SetIdentityNotificationTopicResponse
- sintrsResponseStatus :: Lens' SetIdentityNotificationTopicResponse Int
Creating a Request
setIdentityNotificationTopic Source
Creates a value of SetIdentityNotificationTopic
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SetIdentityNotificationTopic Source
Represents a request to set or clear an identity's notification topic.
See: setIdentityNotificationTopic
smart constructor.
Request Lenses
sintSNSTopic :: Lens' SetIdentityNotificationTopic (Maybe Text) Source
The Amazon Resource Name (ARN) of the Amazon SNS topic. If the parameter
is omitted from the request or a null value is passed, SnsTopic
is
cleared and publishing is disabled.
sintIdentity :: Lens' SetIdentityNotificationTopic Text Source
The identity for which the Amazon SNS topic will be set. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: 'user\'example.com', 'example.com', 'arn:aws:ses:us-east-1:123456789012:identity\/example.com'.
sintNotificationType :: Lens' SetIdentityNotificationTopic NotificationType Source
The type of notifications that will be published to the specified Amazon SNS topic.
Destructuring the Response
setIdentityNotificationTopicResponse Source
Creates a value of SetIdentityNotificationTopicResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data SetIdentityNotificationTopicResponse Source
An empty element. Receiving this element indicates that the request completed successfully.
See: setIdentityNotificationTopicResponse
smart constructor.
Response Lenses
sintrsResponseStatus :: Lens' SetIdentityNotificationTopicResponse Int Source
The response status code.