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

com.pulumi.awsnative.ecs.kotlin.inputs.TaskSetNetworkConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ecs.kotlin.inputs

import com.pulumi.awsnative.ecs.inputs.TaskSetNetworkConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * An object representing the network configuration for a task or service.
 * @property awsVpcConfiguration The VPC subnets and security groups that are associated with a task.
 * > All specified subnets and security groups must be from the same VPC.
 */
public data class TaskSetNetworkConfigurationArgs(
    public val awsVpcConfiguration: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ecs.inputs.TaskSetNetworkConfigurationArgs =
        com.pulumi.awsnative.ecs.inputs.TaskSetNetworkConfigurationArgs.builder()
            .awsVpcConfiguration(
                awsVpcConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [TaskSetNetworkConfigurationArgs].
 */
@PulumiTagMarker
public class TaskSetNetworkConfigurationArgsBuilder internal constructor() {
    private var awsVpcConfiguration: Output? = null

    /**
     * @param value The VPC subnets and security groups that are associated with a task.
     * > All specified subnets and security groups must be from the same VPC.
     */
    @JvmName("pxotfqhqxbksfemw")
    public suspend fun awsVpcConfiguration(`value`: Output) {
        this.awsVpcConfiguration = value
    }

    /**
     * @param value The VPC subnets and security groups that are associated with a task.
     * > All specified subnets and security groups must be from the same VPC.
     */
    @JvmName("biatsoedmgfnnoll")
    public suspend fun awsVpcConfiguration(`value`: TaskSetAwsVpcConfigurationArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.awsVpcConfiguration = mapped
    }

    /**
     * @param argument The VPC subnets and security groups that are associated with a task.
     * > All specified subnets and security groups must be from the same VPC.
     */
    @JvmName("ktggujdcpobqjage")
    public suspend fun awsVpcConfiguration(argument: suspend TaskSetAwsVpcConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = TaskSetAwsVpcConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.awsVpcConfiguration = mapped
    }

    internal fun build(): TaskSetNetworkConfigurationArgs = TaskSetNetworkConfigurationArgs(
        awsVpcConfiguration = awsVpcConfiguration,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy