
com.pulumi.awsnative.ecs.kotlin.inputs.TaskSetAwsVpcConfigurationArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-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.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
© 2015 - 2025 Weber Informatics LLC | Privacy Policy