
com.pulumi.azure.servicefabric.kotlin.outputs.ClusterUpgradePolicyHealthPolicy.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.servicefabric.kotlin.outputs
import kotlin.Int
import kotlin.Suppress
/**
*
* @property maxUnhealthyApplicationsPercent Specifies the maximum tolerated percentage of applications that can have aggregated health state of error. If the upgrade exceeds this percentage, the cluster is unhealthy. Defaults to `0`.
* @property maxUnhealthyNodesPercent Specifies the maximum tolerated percentage of nodes that can have aggregated health states of error. If an upgrade exceeds this percentage, the cluster is unhealthy. Defaults to `0`.
*/
public data class ClusterUpgradePolicyHealthPolicy(
public val maxUnhealthyApplicationsPercent: Int? = null,
public val maxUnhealthyNodesPercent: Int? = null,
) {
public companion object {
public
fun toKotlin(javaType: com.pulumi.azure.servicefabric.outputs.ClusterUpgradePolicyHealthPolicy):
ClusterUpgradePolicyHealthPolicy = ClusterUpgradePolicyHealthPolicy(
maxUnhealthyApplicationsPercent = javaType.maxUnhealthyApplicationsPercent().map({ args0 ->
args0
}).orElse(null),
maxUnhealthyNodesPercent = javaType.maxUnhealthyNodesPercent().map({ args0 -> args0 }).orElse(null),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy