
com.pulumi.awsnative.scheduler.kotlin.outputs.ScheduleAwsVpcConfiguration.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.scheduler.kotlin.outputs
import com.pulumi.awsnative.scheduler.kotlin.enums.ScheduleAssignPublicIp
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
/**
* This structure specifies the VPC subnets and security groups for the task, and whether a public IP address is to be used. This structure is relevant only for ECS tasks that use the awsvpc network mode.
* @property assignPublicIp Specifies whether the task's elastic network interface receives a public IP address. You can specify `ENABLED` only when `LaunchType` in `EcsParameters` is set to `FARGATE` .
* @property securityGroups Specifies the security groups associated with the task. These security groups must all be in the same VPC. You can specify as many as five security groups. If you do not specify a security group, the default security group for the VPC is used.
* @property subnets Specifies the subnets associated with the task. These subnets must all be in the same VPC. You can specify as many as 16 subnets.
*/
public data class ScheduleAwsVpcConfiguration(
public val assignPublicIp: ScheduleAssignPublicIp? = null,
public val securityGroups: List? = null,
public val subnets: List,
) {
public companion object {
public fun toKotlin(javaType: com.pulumi.awsnative.scheduler.outputs.ScheduleAwsVpcConfiguration): ScheduleAwsVpcConfiguration = ScheduleAwsVpcConfiguration(
assignPublicIp = javaType.assignPublicIp().map({ args0 ->
args0.let({ args0 ->
com.pulumi.awsnative.scheduler.kotlin.enums.ScheduleAssignPublicIp.Companion.toKotlin(args0)
})
}).orElse(null),
securityGroups = javaType.securityGroups().map({ args0 -> args0 }),
subnets = javaType.subnets().map({ args0 -> args0 }),
)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy