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

Copyright(c) 2013-2017 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 # 
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 # 
ToQuery PutIdentityPolicy Source # 
ToPath PutIdentityPolicy Source # 
ToHeaders PutIdentityPolicy Source # 
type Rep PutIdentityPolicy Source # 
type Rep PutIdentityPolicy = D1 (MetaData "PutIdentityPolicy" "Network.AWS.SES.PutIdentityPolicy" "amazonka-ses-1.5.0-IX6fk8AIUZF8NF0Dlao5KP" 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 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 # 
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.5.0-IX6fk8AIUZF8NF0Dlao5KP" True) (C1 (MetaCons "PutIdentityPolicyResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_piprsResponseStatus") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int)))

Response Lenses