| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.AWS.IAM.GetPolicyVersion
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
- 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
Instances
| Eq GetPolicyVersion | |
| Ord GetPolicyVersion | |
| Read GetPolicyVersion | |
| Show GetPolicyVersion | |
| AWSRequest GetPolicyVersion | |
| ToQuery GetPolicyVersion | |
| ToPath GetPolicyVersion | |
| ToHeaders GetPolicyVersion | |
| type Sv GetPolicyVersion = IAM | |
| type Rs GetPolicyVersion = GetPolicyVersionResponse |
Request constructor
Arguments
| :: Text | |
| -> Text | |
| -> GetPolicyVersion |
GetPolicyVersion constructor.
The fields accessible through corresponding lenses are:
gpvPolicyArn::TextgpvVersionId::Text
Request lenses
gpvPolicyArn :: Lens' GetPolicyVersion Text Source
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.