Copyright | (c) 2013-2015 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 |
Attaches the specified managed policy to the specified user.
You use this API to attach a managed policy to a user. To embed an inline policy in a user, use PutUserPolicy.
For more information about policies, refer to Managed Policies and Inline Policies in the IAM User Guide.
See: AWS API Reference for AttachUserPolicy.
Creating a Request
Creates a value of AttachUserPolicy
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data AttachUserPolicy Source
See: attachUserPolicy
smart constructor.
Request Lenses
aupUserName :: Lens' AttachUserPolicy Text Source
The name (friendly name, not ARN) of the user to attach the policy to.
aupPolicyARN :: Lens' AttachUserPolicy Text Source
Undocumented member.
Destructuring the Response
attachUserPolicyResponse :: AttachUserPolicyResponse Source
Creates a value of AttachUserPolicyResponse
with the minimum fields required to make a request.
data AttachUserPolicyResponse Source
See: attachUserPolicyResponse
smart constructor.