# 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.

## 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

- [Trust policy: meaning and an example](/glossary/trust-policy/)
- [Customer managed policy: meaning and an example](/glossary/customer-managed-policy/)
- [Identity-based policy: meaning and an example](/glossary/identity-based-policy/)
- [All of them](/glossary/)

## Sources

- https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_condition-keys.html (read 16 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://iampolicygenerator.com/glossary/condition-key/

This site is not affiliated with Amazon Web Services. AWS service and product names are used only to describe AWS services.
