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

com.pulumi.awsnative.pipes.kotlin.outputs.PipeAwsVpcConfiguration.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.pipes.kotlin.outputs

import com.pulumi.awsnative.pipes.kotlin.enums.PipeAssignPublicIp
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 PipeAwsVpcConfiguration(
    public val assignPublicIp: PipeAssignPublicIp? = null,
    public val securityGroups: List? = null,
    public val subnets: List,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.pipes.outputs.PipeAwsVpcConfiguration): PipeAwsVpcConfiguration = PipeAwsVpcConfiguration(
            assignPublicIp = javaType.assignPublicIp().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.pipes.kotlin.enums.PipeAssignPublicIp.Companion.toKotlin(args0)
                })
            }).orElse(null),
            securityGroups = javaType.securityGroups().map({ args0 -> args0 }),
            subnets = javaType.subnets().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy