amazonka-iam-1.2.0.1: Amazon Identity and Access Management 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.IAM.AttachUserPolicy

Contents

Description

Attaches the specified managed policy to the specified user.

You use this API to attach a managed policy to a user. To embed an inline policy in a user, use PutUserPolicy.

For more information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

See: AWS API Reference for AttachUserPolicy.

Synopsis

Creating a Request

attachUserPolicy Source

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

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

Request Lenses

aupUserName :: Lens' AttachUserPolicy Text Source

The name (friendly name, not ARN) of the user to attach the policy to.

Destructuring the Response

attachUserPolicyResponse :: AttachUserPolicyResponse Source

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