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

Description

Creates the specified sending authorization policy for the given identity (an email address or a domain).

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 CreateEmailIdentityPolicy Source #

Represents a request to create 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: newCreateEmailIdentityPolicy smart constructor.

Constructors

CreateEmailIdentityPolicy' 

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 CreateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.CreateEmailIdentityPolicy

Read CreateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.CreateEmailIdentityPolicy

Show CreateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.CreateEmailIdentityPolicy

Generic CreateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.CreateEmailIdentityPolicy

Associated Types

type Rep CreateEmailIdentityPolicy :: Type -> Type #

NFData CreateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.CreateEmailIdentityPolicy

Hashable CreateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.CreateEmailIdentityPolicy

ToJSON CreateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.CreateEmailIdentityPolicy

AWSRequest CreateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.CreateEmailIdentityPolicy

ToHeaders CreateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.CreateEmailIdentityPolicy

ToPath CreateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.CreateEmailIdentityPolicy

ToQuery CreateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.CreateEmailIdentityPolicy

type Rep CreateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.CreateEmailIdentityPolicy

type Rep CreateEmailIdentityPolicy = D1 ('MetaData "CreateEmailIdentityPolicy" "Amazonka.SESV2.CreateEmailIdentityPolicy" "libZSservicesZSamazonka-sesv2ZSamazonka-sesv2" 'False) (C1 ('MetaCons "CreateEmailIdentityPolicy'" '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 CreateEmailIdentityPolicy Source # 
Instance details

Defined in Amazonka.SESV2.CreateEmailIdentityPolicy

newCreateEmailIdentityPolicy Source #

Create a value of CreateEmailIdentityPolicy 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:CreateEmailIdentityPolicy', createEmailIdentityPolicy_emailIdentity - The email identity.

$sel:policyName:CreateEmailIdentityPolicy', createEmailIdentityPolicy_policyName - The name of the policy.

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

$sel:policy:CreateEmailIdentityPolicy', createEmailIdentityPolicy_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

createEmailIdentityPolicy_policyName :: Lens' CreateEmailIdentityPolicy Text Source #

The name of the policy.

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

createEmailIdentityPolicy_policy :: Lens' CreateEmailIdentityPolicy 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 CreateEmailIdentityPolicyResponse Source #

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

See: newCreateEmailIdentityPolicyResponse smart constructor.

Constructors

CreateEmailIdentityPolicyResponse' 

Fields

Instances

Instances details
Eq CreateEmailIdentityPolicyResponse Source # 
Instance details

Defined in Amazonka.SESV2.CreateEmailIdentityPolicy

Read CreateEmailIdentityPolicyResponse Source # 
Instance details

Defined in Amazonka.SESV2.CreateEmailIdentityPolicy

Show CreateEmailIdentityPolicyResponse Source # 
Instance details

Defined in Amazonka.SESV2.CreateEmailIdentityPolicy

Generic CreateEmailIdentityPolicyResponse Source # 
Instance details

Defined in Amazonka.SESV2.CreateEmailIdentityPolicy

Associated Types

type Rep CreateEmailIdentityPolicyResponse :: Type -> Type #

NFData CreateEmailIdentityPolicyResponse Source # 
Instance details

Defined in Amazonka.SESV2.CreateEmailIdentityPolicy

type Rep CreateEmailIdentityPolicyResponse Source # 
Instance details

Defined in Amazonka.SESV2.CreateEmailIdentityPolicy

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

newCreateEmailIdentityPolicyResponse Source #

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

Response Lenses