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

com.pulumi.awsnative.ecs.kotlin.inputs.TaskSetAwsVpcConfigurationArgs.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: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ecs.kotlin.inputs

import com.pulumi.awsnative.ecs.inputs.TaskSetAwsVpcConfigurationArgs.builder
import com.pulumi.awsnative.ecs.kotlin.enums.TaskSetAwsVpcConfigurationAssignPublicIp
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.collections.List
import kotlin.jvm.JvmName

/**
 * The VPC subnets and security groups associated with a task. All specified subnets and security groups must be from the same VPC.
 * @property assignPublicIp Whether the task's elastic network interface receives a public IP address. The default value is DISABLED.
 * @property securityGroups The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used. There is a limit of 5 security groups that can be specified per AwsVpcConfiguration.
 * @property subnets The subnets associated with the task or service. There is a limit of 16 subnets that can be specified per AwsVpcConfiguration.
 */
public data class TaskSetAwsVpcConfigurationArgs(
    public val assignPublicIp: Output? = null,
    public val securityGroups: Output>? = null,
    public val subnets: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ecs.inputs.TaskSetAwsVpcConfigurationArgs =
        com.pulumi.awsnative.ecs.inputs.TaskSetAwsVpcConfigurationArgs.builder()
            .assignPublicIp(assignPublicIp?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .securityGroups(securityGroups?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subnets(subnets.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [TaskSetAwsVpcConfigurationArgs].
 */
@PulumiTagMarker
public class TaskSetAwsVpcConfigurationArgsBuilder internal constructor() {
    private var assignPublicIp: Output? = null

    private var securityGroups: Output>? = null

    private var subnets: Output>? = null

    /**
     * @param value Whether the task's elastic network interface receives a public IP address. The default value is DISABLED.
     */
    @JvmName("hqdlxfbfkokvvphn")
    public suspend fun assignPublicIp(`value`: Output) {
        this.assignPublicIp = value
    }

    /**
     * @param value The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used. There is a limit of 5 security groups that can be specified per AwsVpcConfiguration.
     */
    @JvmName("lmuvcprsyqnxpedv")
    public suspend fun securityGroups(`value`: Output>) {
        this.securityGroups = value
    }

    @JvmName("crqnvewiljwutikq")
    public suspend fun securityGroups(vararg values: Output) {
        this.securityGroups = Output.all(values.asList())
    }

    /**
     * @param values The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used. There is a limit of 5 security groups that can be specified per AwsVpcConfiguration.
     */
    @JvmName("tjeedkpsfsyfenwq")
    public suspend fun securityGroups(values: List>) {
        this.securityGroups = Output.all(values)
    }

    /**
     * @param value The subnets associated with the task or service. There is a limit of 16 subnets that can be specified per AwsVpcConfiguration.
     */
    @JvmName("rxfipfoqvayvtdun")
    public suspend fun subnets(`value`: Output>) {
        this.subnets = value
    }

    @JvmName("rjjkhtfcamumvwgm")
    public suspend fun subnets(vararg values: Output) {
        this.subnets = Output.all(values.asList())
    }

    /**
     * @param values The subnets associated with the task or service. There is a limit of 16 subnets that can be specified per AwsVpcConfiguration.
     */
    @JvmName("chqlpypkcrtfaylc")
    public suspend fun subnets(values: List>) {
        this.subnets = Output.all(values)
    }

    /**
     * @param value Whether the task's elastic network interface receives a public IP address. The default value is DISABLED.
     */
    @JvmName("fhbaahsapsdbtuto")
    public suspend fun assignPublicIp(`value`: TaskSetAwsVpcConfigurationAssignPublicIp?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.assignPublicIp = mapped
    }

    /**
     * @param value The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used. There is a limit of 5 security groups that can be specified per AwsVpcConfiguration.
     */
    @JvmName("wfjswxsbmaaajefj")
    public suspend fun securityGroups(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroups = mapped
    }

    /**
     * @param values The security groups associated with the task or service. If you do not specify a security group, the default security group for the VPC is used. There is a limit of 5 security groups that can be specified per AwsVpcConfiguration.
     */
    @JvmName("jxesofywwpecmspu")
    public suspend fun securityGroups(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroups = mapped
    }

    /**
     * @param value The subnets associated with the task or service. There is a limit of 16 subnets that can be specified per AwsVpcConfiguration.
     */
    @JvmName("nwwwjqhayspkblox")
    public suspend fun subnets(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnets = mapped
    }

    /**
     * @param values The subnets associated with the task or service. There is a limit of 16 subnets that can be specified per AwsVpcConfiguration.
     */
    @JvmName("csffyyuccxxvsmqc")
    public suspend fun subnets(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnets = mapped
    }

    internal fun build(): TaskSetAwsVpcConfigurationArgs = TaskSetAwsVpcConfigurationArgs(
        assignPublicIp = assignPublicIp,
        securityGroups = securityGroups,
        subnets = subnets ?: throw PulumiNullFieldException("subnets"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy