Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
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 Policies and Inline Policies in the IAM User Guide.
See: AWS API Reference for GetPolicyVersion.
- getPolicyVersion :: Text -> Text -> GetPolicyVersion
- data GetPolicyVersion
- gpvPolicyARN :: Lens' GetPolicyVersion Text
- gpvVersionId :: Lens' GetPolicyVersion Text
- getPolicyVersionResponse :: Int -> GetPolicyVersionResponse
- data GetPolicyVersionResponse
- gpvrsPolicyVersion :: Lens' GetPolicyVersionResponse (Maybe PolicyVersion)
- gpvrsResponseStatus :: Lens' GetPolicyVersionResponse Int
Creating a Request
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:
data GetPolicyVersion Source
See: getPolicyVersion
smart constructor.
Request Lenses
gpvPolicyARN :: Lens' GetPolicyVersion Text Source
Undocumented member.
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:
data GetPolicyVersionResponse Source
Contains the response to a successful GetPolicyVersion request.
See: getPolicyVersionResponse
smart constructor.
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.
gpvrsResponseStatus :: Lens' GetPolicyVersionResponse Int Source
The response status code.