| 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.SESV2.Types.MailFromAttributes
Description
Synopsis
- data MailFromAttributes = MailFromAttributes' {}
- newMailFromAttributes :: Text -> MailFromDomainStatus -> BehaviorOnMxFailure -> MailFromAttributes
- mailFromAttributes_mailFromDomain :: Lens' MailFromAttributes Text
- mailFromAttributes_mailFromDomainStatus :: Lens' MailFromAttributes MailFromDomainStatus
- mailFromAttributes_behaviorOnMxFailure :: Lens' MailFromAttributes BehaviorOnMxFailure
Documentation
data MailFromAttributes Source #
A list of attributes that are associated with a MAIL FROM domain.
See: newMailFromAttributes smart constructor.
Constructors
| MailFromAttributes' | |
Fields
| |
Instances
newMailFromAttributes Source #
Arguments
| :: Text | |
| -> MailFromDomainStatus | |
| -> BehaviorOnMxFailure | |
| -> MailFromAttributes |
Create a value of MailFromAttributes 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:MailFromAttributes', mailFromAttributes_mailFromDomain - The name of a domain that an email identity uses as a custom MAIL FROM
domain.
$sel:mailFromDomainStatus:MailFromAttributes', mailFromAttributes_mailFromDomainStatus - The status of the MAIL FROM domain. This status can have the following
values:
PENDING– Amazon SES hasn't started searching for the MX record yet.SUCCESS– Amazon SES detected the required MX record for the MAIL FROM domain.FAILED– Amazon SES can't find the required MX record, or the record no longer exists.TEMPORARY_FAILURE– A temporary issue occurred, which prevented Amazon SES from determining the status of the MAIL FROM domain.
$sel:behaviorOnMxFailure:MailFromAttributes', mailFromAttributes_behaviorOnMxFailure - The action to take if the required MX record can't be found when you
send an email. When you set this value to USE_DEFAULT_VALUE, the mail
is sent using amazonses.com as the MAIL FROM domain. When you set this
value to REJECT_MESSAGE, the Amazon SES API v2 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.
mailFromAttributes_mailFromDomain :: Lens' MailFromAttributes Text Source #
The name of a domain that an email identity uses as a custom MAIL FROM domain.
mailFromAttributes_mailFromDomainStatus :: Lens' MailFromAttributes MailFromDomainStatus Source #
The status of the MAIL FROM domain. This status can have the following values:
PENDING– Amazon SES hasn't started searching for the MX record yet.SUCCESS– Amazon SES detected the required MX record for the MAIL FROM domain.FAILED– Amazon SES can't find the required MX record, or the record no longer exists.TEMPORARY_FAILURE– A temporary issue occurred, which prevented Amazon SES from determining the status of the MAIL FROM domain.
mailFromAttributes_behaviorOnMxFailure :: Lens' MailFromAttributes BehaviorOnMxFailure Source #
The action to take if the required MX record can't be found when you
send an email. When you set this value to USE_DEFAULT_VALUE, the mail
is sent using amazonses.com as the MAIL FROM domain. When you set this
value to REJECT_MESSAGE, the Amazon SES API v2 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.