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

com.pulumi.gcp.networkservices.kotlin.inputs.ServiceLbPoliciesFailoverConfigArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.networkservices.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networkservices.inputs.ServiceLbPoliciesFailoverConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property failoverHealthThreshold Optional. The percentage threshold that a load balancer will begin to send traffic to failover backends. If the percentage of endpoints in a MIG/NEG is smaller than this value, traffic would be sent to failover backends if possible. This field should be set to a value between 1 and 99. The default value is 50 for Global external HTTP(S) load balancer (classic) and Proxyless service mesh, and 70 for others.
 */
public data class ServiceLbPoliciesFailoverConfigArgs(
    public val failoverHealthThreshold: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.networkservices.inputs.ServiceLbPoliciesFailoverConfigArgs =
        com.pulumi.gcp.networkservices.inputs.ServiceLbPoliciesFailoverConfigArgs.builder()
            .failoverHealthThreshold(failoverHealthThreshold.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ServiceLbPoliciesFailoverConfigArgs].
 */
@PulumiTagMarker
public class ServiceLbPoliciesFailoverConfigArgsBuilder internal constructor() {
    private var failoverHealthThreshold: Output? = null

    /**
     * @param value Optional. The percentage threshold that a load balancer will begin to send traffic to failover backends. If the percentage of endpoints in a MIG/NEG is smaller than this value, traffic would be sent to failover backends if possible. This field should be set to a value between 1 and 99. The default value is 50 for Global external HTTP(S) load balancer (classic) and Proxyless service mesh, and 70 for others.
     */
    @JvmName("wgpvbqoekiqjbfum")
    public suspend fun failoverHealthThreshold(`value`: Output) {
        this.failoverHealthThreshold = value
    }

    /**
     * @param value Optional. The percentage threshold that a load balancer will begin to send traffic to failover backends. If the percentage of endpoints in a MIG/NEG is smaller than this value, traffic would be sent to failover backends if possible. This field should be set to a value between 1 and 99. The default value is 50 for Global external HTTP(S) load balancer (classic) and Proxyless service mesh, and 70 for others.
     */
    @JvmName("lleyngaryjricdux")
    public suspend fun failoverHealthThreshold(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.failoverHealthThreshold = mapped
    }

    internal fun build(): ServiceLbPoliciesFailoverConfigArgs = ServiceLbPoliciesFailoverConfigArgs(
        failoverHealthThreshold = failoverHealthThreshold ?: throw
            PulumiNullFieldException("failoverHealthThreshold"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy