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

Copyright(c) 2013-2016 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@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 (email address or 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.

This action is throttled at one request 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:

data PutIdentityPolicy Source #

See: putIdentityPolicy smart constructor.

Instances

Eq PutIdentityPolicy Source # 
Data PutIdentityPolicy Source # 

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 # 
Show PutIdentityPolicy Source # 
Generic PutIdentityPolicy Source # 
Hashable PutIdentityPolicy Source # 
NFData PutIdentityPolicy Source # 

Methods

rnf :: PutIdentityPolicy -> () #

AWSRequest PutIdentityPolicy Source # 
ToPath PutIdentityPolicy Source # 
ToHeaders PutIdentityPolicy Source # 
ToQuery PutIdentityPolicy Source # 
type Rep PutIdentityPolicy Source # 
type Rep PutIdentityPolicy = D1 (MetaData "PutIdentityPolicy" "Network.AWS.SES.PutIdentityPolicy" "amazonka-ses-1.4.2-4oMA1ZpD4FdKzbFf1GarRt" False) (C1 (MetaCons "PutIdentityPolicy'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_pipIdentity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) ((:*:) (S1 (MetaSel (Just Symbol "_pipPolicyName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_pipPolicy") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))))
type Rs PutIdentityPolicy Source # 

Request Lenses

pipIdentity :: Lens' PutIdentityPolicy Text Source #

The identity to which the policy will apply. 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.

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 #

See: putIdentityPolicyResponse smart constructor.

Instances

Eq PutIdentityPolicyResponse Source # 
Data PutIdentityPolicyResponse Source # 

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 # 
Show PutIdentityPolicyResponse Source # 
Generic PutIdentityPolicyResponse Source # 
NFData PutIdentityPolicyResponse Source # 
type Rep PutIdentityPolicyResponse Source # 
type Rep PutIdentityPolicyResponse = D1 (MetaData "PutIdentityPolicyResponse" "Network.AWS.SES.PutIdentityPolicy" "amazonka-ses-1.4.2-4oMA1ZpD4FdKzbFf1GarRt" True) (C1 (MetaCons "PutIdentityPolicyResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_piprsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses