Back to all operators

ForAllValues:NumericNotEqualsIfExists

ForAllValues:NumericNotEqualsIfExists

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, none of the numbers in the request can match any string numbers in your policy.

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

Warning

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

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

ForAllValues:NumericNotEqualsIfExists in a Deny Statement

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