BucketObjectLockConfigurationRuleDefaultRetentionArgs

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

Constructors

constructor(days: Output<Int>? = null, mode: Output<String>, 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.

Link copied to clipboard
val mode: Output<String>

The default Object Lock retention mode you want to apply to new objects placed in this bucket. Valid values are GOVERNANCE and COMPLIANCE.

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

The number of years that you want to specify for the default retention period. Either days or years must be specified, but not both.

Functions

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