amazonka-iam-1.6.0: 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.GetPolicyVersion

Contents

Description

Retrieves information about the specified version of the specified managed policy, including the policy document.

To list the available versions for a policy, use ListPolicyVersions .

This API retrieves information about managed policies. To retrieve information about an inline policy that is embedded in a user, group, or role, use the GetUserPolicy , GetGroupPolicy , or GetRolePolicy API.

For more information about the types of policies, see Managed Policies and Inline Policies in the IAM User Guide .

For more information about managed policy versions, see Versioning for Managed Policies in the IAM User Guide .

Synopsis

Creating a Request

getPolicyVersion #

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

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

  • gpvPolicyARN - The Amazon Resource Name (ARN) of the managed policy that you want information about. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .
  • gpvVersionId - Identifies the policy version to retrieve. This parameter allows (per its regex pattern ) a string of characters that consists of the lowercase letter v followed by one or two digits, and optionally followed by a period . and a string of letters and digits.

data GetPolicyVersion #

See: getPolicyVersion smart constructor.

Instances
Eq GetPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.GetPolicyVersion

Data GetPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.GetPolicyVersion

Methods

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

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

toConstr :: GetPolicyVersion -> Constr #

dataTypeOf :: GetPolicyVersion -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.GetPolicyVersion

Show GetPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.GetPolicyVersion

Generic GetPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.GetPolicyVersion

Associated Types

type Rep GetPolicyVersion :: * -> * #

Hashable GetPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.GetPolicyVersion

AWSRequest GetPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.GetPolicyVersion

Associated Types

type Rs GetPolicyVersion :: * #

ToHeaders GetPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.GetPolicyVersion

ToPath GetPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.GetPolicyVersion

ToQuery GetPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.GetPolicyVersion

NFData GetPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.GetPolicyVersion

Methods

rnf :: GetPolicyVersion -> () #

type Rep GetPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.GetPolicyVersion

type Rep GetPolicyVersion = D1 (MetaData "GetPolicyVersion" "Network.AWS.IAM.GetPolicyVersion" "amazonka-iam-1.6.0-KLHg33OPBsA2oss7MTCyZq" False) (C1 (MetaCons "GetPolicyVersion'" PrefixI True) (S1 (MetaSel (Just "_gpvPolicyARN") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_gpvVersionId") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text)))
type Rs GetPolicyVersion # 
Instance details

Defined in Network.AWS.IAM.GetPolicyVersion

Request Lenses

gpvPolicyARN :: Lens' GetPolicyVersion Text #

The Amazon Resource Name (ARN) of the managed policy that you want information about. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS Service Namespaces in the AWS General Reference .

gpvVersionId :: Lens' GetPolicyVersion Text #

Identifies the policy version to retrieve. This parameter allows (per its regex pattern ) a string of characters that consists of the lowercase letter v followed by one or two digits, and optionally followed by a period . and a string of letters and digits.

Destructuring the Response

getPolicyVersionResponse #

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

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

data GetPolicyVersionResponse #

Contains the response to a successful GetPolicyVersion request.

See: getPolicyVersionResponse smart constructor.

Instances
Eq GetPolicyVersionResponse # 
Instance details

Defined in Network.AWS.IAM.GetPolicyVersion

Data GetPolicyVersionResponse # 
Instance details

Defined in Network.AWS.IAM.GetPolicyVersion

Methods

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

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

toConstr :: GetPolicyVersionResponse -> Constr #

dataTypeOf :: GetPolicyVersionResponse -> DataType #

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

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

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

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

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

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

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

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

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

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

Read GetPolicyVersionResponse # 
Instance details

Defined in Network.AWS.IAM.GetPolicyVersion

Show GetPolicyVersionResponse # 
Instance details

Defined in Network.AWS.IAM.GetPolicyVersion

Generic GetPolicyVersionResponse # 
Instance details

Defined in Network.AWS.IAM.GetPolicyVersion

Associated Types

type Rep GetPolicyVersionResponse :: * -> * #

NFData GetPolicyVersionResponse # 
Instance details

Defined in Network.AWS.IAM.GetPolicyVersion

type Rep GetPolicyVersionResponse # 
Instance details

Defined in Network.AWS.IAM.GetPolicyVersion

type Rep GetPolicyVersionResponse = D1 (MetaData "GetPolicyVersionResponse" "Network.AWS.IAM.GetPolicyVersion" "amazonka-iam-1.6.0-KLHg33OPBsA2oss7MTCyZq" False) (C1 (MetaCons "GetPolicyVersionResponse'" PrefixI True) (S1 (MetaSel (Just "_gpvrsPolicyVersion") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe PolicyVersion)) :*: S1 (MetaSel (Just "_gpvrsResponseStatus") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Int)))

Response Lenses

gpvrsPolicyVersion :: Lens' GetPolicyVersionResponse (Maybe PolicyVersion) #

A structure containing details about the policy version.

gpvrsResponseStatus :: Lens' GetPolicyVersionResponse Int #

  • - | The response status code.