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

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

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

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

import com.pulumi.awsnative.ecs.inputs.ServiceNetworkConfigurationArgs.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

/**
 * The ``NetworkConfiguration`` property specifies 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 ServiceNetworkConfigurationArgs(
    public val awsvpcConfiguration: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ecs.inputs.ServiceNetworkConfigurationArgs =
        com.pulumi.awsnative.ecs.inputs.ServiceNetworkConfigurationArgs.builder()
            .awsvpcConfiguration(
                awsvpcConfiguration?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [ServiceNetworkConfigurationArgs].
 */
@PulumiTagMarker
public class ServiceNetworkConfigurationArgsBuilder 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("qesrqoubhmeeaefk")
    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("ltqndlauxiumispv")
    public suspend fun awsvpcConfiguration(`value`: ServiceAwsVpcConfigurationArgs?) {
        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("upucaifhjjmgindv")
    public suspend fun awsvpcConfiguration(argument: suspend ServiceAwsVpcConfigurationArgsBuilder.() -> Unit) {
        val toBeMapped = ServiceAwsVpcConfigurationArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.awsvpcConfiguration = mapped
    }

    internal fun build(): ServiceNetworkConfigurationArgs = ServiceNetworkConfigurationArgs(
        awsvpcConfiguration = awsvpcConfiguration,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy