| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.SES.SetIdentityHeadersInNotificationsEnabled
Description
Given an identity (an email address or a domain), sets whether Amazon SES includes the original email headers in the Amazon Simple Notification Service (Amazon SNS) notifications of a specified type.
You can execute this operation no more than once per second.
For more information about using notifications with Amazon SES, see the Amazon SES Developer Guide.
Synopsis
- data SetIdentityHeadersInNotificationsEnabled = SetIdentityHeadersInNotificationsEnabled' {}
- newSetIdentityHeadersInNotificationsEnabled :: Text -> NotificationType -> Bool -> SetIdentityHeadersInNotificationsEnabled
- setIdentityHeadersInNotificationsEnabled_identity :: Lens' SetIdentityHeadersInNotificationsEnabled Text
- setIdentityHeadersInNotificationsEnabled_notificationType :: Lens' SetIdentityHeadersInNotificationsEnabled NotificationType
- setIdentityHeadersInNotificationsEnabled_enabled :: Lens' SetIdentityHeadersInNotificationsEnabled Bool
- data SetIdentityHeadersInNotificationsEnabledResponse = SetIdentityHeadersInNotificationsEnabledResponse' {
- httpStatus :: Int
- newSetIdentityHeadersInNotificationsEnabledResponse :: Int -> SetIdentityHeadersInNotificationsEnabledResponse
- setIdentityHeadersInNotificationsEnabledResponse_httpStatus :: Lens' SetIdentityHeadersInNotificationsEnabledResponse Int
Creating a Request
data SetIdentityHeadersInNotificationsEnabled Source #
Represents a request to set whether Amazon SES includes the original email headers in the Amazon SNS notifications of a specified type. For information about notifications, see the Amazon SES Developer Guide.
See: newSetIdentityHeadersInNotificationsEnabled smart constructor.
Constructors
| SetIdentityHeadersInNotificationsEnabled' | |
Fields
| |
Instances
newSetIdentityHeadersInNotificationsEnabled Source #
Arguments
| :: Text | |
| -> NotificationType |
|
| -> Bool | |
| -> SetIdentityHeadersInNotificationsEnabled |
Create a value of SetIdentityHeadersInNotificationsEnabled with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:identity:SetIdentityHeadersInNotificationsEnabled', setIdentityHeadersInNotificationsEnabled_identity - The identity for which to enable or disable headers in notifications.
Examples: user@example.com, example.com.
$sel:notificationType:SetIdentityHeadersInNotificationsEnabled', setIdentityHeadersInNotificationsEnabled_notificationType - The notification type for which to enable or disable headers in
notifications.
SetIdentityHeadersInNotificationsEnabled, setIdentityHeadersInNotificationsEnabled_enabled - Sets whether Amazon SES includes the original email headers in Amazon
SNS notifications of the specified notification type. A value of true
specifies that Amazon SES will include headers in notifications, and a
value of false specifies that Amazon SES will not include headers in
notifications.
This value can only be set when NotificationType is already set to use
a particular Amazon SNS topic.
Request Lenses
setIdentityHeadersInNotificationsEnabled_identity :: Lens' SetIdentityHeadersInNotificationsEnabled Text Source #
The identity for which to enable or disable headers in notifications.
Examples: user@example.com, example.com.
setIdentityHeadersInNotificationsEnabled_notificationType :: Lens' SetIdentityHeadersInNotificationsEnabled NotificationType Source #
The notification type for which to enable or disable headers in notifications.
setIdentityHeadersInNotificationsEnabled_enabled :: Lens' SetIdentityHeadersInNotificationsEnabled Bool Source #
Sets whether Amazon SES includes the original email headers in Amazon
SNS notifications of the specified notification type. A value of true
specifies that Amazon SES will include headers in notifications, and a
value of false specifies that Amazon SES will not include headers in
notifications.
This value can only be set when NotificationType is already set to use
a particular Amazon SNS topic.
Destructuring the Response
data SetIdentityHeadersInNotificationsEnabledResponse Source #
An empty element returned on a successful request.
See: newSetIdentityHeadersInNotificationsEnabledResponse smart constructor.
Constructors
| SetIdentityHeadersInNotificationsEnabledResponse' | |
Fields
| |
Instances
newSetIdentityHeadersInNotificationsEnabledResponse Source #
Arguments
| :: Int |
|
| -> SetIdentityHeadersInNotificationsEnabledResponse |
Create a value of SetIdentityHeadersInNotificationsEnabledResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:SetIdentityHeadersInNotificationsEnabledResponse', setIdentityHeadersInNotificationsEnabledResponse_httpStatus - The response's http status code.
Response Lenses
setIdentityHeadersInNotificationsEnabledResponse_httpStatus :: Lens' SetIdentityHeadersInNotificationsEnabledResponse Int Source #
The response's http status code.