Back to all operators

ForAllValues:NumericGreaterThanIfExists

ForAllValues:NumericGreaterThanIfExists

compares a list of numbers in a request to a number 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 the number in your policy.

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

Warning

As far as we know, ForAllValues:NumericGreaterThanIfExists 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:NumericGreaterThanIfExists in an Allow Statement

Policy ConditionRequest ContextResult
"ForAllValues:NumericGreaterThanIfExists": {
"aws:NonExistent": "100"
}
aws:NonExistent: null✓ Allowed Assuming no explicit Deny elsewhere
"ForAllValues:NumericGreaterThanIfExists": {
"aws:NonExistent": "100"
}
aws:NonExistent:
 - 99
 - 100
− Not Allowed Statement does not apply
"ForAllValues:NumericGreaterThanIfExists": {
"aws:NonExistent": "100"
}
aws:NonExistent:
 - 101
 - 99
− Not Allowed Statement does not apply
"ForAllValues:NumericGreaterThanIfExists": {
"aws:NonExistent": "100"
}
aws:NonExistent:
 - 101
✓ Allowed Assuming no explicit Deny elsewhere
"ForAllValues:NumericGreaterThanIfExists": {
"aws:NonExistent": "100"
}
aws:NonExistent:
 - 101
 - 150
✓ Allowed Assuming no explicit Deny elsewhere
"ForAllValues:NumericGreaterThanIfExists": {
"aws:NonExistent": "100"
}
aws:NonExistent:
 - 101
 - 150
 - 99
− Not Allowed Statement does not apply

ForAllValues:NumericGreaterThanIfExists in a Deny Statement

Policy ConditionRequest ContextResult
"ForAllValues:NumericGreaterThanIfExists": {
"aws:NonExistent": "100"
}
aws:NonExistent: null✕ Denied
"ForAllValues:NumericGreaterThanIfExists": {
"aws:NonExistent": "100"
}
aws:NonExistent:
 - 99
 - 100
− Not Denied May be allowed by another statement
"ForAllValues:NumericGreaterThanIfExists": {
"aws:NonExistent": "100"
}
aws:NonExistent:
 - 101
 - 99
− Not Denied May be allowed by another statement
"ForAllValues:NumericGreaterThanIfExists": {
"aws:NonExistent": "100"
}
aws:NonExistent:
 - 101
✕ Denied
"ForAllValues:NumericGreaterThanIfExists": {
"aws:NonExistent": "100"
}
aws:NonExistent:
 - 101
 - 150
✕ Denied
"ForAllValues:NumericGreaterThanIfExists": {
"aws:NonExistent": "100"
}
aws:NonExistent:
 - 101
 - 150
 - 99
− Not Denied May be allowed by another statement