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

com.pulumi.awsnative.mediaconnect.kotlin.inputs.BridgeSourceBridgeFlowSourceArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.mediaconnect.kotlin.inputs

import com.pulumi.awsnative.mediaconnect.inputs.BridgeSourceBridgeFlowSourceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName

/**
 * The source of the bridge. A flow source originates in MediaConnect as an existing cloud flow.
 * @property flowArn The ARN of the cloud flow used as a source of this bridge.
 * @property flowVpcInterfaceAttachment The name of the VPC interface attachment to use for this source.
 */
public data class BridgeSourceBridgeFlowSourceArgs(
    public val flowArn: Output,
    public val flowVpcInterfaceAttachment: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.mediaconnect.inputs.BridgeSourceBridgeFlowSourceArgs =
        com.pulumi.awsnative.mediaconnect.inputs.BridgeSourceBridgeFlowSourceArgs.builder()
            .flowArn(flowArn.applyValue({ args0 -> args0 }))
            .flowVpcInterfaceAttachment(
                flowVpcInterfaceAttachment?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [BridgeSourceBridgeFlowSourceArgs].
 */
@PulumiTagMarker
public class BridgeSourceBridgeFlowSourceArgsBuilder internal constructor() {
    private var flowArn: Output? = null

    private var flowVpcInterfaceAttachment: Output? = null

    /**
     * @param value The ARN of the cloud flow used as a source of this bridge.
     */
    @JvmName("bwldjdhyymwmfyvb")
    public suspend fun flowArn(`value`: Output) {
        this.flowArn = value
    }

    /**
     * @param value The name of the VPC interface attachment to use for this source.
     */
    @JvmName("fitwduawwammepcc")
    public suspend fun flowVpcInterfaceAttachment(`value`: Output) {
        this.flowVpcInterfaceAttachment = value
    }

    /**
     * @param value The ARN of the cloud flow used as a source of this bridge.
     */
    @JvmName("ntgvbrvbhxisixpt")
    public suspend fun flowArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.flowArn = mapped
    }

    /**
     * @param value The name of the VPC interface attachment to use for this source.
     */
    @JvmName("oyqigvmgfpdmibgh")
    public suspend fun flowVpcInterfaceAttachment(`value`: BridgeSourceVpcInterfaceAttachmentArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.flowVpcInterfaceAttachment = mapped
    }

    /**
     * @param argument The name of the VPC interface attachment to use for this source.
     */
    @JvmName("dkhesnjyfobicegt")
    public suspend fun flowVpcInterfaceAttachment(argument: suspend BridgeSourceVpcInterfaceAttachmentArgsBuilder.() -> Unit) {
        val toBeMapped = BridgeSourceVpcInterfaceAttachmentArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.flowVpcInterfaceAttachment = mapped
    }

    internal fun build(): BridgeSourceBridgeFlowSourceArgs = BridgeSourceBridgeFlowSourceArgs(
        flowArn = flowArn ?: throw PulumiNullFieldException("flowArn"),
        flowVpcInterfaceAttachment = flowVpcInterfaceAttachment,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy