I know I can allow date based access to S3 files, however is it possible to allow access to certain files in S3 by the age of the object itself?
E.g. something like:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Action": "service-prefix:action-name",
"Resource": "*",
"Condition": {
"DateGreaterThan": {"aws:last_modified": "2020-04-01T00:00:00Z"},
"DateLessThan": {"aws:last_modified": "2020-06-30T23:59:59Z"}
}
}
]
}