Copyright | (c) 2013-2016 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 |
Gets information about the specified policy version.
- getPolicyVersion :: Text -> Text -> GetPolicyVersion
- data GetPolicyVersion
- gpvPolicyName :: Lens' GetPolicyVersion Text
- gpvPolicyVersionId :: Lens' GetPolicyVersion Text
- getPolicyVersionResponse :: Int -> GetPolicyVersionResponse
- data GetPolicyVersionResponse
- gpvrsPolicyName :: Lens' GetPolicyVersionResponse (Maybe Text)
- gpvrsPolicyDocument :: Lens' GetPolicyVersionResponse (Maybe Text)
- gpvrsPolicyVersionId :: Lens' GetPolicyVersionResponse (Maybe Text)
- gpvrsPolicyARN :: Lens' GetPolicyVersionResponse (Maybe Text)
- gpvrsIsDefaultVersion :: Lens' GetPolicyVersionResponse (Maybe Bool)
- 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
The input for the GetPolicyVersion operation.
See: getPolicyVersion
smart constructor.
Request Lenses
gpvPolicyName :: Lens' GetPolicyVersion Text Source
The name of the policy.
gpvPolicyVersionId :: Lens' GetPolicyVersion Text Source
The policy version ID.
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
The output from the GetPolicyVersion operation.
See: getPolicyVersionResponse
smart constructor.
Response Lenses
gpvrsPolicyName :: Lens' GetPolicyVersionResponse (Maybe Text) Source
The policy name.
gpvrsPolicyDocument :: Lens' GetPolicyVersionResponse (Maybe Text) Source
The JSON document that describes the policy.
gpvrsPolicyVersionId :: Lens' GetPolicyVersionResponse (Maybe Text) Source
The policy version ID.
gpvrsPolicyARN :: Lens' GetPolicyVersionResponse (Maybe Text) Source
The policy ARN.
gpvrsIsDefaultVersion :: Lens' GetPolicyVersionResponse (Maybe Bool) Source
Specifies whether the policy version is the default.
gpvrsResponseStatus :: Lens' GetPolicyVersionResponse Int Source
The response status code.