| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.IoT.GetPolicyVersion
Description
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_creationDate :: Lens' GetPolicyVersionResponse (Maybe UTCTime)
- getPolicyVersionResponse_generationId :: Lens' GetPolicyVersionResponse (Maybe Text)
- getPolicyVersionResponse_isDefaultVersion :: Lens' GetPolicyVersionResponse (Maybe Bool)
- getPolicyVersionResponse_lastModifiedDate :: Lens' GetPolicyVersionResponse (Maybe UTCTime)
- getPolicyVersionResponse_policyArn :: Lens' GetPolicyVersionResponse (Maybe Text)
- getPolicyVersionResponse_policyDocument :: Lens' GetPolicyVersionResponse (Maybe Text)
- getPolicyVersionResponse_policyName :: Lens' GetPolicyVersionResponse (Maybe Text)
- getPolicyVersionResponse_policyVersionId :: Lens' GetPolicyVersionResponse (Maybe Text)
- getPolicyVersionResponse_httpStatus :: Lens' GetPolicyVersionResponse Int
Creating a Request
data GetPolicyVersion Source #
The input for the GetPolicyVersion operation.
See: newGetPolicyVersion smart constructor.
Constructors
| GetPolicyVersion' | |
Fields
| |
Instances
Arguments
| :: 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:
GetPolicyVersion, getPolicyVersion_policyName - The name of the policy.
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.
Constructors
| GetPolicyVersionResponse' | |
Fields
| |
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:
GetPolicyVersionResponse, getPolicyVersionResponse_creationDate - The date the policy was created.
GetPolicyVersionResponse, getPolicyVersionResponse_generationId - The generation ID of the policy version.
GetPolicyVersionResponse, getPolicyVersionResponse_isDefaultVersion - Specifies whether the policy version is the default.
GetPolicyVersionResponse, getPolicyVersionResponse_lastModifiedDate - The date the policy was last modified.
GetPolicyVersionResponse, getPolicyVersionResponse_policyArn - The policy ARN.
GetPolicyVersionResponse, getPolicyVersionResponse_policyDocument - The JSON document that describes the policy.
GetPolicyVersion, getPolicyVersionResponse_policyName - The policy name.
GetPolicyVersion, getPolicyVersionResponse_policyVersionId - The policy version ID.
$sel:httpStatus:GetPolicyVersionResponse', getPolicyVersionResponse_httpStatus - The response's http status code.
Response Lenses
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_lastModifiedDate :: Lens' GetPolicyVersionResponse (Maybe UTCTime) Source #
The date the policy was last modified.
getPolicyVersionResponse_policyArn :: Lens' GetPolicyVersionResponse (Maybe Text) Source #
The policy ARN.
getPolicyVersionResponse_policyDocument :: Lens' GetPolicyVersionResponse (Maybe Text) Source #
The JSON document that describes the policy.
getPolicyVersionResponse_policyName :: Lens' GetPolicyVersionResponse (Maybe Text) Source #
The policy name.
getPolicyVersionResponse_policyVersionId :: Lens' GetPolicyVersionResponse (Maybe Text) Source #
The policy version ID.
getPolicyVersionResponse_httpStatus :: Lens' GetPolicyVersionResponse Int Source #
The response's http status code.