CreatePolicy
GET /?Action=CreatePolicy
Description
Creates a new managed policy to apply to a user or a group.
This action creates a policy version and sets v1 as the default one.
Body parameter
Required: false
Name: CreatePolicyRequest
Name | Description | Required | Schema | Default | Example |
---|---|---|---|---|---|
Description |
A friendly description of the policy, in which you can write information about the permissions contained in the policy. |
false |
string |
||
Path |
The path to the policy. |
false |
string |
||
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 |
Responses
HTTP Code 200
HTTP Code | Description | Schema |
---|---|---|
200 |
CreatePolicyResponse |
Response 200
Name | Description | Required | Schema | Default | Example |
---|---|---|---|---|---|
Policy |
Information about the newly created policy. |
false |
|||
ResponseMetadata |
Information about the response. |
false |