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

com.pulumi.aws.mwaa.kotlin.inputs.EnvironmentNetworkConfigurationArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.aws.mwaa.kotlin.inputs

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

/**
 *
 * @property securityGroupIds Security groups IDs for the environment. At least one of the security group needs to allow MWAA resources to talk to each other, otherwise MWAA cannot be provisioned.
 * @property subnetIds The private subnet IDs in which the environment should be created. MWAA requires two subnets.
 */
public data class EnvironmentNetworkConfigurationArgs(
    public val securityGroupIds: Output>,
    public val subnetIds: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.mwaa.inputs.EnvironmentNetworkConfigurationArgs =
        com.pulumi.aws.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 Security groups IDs for the environment. At least one of the security group needs to allow MWAA resources to talk to each other, otherwise MWAA cannot be provisioned.
     */
    @JvmName("yqevvlktqspaqhta")
    public suspend fun securityGroupIds(`value`: Output>) {
        this.securityGroupIds = value
    }

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

    /**
     * @param values Security groups IDs for the environment. At least one of the security group needs to allow MWAA resources to talk to each other, otherwise MWAA cannot be provisioned.
     */
    @JvmName("qrpagulyopfvmwoe")
    public suspend fun securityGroupIds(values: List>) {
        this.securityGroupIds = Output.all(values)
    }

    /**
     * @param value The private subnet IDs in which the environment should be created. MWAA requires two subnets.
     */
    @JvmName("nxryryodyvsrnssv")
    public suspend fun subnetIds(`value`: Output>) {
        this.subnetIds = value
    }

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

    /**
     * @param values The private subnet IDs in which the environment should be created. MWAA requires two subnets.
     */
    @JvmName("imardkdntptxyemw")
    public suspend fun subnetIds(values: List>) {
        this.subnetIds = Output.all(values)
    }

    /**
     * @param value Security groups IDs for the environment. At least one of the security group needs to allow MWAA resources to talk to each other, otherwise MWAA cannot be provisioned.
     */
    @JvmName("whuuepbeiartupps")
    public suspend fun securityGroupIds(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param values Security groups IDs for the environment. At least one of the security group needs to allow MWAA resources to talk to each other, otherwise MWAA cannot be provisioned.
     */
    @JvmName("oujdxvhtpekuaoax")
    public suspend fun securityGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param value The private subnet IDs in which the environment should be created. MWAA requires two subnets.
     */
    @JvmName("sjxpvdyrrkpevijo")
    public suspend fun subnetIds(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param values The private subnet IDs in which the environment should be created. MWAA requires two subnets.
     */
    @JvmName("skmvtprwhvcybkgs")
    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 ?: throw PulumiNullFieldException("securityGroupIds"),
        subnetIds = subnetIds ?: throw PulumiNullFieldException("subnetIds"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy