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

com.pulumi.azure.servicefabric.kotlin.outputs.ClusterUpgradePolicyHealthPolicy.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 6.21.0.0
Show newest version
@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