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

You can execute this operation no more than once 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 # 
Instance details

Defined in Network.AWS.SES.GetIdentityPolicies

Data GetIdentityPolicies Source # 
Instance details

Defined in Network.AWS.SES.GetIdentityPolicies

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 # 
Instance details

Defined in Network.AWS.SES.GetIdentityPolicies

Show GetIdentityPolicies Source # 
Instance details

Defined in Network.AWS.SES.GetIdentityPolicies

Generic GetIdentityPolicies Source # 
Instance details

Defined in Network.AWS.SES.GetIdentityPolicies

Associated Types

type Rep GetIdentityPolicies :: Type -> Type #

Hashable GetIdentityPolicies Source # 
Instance details

Defined in Network.AWS.SES.GetIdentityPolicies

AWSRequest GetIdentityPolicies Source # 
Instance details

Defined in Network.AWS.SES.GetIdentityPolicies

Associated Types

type Rs GetIdentityPolicies :: Type #

ToHeaders GetIdentityPolicies Source # 
Instance details

Defined in Network.AWS.SES.GetIdentityPolicies

ToPath GetIdentityPolicies Source # 
Instance details

Defined in Network.AWS.SES.GetIdentityPolicies

ToQuery GetIdentityPolicies Source # 
Instance details

Defined in Network.AWS.SES.GetIdentityPolicies

NFData GetIdentityPolicies Source # 
Instance details

Defined in Network.AWS.SES.GetIdentityPolicies

Methods

rnf :: GetIdentityPolicies -> () #

type Rep GetIdentityPolicies Source # 
Instance details

Defined in Network.AWS.SES.GetIdentityPolicies

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

Defined in Network.AWS.SES.GetIdentityPolicies

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 # 
Instance details

Defined in Network.AWS.SES.GetIdentityPolicies

Data GetIdentityPoliciesResponse Source # 
Instance details

Defined in Network.AWS.SES.GetIdentityPolicies

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 # 
Instance details

Defined in Network.AWS.SES.GetIdentityPolicies

Show GetIdentityPoliciesResponse Source # 
Instance details

Defined in Network.AWS.SES.GetIdentityPolicies

Generic GetIdentityPoliciesResponse Source # 
Instance details

Defined in Network.AWS.SES.GetIdentityPolicies

Associated Types

type Rep GetIdentityPoliciesResponse :: Type -> Type #

NFData GetIdentityPoliciesResponse Source # 
Instance details

Defined in Network.AWS.SES.GetIdentityPolicies

type Rep GetIdentityPoliciesResponse Source # 
Instance details

Defined in Network.AWS.SES.GetIdentityPolicies

type Rep GetIdentityPoliciesResponse = D1 (MetaData "GetIdentityPoliciesResponse" "Network.AWS.SES.GetIdentityPolicies" "amazonka-ses-1.6.1-LMoDrV6qkh7KTlxxGOHB3A" False) (C1 (MetaCons "GetIdentityPoliciesResponse'" PrefixI True) (S1 (MetaSel (Just "_giprsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int) :*: S1 (MetaSel (Just "_giprsPolicies") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Map Text Text))))

Response Lenses

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

A map of policy names to policies.