Condition key
Facts read 16 Nov 2026. Page reviewed 16 Nov 2026.
A condition key is a named value in the request context, such as aws:SourceIp or s3:prefix, that the Condition element of a policy statement compares against values you write. AWS lists 63 global aws: keys on its reference page read on 16 Nov 2026, and each service defines further keys of its own.
All terms ยท Open the workbench
An example, sourced
AWS notes that many policies use conditions that depend on keys such as aws:RequestedRegion or aws:MultiFactorAuthPresent, and that when a key is absent from the request the values do not match and the condition is false.
Why it matters here
A condition narrows a grant, but only when the key is present in the request. Reading a condition means asking what happens when the key is missing.
Related pages
Sources
- https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html, read 16 Nov 2026
Last reviewed 16 Nov 2026.