
com.pulumi.awsnative.s3.kotlin.inputs.BucketVersioningConfigurationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.awsnative.s3.kotlin.inputs
import com.pulumi.awsnative.s3.inputs.BucketVersioningConfigurationArgs.builder
import com.pulumi.awsnative.s3.kotlin.enums.BucketVersioningConfigurationStatus
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.Suppress
import kotlin.jvm.JvmName
/**
* Describes the versioning state of an Amazon S3 bucket. For more information, see [PUT Bucket versioning](https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTVersioningStatus.html) in the *Amazon S3 API Reference*.
* @property status The versioning state of the bucket.
*/
public data class BucketVersioningConfigurationArgs(
public val status: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.s3.inputs.BucketVersioningConfigurationArgs =
com.pulumi.awsnative.s3.inputs.BucketVersioningConfigurationArgs.builder()
.status(status.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [BucketVersioningConfigurationArgs].
*/
@PulumiTagMarker
public class BucketVersioningConfigurationArgsBuilder internal constructor() {
private var status: Output? = null
/**
* @param value The versioning state of the bucket.
*/
@JvmName("cojknchgarixwvmr")
public suspend fun status(`value`: Output) {
this.status = value
}
/**
* @param value The versioning state of the bucket.
*/
@JvmName("jwieqhdlygkuqxld")
public suspend fun status(`value`: BucketVersioningConfigurationStatus) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.status = mapped
}
internal fun build(): BucketVersioningConfigurationArgs = BucketVersioningConfigurationArgs(
status = status ?: throw PulumiNullFieldException("status"),
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy