![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.gcp.networkservices.kotlin.inputs.ServiceLbPoliciesAutoCapacityDrainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-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.gcp.networkservices.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networkservices.inputs.ServiceLbPoliciesAutoCapacityDrainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property enable Optional. If set to 'True', an unhealthy MIG/NEG will be set as drained. - An MIG/NEG is considered unhealthy if less than 25% of the instances/endpoints in the MIG/NEG are healthy. - This option will never result in draining more than 50% of the configured IGs/NEGs for the Backend Service.
*/
public data class ServiceLbPoliciesAutoCapacityDrainArgs(
public val enable: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.networkservices.inputs.ServiceLbPoliciesAutoCapacityDrainArgs =
com.pulumi.gcp.networkservices.inputs.ServiceLbPoliciesAutoCapacityDrainArgs.builder()
.enable(enable?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServiceLbPoliciesAutoCapacityDrainArgs].
*/
@PulumiTagMarker
public class ServiceLbPoliciesAutoCapacityDrainArgsBuilder internal constructor() {
private var enable: Output? = null
/**
* @param value Optional. If set to 'True', an unhealthy MIG/NEG will be set as drained. - An MIG/NEG is considered unhealthy if less than 25% of the instances/endpoints in the MIG/NEG are healthy. - This option will never result in draining more than 50% of the configured IGs/NEGs for the Backend Service.
*/
@JvmName("fwccwyytqmhnclyw")
public suspend fun enable(`value`: Output) {
this.enable = value
}
/**
* @param value Optional. If set to 'True', an unhealthy MIG/NEG will be set as drained. - An MIG/NEG is considered unhealthy if less than 25% of the instances/endpoints in the MIG/NEG are healthy. - This option will never result in draining more than 50% of the configured IGs/NEGs for the Backend Service.
*/
@JvmName("yarefgbsgtjvdquv")
public suspend fun enable(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enable = mapped
}
internal fun build(): ServiceLbPoliciesAutoCapacityDrainArgs =
ServiceLbPoliciesAutoCapacityDrainArgs(
enable = enable,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy