Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

The Policy JSON accepts a block where the applicable actions are determined. Each Resource type has it’s own actions, but usually they are:

  • Create

  • Read

  • Update

  • Delete

To determine which actions are applicable for the Policy, you can pass a string with a single action, or an array of actions. Also wildcards can be used, which means all possible actions.

Examples:

Use a wildcard to cover all possible actions:

...
"statement": {
  ...
  "action": "*",
  "resources": [...],
  "conditions": {...}
  ...
}

Pass a string for a single action:

...
"statement": {
  ...
  "action": "create",
  "resources": [...],
  "conditions": {...}
  ...
}

When using multiple actions, pass an array.

...
"statement": {
  "action": [
    "create",
    "update"
  ],
  "resources": [...],
  "conditions": {...}
  ...
}

  • No labels