Back to all operators

ForAnyValue:StringNotEqualsIgnoreCase

ForAnyValue:StringNotEqualsIgnoreCase

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 must exist in the request and at least one string in the request must NOT match any of strings in your policy.

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

ForAnyValue:StringNotEqualsIgnoreCase in an Allow Statement

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

ForAnyValue:StringNotEqualsIgnoreCase in a Deny Statement

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