amazonka-sesv2-2.0: Amazon Simple Email Service SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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 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.

Instances

Instances details
FromJSON 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 #

Read MailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.Types.MailFromAttributes

Show MailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.Types.MailFromAttributes

NFData MailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.Types.MailFromAttributes

Methods

rnf :: MailFromAttributes -> () #

Eq MailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.Types.MailFromAttributes

Hashable 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" "amazonka-sesv2-2.0-KPRo1S1CRfP4bs5VKSgHvB" '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 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.