Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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.
SetIdentityHeadersInNotificationsEnabled' | |
|
Instances
newSetIdentityHeadersInNotificationsEnabled Source #
:: 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.
$sel:enabled: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.
SetIdentityHeadersInNotificationsEnabledResponse' | |
|
Instances
Eq SetIdentityHeadersInNotificationsEnabledResponse Source # | |
Read SetIdentityHeadersInNotificationsEnabledResponse Source # | |
Show SetIdentityHeadersInNotificationsEnabledResponse Source # | |
Generic SetIdentityHeadersInNotificationsEnabledResponse Source # | |
NFData SetIdentityHeadersInNotificationsEnabledResponse Source # | |
type Rep SetIdentityHeadersInNotificationsEnabledResponse Source # | |
Defined in Amazonka.SES.SetIdentityHeadersInNotificationsEnabled type Rep SetIdentityHeadersInNotificationsEnabledResponse = D1 ('MetaData "SetIdentityHeadersInNotificationsEnabledResponse" "Amazonka.SES.SetIdentityHeadersInNotificationsEnabled" "libZSservicesZSamazonka-sesZSamazonka-ses" 'False) (C1 ('MetaCons "SetIdentityHeadersInNotificationsEnabledResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newSetIdentityHeadersInNotificationsEnabledResponse Source #
:: 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.