![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.ecs.kotlin.outputs.ServiceAwsVpcConfiguration.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ecs.kotlin.outputs
import com.pulumi.awsnative.ecs.kotlin.enums.ServiceAwsVpcConfigurationAssignPublicIp
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* 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 ServiceAwsVpcConfiguration(
public val assignPublicIp: ServiceAwsVpcConfigurationAssignPublicIp? = null,
public val securityGroups: List? = null,
public val subnets: List? = null,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.ecs.outputs.ServiceAwsVpcConfiguration): ServiceAwsVpcConfiguration = ServiceAwsVpcConfiguration(
assignPublicIp = javaType.assignPublicIp().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.ecs.kotlin.enums.ServiceAwsVpcConfigurationAssignPublicIp.Companion.toKotlin(args0)
})
}).orElse(null),
securityGroups = javaType.securityGroups().map({ args0 -> args0 }),
subnets = javaType.subnets().map({ args0 -> args0 }),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy