Const
Named constants for the file-level Object Lock retention mode.
Readonly
Locked: cannot be deleted or modified until retainUntilTimestamp, even by the account owner.
retainUntilTimestamp
Locked: can be shortened by callers holding the bypassGovernance capability.
bypassGovernance
await object.setRetention(fileId, { mode: RetentionMode.Compliance, retainUntilTimestamp: Date.now() + 86_400_000,}) Copy
await object.setRetention(fileId, { mode: RetentionMode.Compliance, retainUntilTimestamp: Date.now() + 86_400_000,})
Named constants for the file-level Object Lock retention mode.