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

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




Removes the specified managed policy from the specified group.

A group can also have inline policies embedded with it. To delete an inline policy, use the DeleteGroupPolicy API. For information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide.


Creating a Request

detachGroupPolicy Source

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

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

Request Lenses

dgpGroupName :: Lens' DetachGroupPolicy Text Source

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

Destructuring the Response

detachGroupPolicyResponse :: DetachGroupPolicyResponse Source

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