Back to all operators

ForAllValues:NumericEqualsIfExists

ForAllValues:NumericEqualsIfExists

compares a list of numbers in a request to a list of numbers in your policy.

To match a request, the context key can be absent, but if it is present, all of the numbers in the request must match at least one of the numbers in your policy.

You can NOT use policy variables in the value of this operator.

Warning

As far as we know, ForAllValues:NumericEqualsIfExists can never be used — no context keys exist that are an array of numbers. It's documented here as an example of how it would work, but if you see it in the wild, it's probably a mistake.

ForAllValues:NumericEqualsIfExists in an Allow Statement

Policy ConditionRequest ContextResult
"ForAllValues:NumericEqualsIfExists": {
"aws:NonExistent": [
"10",
"100"
]
}
aws:NonExistent: null✓ Allowed Assuming no explicit Deny elsewhere
"ForAllValues:NumericEqualsIfExists": {
"aws:NonExistent": [
"10",
"100"
]
}
aws:NonExistent:
 - 15
 - 500
− Not Allowed Statement does not apply
"ForAllValues:NumericEqualsIfExists": {
"aws:NonExistent": [
"10",
"100"
]
}
aws:NonExistent:
 - 10
 - 15
− Not Allowed Statement does not apply
"ForAllValues:NumericEqualsIfExists": {
"aws:NonExistent": [
"10",
"100"
]
}
aws:NonExistent:
 - 10
✓ Allowed Assuming no explicit Deny elsewhere
"ForAllValues:NumericEqualsIfExists": {
"aws:NonExistent": [
"10",
"100"
]
}
aws:NonExistent:
 - 10
 - 100
✓ Allowed Assuming no explicit Deny elsewhere
"ForAllValues:NumericEqualsIfExists": {
"aws:NonExistent": [
"10",
"100"
]
}
aws:NonExistent:
 - 10
 - 100
 - 15
− Not Allowed Statement does not apply

ForAllValues:NumericEqualsIfExists in a Deny Statement

Policy ConditionRequest ContextResult
"ForAllValues:NumericEqualsIfExists": {
"aws:NonExistent": [
"10",
"100"
]
}
aws:NonExistent: null✕ Denied
"ForAllValues:NumericEqualsIfExists": {
"aws:NonExistent": [
"10",
"100"
]
}
aws:NonExistent:
 - 15
 - 500
− Not Denied May be allowed by another statement
"ForAllValues:NumericEqualsIfExists": {
"aws:NonExistent": [
"10",
"100"
]
}
aws:NonExistent:
 - 10
 - 15
− Not Denied May be allowed by another statement
"ForAllValues:NumericEqualsIfExists": {
"aws:NonExistent": [
"10",
"100"
]
}
aws:NonExistent:
 - 10
✕ Denied
"ForAllValues:NumericEqualsIfExists": {
"aws:NonExistent": [
"10",
"100"
]
}
aws:NonExistent:
 - 10
 - 100
✕ Denied
"ForAllValues:NumericEqualsIfExists": {
"aws:NonExistent": [
"10",
"100"
]
}
aws:NonExistent:
 - 10
 - 100
 - 15
− Not Denied May be allowed by another statement