Copyright | (c) 2013-2021 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 |
Gets information about the specified policy version.
Requires permission to access the GetPolicyVersion action.
Synopsis
- data GetPolicyVersion = GetPolicyVersion' {}
- newGetPolicyVersion :: Text -> Text -> GetPolicyVersion
- getPolicyVersion_policyName :: Lens' GetPolicyVersion Text
- getPolicyVersion_policyVersionId :: Lens' GetPolicyVersion Text
- data GetPolicyVersionResponse = GetPolicyVersionResponse' {}
- newGetPolicyVersionResponse :: Int -> GetPolicyVersionResponse
- getPolicyVersionResponse_lastModifiedDate :: Lens' GetPolicyVersionResponse (Maybe UTCTime)
- getPolicyVersionResponse_policyName :: Lens' GetPolicyVersionResponse (Maybe Text)
- getPolicyVersionResponse_policyDocument :: Lens' GetPolicyVersionResponse (Maybe Text)
- getPolicyVersionResponse_policyVersionId :: Lens' GetPolicyVersionResponse (Maybe Text)
- getPolicyVersionResponse_policyArn :: Lens' GetPolicyVersionResponse (Maybe Text)
- getPolicyVersionResponse_creationDate :: Lens' GetPolicyVersionResponse (Maybe UTCTime)
- getPolicyVersionResponse_generationId :: Lens' GetPolicyVersionResponse (Maybe Text)
- getPolicyVersionResponse_isDefaultVersion :: Lens' GetPolicyVersionResponse (Maybe Bool)
- getPolicyVersionResponse_httpStatus :: Lens' GetPolicyVersionResponse Int
Creating a Request
data GetPolicyVersion Source #
The input for the GetPolicyVersion operation.
See: newGetPolicyVersion
smart constructor.
GetPolicyVersion' | |
|
Instances
:: Text | |
-> Text | |
-> GetPolicyVersion |
Create a value of GetPolicyVersion
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:policyName:GetPolicyVersion'
, getPolicyVersion_policyName
- The name of the policy.
$sel:policyVersionId:GetPolicyVersion'
, getPolicyVersion_policyVersionId
- The policy version ID.
Request Lenses
getPolicyVersion_policyName :: Lens' GetPolicyVersion Text Source #
The name of the policy.
getPolicyVersion_policyVersionId :: Lens' GetPolicyVersion Text Source #
The policy version ID.
Destructuring the Response
data GetPolicyVersionResponse Source #
The output from the GetPolicyVersion operation.
See: newGetPolicyVersionResponse
smart constructor.
GetPolicyVersionResponse' | |
|
Instances
newGetPolicyVersionResponse Source #
Create a value of GetPolicyVersionResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:lastModifiedDate:GetPolicyVersionResponse'
, getPolicyVersionResponse_lastModifiedDate
- The date the policy was last modified.
$sel:policyName:GetPolicyVersion'
, getPolicyVersionResponse_policyName
- The policy name.
$sel:policyDocument:GetPolicyVersionResponse'
, getPolicyVersionResponse_policyDocument
- The JSON document that describes the policy.
$sel:policyVersionId:GetPolicyVersion'
, getPolicyVersionResponse_policyVersionId
- The policy version ID.
$sel:policyArn:GetPolicyVersionResponse'
, getPolicyVersionResponse_policyArn
- The policy ARN.
$sel:creationDate:GetPolicyVersionResponse'
, getPolicyVersionResponse_creationDate
- The date the policy was created.
$sel:generationId:GetPolicyVersionResponse'
, getPolicyVersionResponse_generationId
- The generation ID of the policy version.
$sel:isDefaultVersion:GetPolicyVersionResponse'
, getPolicyVersionResponse_isDefaultVersion
- Specifies whether the policy version is the default.
$sel:httpStatus:GetPolicyVersionResponse'
, getPolicyVersionResponse_httpStatus
- The response's http status code.
Response Lenses
getPolicyVersionResponse_lastModifiedDate :: Lens' GetPolicyVersionResponse (Maybe UTCTime) Source #
The date the policy was last modified.
getPolicyVersionResponse_policyName :: Lens' GetPolicyVersionResponse (Maybe Text) Source #
The policy name.
getPolicyVersionResponse_policyDocument :: Lens' GetPolicyVersionResponse (Maybe Text) Source #
The JSON document that describes the policy.
getPolicyVersionResponse_policyVersionId :: Lens' GetPolicyVersionResponse (Maybe Text) Source #
The policy version ID.
getPolicyVersionResponse_policyArn :: Lens' GetPolicyVersionResponse (Maybe Text) Source #
The policy ARN.
getPolicyVersionResponse_creationDate :: Lens' GetPolicyVersionResponse (Maybe UTCTime) Source #
The date the policy was created.
getPolicyVersionResponse_generationId :: Lens' GetPolicyVersionResponse (Maybe Text) Source #
The generation ID of the policy version.
getPolicyVersionResponse_isDefaultVersion :: Lens' GetPolicyVersionResponse (Maybe Bool) Source #
Specifies whether the policy version is the default.
getPolicyVersionResponse_httpStatus :: Lens' GetPolicyVersionResponse Int Source #
The response's http status code.