com.pulumi.azure.compute.kotlin.outputs.WindowsVirtualMachineScaleSetRollingUpgradePolicy.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.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @property crossZoneUpgradesEnabled Should the Virtual Machine Scale Set ignore the Azure Zone boundaries when constructing upgrade batches? Possible values are `true` or `false`.
* @property maxBatchInstancePercent The maximum percent of total virtual machine instances that will be upgraded simultaneously by the rolling upgrade in one batch. As this is a maximum, unhealthy instances in previous or future batches can cause the percentage of instances in a batch to decrease to ensure higher reliability.
* @property maxUnhealthyInstancePercent The maximum percentage of the total virtual machine instances in the scale set that can be simultaneously unhealthy, either as a result of being upgraded, or by being found in an unhealthy state by the virtual machine health checks before the rolling upgrade aborts. This constraint will be checked prior to starting any batch.
* @property maxUnhealthyUpgradedInstancePercent The maximum percentage of upgraded virtual machine instances that can be found to be in an unhealthy state. This check will happen after each batch is upgraded. If this percentage is ever exceeded, the rolling update aborts.
* @property maximumSurgeInstancesEnabled Create new virtual machines to upgrade the scale set, rather than updating the existing virtual machines. Existing virtual machines will be deleted once the new virtual machines are created for each batch. Possible values are `true` or `false`.
* > **NOTE:** `overprovision` must be set to `false` when `maximum_surge_instances_enabled` is specified.
* @property pauseTimeBetweenBatches The wait time between completing the update for all virtual machines in one batch and starting the next batch. The time duration should be specified in ISO 8601 format.
* @property prioritizeUnhealthyInstancesEnabled Upgrade all unhealthy instances in a scale set before any healthy instances. Possible values are `true` or `false`.
*/
public data class WindowsVirtualMachineScaleSetRollingUpgradePolicy(
public val crossZoneUpgradesEnabled: Boolean? = null,
public val maxBatchInstancePercent: Int,
public val maxUnhealthyInstancePercent: Int,
public val maxUnhealthyUpgradedInstancePercent: Int,
public val maximumSurgeInstancesEnabled: Boolean? = null,
public val pauseTimeBetweenBatches: String,
public val prioritizeUnhealthyInstancesEnabled: Boolean? = null,
) {
public companion object {
public
fun toKotlin(javaType: com.pulumi.azure.compute.outputs.WindowsVirtualMachineScaleSetRollingUpgradePolicy):
WindowsVirtualMachineScaleSetRollingUpgradePolicy =
WindowsVirtualMachineScaleSetRollingUpgradePolicy(
crossZoneUpgradesEnabled = javaType.crossZoneUpgradesEnabled().map({ args0 -> args0 }).orElse(null),
maxBatchInstancePercent = javaType.maxBatchInstancePercent(),
maxUnhealthyInstancePercent = javaType.maxUnhealthyInstancePercent(),
maxUnhealthyUpgradedInstancePercent = javaType.maxUnhealthyUpgradedInstancePercent(),
maximumSurgeInstancesEnabled = javaType.maximumSurgeInstancesEnabled().map({ args0 ->
args0
}).orElse(null),
pauseTimeBetweenBatches = javaType.pauseTimeBetweenBatches(),
prioritizeUnhealthyInstancesEnabled = javaType.prioritizeUnhealthyInstancesEnabled().map({ args0 ->
args0
}).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy