All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.aws.s3.kotlin.inputs.BucketObjectLockConfigurationV2RuleDefaultRetentionArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.s3.kotlin.inputs

import com.pulumi.aws.s3.inputs.BucketObjectLockConfigurationV2RuleDefaultRetentionArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
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 the specified bucket. Valid values: `COMPLIANCE`, `GOVERNANCE`.
 * @property years Number of years that you want to specify for the default retention period.
 */
public data class BucketObjectLockConfigurationV2RuleDefaultRetentionArgs(
    public val days: Output? = null,
    public val mode: Output? = null,
    public val years: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.s3.inputs.BucketObjectLockConfigurationV2RuleDefaultRetentionArgs =
        com.pulumi.aws.s3.inputs.BucketObjectLockConfigurationV2RuleDefaultRetentionArgs.builder()
            .days(days?.applyValue({ args0 -> args0 }))
            .mode(mode?.applyValue({ args0 -> args0 }))
            .years(years?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BucketObjectLockConfigurationV2RuleDefaultRetentionArgs].
 */
@PulumiTagMarker
public class BucketObjectLockConfigurationV2RuleDefaultRetentionArgsBuilder 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("bcdqusufypfwyusf")
    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 the specified bucket. Valid values: `COMPLIANCE`, `GOVERNANCE`.
     */
    @JvmName("rsgpabayippspbgj")
    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("reurxvtjupeqkxsf")
    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("caqedmdoqotqroox")
    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 the specified bucket. Valid values: `COMPLIANCE`, `GOVERNANCE`.
     */
    @JvmName("dcnpnmygynntekgc")
    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("woulcjyvsshrphhq")
    public suspend fun years(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.years = mapped
    }

    internal fun build(): BucketObjectLockConfigurationV2RuleDefaultRetentionArgs =
        BucketObjectLockConfigurationV2RuleDefaultRetentionArgs(
            days = days,
            mode = mode,
            years = years,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy