| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.AWS.IAM.AttachUserPolicy
Description
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 InlinePolicies in the Using IAM guide.
http://docs.aws.amazon.com/IAM/latest/APIReference/API_AttachUserPolicy.html
- data AttachUserPolicy
- attachUserPolicy :: Text -> Text -> AttachUserPolicy
- aupPolicyArn :: Lens' AttachUserPolicy Text
- aupUserName :: Lens' AttachUserPolicy Text
- data AttachUserPolicyResponse
- attachUserPolicyResponse :: AttachUserPolicyResponse
Request
data AttachUserPolicy Source
Instances
| Eq AttachUserPolicy | |
| Ord AttachUserPolicy | |
| Read AttachUserPolicy | |
| Show AttachUserPolicy | |
| AWSRequest AttachUserPolicy | |
| ToQuery AttachUserPolicy | |
| ToPath AttachUserPolicy | |
| ToHeaders AttachUserPolicy | |
| type Sv AttachUserPolicy = IAM | |
| type Rs AttachUserPolicy = AttachUserPolicyResponse |
Request constructor
Arguments
| :: Text | |
| -> Text | |
| -> AttachUserPolicy |
AttachUserPolicy constructor.
The fields accessible through corresponding lenses are:
aupPolicyArn::TextaupUserName::Text
Request lenses
aupPolicyArn :: Lens' AttachUserPolicy Text Source
aupUserName :: Lens' AttachUserPolicy Text Source
The name (friendly name, not ARN) of the user to attach the policy to.