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

Copyright(c) 2013-2015 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.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 Policies and Inline Policies in the IAM User Guide.

See: AWS API Reference for GetPolicyVersion.

Synopsis

Creating a Request

getPolicyVersion Source

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:

Request Lenses

gpvVersionId :: Lens' GetPolicyVersion Text Source

Identifies the policy version to retrieve.

Destructuring the Response

getPolicyVersionResponse Source

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:

Response Lenses

gpvrsPolicyVersion :: Lens' GetPolicyVersionResponse (Maybe PolicyVersion) Source

Information about the policy version.

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