Back to all operators
ForAllValues:DateEqualsIfExists
ForAllValues:DateEqualsIfExists
compares a list of datetimes in a request to a list of datetimes in your policy. Datetime comparisons compare down to the second; so for DateEquals to match, the time must match exactly.
To match a request, the context key can be absent, but if it is present, all of the datetimes in the request must match at least one of the datetimes in your policy.
You can NOT use policy variables in the value of this operator.
Warning
As far as we know, ForAllValues:DateEqualsIfExists can never be used — no context keys exist that are an array of datetimes. 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:DateEqualsIfExists in an Allow Statement
| Policy Condition | Request Context | Result |
|---|---|---|
"ForAllValues:DateEqualsIfExists": { | aws:NonExistent: null | ✓ Allowed Assuming no explicit Deny elsewhere |
"ForAllValues:DateEqualsIfExists": { | aws:NonExistent: | − Not Allowed Statement does not apply |
"ForAllValues:DateEqualsIfExists": { | aws:NonExistent: | − Not Allowed Statement does not apply |
"ForAllValues:DateEqualsIfExists": { | aws:NonExistent: | ✓ Allowed Assuming no explicit Deny elsewhere |
"ForAllValues:DateEqualsIfExists": { | aws:NonExistent: | ✓ Allowed Assuming no explicit Deny elsewhere |
"ForAllValues:DateEqualsIfExists": { | aws:NonExistent: | − Not Allowed Statement does not apply |
ForAllValues:DateEqualsIfExists in a Deny Statement
| Policy Condition | Request Context | Result |
|---|---|---|
"ForAllValues:DateEqualsIfExists": { | aws:NonExistent: null | ✕ Denied |
"ForAllValues:DateEqualsIfExists": { | aws:NonExistent: | − Not Denied May be allowed by another statement |
"ForAllValues:DateEqualsIfExists": { | aws:NonExistent: | − Not Denied May be allowed by another statement |
"ForAllValues:DateEqualsIfExists": { | aws:NonExistent: | ✕ Denied |
"ForAllValues:DateEqualsIfExists": { | aws:NonExistent: | ✕ Denied |
"ForAllValues:DateEqualsIfExists": { | aws:NonExistent: | − Not Denied May be allowed by another statement |

