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

com.pulumi.awsnative.mwaa.kotlin.inputs.EnvironmentNetworkConfigurationArgs.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.mwaa.kotlin.inputs

import com.pulumi.awsnative.mwaa.inputs.EnvironmentNetworkConfigurationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Configures the network resources of the environment.
 * @property securityGroupIds A list of security groups to use for the environment.
 * @property subnetIds A list of subnets to use for the environment. These must be private subnets, in the same VPC, in two different availability zones.
 */
public data class EnvironmentNetworkConfigurationArgs(
    public val securityGroupIds: Output>? = null,
    public val subnetIds: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.mwaa.inputs.EnvironmentNetworkConfigurationArgs =
        com.pulumi.awsnative.mwaa.inputs.EnvironmentNetworkConfigurationArgs.builder()
            .securityGroupIds(securityGroupIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subnetIds(subnetIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [EnvironmentNetworkConfigurationArgs].
 */
@PulumiTagMarker
public class EnvironmentNetworkConfigurationArgsBuilder internal constructor() {
    private var securityGroupIds: Output>? = null

    private var subnetIds: Output>? = null

    /**
     * @param value A list of security groups to use for the environment.
     */
    @JvmName("oykqxxldpxwwlnuh")
    public suspend fun securityGroupIds(`value`: Output>) {
        this.securityGroupIds = value
    }

    @JvmName("ctljqmxhrafjllxg")
    public suspend fun securityGroupIds(vararg values: Output) {
        this.securityGroupIds = Output.all(values.asList())
    }

    /**
     * @param values A list of security groups to use for the environment.
     */
    @JvmName("breroyecnqeocvtj")
    public suspend fun securityGroupIds(values: List>) {
        this.securityGroupIds = Output.all(values)
    }

    /**
     * @param value A list of subnets to use for the environment. These must be private subnets, in the same VPC, in two different availability zones.
     */
    @JvmName("uupnkhqnkoacqgkc")
    public suspend fun subnetIds(`value`: Output>) {
        this.subnetIds = value
    }

    @JvmName("wdxryeetbntkgyyc")
    public suspend fun subnetIds(vararg values: Output) {
        this.subnetIds = Output.all(values.asList())
    }

    /**
     * @param values A list of subnets to use for the environment. These must be private subnets, in the same VPC, in two different availability zones.
     */
    @JvmName("olulfnaluivsnqta")
    public suspend fun subnetIds(values: List>) {
        this.subnetIds = Output.all(values)
    }

    /**
     * @param value A list of security groups to use for the environment.
     */
    @JvmName("blfehbbwwdvgwdfa")
    public suspend fun securityGroupIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param values A list of security groups to use for the environment.
     */
    @JvmName("cgowbytnhsdgytgi")
    public suspend fun securityGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param value A list of subnets to use for the environment. These must be private subnets, in the same VPC, in two different availability zones.
     */
    @JvmName("lsxkskchdojubjrj")
    public suspend fun subnetIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param values A list of subnets to use for the environment. These must be private subnets, in the same VPC, in two different availability zones.
     */
    @JvmName("brajrkxfianysaor")
    public suspend fun subnetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    internal fun build(): EnvironmentNetworkConfigurationArgs = EnvironmentNetworkConfigurationArgs(
        securityGroupIds = securityGroupIds,
        subnetIds = subnetIds,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy