com.pulumi.awsnative.s3.kotlin.enums.BucketDefaultRetentionMode.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.enums
import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress
/**
* The default Object Lock retention mode you want to apply to new objects placed in the specified bucket. If Object Lock is turned on, you must specify ``Mode`` and specify either ``Days`` or ``Years``.
*/
public enum class BucketDefaultRetentionMode(
public val javaValue: com.pulumi.awsnative.s3.enums.BucketDefaultRetentionMode,
) : ConvertibleToJava {
Compliance(com.pulumi.awsnative.s3.enums.BucketDefaultRetentionMode.Compliance),
Governance(com.pulumi.awsnative.s3.enums.BucketDefaultRetentionMode.Governance),
;
override fun toJava(): com.pulumi.awsnative.s3.enums.BucketDefaultRetentionMode = javaValue
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.s3.enums.BucketDefaultRetentionMode): BucketDefaultRetentionMode =
BucketDefaultRetentionMode.values().first { it.javaValue == javaType }
}
}