amazonka-ses-1.6.1: Amazon Simple Email Service SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.SES.PutIdentityPolicy

Contents

Description

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

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

putIdentityPolicy Source #

Creates a value of PutIdentityPolicy with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • pipIdentity - 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: userexample.com , example.com , arn:aws:ses:us-east-1:123456789012:identity/example.com@ . To successfully call this API, you must own the identity.
  • pipPolicyName - The name of the policy. The policy name cannot exceed 64 characters and can only include alphanumeric characters, dashes, and underscores.
  • pipPolicy - 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 .

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: putIdentityPolicy smart constructor.

Instances
Eq PutIdentityPolicy Source # 
Instance details

Defined in Network.AWS.SES.PutIdentityPolicy

Data PutIdentityPolicy Source # 
Instance details

Defined in Network.AWS.SES.PutIdentityPolicy

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PutIdentityPolicy -> c PutIdentityPolicy #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PutIdentityPolicy #

toConstr :: PutIdentityPolicy -> Constr #

dataTypeOf :: PutIdentityPolicy -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PutIdentityPolicy) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PutIdentityPolicy) #

gmapT :: (forall b. Data b => b -> b) -> PutIdentityPolicy -> PutIdentityPolicy #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PutIdentityPolicy -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PutIdentityPolicy -> r #

gmapQ :: (forall d. Data d => d -> u) -> PutIdentityPolicy -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PutIdentityPolicy -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PutIdentityPolicy -> m PutIdentityPolicy #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PutIdentityPolicy -> m PutIdentityPolicy #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PutIdentityPolicy -> m PutIdentityPolicy #

Read PutIdentityPolicy Source # 
Instance details

Defined in Network.AWS.SES.PutIdentityPolicy

Show PutIdentityPolicy Source # 
Instance details

Defined in Network.AWS.SES.PutIdentityPolicy

Generic PutIdentityPolicy Source # 
Instance details

Defined in Network.AWS.SES.PutIdentityPolicy

Associated Types

type Rep PutIdentityPolicy :: Type -> Type #

Hashable PutIdentityPolicy Source # 
Instance details

Defined in Network.AWS.SES.PutIdentityPolicy

AWSRequest PutIdentityPolicy Source # 
Instance details

Defined in Network.AWS.SES.PutIdentityPolicy

Associated Types

type Rs PutIdentityPolicy :: Type #

ToHeaders PutIdentityPolicy Source # 
Instance details

Defined in Network.AWS.SES.PutIdentityPolicy

ToPath PutIdentityPolicy Source # 
Instance details

Defined in Network.AWS.SES.PutIdentityPolicy

ToQuery PutIdentityPolicy Source # 
Instance details

Defined in Network.AWS.SES.PutIdentityPolicy

NFData PutIdentityPolicy Source # 
Instance details

Defined in Network.AWS.SES.PutIdentityPolicy

Methods

rnf :: PutIdentityPolicy -> () #

type Rep PutIdentityPolicy Source # 
Instance details

Defined in Network.AWS.SES.PutIdentityPolicy

type Rep PutIdentityPolicy = D1 (MetaData "PutIdentityPolicy" "Network.AWS.SES.PutIdentityPolicy" "amazonka-ses-1.6.1-LMoDrV6qkh7KTlxxGOHB3A" False) (C1 (MetaCons "PutIdentityPolicy'" PrefixI True) (S1 (MetaSel (Just "_pipIdentity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: (S1 (MetaSel (Just "_pipPolicyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_pipPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs PutIdentityPolicy Source # 
Instance details

Defined in Network.AWS.SES.PutIdentityPolicy

Request Lenses

pipIdentity :: 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: userexample.com , example.com , arn:aws:ses:us-east-1:123456789012:identity/example.com@ . To successfully call this API, you must own the identity.

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

pipPolicy :: 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

putIdentityPolicyResponse Source #

Creates a value of PutIdentityPolicyResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data PutIdentityPolicyResponse Source #

An empty element returned on a successful request.

See: putIdentityPolicyResponse smart constructor.

Instances
Eq PutIdentityPolicyResponse Source # 
Instance details

Defined in Network.AWS.SES.PutIdentityPolicy

Data PutIdentityPolicyResponse Source # 
Instance details

Defined in Network.AWS.SES.PutIdentityPolicy

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> PutIdentityPolicyResponse -> c PutIdentityPolicyResponse #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c PutIdentityPolicyResponse #

toConstr :: PutIdentityPolicyResponse -> Constr #

dataTypeOf :: PutIdentityPolicyResponse -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c PutIdentityPolicyResponse) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c PutIdentityPolicyResponse) #

gmapT :: (forall b. Data b => b -> b) -> PutIdentityPolicyResponse -> PutIdentityPolicyResponse #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> PutIdentityPolicyResponse -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> PutIdentityPolicyResponse -> r #

gmapQ :: (forall d. Data d => d -> u) -> PutIdentityPolicyResponse -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> PutIdentityPolicyResponse -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> PutIdentityPolicyResponse -> m PutIdentityPolicyResponse #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> PutIdentityPolicyResponse -> m PutIdentityPolicyResponse #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> PutIdentityPolicyResponse -> m PutIdentityPolicyResponse #

Read PutIdentityPolicyResponse Source # 
Instance details

Defined in Network.AWS.SES.PutIdentityPolicy

Show PutIdentityPolicyResponse Source # 
Instance details

Defined in Network.AWS.SES.PutIdentityPolicy

Generic PutIdentityPolicyResponse Source # 
Instance details

Defined in Network.AWS.SES.PutIdentityPolicy

Associated Types

type Rep PutIdentityPolicyResponse :: Type -> Type #

NFData PutIdentityPolicyResponse Source # 
Instance details

Defined in Network.AWS.SES.PutIdentityPolicy

type Rep PutIdentityPolicyResponse Source # 
Instance details

Defined in Network.AWS.SES.PutIdentityPolicy

type Rep PutIdentityPolicyResponse = D1 (MetaData "PutIdentityPolicyResponse" "Network.AWS.SES.PutIdentityPolicy" "amazonka-ses-1.6.1-LMoDrV6qkh7KTlxxGOHB3A" True) (C1 (MetaCons "PutIdentityPolicyResponse'" PrefixI True) (S1 (MetaSel (Just "_piprsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses