com.pulumi.aws.s3.kotlin.inputs.BucketV2VersioningArgs.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.BucketV2VersioningArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property enabled Enable versioning. Once you version-enable a bucket, it can never return to an unversioned state. You can, however, suspend versioning on that bucket.
* @property mfaDelete Enable MFA delete for either `Change the versioning state of your bucket` or `Permanently delete an object version`. Default is `false`. This cannot be used to toggle this setting but is available to allow managed buckets to reflect the state in AWS
*/
public data class BucketV2VersioningArgs(
public val enabled: Output? = null,
public val mfaDelete: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.s3.inputs.BucketV2VersioningArgs =
com.pulumi.aws.s3.inputs.BucketV2VersioningArgs.builder()
.enabled(enabled?.applyValue({ args0 -> args0 }))
.mfaDelete(mfaDelete?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BucketV2VersioningArgs].
*/
@PulumiTagMarker
public class BucketV2VersioningArgsBuilder internal constructor() {
private var enabled: Output? = null
private var mfaDelete: Output? = null
/**
* @param value Enable versioning. Once you version-enable a bucket, it can never return to an unversioned state. You can, however, suspend versioning on that bucket.
*/
@JvmName("ijoxauutfwpemhfp")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value Enable MFA delete for either `Change the versioning state of your bucket` or `Permanently delete an object version`. Default is `false`. This cannot be used to toggle this setting but is available to allow managed buckets to reflect the state in AWS
*/
@JvmName("gnvrnjxqdmhtsdfh")
public suspend fun mfaDelete(`value`: Output) {
this.mfaDelete = value
}
/**
* @param value Enable versioning. Once you version-enable a bucket, it can never return to an unversioned state. You can, however, suspend versioning on that bucket.
*/
@JvmName("nuimtyduqovylcmg")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value Enable MFA delete for either `Change the versioning state of your bucket` or `Permanently delete an object version`. Default is `false`. This cannot be used to toggle this setting but is available to allow managed buckets to reflect the state in AWS
*/
@JvmName("dwaovmthcxbteowh")
public suspend fun mfaDelete(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.mfaDelete = mapped
}
internal fun build(): BucketV2VersioningArgs = BucketV2VersioningArgs(
enabled = enabled,
mfaDelete = mfaDelete,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy