Null

Null

Null checks if a context key is absent in the request. If the policy value is "true", the key must not exist in the request. If the policy value is "false", the key must exist in the request. Yes, it's that not-unconfusing.

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

Null in an Allow Statement

Given the Policy Condition:
"Null": {
  "aws:TokenIssueTime": "true"
}
When the Request Context has:
aws:TokenIssueTime: null
Then the result is:
Allowed Allowed Assuming no explicit Deny elsewhere
Given the Policy Condition:
"Null": {
  "aws:TokenIssueTime": "true"
}
When the Request Context has:
aws:TokenIssueTime:
   2011-05-03T00:00:00Z
Then the result is:
Not Allowed Not Allowed Statement does not apply
Given the Policy Condition:
"Null": {
  "aws:TokenIssueTime": "false"
}
When the Request Context has:
aws:TokenIssueTime: null
Then the result is:
Not Allowed Not Allowed Statement does not apply
Given the Policy Condition:
"Null": {
  "aws:TokenIssueTime": "false"
}
When the Request Context has:
aws:TokenIssueTime:
   2011-05-03T00:00:00Z
Then the result is:
Allowed Allowed Assuming no explicit Deny elsewhere

Null in a Deny Statement

Given the Policy Condition:
"Null": {
  "aws:TokenIssueTime": "true"
}
When the Request Context has:
aws:TokenIssueTime: null
Then the result is:
Denied Denied
Given the Policy Condition:
"Null": {
  "aws:TokenIssueTime": "true"
}
When the Request Context has:
aws:TokenIssueTime:
   2011-05-03T00:00:00Z
Then the result is:
Not Denied Not Denied May be allowed by another statement
Given the Policy Condition:
"Null": {
  "aws:TokenIssueTime": "false"
}
When the Request Context has:
aws:TokenIssueTime: null
Then the result is:
Not Denied Not Denied May be allowed by another statement
Given the Policy Condition:
"Null": {
  "aws:TokenIssueTime": "false"
}
When the Request Context has:
aws:TokenIssueTime:
   2011-05-03T00:00:00Z
Then the result is:
Denied Denied