Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Gets information about the specified policy version.
Synopsis
- getPolicyVersion :: Text -> Text -> GetPolicyVersion
- data GetPolicyVersion
- gpvPolicyName :: Lens' GetPolicyVersion Text
- gpvPolicyVersionId :: Lens' GetPolicyVersion Text
- getPolicyVersionResponse :: Int -> GetPolicyVersionResponse
- data GetPolicyVersionResponse
- gpvrsLastModifiedDate :: Lens' GetPolicyVersionResponse (Maybe UTCTime)
- gpvrsPolicyName :: Lens' GetPolicyVersionResponse (Maybe Text)
- gpvrsPolicyDocument :: Lens' GetPolicyVersionResponse (Maybe Text)
- gpvrsPolicyVersionId :: Lens' GetPolicyVersionResponse (Maybe Text)
- gpvrsPolicyARN :: Lens' GetPolicyVersionResponse (Maybe Text)
- gpvrsCreationDate :: Lens' GetPolicyVersionResponse (Maybe UTCTime)
- gpvrsGenerationId :: 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:
gpvPolicyName
- The name of the policy.gpvPolicyVersionId
- The policy version ID.
data GetPolicyVersion Source #
The input for the GetPolicyVersion operation.
See: getPolicyVersion
smart constructor.
Instances
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:
gpvrsLastModifiedDate
- The date the policy version was last modified.gpvrsPolicyName
- The policy name.gpvrsPolicyDocument
- The JSON document that describes the policy.gpvrsPolicyVersionId
- The policy version ID.gpvrsPolicyARN
- The policy ARN.gpvrsCreationDate
- The date the policy version was created.gpvrsGenerationId
- The generation ID of the policy version.gpvrsIsDefaultVersion
- Specifies whether the policy version is the default.gpvrsResponseStatus
- -- | The response status code.
data GetPolicyVersionResponse Source #
The output from the GetPolicyVersion operation.
See: getPolicyVersionResponse
smart constructor.
Instances
Response Lenses
gpvrsLastModifiedDate :: Lens' GetPolicyVersionResponse (Maybe UTCTime) Source #
The date the policy version was last modified.
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.
gpvrsCreationDate :: Lens' GetPolicyVersionResponse (Maybe UTCTime) Source #
The date the policy version was created.
gpvrsGenerationId :: Lens' GetPolicyVersionResponse (Maybe Text) Source #
The generation ID of the policy version.
gpvrsIsDefaultVersion :: Lens' GetPolicyVersionResponse (Maybe Bool) Source #
Specifies whether the policy version is the default.
gpvrsResponseStatus :: Lens' GetPolicyVersionResponse Int Source #
- - | The response status code.