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

com.pulumi.aws.medialive.kotlin.inputs.InputVpcArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.medialive.kotlin.inputs

import com.pulumi.aws.medialive.inputs.InputVpcArgs.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 A list of up to 5 EC2 VPC security group IDs to attach to the Input.
 * @property subnetIds A list of 2 VPC subnet IDs from the same VPC.
 */
public data class InputVpcArgs(
    public val securityGroupIds: Output>? = null,
    public val subnetIds: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.medialive.inputs.InputVpcArgs =
        com.pulumi.aws.medialive.inputs.InputVpcArgs.builder()
            .securityGroupIds(securityGroupIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subnetIds(subnetIds.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var subnetIds: Output>? = null

    /**
     * @param value A list of up to 5 EC2 VPC security group IDs to attach to the Input.
     */
    @JvmName("jicdlbrjkbcthwah")
    public suspend fun securityGroupIds(`value`: Output>) {
        this.securityGroupIds = value
    }

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

    /**
     * @param values A list of up to 5 EC2 VPC security group IDs to attach to the Input.
     */
    @JvmName("xgjdjulnlpxbebwx")
    public suspend fun securityGroupIds(values: List>) {
        this.securityGroupIds = Output.all(values)
    }

    /**
     * @param value A list of 2 VPC subnet IDs from the same VPC.
     */
    @JvmName("ynxrcqwroyycwkfw")
    public suspend fun subnetIds(`value`: Output>) {
        this.subnetIds = value
    }

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

    /**
     * @param values A list of 2 VPC subnet IDs from the same VPC.
     */
    @JvmName("puywktttwmokwmcm")
    public suspend fun subnetIds(values: List>) {
        this.subnetIds = Output.all(values)
    }

    /**
     * @param value A list of up to 5 EC2 VPC security group IDs to attach to the Input.
     */
    @JvmName("jvloldfdhkknksnm")
    public suspend fun securityGroupIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param values A list of up to 5 EC2 VPC security group IDs to attach to the Input.
     */
    @JvmName("tryovarmrlsebnlo")
    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 2 VPC subnet IDs from the same VPC.
     */
    @JvmName("tqwtrevhfjsmmsam")
    public suspend fun subnetIds(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param values A list of 2 VPC subnet IDs from the same VPC.
     */
    @JvmName("unttbssbqphtvukr")
    public suspend fun subnetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    internal fun build(): InputVpcArgs = InputVpcArgs(
        securityGroupIds = securityGroupIds,
        subnetIds = subnetIds ?: throw PulumiNullFieldException("subnetIds"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy