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

com.pulumi.azure.servicefabric.kotlin.inputs.ClusterUpgradePolicyDeltaHealthPolicyArgs.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.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.servicefabric.kotlin.inputs

import com.pulumi.azure.servicefabric.inputs.ClusterUpgradePolicyDeltaHealthPolicyArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property maxDeltaUnhealthyApplicationsPercent Specifies the maximum tolerated percentage of delta unhealthy applications that can have aggregated health states of error. If the current unhealthy applications do not respect the percentage relative to the state at the beginning of the upgrade, the cluster is unhealthy. Defaults to `0`.
 * @property maxDeltaUnhealthyNodesPercent Specifies the maximum tolerated percentage of delta unhealthy nodes that can have aggregated health states of error. If the current unhealthy nodes do not respect the percentage relative to the state at the beginning of the upgrade, the cluster is unhealthy. Defaults to `0`.
 * @property maxUpgradeDomainDeltaUnhealthyNodesPercent Specifies the maximum tolerated percentage of upgrade domain delta unhealthy nodes that can have aggregated health state of error. If there is any upgrade domain where the current unhealthy nodes do not respect the percentage relative to the state at the beginning of the upgrade, the cluster is unhealthy. Defaults to `0`.
 */
public data class ClusterUpgradePolicyDeltaHealthPolicyArgs(
    public val maxDeltaUnhealthyApplicationsPercent: Output? = null,
    public val maxDeltaUnhealthyNodesPercent: Output? = null,
    public val maxUpgradeDomainDeltaUnhealthyNodesPercent: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.servicefabric.inputs.ClusterUpgradePolicyDeltaHealthPolicyArgs =
        com.pulumi.azure.servicefabric.inputs.ClusterUpgradePolicyDeltaHealthPolicyArgs.builder()
            .maxDeltaUnhealthyApplicationsPercent(
                maxDeltaUnhealthyApplicationsPercent?.applyValue({ args0 ->
                    args0
                }),
            )
            .maxDeltaUnhealthyNodesPercent(maxDeltaUnhealthyNodesPercent?.applyValue({ args0 -> args0 }))
            .maxUpgradeDomainDeltaUnhealthyNodesPercent(
                maxUpgradeDomainDeltaUnhealthyNodesPercent?.applyValue({ args0 ->
                    args0
                }),
            ).build()
}

/**
 * Builder for [ClusterUpgradePolicyDeltaHealthPolicyArgs].
 */
@PulumiTagMarker
public class ClusterUpgradePolicyDeltaHealthPolicyArgsBuilder internal constructor() {
    private var maxDeltaUnhealthyApplicationsPercent: Output? = null

    private var maxDeltaUnhealthyNodesPercent: Output? = null

    private var maxUpgradeDomainDeltaUnhealthyNodesPercent: Output? = null

    /**
     * @param value Specifies the maximum tolerated percentage of delta unhealthy applications that can have aggregated health states of error. If the current unhealthy applications do not respect the percentage relative to the state at the beginning of the upgrade, the cluster is unhealthy. Defaults to `0`.
     */
    @JvmName("yugqmdvnrgjbdcvg")
    public suspend fun maxDeltaUnhealthyApplicationsPercent(`value`: Output) {
        this.maxDeltaUnhealthyApplicationsPercent = value
    }

    /**
     * @param value Specifies the maximum tolerated percentage of delta unhealthy nodes that can have aggregated health states of error. If the current unhealthy nodes do not respect the percentage relative to the state at the beginning of the upgrade, the cluster is unhealthy. Defaults to `0`.
     */
    @JvmName("nngtsumcsowhoihs")
    public suspend fun maxDeltaUnhealthyNodesPercent(`value`: Output) {
        this.maxDeltaUnhealthyNodesPercent = value
    }

    /**
     * @param value Specifies the maximum tolerated percentage of upgrade domain delta unhealthy nodes that can have aggregated health state of error. If there is any upgrade domain where the current unhealthy nodes do not respect the percentage relative to the state at the beginning of the upgrade, the cluster is unhealthy. Defaults to `0`.
     */
    @JvmName("jcllgaitmyybicrp")
    public suspend fun maxUpgradeDomainDeltaUnhealthyNodesPercent(`value`: Output) {
        this.maxUpgradeDomainDeltaUnhealthyNodesPercent = value
    }

    /**
     * @param value Specifies the maximum tolerated percentage of delta unhealthy applications that can have aggregated health states of error. If the current unhealthy applications do not respect the percentage relative to the state at the beginning of the upgrade, the cluster is unhealthy. Defaults to `0`.
     */
    @JvmName("ukgieuvwuscthpac")
    public suspend fun maxDeltaUnhealthyApplicationsPercent(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxDeltaUnhealthyApplicationsPercent = mapped
    }

    /**
     * @param value Specifies the maximum tolerated percentage of delta unhealthy nodes that can have aggregated health states of error. If the current unhealthy nodes do not respect the percentage relative to the state at the beginning of the upgrade, the cluster is unhealthy. Defaults to `0`.
     */
    @JvmName("kpdydhnyqxaslodl")
    public suspend fun maxDeltaUnhealthyNodesPercent(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxDeltaUnhealthyNodesPercent = mapped
    }

    /**
     * @param value Specifies the maximum tolerated percentage of upgrade domain delta unhealthy nodes that can have aggregated health state of error. If there is any upgrade domain where the current unhealthy nodes do not respect the percentage relative to the state at the beginning of the upgrade, the cluster is unhealthy. Defaults to `0`.
     */
    @JvmName("fgyqipdseunvpdxl")
    public suspend fun maxUpgradeDomainDeltaUnhealthyNodesPercent(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maxUpgradeDomainDeltaUnhealthyNodesPercent = mapped
    }

    internal fun build(): ClusterUpgradePolicyDeltaHealthPolicyArgs =
        ClusterUpgradePolicyDeltaHealthPolicyArgs(
            maxDeltaUnhealthyApplicationsPercent = maxDeltaUnhealthyApplicationsPercent,
            maxDeltaUnhealthyNodesPercent = maxDeltaUnhealthyNodesPercent,
            maxUpgradeDomainDeltaUnhealthyNodesPercent = maxUpgradeDomainDeltaUnhealthyNodesPercent,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy