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

com.pulumi.awsnative.mediaconnect.kotlin.GatewayArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.mediaconnect.kotlin

import com.pulumi.awsnative.mediaconnect.GatewayArgs.builder
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.GatewayNetworkArgs
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.GatewayNetworkArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource schema for AWS::MediaConnect::Gateway
 * @property egressCidrBlocks The range of IP addresses that contribute content or initiate output requests for flows communicating with this gateway. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
 * @property name The name of the gateway. This name can not be modified after the gateway is created.
 * @property networks The list of networks in the gateway.
 */
public data class GatewayArgs(
    public val egressCidrBlocks: Output>? = null,
    public val name: Output? = null,
    public val networks: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.mediaconnect.GatewayArgs =
        com.pulumi.awsnative.mediaconnect.GatewayArgs.builder()
            .egressCidrBlocks(egressCidrBlocks?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .name(name?.applyValue({ args0 -> args0 }))
            .networks(
                networks?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

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

    private var name: Output? = null

    private var networks: Output>? = null

    /**
     * @param value The range of IP addresses that contribute content or initiate output requests for flows communicating with this gateway. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
     */
    @JvmName("dndnopsdhrwldorc")
    public suspend fun egressCidrBlocks(`value`: Output>) {
        this.egressCidrBlocks = value
    }

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

    /**
     * @param values The range of IP addresses that contribute content or initiate output requests for flows communicating with this gateway. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
     */
    @JvmName("iafdsouilmftbgej")
    public suspend fun egressCidrBlocks(values: List>) {
        this.egressCidrBlocks = Output.all(values)
    }

    /**
     * @param value The name of the gateway. This name can not be modified after the gateway is created.
     */
    @JvmName("tvdtfsmisyxagnbf")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The list of networks in the gateway.
     */
    @JvmName("iiasmfpvvsellbwg")
    public suspend fun networks(`value`: Output>) {
        this.networks = value
    }

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

    /**
     * @param values The list of networks in the gateway.
     */
    @JvmName("erqmvpcawmsbffle")
    public suspend fun networks(values: List>) {
        this.networks = Output.all(values)
    }

    /**
     * @param value The range of IP addresses that contribute content or initiate output requests for flows communicating with this gateway. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
     */
    @JvmName("bmgulgpvbfnchfih")
    public suspend fun egressCidrBlocks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.egressCidrBlocks = mapped
    }

    /**
     * @param values The range of IP addresses that contribute content or initiate output requests for flows communicating with this gateway. These IP addresses should be in the form of a Classless Inter-Domain Routing (CIDR) block; for example, 10.0.0.0/16.
     */
    @JvmName("xbdmxiruriqpklfn")
    public suspend fun egressCidrBlocks(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.egressCidrBlocks = mapped
    }

    /**
     * @param value The name of the gateway. This name can not be modified after the gateway is created.
     */
    @JvmName("cbtxmoopkknapcpk")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value The list of networks in the gateway.
     */
    @JvmName("gsvqemggvpiuujnj")
    public suspend fun networks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networks = mapped
    }

    /**
     * @param argument The list of networks in the gateway.
     */
    @JvmName("nmmycdyuaqorewkn")
    public suspend fun networks(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GatewayNetworkArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.networks = mapped
    }

    /**
     * @param argument The list of networks in the gateway.
     */
    @JvmName("gjjwdmfnndopdxcl")
    public suspend fun networks(vararg argument: suspend GatewayNetworkArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GatewayNetworkArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.networks = mapped
    }

    /**
     * @param argument The list of networks in the gateway.
     */
    @JvmName("fbbqnmcgedtniood")
    public suspend fun networks(argument: suspend GatewayNetworkArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(GatewayNetworkArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.networks = mapped
    }

    /**
     * @param values The list of networks in the gateway.
     */
    @JvmName("xdybjgrpbfllkico")
    public suspend fun networks(vararg values: GatewayNetworkArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.networks = mapped
    }

    internal fun build(): GatewayArgs = GatewayArgs(
        egressCidrBlocks = egressCidrBlocks,
        name = name,
        networks = networks,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy