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

com.pulumi.aws.medialive.kotlin.inputs.ChannelVpcArgs.kt Maven / Gradle / Ivy

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

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

import com.pulumi.aws.medialive.inputs.ChannelVpcArgs.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 availabilityZones
 * @property networkInterfaceIds
 * @property publicAddressAllocationIds List of public address allocation ids to associate with ENIs that will be created in Output VPC. Must specify one for SINGLE_PIPELINE, two for STANDARD channels.
 * @property securityGroupIds A list of up to 5 EC2 VPC security group IDs to attach to the Output VPC network interfaces. If none are specified then the VPC default security group will be used.
 * @property subnetIds A list of VPC subnet IDs from the same VPC. If STANDARD channel, subnet IDs must be mapped to two unique availability zones (AZ).
 */
public data class ChannelVpcArgs(
    public val availabilityZones: Output>? = null,
    public val networkInterfaceIds: Output>? = null,
    public val publicAddressAllocationIds: Output>,
    public val securityGroupIds: Output>? = null,
    public val subnetIds: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.medialive.inputs.ChannelVpcArgs =
        com.pulumi.aws.medialive.inputs.ChannelVpcArgs.builder()
            .availabilityZones(availabilityZones?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .networkInterfaceIds(networkInterfaceIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .publicAddressAllocationIds(
                publicAddressAllocationIds.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .securityGroupIds(securityGroupIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subnetIds(subnetIds.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

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

    private var networkInterfaceIds: Output>? = null

    private var publicAddressAllocationIds: Output>? = null

    private var securityGroupIds: Output>? = null

    private var subnetIds: Output>? = null

    /**
     * @param value
     */
    @JvmName("badbvtojapdtukhp")
    public suspend fun availabilityZones(`value`: Output>) {
        this.availabilityZones = value
    }

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

    /**
     * @param values
     */
    @JvmName("gkhoqwnaqyalxokg")
    public suspend fun availabilityZones(values: List>) {
        this.availabilityZones = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("tisibevtkmwaprwa")
    public suspend fun networkInterfaceIds(`value`: Output>) {
        this.networkInterfaceIds = value
    }

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

    /**
     * @param values
     */
    @JvmName("dkuudalwmpcnbvje")
    public suspend fun networkInterfaceIds(values: List>) {
        this.networkInterfaceIds = Output.all(values)
    }

    /**
     * @param value List of public address allocation ids to associate with ENIs that will be created in Output VPC. Must specify one for SINGLE_PIPELINE, two for STANDARD channels.
     */
    @JvmName("obbyxfdjxeibjcyg")
    public suspend fun publicAddressAllocationIds(`value`: Output>) {
        this.publicAddressAllocationIds = value
    }

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

    /**
     * @param values List of public address allocation ids to associate with ENIs that will be created in Output VPC. Must specify one for SINGLE_PIPELINE, two for STANDARD channels.
     */
    @JvmName("bjmkgtsynowjtrrw")
    public suspend fun publicAddressAllocationIds(values: List>) {
        this.publicAddressAllocationIds = Output.all(values)
    }

    /**
     * @param value A list of up to 5 EC2 VPC security group IDs to attach to the Output VPC network interfaces. If none are specified then the VPC default security group will be used.
     */
    @JvmName("kanlnlqegfqahsjt")
    public suspend fun securityGroupIds(`value`: Output>) {
        this.securityGroupIds = value
    }

    @JvmName("unqyxxpfmmsnjxjy")
    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 Output VPC network interfaces. If none are specified then the VPC default security group will be used.
     */
    @JvmName("xmlgpwmlsambjrtw")
    public suspend fun securityGroupIds(values: List>) {
        this.securityGroupIds = Output.all(values)
    }

    /**
     * @param value A list of VPC subnet IDs from the same VPC. If STANDARD channel, subnet IDs must be mapped to two unique availability zones (AZ).
     */
    @JvmName("bsqodfgyekjrjsck")
    public suspend fun subnetIds(`value`: Output>) {
        this.subnetIds = value
    }

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

    /**
     * @param values A list of VPC subnet IDs from the same VPC. If STANDARD channel, subnet IDs must be mapped to two unique availability zones (AZ).
     */
    @JvmName("dtbpyvjmikviyoto")
    public suspend fun subnetIds(values: List>) {
        this.subnetIds = Output.all(values)
    }

    /**
     * @param value
     */
    @JvmName("syegualbbkmeukrs")
    public suspend fun availabilityZones(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.availabilityZones = mapped
    }

    /**
     * @param values
     */
    @JvmName("ohnxiudmfmriqwqo")
    public suspend fun availabilityZones(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.availabilityZones = mapped
    }

    /**
     * @param value
     */
    @JvmName("whmxengqkmouuksd")
    public suspend fun networkInterfaceIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkInterfaceIds = mapped
    }

    /**
     * @param values
     */
    @JvmName("fifwofqutqijjhow")
    public suspend fun networkInterfaceIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.networkInterfaceIds = mapped
    }

    /**
     * @param value List of public address allocation ids to associate with ENIs that will be created in Output VPC. Must specify one for SINGLE_PIPELINE, two for STANDARD channels.
     */
    @JvmName("uysksqkwdnkqmmcm")
    public suspend fun publicAddressAllocationIds(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicAddressAllocationIds = mapped
    }

    /**
     * @param values List of public address allocation ids to associate with ENIs that will be created in Output VPC. Must specify one for SINGLE_PIPELINE, two for STANDARD channels.
     */
    @JvmName("sdmjepqnfciahqwg")
    public suspend fun publicAddressAllocationIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.publicAddressAllocationIds = mapped
    }

    /**
     * @param value A list of up to 5 EC2 VPC security group IDs to attach to the Output VPC network interfaces. If none are specified then the VPC default security group will be used.
     */
    @JvmName("akyguhapmnlocane")
    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 Output VPC network interfaces. If none are specified then the VPC default security group will be used.
     */
    @JvmName("rgfnlpanxycioapa")
    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 VPC subnet IDs from the same VPC. If STANDARD channel, subnet IDs must be mapped to two unique availability zones (AZ).
     */
    @JvmName("wehcvnqhygrkfgqa")
    public suspend fun subnetIds(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param values A list of VPC subnet IDs from the same VPC. If STANDARD channel, subnet IDs must be mapped to two unique availability zones (AZ).
     */
    @JvmName("qirawswmmegfacko")
    public suspend fun subnetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    internal fun build(): ChannelVpcArgs = ChannelVpcArgs(
        availabilityZones = availabilityZones,
        networkInterfaceIds = networkInterfaceIds,
        publicAddressAllocationIds = publicAddressAllocationIds ?: throw
            PulumiNullFieldException("publicAddressAllocationIds"),
        securityGroupIds = securityGroupIds,
        subnetIds = subnetIds ?: throw PulumiNullFieldException("subnetIds"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy