| 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 |
Network.AWS.IoT.GetPolicy
Description
Gets information about the specified policy with the policy document of the default version.
- getPolicy :: Text -> GetPolicy
- data GetPolicy
- gpPolicyName :: Lens' GetPolicy Text
- getPolicyResponse :: Int -> GetPolicyResponse
- data GetPolicyResponse
- gprsPolicyName :: Lens' GetPolicyResponse (Maybe Text)
- gprsPolicyDocument :: Lens' GetPolicyResponse (Maybe Text)
- gprsDefaultVersionId :: Lens' GetPolicyResponse (Maybe Text)
- gprsPolicyARN :: 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:
The input for the GetPolicy operation.
See: getPolicy smart constructor.
Instances
Request Lenses
gpPolicyName :: Lens' GetPolicy Text Source
The name of the policy.
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:
data GetPolicyResponse Source
The output from the GetPolicy operation.
See: getPolicyResponse smart constructor.
Response Lenses
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.
gprsResponseStatus :: Lens' GetPolicyResponse Int Source
The response status code.