Set operator
Facts read 16 Nov 2026. Page reviewed 16 Nov 2026.
A set operator, ForAllValues or ForAnyValue, is a prefix on a condition operator that compares a multivalued request key, such as aws:TagKeys, with the values in the policy. ForAnyValue is true if at least one value matches and ForAllValues is true if every value does. AWS says to use them only with multivalued keys.
All terms ยท Open the workbench
An example, sourced
AWS notes that ForAnyValue comparisons on aws:TagKeys are case sensitive, which stops users from using a different case of a tag key to get around a policy.
Why it matters here
AWS says the ForAllValues qualifier returns true if there are no context keys in the request, and suggests adding a Null condition to prevent missing keys evaluating to true.
Related pages
Sources
- https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies_elements_condition_operators.html, read 16 Nov 2026
Last reviewed 16 Nov 2026.