Back to all operators

ForAllValues:StringNotEqualsIgnoreCaseIfExists

ForAllValues:StringNotEqualsIgnoreCaseIfExists

compares a list of strings in a request to a list of strings in your policy. The comparison is case insensitive.

To match a request, the context key can be absent, but if it is present, none of the strings in the request can match any string strings in your policy.

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

Warning

ForAllValues:StringNotEqualsIgnoreCaseIfExists is actively confusing. Any operator starting with ForAllValues ignores IfExists — it is not evaluated against the entire array, only against a single value at a time inside the ForAllValues loop. Use ForAllValues:StringNotEqualsIgnoreCase instead so your coworkers don't hate you.

ForAllValues:StringNotEqualsIgnoreCaseIfExists in an Allow Statement

Simulate in IAM Simulate
Policy ConditionRequest ContextResult
"ForAllValues:StringNotEqualsIgnoreCaseIfExists": {
"aws:TagKeys": [
"DataClass",
"Owner"
]
}
aws:TagKeys: null✓ Allowed Assuming no explicit Deny elsewhere
"ForAllValues:StringNotEqualsIgnoreCaseIfExists": {
"aws:TagKeys": [
"DataClass",
"Owner"
]
}
aws:TagKeys:
 - dAtAcLaSs
 - Owner
− Not Allowed Statement does not apply
"ForAllValues:StringNotEqualsIgnoreCaseIfExists": {
"aws:TagKeys": [
"DataClass",
"Owner"
]
}
aws:TagKeys:
 - dAtAcLaSs
 - Dept
− Not Allowed Statement does not apply
"ForAllValues:StringNotEqualsIgnoreCaseIfExists": {
"aws:TagKeys": [
"DataClass",
"Owner"
]
}
aws:TagKeys:
 - Dept
✓ Allowed Assuming no explicit Deny elsewhere
"ForAllValues:StringNotEqualsIgnoreCaseIfExists": {
"aws:TagKeys": [
"DataClass",
"Owner"
]
}
aws:TagKeys:
 - Dept
 - SIC
✓ Allowed Assuming no explicit Deny elsewhere
"ForAllValues:StringNotEqualsIgnoreCaseIfExists": {
"aws:TagKeys": [
"DataClass",
"Owner"
]
}
aws:TagKeys:
 - Dept
 - SIC
 - dAtAcLaSs
− Not Allowed Statement does not apply

ForAllValues:StringNotEqualsIgnoreCaseIfExists in a Deny Statement

Simulate in IAM Simulate
Policy ConditionRequest ContextResult
"ForAllValues:StringNotEqualsIgnoreCaseIfExists": {
"aws:TagKeys": [
"DataClass",
"Owner"
]
}
aws:TagKeys: null✕ Denied
"ForAllValues:StringNotEqualsIgnoreCaseIfExists": {
"aws:TagKeys": [
"DataClass",
"Owner"
]
}
aws:TagKeys:
 - dAtAcLaSs
 - Owner
− Not Denied May be allowed by another statement
"ForAllValues:StringNotEqualsIgnoreCaseIfExists": {
"aws:TagKeys": [
"DataClass",
"Owner"
]
}
aws:TagKeys:
 - dAtAcLaSs
 - Dept
− Not Denied May be allowed by another statement
"ForAllValues:StringNotEqualsIgnoreCaseIfExists": {
"aws:TagKeys": [
"DataClass",
"Owner"
]
}
aws:TagKeys:
 - Dept
✕ Denied
"ForAllValues:StringNotEqualsIgnoreCaseIfExists": {
"aws:TagKeys": [
"DataClass",
"Owner"
]
}
aws:TagKeys:
 - Dept
 - SIC
✕ Denied
"ForAllValues:StringNotEqualsIgnoreCaseIfExists": {
"aws:TagKeys": [
"DataClass",
"Owner"
]
}
aws:TagKeys:
 - Dept
 - SIC
 - dAtAcLaSs
− Not Denied May be allowed by another statement