设置时间范围
最后更新于
DateLessThan
compares a datetime in a request to a datetime in your policy. Datetime comparisons compare down to the second; so any value one second before the date in your policy will match the DateLessThan condition.
To match a request, the context key must exist in the request and must match the datetime in your policy.
You can NOT use policy variables in the value of this operator.
DateLessThan in an Allow Statement
Policy Condition
Request Context
Result
aws:CurrentTime: null
aws:CurrentTime: 2011-05-02T23:59:59Z
aws:CurrentTime: 2011-05-03T00:00:00Z
aws:CurrentTime: 2011-05-03T00:00:01Z
Not AllowedStatement does not apply
AllowedAssuming no explicit Deny elsewhere
Not AllowedStatement does not apply
Not AllowedStatement does not apply