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

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

@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.FlowSourceMonitoringConfigArgs
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.FlowSourceMonitoringConfigArgsBuilder
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 sourceMonitoringConfig The source monitoring 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 sourceMonitoringConfig: 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()
                    })
                }),
            )
            .sourceMonitoringConfig(
                sourceMonitoringConfig?.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 sourceMonitoringConfig: 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("faflniijmtwdhnrm")
    public suspend fun availabilityZone(`value`: Output) {
        this.availabilityZone = value
    }

    /**
     * @param value The maintenance settings you want to use for the flow.
     */
    @JvmName("qytuctuitucweywa")
    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("tsogjcinvhxutynp")
    public suspend fun mediaStreams(`value`: Output>) {
        this.mediaStreams = value
    }

    @JvmName("evqurscaqngdtmbg")
    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("hsasourrkitcvwsh")
    public suspend fun mediaStreams(values: List>) {
        this.mediaStreams = Output.all(values)
    }

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

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

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

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

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

    @JvmName("ifmepsmakjnnkenl")
    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("vgreckgwvugjegnd")
    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("ymgcuvhiimtjmico")
    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("uvrhqaqikwrjpuql")
    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("hggjnnrltctcynfw")
    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("qlcpdhadhoilmmss")
    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("yagkobxnqkadmexu")
    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("gtpwkwsqqdckwxru")
    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("msmvqjmrfldghfqi")
    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("ykqywfugayjdpdus")
    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("wkwsveshfinccumd")
    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("sgwjfpufljndsrbp")
    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("hkncwddkehfactjk")
    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("jdvjuxtitprlyucq")
    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("yqjelsgtrcbcntnn")
    public suspend fun sourceFailoverConfig(argument: suspend FlowFailoverConfigArgsBuilder.() -> Unit) {
        val toBeMapped = FlowFailoverConfigArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.sourceFailoverConfig = mapped
    }

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

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

    /**
     * @param value The VPC interfaces that you added to this flow.
     */
    @JvmName("xoacjxaxxxtcjtfr")
    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("bhtmtaxfpfxdkcfi")
    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("eiocltdhmcqakcgm")
    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("vjsqriuxopwldljh")
    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("cnkkkdngwilpevog")
    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,
        sourceMonitoringConfig = sourceMonitoringConfig,
        vpcInterfaces = vpcInterfaces,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy