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

com.pulumi.aws.alb.kotlin.inputs.TargetGroupTargetHealthStateArgs.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.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.alb.kotlin.inputs

import com.pulumi.aws.alb.inputs.TargetGroupTargetHealthStateArgs.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.Boolean
import kotlin.Int
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property enableUnhealthyConnectionTermination Indicates whether the load balancer terminates connections to unhealthy targets. Possible values are `true` or `false`. Default: `true`.
 * @property unhealthyDrainingInterval Indicates the time to wait for in-flight requests to complete when a target becomes unhealthy. The range is `0-360000`. This value has to be set only if `enable_unhealthy_connection_termination` is set to false. Default: `0`.
 */
public data class TargetGroupTargetHealthStateArgs(
    public val enableUnhealthyConnectionTermination: Output,
    public val unhealthyDrainingInterval: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.alb.inputs.TargetGroupTargetHealthStateArgs =
        com.pulumi.aws.alb.inputs.TargetGroupTargetHealthStateArgs.builder()
            .enableUnhealthyConnectionTermination(
                enableUnhealthyConnectionTermination.applyValue({ args0 ->
                    args0
                }),
            )
            .unhealthyDrainingInterval(unhealthyDrainingInterval?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TargetGroupTargetHealthStateArgs].
 */
@PulumiTagMarker
public class TargetGroupTargetHealthStateArgsBuilder internal constructor() {
    private var enableUnhealthyConnectionTermination: Output? = null

    private var unhealthyDrainingInterval: Output? = null

    /**
     * @param value Indicates whether the load balancer terminates connections to unhealthy targets. Possible values are `true` or `false`. Default: `true`.
     */
    @JvmName("namtspptpynbovbg")
    public suspend fun enableUnhealthyConnectionTermination(`value`: Output) {
        this.enableUnhealthyConnectionTermination = value
    }

    /**
     * @param value Indicates the time to wait for in-flight requests to complete when a target becomes unhealthy. The range is `0-360000`. This value has to be set only if `enable_unhealthy_connection_termination` is set to false. Default: `0`.
     */
    @JvmName("nbcasghioqflcejy")
    public suspend fun unhealthyDrainingInterval(`value`: Output) {
        this.unhealthyDrainingInterval = value
    }

    /**
     * @param value Indicates whether the load balancer terminates connections to unhealthy targets. Possible values are `true` or `false`. Default: `true`.
     */
    @JvmName("klybwgmkjcnvevdu")
    public suspend fun enableUnhealthyConnectionTermination(`value`: Boolean) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.enableUnhealthyConnectionTermination = mapped
    }

    /**
     * @param value Indicates the time to wait for in-flight requests to complete when a target becomes unhealthy. The range is `0-360000`. This value has to be set only if `enable_unhealthy_connection_termination` is set to false. Default: `0`.
     */
    @JvmName("qmkkmthqbwtvueke")
    public suspend fun unhealthyDrainingInterval(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.unhealthyDrainingInterval = mapped
    }

    internal fun build(): TargetGroupTargetHealthStateArgs = TargetGroupTargetHealthStateArgs(
        enableUnhealthyConnectionTermination = enableUnhealthyConnectionTermination ?: throw
            PulumiNullFieldException("enableUnhealthyConnectionTermination"),
        unhealthyDrainingInterval = unhealthyDrainingInterval,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy