amazonka-iam-1.4.3: Amazon Identity and Access Management 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.IAM.GetContextKeysForCustomPolicy

Contents

Description

Gets a list of all of the context keys referenced in Condition elements in the input policies. The policies are supplied as a list of one or more strings. To get the context keys from policies associated with an IAM user, group, or role, use GetContextKeysForPrincipalPolicy.

Context keys are variables maintained by AWS and its services that provide details about the context of an API query request, and can be evaluated by using the Condition element of an IAM policy. Use GetContextKeysForCustomPolicy to understand what key names and values you must supply when you call SimulateCustomPolicy. Note that all parameters are shown in unencoded form here for clarity, but must be URL encoded to be included as a part of a real HTML request.

Synopsis

Creating a Request

getContextKeysForCustomPolicy :: GetContextKeysForCustomPolicy Source #

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

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

data GetContextKeysForCustomPolicy Source #

See: getContextKeysForCustomPolicy smart constructor.

Instances

Eq GetContextKeysForCustomPolicy Source # 
Data GetContextKeysForCustomPolicy Source # 

Methods

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

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

toConstr :: GetContextKeysForCustomPolicy -> Constr #

dataTypeOf :: GetContextKeysForCustomPolicy -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetContextKeysForCustomPolicy Source # 
Show GetContextKeysForCustomPolicy Source # 
Generic GetContextKeysForCustomPolicy Source # 
Hashable GetContextKeysForCustomPolicy Source # 
NFData GetContextKeysForCustomPolicy Source # 
AWSRequest GetContextKeysForCustomPolicy Source # 
ToPath GetContextKeysForCustomPolicy Source # 
ToHeaders GetContextKeysForCustomPolicy Source # 
ToQuery GetContextKeysForCustomPolicy Source # 
type Rep GetContextKeysForCustomPolicy Source # 
type Rep GetContextKeysForCustomPolicy = D1 (MetaData "GetContextKeysForCustomPolicy" "Network.AWS.IAM.GetContextKeysForCustomPolicy" "amazonka-iam-1.4.3-KkHaDC3pmsZLURksVtoSGT" True) (C1 (MetaCons "GetContextKeysForCustomPolicy'" PrefixI True) (S1 (MetaSel (Just Symbol "_gckfcpPolicyInputList") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Text])))
type Rs GetContextKeysForCustomPolicy Source # 

Request Lenses

gckfcpPolicyInputList :: Lens' GetContextKeysForCustomPolicy [Text] Source #

A list of policies for which you want list of context keys used in Condition elements. Each document is specified as a string containing the complete, valid JSON text of an IAM policy.

Destructuring the Response

getContextKeysForPolicyResponse :: GetContextKeysForPolicyResponse Source #

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

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

data GetContextKeysForPolicyResponse Source #

Contains the response to a successful GetContextKeysForPrincipalPolicy or GetContextKeysForCustomPolicy request.

See: getContextKeysForPolicyResponse smart constructor.

Instances

Eq GetContextKeysForPolicyResponse Source # 
Data GetContextKeysForPolicyResponse Source # 

Methods

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

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

toConstr :: GetContextKeysForPolicyResponse -> Constr #

dataTypeOf :: GetContextKeysForPolicyResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetContextKeysForPolicyResponse Source # 
Show GetContextKeysForPolicyResponse Source # 
Generic GetContextKeysForPolicyResponse Source # 
Hashable GetContextKeysForPolicyResponse Source # 
NFData GetContextKeysForPolicyResponse Source # 
FromXML GetContextKeysForPolicyResponse Source # 
type Rep GetContextKeysForPolicyResponse Source # 
type Rep GetContextKeysForPolicyResponse = D1 (MetaData "GetContextKeysForPolicyResponse" "Network.AWS.IAM.Types.Product" "amazonka-iam-1.4.3-KkHaDC3pmsZLURksVtoSGT" True) (C1 (MetaCons "GetContextKeysForPolicyResponse'" PrefixI True) (S1 (MetaSel (Just Symbol "_gckfpContextKeyNames") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Text]))))

Response Lenses

gckfpContextKeyNames :: Lens' GetContextKeysForPolicyResponse [Text] Source #

The list of context keys that are used in the Condition elements of the input policies.