com.pulumi.awsnative.ec2.kotlin.enums.SpotFleetRequestConfigDataInstanceInterruptionBehavior.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
/**
* The behavior when a Spot Instance is interrupted. The default is `terminate` .
*/
public enum class SpotFleetRequestConfigDataInstanceInterruptionBehavior(
public val javaValue: com.pulumi.awsnative.ec2.enums.SpotFleetRequestConfigDataInstanceInterruptionBehavior,
) :
ConvertibleToJava {
Hibernate(com.pulumi.awsnative.ec2.enums.SpotFleetRequestConfigDataInstanceInterruptionBehavior.Hibernate),
Stop(com.pulumi.awsnative.ec2.enums.SpotFleetRequestConfigDataInstanceInterruptionBehavior.Stop),
Terminate(com.pulumi.awsnative.ec2.enums.SpotFleetRequestConfigDataInstanceInterruptionBehavior.Terminate),
;
override fun toJava(): com.pulumi.awsnative.ec2.enums.SpotFleetRequestConfigDataInstanceInterruptionBehavior =
javaValue
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ec2.enums.SpotFleetRequestConfigDataInstanceInterruptionBehavior): SpotFleetRequestConfigDataInstanceInterruptionBehavior =
SpotFleetRequestConfigDataInstanceInterruptionBehavior.values().first { it.javaValue == javaType }
}
}