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

Description

Updates the specified sending authorization policy for the given identity (an email address or a domain). This API returns successfully even if a policy with the specified name does not exist.

This API is for the identity owner only. If you have not verified the identity, this API will return an error.

Sending authorization is a feature that enables an identity owner to authorize other senders to use its identities. For information about using sending authorization, see the Amazon SES Developer Guide.

You can execute this operation no more than once per second.

Synopsis

Creating a Request

data UpdateEmailIdentityPolicy Source #

Represents a request to update a sending authorization policy for an identity. Sending authorization is an Amazon SES feature that enables you to authorize other senders to use your identities. For information, see the Amazon SES Developer Guide.

See: newUpdateEmailIdentityPolicy smart constructor.

Constructors

UpdateEmailIdentityPolicy' 

Fields

  • emailIdentity :: Text

    The email identity.

  • policyName :: Text

    The name of the policy.

    The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.

  • policy :: Text

    The text of the policy in JSON format. The policy cannot exceed 4 KB.

    For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.

Instances

Instances details
Eq UpdateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.UpdateEmailIdentityPolicy

Read UpdateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.UpdateEmailIdentityPolicy

Show UpdateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.UpdateEmailIdentityPolicy

Generic UpdateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.UpdateEmailIdentityPolicy

Associated Types

type Rep UpdateEmailIdentityPolicy :: Type -> Type #

NFData UpdateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.UpdateEmailIdentityPolicy

Hashable UpdateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.UpdateEmailIdentityPolicy

ToJSON UpdateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.UpdateEmailIdentityPolicy

AWSRequest UpdateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.UpdateEmailIdentityPolicy

ToHeaders UpdateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.UpdateEmailIdentityPolicy

ToPath UpdateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.UpdateEmailIdentityPolicy

ToQuery UpdateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.UpdateEmailIdentityPolicy

type Rep UpdateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.UpdateEmailIdentityPolicy

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

Defined in Amazonka.SESV2.UpdateEmailIdentityPolicy

newUpdateEmailIdentityPolicy Source #

Create a value of UpdateEmailIdentityPolicy 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:emailIdentity:UpdateEmailIdentityPolicy', updateEmailIdentityPolicy_emailIdentity - The email identity.

$sel:policyName:UpdateEmailIdentityPolicy', updateEmailIdentityPolicy_policyName - The name of the policy.

The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.

$sel:policy:UpdateEmailIdentityPolicy', updateEmailIdentityPolicy_policy - The text of the policy in JSON format. The policy cannot exceed 4 KB.

For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.

Request Lenses

updateEmailIdentityPolicy_policyName :: Lens' UpdateEmailIdentityPolicy Text Source #

The name of the policy.

The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.

updateEmailIdentityPolicy_policy :: Lens' UpdateEmailIdentityPolicy Text Source #

The text of the policy in JSON format. The policy cannot exceed 4 KB.

For information about the syntax of sending authorization policies, see the Amazon SES Developer Guide.

Destructuring the Response

data UpdateEmailIdentityPolicyResponse Source #

An HTTP 200 response if the request succeeds, or an error message if the request fails.

See: newUpdateEmailIdentityPolicyResponse smart constructor.

Constructors

UpdateEmailIdentityPolicyResponse' 

Fields

Instances

Instances details
Eq UpdateEmailIdentityPolicyResponse Source # 
Instance details

Defined in Amazonka.SESV2.UpdateEmailIdentityPolicy

Read UpdateEmailIdentityPolicyResponse Source # 
Instance details

Defined in Amazonka.SESV2.UpdateEmailIdentityPolicy

Show UpdateEmailIdentityPolicyResponse Source # 
Instance details

Defined in Amazonka.SESV2.UpdateEmailIdentityPolicy

Generic UpdateEmailIdentityPolicyResponse Source # 
Instance details

Defined in Amazonka.SESV2.UpdateEmailIdentityPolicy

Associated Types

type Rep UpdateEmailIdentityPolicyResponse :: Type -> Type #

NFData UpdateEmailIdentityPolicyResponse Source # 
Instance details

Defined in Amazonka.SESV2.UpdateEmailIdentityPolicy

type Rep UpdateEmailIdentityPolicyResponse Source # 
Instance details

Defined in Amazonka.SESV2.UpdateEmailIdentityPolicy

type Rep UpdateEmailIdentityPolicyResponse = D1 ('MetaData "UpdateEmailIdentityPolicyResponse" "Amazonka.SESV2.UpdateEmailIdentityPolicy" "libZSservicesZSamazonka-sesv2ZSamazonka-sesv2" 'False) (C1 ('MetaCons "UpdateEmailIdentityPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newUpdateEmailIdentityPolicyResponse Source #

Create a value of UpdateEmailIdentityPolicyResponse 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:UpdateEmailIdentityPolicyResponse', updateEmailIdentityPolicyResponse_httpStatus - The response's http status code.

Response Lenses