![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azure.compute.kotlin.outputs.WindowsVirtualMachineScaleSetAutomaticInstanceRepair.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.outputs
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
/**
*
* @property action The repair action that will be used for repairing unhealthy virtual machines in the scale set. Possible values include `Replace`, `Restart`, `Reimage`.
* > **Note:** Once the `action` field has been set it will always return the last value it was assigned if it is removed from the configuration file.
* > **Note:** If you wish to update the repair `action` of an existing `automatic_instance_repair` policy, you must first `disable` the `automatic_instance_repair` policy before you can re-enable the `automatic_instance_repair` policy with the new repair `action` defined.
* @property enabled Should the automatic instance repair be enabled on this Virtual Machine Scale Set?
* @property gracePeriod Amount of time for which automatic repairs will be delayed. The grace period starts right after the VM is found unhealthy. Possible values are between `10` and `90` minutes. The time duration should be specified in `ISO 8601` format (e.g. `PT10M` to `PT90M`).
* > **Note:** Once the `grace_period` field has been set it will always return the last value it was assigned if it is removed from the configuration file.
*/
public data class WindowsVirtualMachineScaleSetAutomaticInstanceRepair(
public val action: String? = null,
public val enabled: Boolean,
public val gracePeriod: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.compute.outputs.WindowsVirtualMachineScaleSetAutomaticInstanceRepair): WindowsVirtualMachineScaleSetAutomaticInstanceRepair =
WindowsVirtualMachineScaleSetAutomaticInstanceRepair(
action = javaType.action().map({ args0 -> args0 }).orElse(null),
enabled = javaType.enabled(),
gracePeriod = javaType.gracePeriod().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy