com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineScaleSetSpotRestoreArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-kotlin Show documentation
Show all versions of pulumi-azure-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.azure.compute.kotlin.inputs
import com.pulumi.azure.compute.inputs.WindowsVirtualMachineScaleSetSpotRestoreArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property enabled Should the Spot-Try-Restore feature be enabled? The Spot-Try-Restore feature will attempt to automatically restore the evicted Spot Virtual Machine Scale Set VM instances opportunistically based on capacity availability and pricing constraints. Possible values are `true` or `false`. Defaults to `false`. Changing this forces a new resource to be created.
* @property timeout The length of time that the Virtual Machine Scale Set should attempt to restore the Spot VM instances which have been evicted. The time duration should be between `15` minutes and `120` minutes (inclusive). The time duration should be specified in the ISO 8601 format. Defaults to `PT1H`. Changing this forces a new resource to be created.
*/
public data class WindowsVirtualMachineScaleSetSpotRestoreArgs(
public val enabled: Output? = null,
public val timeout: Output? = null,
) : ConvertibleToJava {
override fun toJava():
com.pulumi.azure.compute.inputs.WindowsVirtualMachineScaleSetSpotRestoreArgs =
com.pulumi.azure.compute.inputs.WindowsVirtualMachineScaleSetSpotRestoreArgs.builder()
.enabled(enabled?.applyValue({ args0 -> args0 }))
.timeout(timeout?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WindowsVirtualMachineScaleSetSpotRestoreArgs].
*/
@PulumiTagMarker
public class WindowsVirtualMachineScaleSetSpotRestoreArgsBuilder internal constructor() {
private var enabled: Output? = null
private var timeout: Output? = null
/**
* @param value Should the Spot-Try-Restore feature be enabled? The Spot-Try-Restore feature will attempt to automatically restore the evicted Spot Virtual Machine Scale Set VM instances opportunistically based on capacity availability and pricing constraints. Possible values are `true` or `false`. Defaults to `false`. Changing this forces a new resource to be created.
*/
@JvmName("sybabhmhgucgldmq")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value The length of time that the Virtual Machine Scale Set should attempt to restore the Spot VM instances which have been evicted. The time duration should be between `15` minutes and `120` minutes (inclusive). The time duration should be specified in the ISO 8601 format. Defaults to `PT1H`. Changing this forces a new resource to be created.
*/
@JvmName("gmgdljaoypeihefh")
public suspend fun timeout(`value`: Output) {
this.timeout = value
}
/**
* @param value Should the Spot-Try-Restore feature be enabled? The Spot-Try-Restore feature will attempt to automatically restore the evicted Spot Virtual Machine Scale Set VM instances opportunistically based on capacity availability and pricing constraints. Possible values are `true` or `false`. Defaults to `false`. Changing this forces a new resource to be created.
*/
@JvmName("ybumtfygxwearnbg")
public suspend fun enabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value The length of time that the Virtual Machine Scale Set should attempt to restore the Spot VM instances which have been evicted. The time duration should be between `15` minutes and `120` minutes (inclusive). The time duration should be specified in the ISO 8601 format. Defaults to `PT1H`. Changing this forces a new resource to be created.
*/
@JvmName("hljbgnisusosnqyl")
public suspend fun timeout(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.timeout = mapped
}
internal fun build(): WindowsVirtualMachineScaleSetSpotRestoreArgs =
WindowsVirtualMachineScaleSetSpotRestoreArgs(
enabled = enabled,
timeout = timeout,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy