amazonka-ses-1.4.5: 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.GetIdentityPolicies

Contents

Description

Returns the requested sending authorization policies for the given identity (an email address or a domain). The policies are returned as a map of policy names to policy contents. You can retrieve a maximum of 20 policies at a time.

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

getIdentityPolicies Source #

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

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

  • gipIdentity - The identity for which the policies will be retrieved. 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.
  • gipPolicyNames - A list of the names of policies to be retrieved. You can retrieve a maximum of 20 policies at a time. If you do not know the names of the policies that are attached to the identity, you can use ListIdentityPolicies .

data GetIdentityPolicies Source #

Represents a request to return the requested sending authorization policies 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: getIdentityPolicies smart constructor.

Instances

Eq GetIdentityPolicies Source # 
Data GetIdentityPolicies Source # 

Methods

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

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

toConstr :: GetIdentityPolicies -> Constr #

dataTypeOf :: GetIdentityPolicies -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetIdentityPolicies Source # 
Show GetIdentityPolicies Source # 
Generic GetIdentityPolicies Source # 
Hashable GetIdentityPolicies Source # 
NFData GetIdentityPolicies Source # 

Methods

rnf :: GetIdentityPolicies -> () #

AWSRequest GetIdentityPolicies Source # 
ToPath GetIdentityPolicies Source # 
ToHeaders GetIdentityPolicies Source # 
ToQuery GetIdentityPolicies Source # 
type Rep GetIdentityPolicies Source # 
type Rep GetIdentityPolicies = D1 (MetaData "GetIdentityPolicies" "Network.AWS.SES.GetIdentityPolicies" "amazonka-ses-1.4.5-DhIaquVYmXCGGNLt54jVqA" False) (C1 (MetaCons "GetIdentityPolicies'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_gipIdentity") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)) (S1 (MetaSel (Just Symbol "_gipPolicyNames") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 [Text]))))
type Rs GetIdentityPolicies Source # 

Request Lenses

gipIdentity :: Lens' GetIdentityPolicies Text Source #

The identity for which the policies will be retrieved. 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.

gipPolicyNames :: Lens' GetIdentityPolicies [Text] Source #

A list of the names of policies to be retrieved. You can retrieve a maximum of 20 policies at a time. If you do not know the names of the policies that are attached to the identity, you can use ListIdentityPolicies .

Destructuring the Response

getIdentityPoliciesResponse Source #

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

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

data GetIdentityPoliciesResponse Source #

Represents the requested sending authorization policies.

See: getIdentityPoliciesResponse smart constructor.

Instances

Eq GetIdentityPoliciesResponse Source # 
Data GetIdentityPoliciesResponse Source # 

Methods

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

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

toConstr :: GetIdentityPoliciesResponse -> Constr #

dataTypeOf :: GetIdentityPoliciesResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetIdentityPoliciesResponse Source # 
Show GetIdentityPoliciesResponse Source # 
Generic GetIdentityPoliciesResponse Source # 
NFData GetIdentityPoliciesResponse Source # 
type Rep GetIdentityPoliciesResponse Source # 
type Rep GetIdentityPoliciesResponse = D1 (MetaData "GetIdentityPoliciesResponse" "Network.AWS.SES.GetIdentityPolicies" "amazonka-ses-1.4.5-DhIaquVYmXCGGNLt54jVqA" False) (C1 (MetaCons "GetIdentityPoliciesResponse'" PrefixI True) ((:*:) (S1 (MetaSel (Just Symbol "_giprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedUnpack) (Rec0 Int)) (S1 (MetaSel (Just Symbol "_giprsPolicies") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Map Text Text)))))

Response Lenses

giprsPolicies :: Lens' GetIdentityPoliciesResponse (HashMap Text Text) Source #

A map of policy names to policies.