amazonka-iam-1.3.3: Amazon Identity and Access Management SDK.

Copyright(c) 2013-2015 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <>
Portabilitynon-portable (GHC extensions)
Safe HaskellNone




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 IAM User Guide.

See: AWS API Reference for AttachGroupPolicy.


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.