| 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 |
Network.AWS.IoT.GetPolicy
Description
Gets information about the specified policy with the policy document of the default version.
Synopsis
- getPolicy :: Text -> GetPolicy
- data GetPolicy
- gpPolicyName :: Lens' GetPolicy Text
- getPolicyResponse :: Int -> GetPolicyResponse
- data GetPolicyResponse
- gprsLastModifiedDate :: Lens' GetPolicyResponse (Maybe UTCTime)
- gprsPolicyName :: Lens' GetPolicyResponse (Maybe Text)
- gprsPolicyDocument :: Lens' GetPolicyResponse (Maybe Text)
- gprsDefaultVersionId :: Lens' GetPolicyResponse (Maybe Text)
- gprsPolicyARN :: Lens' GetPolicyResponse (Maybe Text)
- gprsCreationDate :: Lens' GetPolicyResponse (Maybe UTCTime)
- gprsGenerationId :: Lens' GetPolicyResponse (Maybe Text)
- gprsResponseStatus :: Lens' GetPolicyResponse Int
Creating a Request
Creates a value of GetPolicy with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gpPolicyName- The name of the policy.
The input for the GetPolicy operation.
See: getPolicy smart constructor.
Instances
Request Lenses
Destructuring the Response
Arguments
| :: Int | |
| -> GetPolicyResponse |
Creates a value of GetPolicyResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
gprsLastModifiedDate- The date the policy was last modified.gprsPolicyName- The policy name.gprsPolicyDocument- The JSON document that describes the policy.gprsDefaultVersionId- The default policy version ID.gprsPolicyARN- The policy ARN.gprsCreationDate- The date the policy was created.gprsGenerationId- The generation ID of the policy.gprsResponseStatus- -- | The response status code.
data GetPolicyResponse Source #
The output from the GetPolicy operation.
See: getPolicyResponse smart constructor.
Instances
Response Lenses
gprsLastModifiedDate :: Lens' GetPolicyResponse (Maybe UTCTime) Source #
The date the policy was last modified.
gprsPolicyName :: Lens' GetPolicyResponse (Maybe Text) Source #
The policy name.
gprsPolicyDocument :: Lens' GetPolicyResponse (Maybe Text) Source #
The JSON document that describes the policy.
gprsDefaultVersionId :: Lens' GetPolicyResponse (Maybe Text) Source #
The default policy version ID.
gprsPolicyARN :: Lens' GetPolicyResponse (Maybe Text) Source #
The policy ARN.
gprsCreationDate :: Lens' GetPolicyResponse (Maybe UTCTime) Source #
The date the policy was created.
gprsGenerationId :: Lens' GetPolicyResponse (Maybe Text) Source #
The generation ID of the policy.
gprsResponseStatus :: Lens' GetPolicyResponse Int Source #
- - | The response status code.