| Copyright | (c) 2013-2015 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.CreatePolicyVersion
Description
Creates a new version of the specified AWS IoT policy.
See: AWS API Reference for CreatePolicyVersion.
- createPolicyVersion :: Text -> Text -> CreatePolicyVersion
- data CreatePolicyVersion
- cpvSetAsDefault :: Lens' CreatePolicyVersion (Maybe Bool)
- cpvPolicyName :: Lens' CreatePolicyVersion Text
- cpvPolicyDocument :: Lens' CreatePolicyVersion Text
- createPolicyVersionResponse :: Int -> CreatePolicyVersionResponse
- data CreatePolicyVersionResponse
- cpvrsPolicyDocument :: Lens' CreatePolicyVersionResponse (Maybe Text)
- cpvrsPolicyVersionId :: Lens' CreatePolicyVersionResponse (Maybe Text)
- cpvrsPolicyARN :: Lens' CreatePolicyVersionResponse (Maybe Text)
- cpvrsIsDefaultVersion :: Lens' CreatePolicyVersionResponse (Maybe Bool)
- cpvrsResponseStatus :: Lens' CreatePolicyVersionResponse Int
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> CreatePolicyVersion |
Creates a value of CreatePolicyVersion with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreatePolicyVersion Source
The input for the CreatePolicyVersion operation.
See: createPolicyVersion smart constructor.
Instances
Request Lenses
cpvSetAsDefault :: Lens' CreatePolicyVersion (Maybe Bool) Source
Specifies whether the policy version is set as the default.
cpvPolicyName :: Lens' CreatePolicyVersion Text Source
The policy name.
cpvPolicyDocument :: Lens' CreatePolicyVersion Text Source
The JSON document that describes the policy.
Destructuring the Response
createPolicyVersionResponse Source
Arguments
| :: Int | |
| -> CreatePolicyVersionResponse |
Creates a value of CreatePolicyVersionResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data CreatePolicyVersionResponse Source
The output of the CreatePolicyVersion operation.
See: createPolicyVersionResponse smart constructor.
Response Lenses
cpvrsPolicyDocument :: Lens' CreatePolicyVersionResponse (Maybe Text) Source
The JSON document that describes the policy.
cpvrsPolicyVersionId :: Lens' CreatePolicyVersionResponse (Maybe Text) Source
The policy version ID.
cpvrsPolicyARN :: Lens' CreatePolicyVersionResponse (Maybe Text) Source
The policy ARN.
cpvrsIsDefaultVersion :: Lens' CreatePolicyVersionResponse (Maybe Bool) Source
Specifies whether the policy version is the default.
cpvrsResponseStatus :: Lens' CreatePolicyVersionResponse Int Source
The response status code.