com.pulumi.aws.s3.kotlin.inputs.BucketV2ObjectLockConfigurationRuleDefaultRetentionArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.s3.kotlin.inputs
import com.pulumi.aws.s3.inputs.BucketV2ObjectLockConfigurationRuleDefaultRetentionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property days Number of days that you want to specify for the default retention period.
* @property mode Default Object Lock retention mode you want to apply to new objects placed in this bucket. Valid values are `GOVERNANCE` and `COMPLIANCE`.
* @property years Number of years that you want to specify for the default retention period.
*/
public data class BucketV2ObjectLockConfigurationRuleDefaultRetentionArgs(
public val days: Output? = null,
public val mode: Output,
public val years: Output? = null,
) :
ConvertibleToJava {
override fun toJava(): com.pulumi.aws.s3.inputs.BucketV2ObjectLockConfigurationRuleDefaultRetentionArgs =
com.pulumi.aws.s3.inputs.BucketV2ObjectLockConfigurationRuleDefaultRetentionArgs.builder()
.days(days?.applyValue({ args0 -> args0 }))
.mode(mode.applyValue({ args0 -> args0 }))
.years(years?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BucketV2ObjectLockConfigurationRuleDefaultRetentionArgs].
*/
@PulumiTagMarker
public class BucketV2ObjectLockConfigurationRuleDefaultRetentionArgsBuilder internal constructor() {
private var days: Output? = null
private var mode: Output? = null
private var years: Output? = null
/**
* @param value Number of days that you want to specify for the default retention period.
*/
@JvmName("aoblipxvsqfcxexl")
public suspend fun days(`value`: Output) {
this.days = value
}
/**
* @param value Default Object Lock retention mode you want to apply to new objects placed in this bucket. Valid values are `GOVERNANCE` and `COMPLIANCE`.
*/
@JvmName("rcakclavsmpfujtq")
public suspend fun mode(`value`: Output) {
this.mode = value
}
/**
* @param value Number of years that you want to specify for the default retention period.
*/
@JvmName("nhpmjwlgatqtywke")
public suspend fun years(`value`: Output) {
this.years = value
}
/**
* @param value Number of days that you want to specify for the default retention period.
*/
@JvmName("qdnpwxlstpfbpfks")
public suspend fun days(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.days = mapped
}
/**
* @param value Default Object Lock retention mode you want to apply to new objects placed in this bucket. Valid values are `GOVERNANCE` and `COMPLIANCE`.
*/
@JvmName("nynafeeyirfrooll")
public suspend fun mode(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.mode = mapped
}
/**
* @param value Number of years that you want to specify for the default retention period.
*/
@JvmName("uwxicpleaapyelqr")
public suspend fun years(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.years = mapped
}
internal fun build(): BucketV2ObjectLockConfigurationRuleDefaultRetentionArgs =
BucketV2ObjectLockConfigurationRuleDefaultRetentionArgs(
days = days,
mode = mode ?: throw PulumiNullFieldException("mode"),
years = years,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy