Back to all operators

ForAnyValue:NumericLessThanEqualsIfExists

ForAnyValue:NumericLessThanEqualsIfExists

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

To match a request, the context key must exist in the request and at least one number 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, ForAnyValue:NumericLessThanEqualsIfExists 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.

ForAnyValue:NumericLessThanEqualsIfExists in an Allow Statement

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

ForAnyValue:NumericLessThanEqualsIfExists in a Deny Statement

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