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

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

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

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

import com.pulumi.awsnative.mediaconnect.inputs.FlowSourceGatewayBridgeSourceArgs.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 configuration for cloud flows receiving a stream from a bridge.
 * @property bridgeArn The ARN of the bridge feeding this flow.
 * @property vpcInterfaceAttachment The name of the VPC interface attachment to use for this bridge source.
 */
public data class FlowSourceGatewayBridgeSourceArgs(
    public val bridgeArn: Output,
    public val vpcInterfaceAttachment: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.mediaconnect.inputs.FlowSourceGatewayBridgeSourceArgs = com.pulumi.awsnative.mediaconnect.inputs.FlowSourceGatewayBridgeSourceArgs.builder()
        .bridgeArn(bridgeArn.applyValue({ args0 -> args0 }))
        .vpcInterfaceAttachment(
            vpcInterfaceAttachment?.applyValue({ args0 ->
                args0.let({ args0 ->
                    args0.toJava()
                })
            }),
        ).build()
}

/**
 * Builder for [FlowSourceGatewayBridgeSourceArgs].
 */
@PulumiTagMarker
public class FlowSourceGatewayBridgeSourceArgsBuilder internal constructor() {
    private var bridgeArn: Output? = null

    private var vpcInterfaceAttachment: Output? = null

    /**
     * @param value The ARN of the bridge feeding this flow.
     */
    @JvmName("sthmllyvgbvehyxe")
    public suspend fun bridgeArn(`value`: Output) {
        this.bridgeArn = value
    }

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

    /**
     * @param value The ARN of the bridge feeding this flow.
     */
    @JvmName("uraqvxkaevppponm")
    public suspend fun bridgeArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.bridgeArn = mapped
    }

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

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

    internal fun build(): FlowSourceGatewayBridgeSourceArgs = FlowSourceGatewayBridgeSourceArgs(
        bridgeArn = bridgeArn ?: throw PulumiNullFieldException("bridgeArn"),
        vpcInterfaceAttachment = vpcInterfaceAttachment,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy