DefaultRetentionArgs

data class DefaultRetentionArgs(val days: Output<Int>? = null, val mode: Output<Either<String, DefaultRetentionMode>>? = null, val years: Output<Int>? = null) : ConvertibleToJava<DefaultRetentionArgs>

Definition of DefaultRetention

Constructors

Link copied to clipboard
constructor(days: Output<Int>? = null, mode: Output<Either<String, DefaultRetentionMode>>? = 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<Either<String, DefaultRetentionMode>>? = 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(): DefaultRetentionArgs