Last update:2026-03-25 15:11:37
The basic elements of a policy constitute the fundamental components of a permission policy. In IAM, permission policies are used to define the specifics of authorization. Understanding these basic elements can help you use permission policies more efficiently.
| Element Name | Description |
|---|---|
| Effect | Authorization effect includes two types: Allow and Deny. |
| Action | Action refers to operations performed on specific resources. |
| Resource | Resource refers to the specific objects being authorized. |
The valid values for Effect are Allow or Deny, for example: "Effect": "Allow".
Action supports multiple values and the valid options are the action names defined by the service.
Format: <service-name>:<action-name>
Example Description:
"Action": ["wos:ListBuckets"]
Resource typically refers to an asset or object of operation.
Format: wsc:<service-name>:<region>:<account>:<relative-id>
Description Example:
"Resource": ["wsc:wos:*:*:mybucket", "wsc:wos:*:*:mybucket/*"]
The following permission policy means: Allow read-only operations on the samplebucket in WOS, and deny write operations on the samplebucket in WOS.
[
{
"Effect": "Allow",
"Action": ["wos:List*", "wos:Get*"],
"Resource": ["wsc:wos:*:*:samplebucket", "wsc:wos:*:*:samplebucket/*"]
},
{
"Effect": "Deny",
"Action": ["wos:Delete*", "wos:Put*"],
"Resource": ["wsc:wos:*:*:samplebucket", "wsc:wos:*:*:samplebucket/*"]
}
]