amazonka-iot-1.3.3: Amazon IoT SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.IoT.CreatePolicyVersion

Contents

Description

Creates a new version of the specified AWS IoT policy.

See: AWS API Reference for CreatePolicyVersion.

Synopsis

Creating a Request

createPolicyVersion Source

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:

Request Lenses

cpvSetAsDefault :: Lens' CreatePolicyVersion (Maybe Bool) Source

Specifies whether the policy version is set as the default.

cpvPolicyDocument :: Lens' CreatePolicyVersion Text Source

The JSON document that describes the policy.

Destructuring the Response

createPolicyVersionResponse Source

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:

Response Lenses

cpvrsPolicyDocument :: Lens' CreatePolicyVersionResponse (Maybe Text) Source

The JSON document that describes the policy.

cpvrsIsDefaultVersion :: Lens' CreatePolicyVersionResponse (Maybe Bool) Source

Specifies whether the policy version is the default.