PutUserPolicy

GET /?Action=PutUserPolicy
Description

Creates or updates an inline policy included in a specified user.
The policy is automatically applied to the user after its creation.

Body parameter

Required: false
Name: PutUserPolicyRequest

Name Description Required Schema Default Example

PolicyDocument

The policy document, corresponding to a JSON string that contains the policy. For more information, see EIM Reference Information.

true

string

PolicyName

The name of the policy.

true

string

UserName

The name of the user.

true

string

Responses
HTTP Code 200
HTTP Code Description Schema

200

PutUserPolicyResponse

Response 200

Response 200

Name Description Required Schema Default Example

ResponseMetadata

Information about the response.

false

ResponseMetadata