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

Description

Used to enable or disable the custom Mail-From domain configuration for an email identity.

Synopsis

Creating a Request

data PutEmailIdentityMailFromAttributes Source #

A request to configure the custom MAIL FROM domain for a verified identity.

See: newPutEmailIdentityMailFromAttributes smart constructor.

Constructors

PutEmailIdentityMailFromAttributes' 

Fields

  • mailFromDomain :: Maybe Text

    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.
  • behaviorOnMxFailure :: Maybe BehaviorOnMxFailure

    The action to take if the required MX record isn't 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.

  • emailIdentity :: Text

    The verified email identity.

Instances

Instances details
Eq PutEmailIdentityMailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.PutEmailIdentityMailFromAttributes

Read PutEmailIdentityMailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.PutEmailIdentityMailFromAttributes

Show PutEmailIdentityMailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.PutEmailIdentityMailFromAttributes

Generic PutEmailIdentityMailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.PutEmailIdentityMailFromAttributes

Associated Types

type Rep PutEmailIdentityMailFromAttributes :: Type -> Type #

NFData PutEmailIdentityMailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.PutEmailIdentityMailFromAttributes

Hashable PutEmailIdentityMailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.PutEmailIdentityMailFromAttributes

ToJSON PutEmailIdentityMailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.PutEmailIdentityMailFromAttributes

AWSRequest PutEmailIdentityMailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.PutEmailIdentityMailFromAttributes

ToHeaders PutEmailIdentityMailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.PutEmailIdentityMailFromAttributes

ToPath PutEmailIdentityMailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.PutEmailIdentityMailFromAttributes

ToQuery PutEmailIdentityMailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.PutEmailIdentityMailFromAttributes

type Rep PutEmailIdentityMailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.PutEmailIdentityMailFromAttributes

type Rep PutEmailIdentityMailFromAttributes = D1 ('MetaData "PutEmailIdentityMailFromAttributes" "Amazonka.SESV2.PutEmailIdentityMailFromAttributes" "libZSservicesZSamazonka-sesv2ZSamazonka-sesv2" 'False) (C1 ('MetaCons "PutEmailIdentityMailFromAttributes'" 'PrefixI 'True) (S1 ('MetaSel ('Just "mailFromDomain") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "behaviorOnMxFailure") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe BehaviorOnMxFailure)) :*: S1 ('MetaSel ('Just "emailIdentity") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse PutEmailIdentityMailFromAttributes Source # 
Instance details

Defined in Amazonka.SESV2.PutEmailIdentityMailFromAttributes

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 to take if the required MX record isn't 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.

$sel:emailIdentity:PutEmailIdentityMailFromAttributes', putEmailIdentityMailFromAttributes_emailIdentity - The verified email identity.

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 to take if the required MX record isn't 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.

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.

Constructors

PutEmailIdentityMailFromAttributesResponse' 

Fields

Instances

Instances details
Eq PutEmailIdentityMailFromAttributesResponse Source # 
Instance details

Defined in Amazonka.SESV2.PutEmailIdentityMailFromAttributes

Read PutEmailIdentityMailFromAttributesResponse Source # 
Instance details

Defined in Amazonka.SESV2.PutEmailIdentityMailFromAttributes

Show PutEmailIdentityMailFromAttributesResponse Source # 
Instance details

Defined in Amazonka.SESV2.PutEmailIdentityMailFromAttributes

Generic PutEmailIdentityMailFromAttributesResponse Source # 
Instance details

Defined in Amazonka.SESV2.PutEmailIdentityMailFromAttributes

NFData PutEmailIdentityMailFromAttributesResponse Source # 
Instance details

Defined in Amazonka.SESV2.PutEmailIdentityMailFromAttributes

type Rep PutEmailIdentityMailFromAttributesResponse Source # 
Instance details

Defined in Amazonka.SESV2.PutEmailIdentityMailFromAttributes

type Rep PutEmailIdentityMailFromAttributesResponse = D1 ('MetaData "PutEmailIdentityMailFromAttributesResponse" "Amazonka.SESV2.PutEmailIdentityMailFromAttributes" "libZSservicesZSamazonka-sesv2ZSamazonka-sesv2" '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