BucketDefaultRetentionArgs

data class BucketDefaultRetentionArgs(val days: Output<Int>? = null, val mode: Output<BucketDefaultRetentionMode>? = null, val years: Output<Int>? = null) : ConvertibleToJava<BucketDefaultRetentionArgs>

The container element for optionally specifying the default Object Lock retention settings for new objects placed in the specified bucket. + The `DefaultRetention` settings require both a mode and a period.

  • The `DefaultRetention` period can be either `Days` or `Years` but you must select one. You cannot specify `Days` and `Years` at the same time.

Constructors

Link copied to clipboard
constructor(days: Output<Int>? = null, mode: Output<BucketDefaultRetentionMode>? = null, years: Output<Int>? = null)

Properties

Link copied to clipboard
val days: Output<Int>? = null

The number of days that you want to specify for the default retention period. If Object Lock is turned on, you must specify `Mode` and specify either `Days` or `Years`.

Link copied to clipboard
val mode: Output<BucketDefaultRetentionMode>? = null

The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. If Object Lock is turned on, you must specify `Mode` and specify either `Days` or `Years`.

Link copied to clipboard
val years: Output<Int>? = null

The number of years that you want to specify for the default retention period. If Object Lock is turned on, you must specify `Mode` and specify either `Days` or `Years`.

Functions

Link copied to clipboard
open override fun toJava(): BucketDefaultRetentionArgs