Skip to content

Commit

Permalink
ARSN-363: add object retention days logic to conditions
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Toozs committed Dec 15, 2023
1 parent 75e4677 commit 473c715
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/policyEvaluator/utils/conditions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,9 @@ export function findConditionKey(
return requestContext.getNeedTagEval() && requestContext.getRequestObjTags()
? getTagKeys(requestContext.getRequestObjTags()!)
: undefined;
// The maximum retention period is 100 years.
case 's3:object-lock-remaining-retention-days':
return requestContext.getObjectLockRetentionDays() || undefined;
default:
return undefined;
}
Expand Down

0 comments on commit 473c715

Please sign in to comment.