| Copyright | (c) 2013-2016 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | None |
| Language | Haskell2010 |
Network.AWS.IAM.DetachUserPolicy
Description
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 IAM User Guide.
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> DetachUserPolicy |
Creates a value of DetachUserPolicy with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data DetachUserPolicy Source #
See: detachUserPolicy smart constructor.
Instances
Request Lenses
dUserName :: Lens' DetachUserPolicy Text Source #
The name (friendly name, not ARN) of the user to detach the policy from.
dPolicyARN :: Lens' DetachUserPolicy Text Source #
Undocumented member.
Destructuring the Response
detachUserPolicyResponse :: DetachUserPolicyResponse Source #
Creates a value of DetachUserPolicyResponse with the minimum fields required to make a request.
data DetachUserPolicyResponse Source #
See: detachUserPolicyResponse smart constructor.