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

com.pulumi.awsnative.mediaconnect.kotlin.FlowArgs.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.FlowArgs.builder
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.FlowFailoverConfigArgs
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.FlowFailoverConfigArgsBuilder
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.FlowMaintenanceArgs
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.FlowMaintenanceArgsBuilder
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.FlowMediaStreamArgs
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.FlowMediaStreamArgsBuilder
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.FlowSourceArgs
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.FlowSourceArgsBuilder
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.FlowVpcInterfaceArgs
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.FlowVpcInterfaceArgsBuilder
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::Flow
 * @property availabilityZone The Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current AWS.
 * @property maintenance The maintenance settings you want to use for the flow.
 * @property mediaStreams The media streams associated with the flow. You can associate any of these media streams with sources and outputs on the flow.
 * @property name The name of the flow.
 * @property source The source of the flow.
 * @property sourceFailoverConfig The source failover config of the flow.
 * @property vpcInterfaces The VPC interfaces that you added to this flow.
 */
public data class FlowArgs(
    public val availabilityZone: Output? = null,
    public val maintenance: Output? = null,
    public val mediaStreams: Output>? = null,
    public val name: Output? = null,
    public val source: Output? = null,
    public val sourceFailoverConfig: Output? = null,
    public val vpcInterfaces: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.mediaconnect.FlowArgs =
        com.pulumi.awsnative.mediaconnect.FlowArgs.builder()
            .availabilityZone(availabilityZone?.applyValue({ args0 -> args0 }))
            .maintenance(maintenance?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .mediaStreams(
                mediaStreams?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            )
            .name(name?.applyValue({ args0 -> args0 }))
            .source(source?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .sourceFailoverConfig(
                sourceFailoverConfig?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .vpcInterfaces(
                vpcInterfaces?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.let({ args0 ->
                            args0.toJava()
                        })
                    })
                }),
            ).build()
}

/**
 * Builder for [FlowArgs].
 */
@PulumiTagMarker
public class FlowArgsBuilder internal constructor() {
    private var availabilityZone: Output? = null

    private var maintenance: Output? = null

    private var mediaStreams: Output>? = null

    private var name: Output? = null

    private var source: Output? = null

    private var sourceFailoverConfig: Output? = null

    private var vpcInterfaces: Output>? = null

    /**
     * @param value The Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current AWS.
     */
    @JvmName("disdgisxkeyxrbst")
    public suspend fun availabilityZone(`value`: Output) {
        this.availabilityZone = value
    }

    /**
     * @param value The maintenance settings you want to use for the flow.
     */
    @JvmName("pawrfrwiibdnobwb")
    public suspend fun maintenance(`value`: Output) {
        this.maintenance = value
    }

    /**
     * @param value The media streams associated with the flow. You can associate any of these media streams with sources and outputs on the flow.
     */
    @JvmName("crokrsulakrgvlba")
    public suspend fun mediaStreams(`value`: Output>) {
        this.mediaStreams = value
    }

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

    /**
     * @param values The media streams associated with the flow. You can associate any of these media streams with sources and outputs on the flow.
     */
    @JvmName("criqppookvcyvyis")
    public suspend fun mediaStreams(values: List>) {
        this.mediaStreams = Output.all(values)
    }

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

    /**
     * @param value The source of the flow.
     */
    @JvmName("udsvfpgpjicbyyrr")
    public suspend fun source(`value`: Output) {
        this.source = value
    }

    /**
     * @param value The source failover config of the flow.
     */
    @JvmName("qoiufwiaybyrxosv")
    public suspend fun sourceFailoverConfig(`value`: Output) {
        this.sourceFailoverConfig = value
    }

    /**
     * @param value The VPC interfaces that you added to this flow.
     */
    @JvmName("ufmxgbnsollylouf")
    public suspend fun vpcInterfaces(`value`: Output>) {
        this.vpcInterfaces = value
    }

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

    /**
     * @param values The VPC interfaces that you added to this flow.
     */
    @JvmName("afixmwjiqohmkygv")
    public suspend fun vpcInterfaces(values: List>) {
        this.vpcInterfaces = Output.all(values)
    }

    /**
     * @param value The Availability Zone that you want to create the flow in. These options are limited to the Availability Zones within the current AWS.
     */
    @JvmName("spxxqenxomxfdlyu")
    public suspend fun availabilityZone(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.availabilityZone = mapped
    }

    /**
     * @param value The maintenance settings you want to use for the flow.
     */
    @JvmName("kowoixpuvnbglahs")
    public suspend fun maintenance(`value`: FlowMaintenanceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.maintenance = mapped
    }

    /**
     * @param argument The maintenance settings you want to use for the flow.
     */
    @JvmName("lxwntpepurhoymbd")
    public suspend fun maintenance(argument: suspend FlowMaintenanceArgsBuilder.() -> Unit) {
        val toBeMapped = FlowMaintenanceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.maintenance = mapped
    }

    /**
     * @param value The media streams associated with the flow. You can associate any of these media streams with sources and outputs on the flow.
     */
    @JvmName("diksdgcsckpgsunx")
    public suspend fun mediaStreams(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.mediaStreams = mapped
    }

    /**
     * @param argument The media streams associated with the flow. You can associate any of these media streams with sources and outputs on the flow.
     */
    @JvmName("hfekawghwdnrcsqx")
    public suspend fun mediaStreams(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FlowMediaStreamArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.mediaStreams = mapped
    }

    /**
     * @param argument The media streams associated with the flow. You can associate any of these media streams with sources and outputs on the flow.
     */
    @JvmName("hvtydifakgimmhnn")
    public suspend fun mediaStreams(vararg argument: suspend FlowMediaStreamArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FlowMediaStreamArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.mediaStreams = mapped
    }

    /**
     * @param argument The media streams associated with the flow. You can associate any of these media streams with sources and outputs on the flow.
     */
    @JvmName("ynykvrubladeoyua")
    public suspend fun mediaStreams(argument: suspend FlowMediaStreamArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(FlowMediaStreamArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.mediaStreams = mapped
    }

    /**
     * @param values The media streams associated with the flow. You can associate any of these media streams with sources and outputs on the flow.
     */
    @JvmName("ccucktkibuljehew")
    public suspend fun mediaStreams(vararg values: FlowMediaStreamArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.mediaStreams = mapped
    }

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

    /**
     * @param value The source of the flow.
     */
    @JvmName("kttndenukkggtexr")
    public suspend fun source(`value`: FlowSourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.source = mapped
    }

    /**
     * @param argument The source of the flow.
     */
    @JvmName("cbrvfwuxpiggkonj")
    public suspend fun source(argument: suspend FlowSourceArgsBuilder.() -> Unit) {
        val toBeMapped = FlowSourceArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.source = mapped
    }

    /**
     * @param value The source failover config of the flow.
     */
    @JvmName("ttpsgxcmsddghenv")
    public suspend fun sourceFailoverConfig(`value`: FlowFailoverConfigArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sourceFailoverConfig = mapped
    }

    /**
     * @param argument The source failover config of the flow.
     */
    @JvmName("vjuhbrqiaophibcc")
    public suspend fun sourceFailoverConfig(argument: suspend FlowFailoverConfigArgsBuilder.() -> Unit) {
        val toBeMapped = FlowFailoverConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sourceFailoverConfig = mapped
    }

    /**
     * @param value The VPC interfaces that you added to this flow.
     */
    @JvmName("mmrviqxrhptmhbnw")
    public suspend fun vpcInterfaces(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpcInterfaces = mapped
    }

    /**
     * @param argument The VPC interfaces that you added to this flow.
     */
    @JvmName("iksjofbjtfpijocj")
    public suspend fun vpcInterfaces(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            FlowVpcInterfaceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.vpcInterfaces = mapped
    }

    /**
     * @param argument The VPC interfaces that you added to this flow.
     */
    @JvmName("omjaqkgbbdbgxxpq")
    public suspend fun vpcInterfaces(vararg argument: suspend FlowVpcInterfaceArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            FlowVpcInterfaceArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.vpcInterfaces = mapped
    }

    /**
     * @param argument The VPC interfaces that you added to this flow.
     */
    @JvmName("cubmiynieaiteahe")
    public suspend fun vpcInterfaces(argument: suspend FlowVpcInterfaceArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(FlowVpcInterfaceArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.vpcInterfaces = mapped
    }

    /**
     * @param values The VPC interfaces that you added to this flow.
     */
    @JvmName("hxnvyextwanfkeqs")
    public suspend fun vpcInterfaces(vararg values: FlowVpcInterfaceArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vpcInterfaces = mapped
    }

    internal fun build(): FlowArgs = FlowArgs(
        availabilityZone = availabilityZone,
        maintenance = maintenance,
        mediaStreams = mediaStreams,
        name = name,
        source = source,
        sourceFailoverConfig = sourceFailoverConfig,
        vpcInterfaces = vpcInterfaces,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy