policy statement
One rule in an IAM policy, made of at most five parts: Sid, Effect, Action, Resource and Condition.
In more detail
Sid is a label you choose. Effect is Allow or Deny, with no third value. Action names an API call as a service prefix and operation, such as s3:GetObject. Resource names what the call touches as an ARN, and Condition decides whether the statement applies to this particular request.
Example
"Effect": "Allow", "Action": ["s3:GetObject", "s3:PutObject"], "Resource": "arn:aws:s3:::site-bundles-prod/*"Related terms
- IAM policy — A JSON document that lists which actions are allowed or denied on which resources, and under which conditions.
- ARN — Amazon Resource Name: the unique identifier of any AWS resource, such as arn:aws:iam::123456789012:role/github-deploy.
- condition key — A value AWS attaches to every request, such as whether multi-factor authentication was used, that a policy Condition can test.
- wildcard — A special character, such as *, that stands for any value or any run of characters when matching names or patterns.
Taught in
- The Shared Responsibility Model — Cloud Infrastructure & Hyperscaler Architecture
- IAM as the Foundation — Cloud Infrastructure & Hyperscaler Architecture
- Users, Groups and Roles — Cloud Infrastructure & Hyperscaler Architecture
- Policies and Least Privilege — Cloud Infrastructure & Hyperscaler Architecture
- Policy Simulation and Dry Runs — Cloud Infrastructure & Hyperscaler Architecture