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

Contents

Description

Gets a list of all of the context keys referenced 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. Context keys can be evaluated by testing against a value specified in 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:

  • gckfcpPolicyInputList - A list of policies for which you want the list of context keys referenced in those policies. Each document is specified as a string containing the complete, valid JSON text of an IAM policy. The regex pattern used to validate this parameter is a string of characters consisting of the following: * Any printable ASCII character ranging from the space character (u0020) through the end of the ASCII character range * The printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF) * The special characters tab (u0009), line feed (u000A), and carriage return (u000D)

data GetContextKeysForCustomPolicy Source #

See: getContextKeysForCustomPolicy smart constructor.

Instances
Eq GetContextKeysForCustomPolicy Source # 
Instance details

Defined in Network.AWS.IAM.GetContextKeysForCustomPolicy

Data GetContextKeysForCustomPolicy Source # 
Instance details

Defined in Network.AWS.IAM.GetContextKeysForCustomPolicy

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

Defined in Network.AWS.IAM.GetContextKeysForCustomPolicy

Show GetContextKeysForCustomPolicy Source # 
Instance details

Defined in Network.AWS.IAM.GetContextKeysForCustomPolicy

Generic GetContextKeysForCustomPolicy Source # 
Instance details

Defined in Network.AWS.IAM.GetContextKeysForCustomPolicy

Associated Types

type Rep GetContextKeysForCustomPolicy :: Type -> Type #

Hashable GetContextKeysForCustomPolicy Source # 
Instance details

Defined in Network.AWS.IAM.GetContextKeysForCustomPolicy

AWSRequest GetContextKeysForCustomPolicy Source # 
Instance details

Defined in Network.AWS.IAM.GetContextKeysForCustomPolicy

Associated Types

type Rs GetContextKeysForCustomPolicy :: Type #

ToHeaders GetContextKeysForCustomPolicy Source # 
Instance details

Defined in Network.AWS.IAM.GetContextKeysForCustomPolicy

ToPath GetContextKeysForCustomPolicy Source # 
Instance details

Defined in Network.AWS.IAM.GetContextKeysForCustomPolicy

ToQuery GetContextKeysForCustomPolicy Source # 
Instance details

Defined in Network.AWS.IAM.GetContextKeysForCustomPolicy

NFData GetContextKeysForCustomPolicy Source # 
Instance details

Defined in Network.AWS.IAM.GetContextKeysForCustomPolicy

type Rep GetContextKeysForCustomPolicy Source # 
Instance details

Defined in Network.AWS.IAM.GetContextKeysForCustomPolicy

type Rep GetContextKeysForCustomPolicy = D1 (MetaData "GetContextKeysForCustomPolicy" "Network.AWS.IAM.GetContextKeysForCustomPolicy" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" True) (C1 (MetaCons "GetContextKeysForCustomPolicy'" PrefixI True) (S1 (MetaSel (Just "_gckfcpPolicyInputList") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 [Text])))
type Rs GetContextKeysForCustomPolicy Source # 
Instance details

Defined in Network.AWS.IAM.GetContextKeysForCustomPolicy

Request Lenses

gckfcpPolicyInputList :: Lens' GetContextKeysForCustomPolicy [Text] Source #

A list of policies for which you want the list of context keys referenced in those policies. Each document is specified as a string containing the complete, valid JSON text of an IAM policy. The regex pattern used to validate this parameter is a string of characters consisting of the following: * Any printable ASCII character ranging from the space character (u0020) through the end of the ASCII character range * The printable characters in the Basic Latin and Latin-1 Supplement character set (through u00FF) * The special characters tab (u0009), line feed (u000A), and carriage return (u000D)

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

Defined in Network.AWS.IAM.Types.Product

Data GetContextKeysForPolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.Types.Product

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

Defined in Network.AWS.IAM.Types.Product

Show GetContextKeysForPolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.Types.Product

Generic GetContextKeysForPolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.Types.Product

Associated Types

type Rep GetContextKeysForPolicyResponse :: Type -> Type #

Hashable GetContextKeysForPolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.Types.Product

FromXML GetContextKeysForPolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.Types.Product

NFData GetContextKeysForPolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.Types.Product

type Rep GetContextKeysForPolicyResponse Source # 
Instance details

Defined in Network.AWS.IAM.Types.Product

type Rep GetContextKeysForPolicyResponse = D1 (MetaData "GetContextKeysForPolicyResponse" "Network.AWS.IAM.Types.Product" "amazonka-iam-1.6.1-BDjAp2BAcQu3GSS4Bsr6zu" True) (C1 (MetaCons "GetContextKeysForPolicyResponse'" PrefixI True) (S1 (MetaSel (Just "_gckfpContextKeyNames") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Maybe [Text]))))

Response Lenses

gckfpContextKeyNames :: Lens' GetContextKeysForPolicyResponse [Text] Source #

The list of context keys that are referenced in the input policies.