Safe Haskell | None |
---|---|
Language | Haskell2010 |
Removes the specified managed policy from the specified user.
A user can also have inline policies embedded with it. To delete an inline
policy, use the DeleteUserPolicy
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_DetachUserPolicy.html
- data DetachUserPolicy
- detachUserPolicy :: Text -> Text -> DetachUserPolicy
- dup1PolicyArn :: Lens' DetachUserPolicy Text
- dup1UserName :: Lens' DetachUserPolicy Text
- data DetachUserPolicyResponse
- detachUserPolicyResponse :: DetachUserPolicyResponse
Request
data DetachUserPolicy Source
Eq DetachUserPolicy | |
Ord DetachUserPolicy | |
Read DetachUserPolicy | |
Show DetachUserPolicy | |
AWSRequest DetachUserPolicy | |
ToQuery DetachUserPolicy | |
ToPath DetachUserPolicy | |
ToHeaders DetachUserPolicy | |
type Sv DetachUserPolicy = IAM | |
type Rs DetachUserPolicy = DetachUserPolicyResponse |
Request constructor
:: Text | |
-> Text | |
-> DetachUserPolicy |
DetachUserPolicy
constructor.
The fields accessible through corresponding lenses are:
dup1PolicyArn
::
Text
dup1UserName
::
Text
Request lenses
dup1PolicyArn :: Lens' DetachUserPolicy Text Source
dup1UserName :: Lens' DetachUserPolicy Text Source
The name (friendly name, not ARN) of the user to detach the policy from.