Back to all operators

StringNotEqualsIgnoreCase

StringNotEqualsIgnoreCase

compares a string 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 present it must NOT match any of the strings in your policy.

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

StringNotEqualsIgnoreCase in an Allow Statement

Simulate in IAM Simulate
Policy ConditionRequest ContextResult
"StringNotEqualsIgnoreCase": {
"aws:RequestTag/DataClass": [
"public",
"internal"
]
}
aws:RequestTag/DataClass: null✓ Allowed Assuming no explicit Deny elsewhere
"StringNotEqualsIgnoreCase": {
"aws:RequestTag/DataClass": [
"public",
"internal"
]
}
aws:RequestTag/DataClass: private✓ Allowed Assuming no explicit Deny elsewhere
"StringNotEqualsIgnoreCase": {
"aws:RequestTag/DataClass": [
"public",
"internal"
]
}
aws:RequestTag/DataClass: PUBLIC− Not Allowed Statement does not apply

StringNotEqualsIgnoreCase in a Deny Statement

Simulate in IAM Simulate
Policy ConditionRequest ContextResult
"StringNotEqualsIgnoreCase": {
"aws:RequestTag/DataClass": [
"public",
"internal"
]
}
aws:RequestTag/DataClass: null✕ Denied
"StringNotEqualsIgnoreCase": {
"aws:RequestTag/DataClass": [
"public",
"internal"
]
}
aws:RequestTag/DataClass: private✕ Denied
"StringNotEqualsIgnoreCase": {
"aws:RequestTag/DataClass": [
"public",
"internal"
]
}
aws:RequestTag/DataClass: PUBLIC− Not Denied May be allowed by another statement