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

com.pulumi.awsnative.mediaconnect.kotlin.BridgeArgs.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.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.mediaconnect.kotlin

import com.pulumi.awsnative.mediaconnect.BridgeArgs.builder
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.BridgeEgressGatewayBridgeArgs
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.BridgeEgressGatewayBridgeArgsBuilder
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.BridgeFailoverConfigArgs
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.BridgeFailoverConfigArgsBuilder
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.BridgeIngressGatewayBridgeArgs
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.BridgeIngressGatewayBridgeArgsBuilder
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.BridgeOutputArgs
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.BridgeOutputArgsBuilder
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.BridgeSourceArgs
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.BridgeSourceArgsBuilder
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::Bridge
 * @property egressGatewayBridge Create a bridge with the egress bridge type. An egress bridge is a cloud-to-ground bridge. The content comes from an existing MediaConnect flow and is delivered to your premises.
 * @property ingressGatewayBridge Create a bridge with the ingress bridge type. An ingress bridge is a ground-to-cloud bridge. The content originates at your premises and is delivered to the cloud.
 * @property name The name of the bridge.
 * @property outputs The outputs on this bridge.
 * @property placementArn The placement Amazon Resource Number (ARN) of the bridge.
 * @property sourceFailoverConfig The settings for source failover.
 * @property sources The sources on this bridge.
 */
public data class BridgeArgs(
    public val egressGatewayBridge: Output? = null,
    public val ingressGatewayBridge: Output? = null,
    public val name: Output? = null,
    public val outputs: Output>? = null,
    public val placementArn: Output? = null,
    public val sourceFailoverConfig: Output? = null,
    public val sources: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.mediaconnect.BridgeArgs =
        com.pulumi.awsnative.mediaconnect.BridgeArgs.builder()
            .egressGatewayBridge(
                egressGatewayBridge?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .ingressGatewayBridge(
                ingressGatewayBridge?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .outputs(
                outputs?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .placementArn(placementArn?.applyValue({ args0 -> args0 }))
            .sourceFailoverConfig(
                sourceFailoverConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .sources(
                sources?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [BridgeArgs].
 */
@PulumiTagMarker
public class BridgeArgsBuilder internal constructor() {
    private var egressGatewayBridge: Output? = null

    private var ingressGatewayBridge: Output? = null

    private var name: Output? = null

    private var outputs: Output>? = null

    private var placementArn: Output? = null

    private var sourceFailoverConfig: Output? = null

    private var sources: Output>? = null

    /**
     * @param value Create a bridge with the egress bridge type. An egress bridge is a cloud-to-ground bridge. The content comes from an existing MediaConnect flow and is delivered to your premises.
     */
    @JvmName("kvsyqipssbbjpheu")
    public suspend fun egressGatewayBridge(`value`: Output) {
        this.egressGatewayBridge = value
    }

    /**
     * @param value Create a bridge with the ingress bridge type. An ingress bridge is a ground-to-cloud bridge. The content originates at your premises and is delivered to the cloud.
     */
    @JvmName("xhxvvipyclefmfcd")
    public suspend fun ingressGatewayBridge(`value`: Output) {
        this.ingressGatewayBridge = value
    }

    /**
     * @param value The name of the bridge.
     */
    @JvmName("ykolynuboshhclgb")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value The outputs on this bridge.
     */
    @JvmName("rnhapiclgulqwafd")
    public suspend fun outputs(`value`: Output>) {
        this.outputs = value
    }

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

    /**
     * @param values The outputs on this bridge.
     */
    @JvmName("xnflcogkjdoccxdl")
    public suspend fun outputs(values: List>) {
        this.outputs = Output.all(values)
    }

    /**
     * @param value The placement Amazon Resource Number (ARN) of the bridge.
     */
    @JvmName("qavxnnniaoqegovs")
    public suspend fun placementArn(`value`: Output) {
        this.placementArn = value
    }

    /**
     * @param value The settings for source failover.
     */
    @JvmName("icvmukmjntqidcqq")
    public suspend fun sourceFailoverConfig(`value`: Output) {
        this.sourceFailoverConfig = value
    }

    /**
     * @param value The sources on this bridge.
     */
    @JvmName("uhubrfiikquoberw")
    public suspend fun sources(`value`: Output>) {
        this.sources = value
    }

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

    /**
     * @param values The sources on this bridge.
     */
    @JvmName("xnggyolnjtlsbsrt")
    public suspend fun sources(values: List>) {
        this.sources = Output.all(values)
    }

    /**
     * @param value Create a bridge with the egress bridge type. An egress bridge is a cloud-to-ground bridge. The content comes from an existing MediaConnect flow and is delivered to your premises.
     */
    @JvmName("ajgsexangyxqhtai")
    public suspend fun egressGatewayBridge(`value`: BridgeEgressGatewayBridgeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.egressGatewayBridge = mapped
    }

    /**
     * @param argument Create a bridge with the egress bridge type. An egress bridge is a cloud-to-ground bridge. The content comes from an existing MediaConnect flow and is delivered to your premises.
     */
    @JvmName("dvmefokpkokwrmkt")
    public suspend fun egressGatewayBridge(argument: suspend BridgeEgressGatewayBridgeArgsBuilder.() -> Unit) {
        val toBeMapped = BridgeEgressGatewayBridgeArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.egressGatewayBridge = mapped
    }

    /**
     * @param value Create a bridge with the ingress bridge type. An ingress bridge is a ground-to-cloud bridge. The content originates at your premises and is delivered to the cloud.
     */
    @JvmName("jqdmddtdcqloxooh")
    public suspend fun ingressGatewayBridge(`value`: BridgeIngressGatewayBridgeArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.ingressGatewayBridge = mapped
    }

    /**
     * @param argument Create a bridge with the ingress bridge type. An ingress bridge is a ground-to-cloud bridge. The content originates at your premises and is delivered to the cloud.
     */
    @JvmName("xwjkdqriatqbycuy")
    public suspend fun ingressGatewayBridge(argument: suspend BridgeIngressGatewayBridgeArgsBuilder.() -> Unit) {
        val toBeMapped = BridgeIngressGatewayBridgeArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.ingressGatewayBridge = mapped
    }

    /**
     * @param value The name of the bridge.
     */
    @JvmName("junuqptmxyrgbacs")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

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

    /**
     * @param argument The outputs on this bridge.
     */
    @JvmName("dsapfkgbsbodrfqv")
    public suspend fun outputs(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BridgeOutputArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.outputs = mapped
    }

    /**
     * @param argument The outputs on this bridge.
     */
    @JvmName("qhcwdnyidrmanqgi")
    public suspend fun outputs(vararg argument: suspend BridgeOutputArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BridgeOutputArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.outputs = mapped
    }

    /**
     * @param argument The outputs on this bridge.
     */
    @JvmName("tpscderunfwyxgyq")
    public suspend fun outputs(argument: suspend BridgeOutputArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(BridgeOutputArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.outputs = mapped
    }

    /**
     * @param values The outputs on this bridge.
     */
    @JvmName("ufdxerkjnehkhbqo")
    public suspend fun outputs(vararg values: BridgeOutputArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.outputs = mapped
    }

    /**
     * @param value The placement Amazon Resource Number (ARN) of the bridge.
     */
    @JvmName("jfblohpuxrtmwuwt")
    public suspend fun placementArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.placementArn = mapped
    }

    /**
     * @param value The settings for source failover.
     */
    @JvmName("cnkunsvhcsgustwh")
    public suspend fun sourceFailoverConfig(`value`: BridgeFailoverConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceFailoverConfig = mapped
    }

    /**
     * @param argument The settings for source failover.
     */
    @JvmName("nsiecqlrviduoqja")
    public suspend fun sourceFailoverConfig(argument: suspend BridgeFailoverConfigArgsBuilder.() -> Unit) {
        val toBeMapped = BridgeFailoverConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sourceFailoverConfig = mapped
    }

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

    /**
     * @param argument The sources on this bridge.
     */
    @JvmName("cyycdikoofhfmiet")
    public suspend fun sources(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            BridgeSourceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param argument The sources on this bridge.
     */
    @JvmName("spaxcwbarmyuitnw")
    public suspend fun sources(vararg argument: suspend BridgeSourceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            BridgeSourceArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param argument The sources on this bridge.
     */
    @JvmName("xadbddjalorsfvtc")
    public suspend fun sources(argument: suspend BridgeSourceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(BridgeSourceArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.sources = mapped
    }

    /**
     * @param values The sources on this bridge.
     */
    @JvmName("faavbkvekievuxjq")
    public suspend fun sources(vararg values: BridgeSourceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sources = mapped
    }

    internal fun build(): BridgeArgs = BridgeArgs(
        egressGatewayBridge = egressGatewayBridge,
        ingressGatewayBridge = ingressGatewayBridge,
        name = name,
        outputs = outputs,
        placementArn = placementArn,
        sourceFailoverConfig = sourceFailoverConfig,
        sources = sources,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy