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 the custom Mail-From domain configuration for an email identity.
Synopsis
- data PutEmailIdentityMailFromAttributes = PutEmailIdentityMailFromAttributes' {}
- newPutEmailIdentityMailFromAttributes :: Text -> PutEmailIdentityMailFromAttributes
- putEmailIdentityMailFromAttributes_mailFromDomain :: Lens' PutEmailIdentityMailFromAttributes (Maybe Text)
- putEmailIdentityMailFromAttributes_behaviorOnMxFailure :: Lens' PutEmailIdentityMailFromAttributes (Maybe BehaviorOnMxFailure)
- putEmailIdentityMailFromAttributes_emailIdentity :: Lens' PutEmailIdentityMailFromAttributes Text
- data PutEmailIdentityMailFromAttributesResponse = PutEmailIdentityMailFromAttributesResponse' {
- httpStatus :: Int
- newPutEmailIdentityMailFromAttributesResponse :: Int -> PutEmailIdentityMailFromAttributesResponse
- putEmailIdentityMailFromAttributesResponse_httpStatus :: Lens' PutEmailIdentityMailFromAttributesResponse Int
Creating a Request
data PutEmailIdentityMailFromAttributes Source #
A request to configure the custom MAIL FROM domain for a verified identity.
See: newPutEmailIdentityMailFromAttributes
smart constructor.
PutEmailIdentityMailFromAttributes' | |
|
Instances
newPutEmailIdentityMailFromAttributes Source #
Create a value of PutEmailIdentityMailFromAttributes
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:mailFromDomain:PutEmailIdentityMailFromAttributes'
, putEmailIdentityMailFromAttributes_mailFromDomain
- The custom MAIL FROM domain that you want the verified identity to use.
The MAIL FROM domain must meet the following criteria:
- It has to be a subdomain of the verified identity.
- It can't be used to receive email.
- It can't be used in a "From" address if the MAIL FROM domain is a destination for feedback forwarding emails.
$sel:behaviorOnMxFailure:PutEmailIdentityMailFromAttributes'
, putEmailIdentityMailFromAttributes_behaviorOnMxFailure
- The action that you want Amazon Pinpoint to take if it can't read the
required MX record when you send an email. When you set this value to
UseDefaultValue
, Amazon Pinpoint uses amazonses.com as the MAIL FROM
domain. When you set this value to RejectMessage
, Amazon Pinpoint
returns a MailFromDomainNotVerified
error, and doesn't attempt to
deliver the email.
These behaviors are taken when the custom MAIL FROM domain configuration
is in the Pending
, Failed
, and TemporaryFailure
states.
$sel:emailIdentity:PutEmailIdentityMailFromAttributes'
, putEmailIdentityMailFromAttributes_emailIdentity
- The verified email identity that you want to set up the custom MAIL FROM
domain for.
Request Lenses
putEmailIdentityMailFromAttributes_mailFromDomain :: Lens' PutEmailIdentityMailFromAttributes (Maybe Text) Source #
The custom MAIL FROM domain that you want the verified identity to use. The MAIL FROM domain must meet the following criteria:
- It has to be a subdomain of the verified identity.
- It can't be used to receive email.
- It can't be used in a "From" address if the MAIL FROM domain is a destination for feedback forwarding emails.
putEmailIdentityMailFromAttributes_behaviorOnMxFailure :: Lens' PutEmailIdentityMailFromAttributes (Maybe BehaviorOnMxFailure) Source #
The action that you want Amazon Pinpoint to take if it can't read the
required MX record when you send an email. When you set this value to
UseDefaultValue
, Amazon Pinpoint uses amazonses.com as the MAIL FROM
domain. When you set this value to RejectMessage
, Amazon Pinpoint
returns a MailFromDomainNotVerified
error, and doesn't attempt to
deliver the email.
These behaviors are taken when the custom MAIL FROM domain configuration
is in the Pending
, Failed
, and TemporaryFailure
states.
putEmailIdentityMailFromAttributes_emailIdentity :: Lens' PutEmailIdentityMailFromAttributes Text Source #
The verified email identity that you want to set up the custom MAIL FROM domain for.
Destructuring the Response
data PutEmailIdentityMailFromAttributesResponse Source #
An HTTP 200 response if the request succeeds, or an error message if the request fails.
See: newPutEmailIdentityMailFromAttributesResponse
smart constructor.
PutEmailIdentityMailFromAttributesResponse' | |
|
Instances
Eq PutEmailIdentityMailFromAttributesResponse Source # | |
Read PutEmailIdentityMailFromAttributesResponse Source # | |
Show PutEmailIdentityMailFromAttributesResponse Source # | |
Generic PutEmailIdentityMailFromAttributesResponse Source # | |
NFData PutEmailIdentityMailFromAttributesResponse Source # | |
type Rep PutEmailIdentityMailFromAttributesResponse Source # | |
Defined in Amazonka.PinpointEmail.PutEmailIdentityMailFromAttributes type Rep PutEmailIdentityMailFromAttributesResponse = D1 ('MetaData "PutEmailIdentityMailFromAttributesResponse" "Amazonka.PinpointEmail.PutEmailIdentityMailFromAttributes" "libZSservicesZSamazonka-pinpoint-emailZSamazonka-pinpoint-email" 'False) (C1 ('MetaCons "PutEmailIdentityMailFromAttributesResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newPutEmailIdentityMailFromAttributesResponse Source #
Create a value of PutEmailIdentityMailFromAttributesResponse
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:PutEmailIdentityMailFromAttributesResponse'
, putEmailIdentityMailFromAttributesResponse_httpStatus
- The response's http status code.
Response Lenses
putEmailIdentityMailFromAttributesResponse_httpStatus :: Lens' PutEmailIdentityMailFromAttributesResponse Int Source #
The response's http status code.