libZSservicesZSamazonka-sesZSamazonka-ses
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.SES.PutIdentityPolicy

Description

Adds or updates a sending authorization policy for the specified 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 PutIdentityPolicy Source #

Represents a request to add or 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: newPutIdentityPolicy smart constructor.

Constructors

PutIdentityPolicy' 

Fields

  • identity :: Text

    The identity that the policy will apply to. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

    To successfully call this API, you must own the 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 PutIdentityPolicy Source # 
Instance details

Defined in Amazonka.SES.PutIdentityPolicy

Read PutIdentityPolicy Source # 
Instance details

Defined in Amazonka.SES.PutIdentityPolicy

Show PutIdentityPolicy Source # 
Instance details

Defined in Amazonka.SES.PutIdentityPolicy

Generic PutIdentityPolicy Source # 
Instance details

Defined in Amazonka.SES.PutIdentityPolicy

Associated Types

type Rep PutIdentityPolicy :: Type -> Type #

NFData PutIdentityPolicy Source # 
Instance details

Defined in Amazonka.SES.PutIdentityPolicy

Methods

rnf :: PutIdentityPolicy -> () #

Hashable PutIdentityPolicy Source # 
Instance details

Defined in Amazonka.SES.PutIdentityPolicy

AWSRequest PutIdentityPolicy Source # 
Instance details

Defined in Amazonka.SES.PutIdentityPolicy

Associated Types

type AWSResponse PutIdentityPolicy #

ToHeaders PutIdentityPolicy Source # 
Instance details

Defined in Amazonka.SES.PutIdentityPolicy

ToPath PutIdentityPolicy Source # 
Instance details

Defined in Amazonka.SES.PutIdentityPolicy

ToQuery PutIdentityPolicy Source # 
Instance details

Defined in Amazonka.SES.PutIdentityPolicy

type Rep PutIdentityPolicy Source # 
Instance details

Defined in Amazonka.SES.PutIdentityPolicy

type Rep PutIdentityPolicy = D1 ('MetaData "PutIdentityPolicy" "Amazonka.SES.PutIdentityPolicy" "libZSservicesZSamazonka-sesZSamazonka-ses" 'False) (C1 ('MetaCons "PutIdentityPolicy'" 'PrefixI 'True) (S1 ('MetaSel ('Just "identity") '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 PutIdentityPolicy Source # 
Instance details

Defined in Amazonka.SES.PutIdentityPolicy

newPutIdentityPolicy Source #

Create a value of PutIdentityPolicy 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:identity:PutIdentityPolicy', putIdentityPolicy_identity - The identity that the policy will apply to. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

To successfully call this API, you must own the identity.

$sel:policyName:PutIdentityPolicy', putIdentityPolicy_policyName - The name of the policy.

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

$sel:policy:PutIdentityPolicy', putIdentityPolicy_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

putIdentityPolicy_identity :: Lens' PutIdentityPolicy Text Source #

The identity that the policy will apply to. You can specify an identity by using its name or by using its Amazon Resource Name (ARN). Examples: user@example.com, example.com, arn:aws:ses:us-east-1:123456789012:identity/example.com.

To successfully call this API, you must own the identity.

putIdentityPolicy_policyName :: Lens' PutIdentityPolicy Text Source #

The name of the policy.

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

putIdentityPolicy_policy :: Lens' PutIdentityPolicy 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 PutIdentityPolicyResponse Source #

An empty element returned on a successful request.

See: newPutIdentityPolicyResponse smart constructor.

Constructors

PutIdentityPolicyResponse' 

Fields

Instances

Instances details
Eq PutIdentityPolicyResponse Source # 
Instance details

Defined in Amazonka.SES.PutIdentityPolicy

Read PutIdentityPolicyResponse Source # 
Instance details

Defined in Amazonka.SES.PutIdentityPolicy

Show PutIdentityPolicyResponse Source # 
Instance details

Defined in Amazonka.SES.PutIdentityPolicy

Generic PutIdentityPolicyResponse Source # 
Instance details

Defined in Amazonka.SES.PutIdentityPolicy

Associated Types

type Rep PutIdentityPolicyResponse :: Type -> Type #

NFData PutIdentityPolicyResponse Source # 
Instance details

Defined in Amazonka.SES.PutIdentityPolicy

type Rep PutIdentityPolicyResponse Source # 
Instance details

Defined in Amazonka.SES.PutIdentityPolicy

type Rep PutIdentityPolicyResponse = D1 ('MetaData "PutIdentityPolicyResponse" "Amazonka.SES.PutIdentityPolicy" "libZSservicesZSamazonka-sesZSamazonka-ses" 'False) (C1 ('MetaCons "PutIdentityPolicyResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newPutIdentityPolicyResponse Source #

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

Response Lenses