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 |
Used to enable or disable feedback forwarding for an identity. This setting determines what happens when an identity is used to send an email that results in a bounce or complaint event.
When you enable feedback forwarding, Amazon Pinpoint sends you email notifications when bounce or complaint events occur. Amazon Pinpoint sends this notification to the address that you specified in the Return-Path header of the original email.
When you disable feedback forwarding, Amazon Pinpoint sends notifications through other mechanisms, such as by notifying an Amazon SNS topic. You're required to have a method of tracking bounces and complaints. If you haven't set up another mechanism for receiving bounce or complaint notifications, Amazon Pinpoint sends an email notification when these events occur (even if this setting is disabled).
Synopsis
- data PutEmailIdentityFeedbackAttributes = PutEmailIdentityFeedbackAttributes' {}
- newPutEmailIdentityFeedbackAttributes :: Text -> PutEmailIdentityFeedbackAttributes
- putEmailIdentityFeedbackAttributes_emailForwardingEnabled :: Lens' PutEmailIdentityFeedbackAttributes (Maybe Bool)
- putEmailIdentityFeedbackAttributes_emailIdentity :: Lens' PutEmailIdentityFeedbackAttributes Text
- data PutEmailIdentityFeedbackAttributesResponse = PutEmailIdentityFeedbackAttributesResponse' {
- httpStatus :: Int
- newPutEmailIdentityFeedbackAttributesResponse :: Int -> PutEmailIdentityFeedbackAttributesResponse
- putEmailIdentityFeedbackAttributesResponse_httpStatus :: Lens' PutEmailIdentityFeedbackAttributesResponse Int
Creating a Request
data PutEmailIdentityFeedbackAttributes Source #
A request to set the attributes that control how bounce and complaint events are processed.
See: newPutEmailIdentityFeedbackAttributes
smart constructor.
PutEmailIdentityFeedbackAttributes' | |
|
Instances
newPutEmailIdentityFeedbackAttributes Source #
Create a value of PutEmailIdentityFeedbackAttributes
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:emailForwardingEnabled:PutEmailIdentityFeedbackAttributes'
, putEmailIdentityFeedbackAttributes_emailForwardingEnabled
- Sets the feedback forwarding configuration for the identity.
If the value is true
, Amazon Pinpoint sends you email notifications
when bounce or complaint events occur. Amazon Pinpoint sends this
notification to the address that you specified in the Return-Path header
of the original email.
When you set this value to false
, Amazon Pinpoint sends notifications
through other mechanisms, such as by notifying an Amazon SNS topic or
another event destination. You're required to have a method of tracking
bounces and complaints. If you haven't set up another mechanism for
receiving bounce or complaint notifications, Amazon Pinpoint sends an
email notification when these events occur (even if this setting is
disabled).
$sel:emailIdentity:PutEmailIdentityFeedbackAttributes'
, putEmailIdentityFeedbackAttributes_emailIdentity
- The email identity that you want to configure bounce and complaint
feedback forwarding for.
Request Lenses
putEmailIdentityFeedbackAttributes_emailForwardingEnabled :: Lens' PutEmailIdentityFeedbackAttributes (Maybe Bool) Source #
Sets the feedback forwarding configuration for the identity.
If the value is true
, Amazon Pinpoint sends you email notifications
when bounce or complaint events occur. Amazon Pinpoint sends this
notification to the address that you specified in the Return-Path header
of the original email.
When you set this value to false
, Amazon Pinpoint sends notifications
through other mechanisms, such as by notifying an Amazon SNS topic or
another event destination. You're required to have a method of tracking
bounces and complaints. If you haven't set up another mechanism for
receiving bounce or complaint notifications, Amazon Pinpoint sends an
email notification when these events occur (even if this setting is
disabled).
putEmailIdentityFeedbackAttributes_emailIdentity :: Lens' PutEmailIdentityFeedbackAttributes Text Source #
The email identity that you want to configure bounce and complaint feedback forwarding for.
Destructuring the Response
data PutEmailIdentityFeedbackAttributesResponse Source #
An HTTP 200 response if the request succeeds, or an error message if the request fails.
See: newPutEmailIdentityFeedbackAttributesResponse
smart constructor.
PutEmailIdentityFeedbackAttributesResponse' | |
|
Instances
Eq PutEmailIdentityFeedbackAttributesResponse Source # | |
Read PutEmailIdentityFeedbackAttributesResponse Source # | |
Show PutEmailIdentityFeedbackAttributesResponse Source # | |
Generic PutEmailIdentityFeedbackAttributesResponse Source # | |
NFData PutEmailIdentityFeedbackAttributesResponse Source # | |
type Rep PutEmailIdentityFeedbackAttributesResponse Source # | |
Defined in Amazonka.PinpointEmail.PutEmailIdentityFeedbackAttributes type Rep PutEmailIdentityFeedbackAttributesResponse = D1 ('MetaData "PutEmailIdentityFeedbackAttributesResponse" "Amazonka.PinpointEmail.PutEmailIdentityFeedbackAttributes" "libZSservicesZSamazonka-pinpoint-emailZSamazonka-pinpoint-email" 'False) (C1 ('MetaCons "PutEmailIdentityFeedbackAttributesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newPutEmailIdentityFeedbackAttributesResponse Source #
Create a value of PutEmailIdentityFeedbackAttributesResponse
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:PutEmailIdentityFeedbackAttributesResponse'
, putEmailIdentityFeedbackAttributesResponse_httpStatus
- The response's http status code.
Response Lenses
putEmailIdentityFeedbackAttributesResponse_httpStatus :: Lens' PutEmailIdentityFeedbackAttributesResponse Int Source #
The response's http status code.