amazonka-iam-1.3.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.AttachGroupPolicy

Contents

Description

Attaches the specified managed policy to the specified group.

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

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

See: AWS API Reference for AttachGroupPolicy.

Synopsis

Creating a Request

attachGroupPolicy Source

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

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

Request Lenses

agpGroupName :: Lens' AttachGroupPolicy Text Source

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

Destructuring the Response

attachGroupPolicyResponse :: AttachGroupPolicyResponse Source

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