com.pulumi.azure.compute.kotlin.inputs.WindowsVirtualMachineScaleSetTerminationNotificationArgs.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.WindowsVirtualMachineScaleSetTerminationNotificationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property enabled Should the termination notification be enabled on this Virtual Machine Scale Set?
* @property timeout Length of time (in minutes, between 5 and 15) a notification to be sent to the VM on the instance metadata server till the VM gets deleted. The time duration should be specified in ISO 8601 format. Defaults to `PT5M`.
* > **NOTE:** For more information about the termination notification, please [refer to this doc](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-terminate-notification).
*/
public data class WindowsVirtualMachineScaleSetTerminationNotificationArgs(
public val enabled: Output,
public val timeout: Output? = null,
) :
ConvertibleToJava {
override fun toJava():
com.pulumi.azure.compute.inputs.WindowsVirtualMachineScaleSetTerminationNotificationArgs =
com.pulumi.azure.compute.inputs.WindowsVirtualMachineScaleSetTerminationNotificationArgs.builder()
.enabled(enabled.applyValue({ args0 -> args0 }))
.timeout(timeout?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [WindowsVirtualMachineScaleSetTerminationNotificationArgs].
*/
@PulumiTagMarker
public class WindowsVirtualMachineScaleSetTerminationNotificationArgsBuilder internal constructor() {
private var enabled: Output? = null
private var timeout: Output? = null
/**
* @param value Should the termination notification be enabled on this Virtual Machine Scale Set?
*/
@JvmName("reoscejsjvctirbs")
public suspend fun enabled(`value`: Output) {
this.enabled = value
}
/**
* @param value Length of time (in minutes, between 5 and 15) a notification to be sent to the VM on the instance metadata server till the VM gets deleted. The time duration should be specified in ISO 8601 format. Defaults to `PT5M`.
* > **NOTE:** For more information about the termination notification, please [refer to this doc](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-terminate-notification).
*/
@JvmName("nlakjrdrtleljtvu")
public suspend fun timeout(`value`: Output) {
this.timeout = value
}
/**
* @param value Should the termination notification be enabled on this Virtual Machine Scale Set?
*/
@JvmName("ngsmvmcvwwagdhhp")
public suspend fun enabled(`value`: Boolean) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.enabled = mapped
}
/**
* @param value Length of time (in minutes, between 5 and 15) a notification to be sent to the VM on the instance metadata server till the VM gets deleted. The time duration should be specified in ISO 8601 format. Defaults to `PT5M`.
* > **NOTE:** For more information about the termination notification, please [refer to this doc](https://docs.microsoft.com/azure/virtual-machine-scale-sets/virtual-machine-scale-sets-terminate-notification).
*/
@JvmName("bpoppyefsvijvtrw")
public suspend fun timeout(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.timeout = mapped
}
internal fun build(): WindowsVirtualMachineScaleSetTerminationNotificationArgs =
WindowsVirtualMachineScaleSetTerminationNotificationArgs(
enabled = enabled ?: throw PulumiNullFieldException("enabled"),
timeout = timeout,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy