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

com.pulumi.aws.ecs.kotlin.inputs.TaskSetLoadBalancerArgs.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.ecs.kotlin.inputs

import com.pulumi.aws.ecs.inputs.TaskSetLoadBalancerArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property containerName The name of the container to associate with the load balancer (as it appears in a container definition).
 * @property containerPort The port on the container to associate with the load balancer. Defaults to `0` if not specified.
 * > **Note:** Specifying multiple `load_balancer` configurations is still not supported by AWS for ECS task set.
 * @property loadBalancerName The name of the ELB (Classic) to associate with the service.
 * @property targetGroupArn The ARN of the Load Balancer target group to associate with the service.
 */
public data class TaskSetLoadBalancerArgs(
    public val containerName: Output,
    public val containerPort: Output? = null,
    public val loadBalancerName: Output? = null,
    public val targetGroupArn: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.ecs.inputs.TaskSetLoadBalancerArgs =
        com.pulumi.aws.ecs.inputs.TaskSetLoadBalancerArgs.builder()
            .containerName(containerName.applyValue({ args0 -> args0 }))
            .containerPort(containerPort?.applyValue({ args0 -> args0 }))
            .loadBalancerName(loadBalancerName?.applyValue({ args0 -> args0 }))
            .targetGroupArn(targetGroupArn?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TaskSetLoadBalancerArgs].
 */
@PulumiTagMarker
public class TaskSetLoadBalancerArgsBuilder internal constructor() {
    private var containerName: Output? = null

    private var containerPort: Output? = null

    private var loadBalancerName: Output? = null

    private var targetGroupArn: Output? = null

    /**
     * @param value The name of the container to associate with the load balancer (as it appears in a container definition).
     */
    @JvmName("ytfnduvijqgjwpet")
    public suspend fun containerName(`value`: Output) {
        this.containerName = value
    }

    /**
     * @param value The port on the container to associate with the load balancer. Defaults to `0` if not specified.
     * > **Note:** Specifying multiple `load_balancer` configurations is still not supported by AWS for ECS task set.
     */
    @JvmName("hyoqnnigotqcksmv")
    public suspend fun containerPort(`value`: Output) {
        this.containerPort = value
    }

    /**
     * @param value The name of the ELB (Classic) to associate with the service.
     */
    @JvmName("wojwiheyeafjehcm")
    public suspend fun loadBalancerName(`value`: Output) {
        this.loadBalancerName = value
    }

    /**
     * @param value The ARN of the Load Balancer target group to associate with the service.
     */
    @JvmName("limpbiaxpcdjpmbg")
    public suspend fun targetGroupArn(`value`: Output) {
        this.targetGroupArn = value
    }

    /**
     * @param value The name of the container to associate with the load balancer (as it appears in a container definition).
     */
    @JvmName("pogkadsdotmpuacc")
    public suspend fun containerName(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.containerName = mapped
    }

    /**
     * @param value The port on the container to associate with the load balancer. Defaults to `0` if not specified.
     * > **Note:** Specifying multiple `load_balancer` configurations is still not supported by AWS for ECS task set.
     */
    @JvmName("lhrlsnmnwmtnjxmq")
    public suspend fun containerPort(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.containerPort = mapped
    }

    /**
     * @param value The name of the ELB (Classic) to associate with the service.
     */
    @JvmName("jovtcnwbnuwifaup")
    public suspend fun loadBalancerName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.loadBalancerName = mapped
    }

    /**
     * @param value The ARN of the Load Balancer target group to associate with the service.
     */
    @JvmName("msnfpnoegknrcott")
    public suspend fun targetGroupArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.targetGroupArn = mapped
    }

    internal fun build(): TaskSetLoadBalancerArgs = TaskSetLoadBalancerArgs(
        containerName = containerName ?: throw PulumiNullFieldException("containerName"),
        containerPort = containerPort,
        loadBalancerName = loadBalancerName,
        targetGroupArn = targetGroupArn,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy