
com.pulumi.azure.compute.kotlin.outputs.ScaleSetRollingUpgradePolicy.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.compute.kotlin.outputs
import kotlin.Int
import kotlin.String
import kotlin.Suppress
/**
*
* @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. Defaults to `20`.
* @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. Defaults to `20`.
* @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. Defaults to `20`.
* @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 for duration (). Defaults to `PT0S` seconds represented as `PT0S`.
*/
public data class ScaleSetRollingUpgradePolicy(
public val maxBatchInstancePercent: Int? = null,
public val maxUnhealthyInstancePercent: Int? = null,
public val maxUnhealthyUpgradedInstancePercent: Int? = null,
public val pauseTimeBetweenBatches: String? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.azure.compute.outputs.ScaleSetRollingUpgradePolicy): ScaleSetRollingUpgradePolicy = ScaleSetRollingUpgradePolicy(
maxBatchInstancePercent = javaType.maxBatchInstancePercent().map({ args0 -> args0 }).orElse(null),
maxUnhealthyInstancePercent = javaType.maxUnhealthyInstancePercent().map({ args0 ->
args0
}).orElse(null),
maxUnhealthyUpgradedInstancePercent = javaType.maxUnhealthyUpgradedInstancePercent().map({ args0 ->
args0
}).orElse(null),
pauseTimeBetweenBatches = javaType.pauseTimeBetweenBatches().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy