
com.pulumi.awsnative.ec2.kotlin.enums.InstanceAffinity.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.ec2.kotlin.enums
import com.pulumi.kotlin.ConvertibleToJava
import kotlin.Suppress
/**
* Indicates whether the instance is associated with a dedicated host. If you want the instance to always restart on the same host on which it was launched, specify host. If you want the instance to restart on any available host, but try to launch onto the last host it ran on (on a best-effort basis), specify default.
*/
public enum class InstanceAffinity(
public val javaValue: com.pulumi.awsnative.ec2.enums.InstanceAffinity,
) : ConvertibleToJava {
Default(com.pulumi.awsnative.ec2.enums.InstanceAffinity.Default),
Host(com.pulumi.awsnative.ec2.enums.InstanceAffinity.Host),
;
override fun toJava(): com.pulumi.awsnative.ec2.enums.InstanceAffinity = javaValue
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ec2.enums.InstanceAffinity): InstanceAffinity = InstanceAffinity.values().first { it.javaValue == javaType }
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy