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

Safe HaskellNone
LanguageHaskell2010

Network.AWS.IAM.DetachRolePolicy

Contents

Description

Removes the specified managed policy from the specified role.

A role can also have inline policies embedded with it. To delete an inline policy, use the DeleteRolePolicy API. For information about policies, refer to Managed Policies and Inline Policies in the Using IAM guide.

http://docs.aws.amazon.com/IAM/latest/APIReference/API_DetachRolePolicy.html

Synopsis

Request

Request constructor

detachRolePolicy Source

Arguments

:: Text

drpRoleName

-> Text

drpPolicyArn

-> DetachRolePolicy 

DetachRolePolicy constructor.

The fields accessible through corresponding lenses are:

Request lenses

drpRoleName :: Lens' DetachRolePolicy Text Source

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

Response

Response constructor