com.pulumi.aws.alb.kotlin.inputs.TargetGroupTargetFailoverArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.alb.kotlin.inputs
import com.pulumi.aws.alb.inputs.TargetGroupTargetFailoverArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property onDeregistration Indicates how the GWLB handles existing flows when a target is deregistered. Possible values are `rebalance` and `no_rebalance`. Must match the attribute value set for `on_unhealthy`. Default: `no_rebalance`.
* @property onUnhealthy Indicates how the GWLB handles existing flows when a target is unhealthy. Possible values are `rebalance` and `no_rebalance`. Must match the attribute value set for `on_deregistration`. Default: `no_rebalance`.
*/
public data class TargetGroupTargetFailoverArgs(
public val onDeregistration: Output,
public val onUnhealthy: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.alb.inputs.TargetGroupTargetFailoverArgs =
com.pulumi.aws.alb.inputs.TargetGroupTargetFailoverArgs.builder()
.onDeregistration(onDeregistration.applyValue({ args0 -> args0 }))
.onUnhealthy(onUnhealthy.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TargetGroupTargetFailoverArgs].
*/
@PulumiTagMarker
public class TargetGroupTargetFailoverArgsBuilder internal constructor() {
private var onDeregistration: Output? = null
private var onUnhealthy: Output? = null
/**
* @param value Indicates how the GWLB handles existing flows when a target is deregistered. Possible values are `rebalance` and `no_rebalance`. Must match the attribute value set for `on_unhealthy`. Default: `no_rebalance`.
*/
@JvmName("gbnwitoblwuurjao")
public suspend fun onDeregistration(`value`: Output) {
this.onDeregistration = value
}
/**
* @param value Indicates how the GWLB handles existing flows when a target is unhealthy. Possible values are `rebalance` and `no_rebalance`. Must match the attribute value set for `on_deregistration`. Default: `no_rebalance`.
*/
@JvmName("mjjfgutnuklqnxjb")
public suspend fun onUnhealthy(`value`: Output) {
this.onUnhealthy = value
}
/**
* @param value Indicates how the GWLB handles existing flows when a target is deregistered. Possible values are `rebalance` and `no_rebalance`. Must match the attribute value set for `on_unhealthy`. Default: `no_rebalance`.
*/
@JvmName("isfyoeerpqtxxpcb")
public suspend fun onDeregistration(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.onDeregistration = mapped
}
/**
* @param value Indicates how the GWLB handles existing flows when a target is unhealthy. Possible values are `rebalance` and `no_rebalance`. Must match the attribute value set for `on_deregistration`. Default: `no_rebalance`.
*/
@JvmName("ecdfevdiyekhisxk")
public suspend fun onUnhealthy(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.onUnhealthy = mapped
}
internal fun build(): TargetGroupTargetFailoverArgs = TargetGroupTargetFailoverArgs(
onDeregistration = onDeregistration ?: throw PulumiNullFieldException("onDeregistration"),
onUnhealthy = onUnhealthy ?: throw PulumiNullFieldException("onUnhealthy"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy