
com.pulumi.awsnative.ecs.kotlin.inputs.ServiceAwsVpcConfigurationArgs.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.ServiceAwsVpcConfigurationArgs.builder
import com.pulumi.awsnative.ecs.kotlin.enums.ServiceAwsVpcConfigurationAssignPublicIp
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* An object representing the networking details for a task or service. For example ``awsvpcConfiguration={subnets=["subnet-12344321"],securityGroups=["sg-12344321"]}``
* @property assignPublicIp Whether the task's elastic network interface receives a public IP address. The default value is ``DISABLED``.
* @property securityGroups The IDs of the security groups associated with the task or service. If you don't specify a security group, the default security group for the VPC is used. There's a limit of 5 security groups that can be specified per ``AwsVpcConfiguration``.
* All specified security groups must be from the same VPC.
* @property subnets The IDs of the subnets associated with the task or service. There's a limit of 16 subnets that can be specified per ``AwsVpcConfiguration``.
* All specified subnets must be from the same VPC.
*/
public data class ServiceAwsVpcConfigurationArgs(
public val assignPublicIp: Output? = null,
public val securityGroups: Output>? = null,
public val subnets: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.ecs.inputs.ServiceAwsVpcConfigurationArgs =
com.pulumi.awsnative.ecs.inputs.ServiceAwsVpcConfigurationArgs.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 [ServiceAwsVpcConfigurationArgs].
*/
@PulumiTagMarker
public class ServiceAwsVpcConfigurationArgsBuilder 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("qjktnmaesxiqblyv")
public suspend fun assignPublicIp(`value`: Output) {
this.assignPublicIp = value
}
/**
* @param value The IDs of the security groups associated with the task or service. If you don't specify a security group, the default security group for the VPC is used. There's a limit of 5 security groups that can be specified per ``AwsVpcConfiguration``.
* All specified security groups must be from the same VPC.
*/
@JvmName("cvhrvtdbgpkwrlom")
public suspend fun securityGroups(`value`: Output>) {
this.securityGroups = value
}
@JvmName("pyfukmsklaaktkvr")
public suspend fun securityGroups(vararg values: Output) {
this.securityGroups = Output.all(values.asList())
}
/**
* @param values The IDs of the security groups associated with the task or service. If you don't specify a security group, the default security group for the VPC is used. There's a limit of 5 security groups that can be specified per ``AwsVpcConfiguration``.
* All specified security groups must be from the same VPC.
*/
@JvmName("yydxtocvgfqkimyg")
public suspend fun securityGroups(values: List
© 2015 - 2025 Weber Informatics LLC | Privacy Policy