libZSservicesZSamazonka-sesv2ZSamazonka-sesv2
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.SESV2.Types.MailFromAttributes

Description

 
Synopsis

Documentation

data MailFromAttributes Source #

A list of attributes that are associated with a MAIL FROM domain.

See: newMailFromAttributes smart constructor.

Constructors

MailFromAttributes' 

Fields

  • mailFromDomain :: Text

    The name of a domain that an email identity uses as a custom MAIL FROM domain.

  • mailFromDomainStatus :: 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.
  • behaviorOnMxFailure :: 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 UseDefaultValue, the mail is sent using amazonses.com as the MAIL FROM domain. When you set this value to RejectMessage, 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.

Instances

Instances details
Eq MailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.Types.MailFromAttributes

Read MailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.Types.MailFromAttributes

Show MailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.Types.MailFromAttributes

Generic MailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.Types.MailFromAttributes

Associated Types

type Rep MailFromAttributes :: Type -> Type #

NFData MailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.Types.MailFromAttributes

Methods

rnf :: MailFromAttributes -> () #

Hashable MailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.Types.MailFromAttributes

FromJSON MailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.Types.MailFromAttributes

type Rep MailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.Types.MailFromAttributes

type Rep MailFromAttributes = D1 ('MetaData "MailFromAttributes" "Amazonka.SESV2.Types.MailFromAttributes" "libZSservicesZSamazonka-sesv2ZSamazonka-sesv2" 'False) (C1 ('MetaCons "MailFromAttributes'" 'PrefixI 'True) (S1 ('MetaSel ('Just "mailFromDomain") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "mailFromDomainStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 MailFromDomainStatus) :*: S1 ('MetaSel ('Just "behaviorOnMxFailure") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 BehaviorOnMxFailure))))

newMailFromAttributes Source #

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 UseDefaultValue, the mail is sent using amazonses.com as the MAIL FROM domain. When you set this value to RejectMessage, 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 UseDefaultValue, the mail is sent using amazonses.com as the MAIL FROM domain. When you set this value to RejectMessage, 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.