com.pulumi.awsnative.mediaconnect.kotlin.BridgeSourceArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.mediaconnect.kotlin
import com.pulumi.awsnative.mediaconnect.BridgeSourceArgs.builder
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.BridgeSourceBridgeFlowSourceArgs
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.BridgeSourceBridgeFlowSourceArgsBuilder
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.BridgeSourceBridgeNetworkSourceArgs
import com.pulumi.awsnative.mediaconnect.kotlin.inputs.BridgeSourceBridgeNetworkSourceArgsBuilder
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.jvm.JvmName
/**
* Resource schema for AWS::MediaConnect::BridgeSource
* @property bridgeArn The Amazon Resource Number (ARN) of the bridge.
* @property flowSource Add a flow source to an existing bridge.
* @property name The name of the source.
* @property networkSource Add a network source to an existing bridge.
*/
public data class BridgeSourceArgs(
public val bridgeArn: Output? = null,
public val flowSource: Output? = null,
public val name: Output? = null,
public val networkSource: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.mediaconnect.BridgeSourceArgs =
com.pulumi.awsnative.mediaconnect.BridgeSourceArgs.builder()
.bridgeArn(bridgeArn?.applyValue({ args0 -> args0 }))
.flowSource(flowSource?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.name(name?.applyValue({ args0 -> args0 }))
.networkSource(networkSource?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [BridgeSourceArgs].
*/
@PulumiTagMarker
public class BridgeSourceArgsBuilder internal constructor() {
private var bridgeArn: Output? = null
private var flowSource: Output? = null
private var name: Output? = null
private var networkSource: Output? = null
/**
* @param value The Amazon Resource Number (ARN) of the bridge.
*/
@JvmName("topruyjitqkwavet")
public suspend fun bridgeArn(`value`: Output) {
this.bridgeArn = value
}
/**
* @param value Add a flow source to an existing bridge.
*/
@JvmName("belngwlnpjmllvub")
public suspend fun flowSource(`value`: Output) {
this.flowSource = value
}
/**
* @param value The name of the source.
*/
@JvmName("gwqlhwhgrrpahhaf")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value Add a network source to an existing bridge.
*/
@JvmName("uvpbrpsrinjexgie")
public suspend fun networkSource(`value`: Output) {
this.networkSource = value
}
/**
* @param value The Amazon Resource Number (ARN) of the bridge.
*/
@JvmName("waitlhqqmiryfnjc")
public suspend fun bridgeArn(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.bridgeArn = mapped
}
/**
* @param value Add a flow source to an existing bridge.
*/
@JvmName("deucrwrfqiclftsf")
public suspend fun flowSource(`value`: BridgeSourceBridgeFlowSourceArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.flowSource = mapped
}
/**
* @param argument Add a flow source to an existing bridge.
*/
@JvmName("shxpdoarckdktajn")
public suspend fun flowSource(argument: suspend BridgeSourceBridgeFlowSourceArgsBuilder.() -> Unit) {
val toBeMapped = BridgeSourceBridgeFlowSourceArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.flowSource = mapped
}
/**
* @param value The name of the source.
*/
@JvmName("sfgwyfxbdmitxxti")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value Add a network source to an existing bridge.
*/
@JvmName("ipteucsuisccyivr")
public suspend fun networkSource(`value`: BridgeSourceBridgeNetworkSourceArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.networkSource = mapped
}
/**
* @param argument Add a network source to an existing bridge.
*/
@JvmName("gvsejthiortjvvic")
public suspend fun networkSource(argument: suspend BridgeSourceBridgeNetworkSourceArgsBuilder.() -> Unit) {
val toBeMapped = BridgeSourceBridgeNetworkSourceArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.networkSource = mapped
}
internal fun build(): BridgeSourceArgs = BridgeSourceArgs(
bridgeArn = bridgeArn,
flowSource = flowSource,
name = name,
networkSource = networkSource,
)
}