com.pulumi.azure.compute.kotlin.outputs.OrchestratedVirtualMachineScaleSetTerminationNotification.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.compute.kotlin.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
*
* @property enabled Should the termination notification be enabled on this Virtual Machine Scale Set? Possible values `true` or `false`.
* @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`.
*/
public data class OrchestratedVirtualMachineScaleSetTerminationNotification(
public val enabled: Boolean,
public val timeout: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.compute.outputs.OrchestratedVirtualMachineScaleSetTerminationNotification): OrchestratedVirtualMachineScaleSetTerminationNotification =
OrchestratedVirtualMachineScaleSetTerminationNotification(
enabled = javaType.enabled(),
timeout = javaType.timeout().map({ args0 -> args0 }).orElse(null),
)
}
}