Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- data GetPolicyVersion
- getPolicyVersion :: Text -> Text -> GetPolicyVersion
- gpvPolicyArn :: Lens' GetPolicyVersion Text
- gpvVersionId :: Lens' GetPolicyVersion Text
- data GetPolicyVersionResponse
- getPolicyVersionResponse :: GetPolicyVersionResponse
- gpvrPolicyVersion :: Lens' GetPolicyVersionResponse (Maybe PolicyVersion)
Request
data GetPolicyVersion Source
Request constructor
GetPolicyVersion
constructor.
The fields accessible through corresponding lenses are:
gpvPolicyArn
::
Text
gpvVersionId
::
Text
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.