amazonka-iot-1.3.3.1: 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.AttachPrincipalPolicy

Contents

Description

Attaches the specified policy to the specified principal (certificate or other credential).

See: AWS API Reference for AttachPrincipalPolicy.

Synopsis

Creating a Request

attachPrincipalPolicy Source

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

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

Request Lenses

appPrincipal :: Lens' AttachPrincipalPolicy Text Source

The principal which can be a certificate ARN (as returned from the CreateCertificate operation) or a Cognito ID.

Destructuring the Response

attachPrincipalPolicyResponse :: AttachPrincipalPolicyResponse Source

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