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.GetPolicy

Contents

Description

Gets information about the specified policy with the policy document of the default version.

See: AWS API Reference for GetPolicy.

Synopsis

Creating a Request

getPolicy Source

Arguments

:: Text

gpPolicyName

-> GetPolicy 

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:

Request Lenses

gpPolicyName :: Lens' GetPolicy Text Source

The name of the policy.

Destructuring the Response

getPolicyResponse Source

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:

Response Lenses

gprsPolicyDocument :: Lens' GetPolicyResponse (Maybe Text) Source

The JSON document that describes the policy.

gprsDefaultVersionId :: Lens' GetPolicyResponse (Maybe Text) Source

The default policy version ID.