Safe Haskell | None |
---|---|
Language | Haskell2010 |
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
- data DetachRolePolicy
- detachRolePolicy :: Text -> Text -> DetachRolePolicy
- drpPolicyArn :: Lens' DetachRolePolicy Text
- drpRoleName :: Lens' DetachRolePolicy Text
- data DetachRolePolicyResponse
- detachRolePolicyResponse :: DetachRolePolicyResponse
Request
data DetachRolePolicy Source
Eq DetachRolePolicy | |
Ord DetachRolePolicy | |
Read DetachRolePolicy | |
Show DetachRolePolicy | |
AWSRequest DetachRolePolicy | |
ToQuery DetachRolePolicy | |
ToPath DetachRolePolicy | |
ToHeaders DetachRolePolicy | |
type Sv DetachRolePolicy = IAM | |
type Rs DetachRolePolicy = DetachRolePolicyResponse |
Request constructor
:: Text | |
-> Text | |
-> DetachRolePolicy |
DetachRolePolicy
constructor.
The fields accessible through corresponding lenses are:
drpPolicyArn
::
Text
drpRoleName
::
Text
Request lenses
drpPolicyArn :: Lens' DetachRolePolicy Text Source
drpRoleName :: Lens' DetachRolePolicy Text Source
The name (friendly name, not ARN) of the role to detach the policy from.