amazonka-iam-0.3.2: Amazon Identity and Access Management SDK.

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, refer to Managed Policiesand Inline Policies in the Using IAM guide.

http://docs.aws.amazon.com/IAM/latest/APIReference/API_GetPolicyVersion.html

Synopsis

Request

Request constructor

getPolicyVersion Source

Arguments

:: Text

gpvPolicyArn

-> Text

gpvVersionId

-> GetPolicyVersion 

GetPolicyVersion constructor.

The fields accessible through corresponding lenses are:

Request lenses

gpvVersionId :: Lens' GetPolicyVersion Text Source

Identifies the policy version to retrieve.

Response

Response constructor

getPolicyVersionResponse :: GetPolicyVersionResponse Source

GetPolicyVersionResponse constructor.

The fields accessible through corresponding lenses are:

Response lenses

gpvrPolicyVersion :: Lens' GetPolicyVersionResponse (Maybe PolicyVersion) Source

Information about the policy version.

For more information about managed policy versions, see Versioning forManaged Policies in the Using IAM guide.