All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.azure.compute.kotlin.outputs.OrchestratedVirtualMachineScaleSetAutomaticInstanceRepair.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 automatic instance repair be enabled on this Virtual Machine Scale Set? Possible values are `true` and `false`.
 * @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 `30` and `90` minutes. The time duration should be specified in `ISO 8601` format (e.g. `PT30M` to `PT90M`). Defaults to `PT30M`.
 */
public data class OrchestratedVirtualMachineScaleSetAutomaticInstanceRepair(
    public val enabled: Boolean,
    public val gracePeriod: String? = null,
) {
    public companion object {
        public
        fun toKotlin(javaType: com.pulumi.azure.compute.outputs.OrchestratedVirtualMachineScaleSetAutomaticInstanceRepair):
            OrchestratedVirtualMachineScaleSetAutomaticInstanceRepair =
            OrchestratedVirtualMachineScaleSetAutomaticInstanceRepair(
                enabled = javaType.enabled(),
                gracePeriod = javaType.gracePeriod().map({ args0 -> args0 }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy