com.pulumi.aws.ec2.kotlin.enums.Tenancy.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.ec2.kotlin.enums
import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress
public enum class Tenancy(
public val javaValue: com.pulumi.aws.ec2.enums.Tenancy,
) : ConvertibleToJava {
Default(com.pulumi.aws.ec2.enums.Tenancy.Default),
Dedicated(com.pulumi.aws.ec2.enums.Tenancy.Dedicated),
;
override fun toJava(): com.pulumi.aws.ec2.enums.Tenancy = javaValue
public companion object {
public fun toKotlin(javaType: com.pulumi.aws.ec2.enums.Tenancy): Tenancy =
Tenancy.values().first { it.javaValue == javaType }
}
}