amazonka-iot-1.3.7: 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.CreatePolicy

Contents

Description

Creates an AWS IoT policy.

The created policy is the default version for the policy. This operation creates a policy version with a version identifier of 1 and sets 1 as the policy's default version.

See: AWS API Reference for CreatePolicy.

Synopsis

Creating a Request

createPolicy Source

Creates a value of CreatePolicy with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Request Lenses

cpPolicyDocument :: Lens' CreatePolicy Text Source

The JSON document that describes the policy. The length of the policyDocument must be a minimum length of 1, with a maximum length of 2048, excluding whitespace.

Destructuring the Response

createPolicyResponse Source

Creates a value of CreatePolicyResponse with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

Response Lenses

cprsPolicyDocument :: Lens' CreatePolicyResponse (Maybe Text) Source

The JSON document that describes the policy.