BucketRetentionPolicy

data class BucketRetentionPolicy(val isLocked: Boolean? = null, val retentionPeriod: Int)

Constructors

Link copied to clipboard
constructor(isLocked: Boolean? = null, retentionPeriod: Int)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val isLocked: Boolean? = null

If set to true, the bucket will be locked and permanently restrict edits to the bucket's retention policy. Caution: Locking a bucket is an irreversible action.

Link copied to clipboard

The period of time, in seconds, that objects in the bucket must be retained and cannot be deleted, overwritten, or archived. The value must be less than 2,147,483,647 seconds.