Safe Haskell | None |
---|---|
Language | Haskell2010 |
Adds (or updates) an inline policy document that is embedded in the specified user.
A user can also have a managed policy attached to it. To attach a managed
policy to a user, use AttachUserPolicy
. To create a new managed policy, use CreatePolicy
. For information about policies, refer to Managed Policies and InlinePolicies in the Using IAM guide.
For information about limits on the number of inline policies that you can embed in a user, see Limitations on IAM Entities in the Using IAM guide.
Because policy documents can be large, you should use POST rather than GET
when calling PutUserPolicy
. For general information about using the Query API
with IAM, go to Making Query Requests in the Using IAM guide.
http://docs.aws.amazon.com/IAM/latest/APIReference/API_PutUserPolicy.html
- data PutUserPolicy
- putUserPolicy :: Text -> Text -> Text -> PutUserPolicy
- pupPolicyDocument :: Lens' PutUserPolicy Text
- pupPolicyName :: Lens' PutUserPolicy Text
- pupUserName :: Lens' PutUserPolicy Text
- data PutUserPolicyResponse
- putUserPolicyResponse :: PutUserPolicyResponse
Request
data PutUserPolicy Source
Eq PutUserPolicy | |
Ord PutUserPolicy | |
Read PutUserPolicy | |
Show PutUserPolicy | |
AWSRequest PutUserPolicy | |
ToQuery PutUserPolicy | |
ToPath PutUserPolicy | |
ToHeaders PutUserPolicy | |
type Sv PutUserPolicy = IAM | |
type Rs PutUserPolicy = PutUserPolicyResponse |
Request constructor
:: Text | |
-> Text | |
-> Text | |
-> PutUserPolicy |
PutUserPolicy
constructor.
The fields accessible through corresponding lenses are:
pupPolicyDocument
::
Text
pupPolicyName
::
Text
pupUserName
::
Text
Request lenses
pupPolicyDocument :: Lens' PutUserPolicy Text Source
The policy document.
pupPolicyName :: Lens' PutUserPolicy Text Source
The name of the policy document.
pupUserName :: Lens' PutUserPolicy Text Source
The name of the user to associate the policy with.
Response
Response constructor
putUserPolicyResponse :: PutUserPolicyResponse Source
PutUserPolicyResponse
constructor.