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

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

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

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

import com.pulumi.awsnative.mediaconnect.inputs.FlowVpcInterfaceArgs.builder
import com.pulumi.awsnative.mediaconnect.kotlin.enums.FlowVpcInterfaceNetworkInterfaceType
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 kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * The details of a VPC interface.
 * @property name Immutable and has to be a unique against other VpcInterfaces in this Flow.
 * @property networkInterfaceIds IDs of the network interfaces created in customer's account by MediaConnect.
 * @property networkInterfaceType The type of network adapter that you want MediaConnect to use on this interface. If you don't set this value, it defaults to ENA.
 * @property roleArn Role Arn MediaConnect can assume to create ENIs in customer's account.
 * @property securityGroupIds Security Group IDs to be used on ENI.
 * @property subnetId Subnet must be in the AZ of the Flow
 */
public data class FlowVpcInterfaceArgs(
    public val name: Output,
    public val networkInterfaceIds: Output>? = null,
    public val networkInterfaceType: Output? = null,
    public val roleArn: Output,
    public val securityGroupIds: Output>,
    public val subnetId: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.mediaconnect.inputs.FlowVpcInterfaceArgs =
        com.pulumi.awsnative.mediaconnect.inputs.FlowVpcInterfaceArgs.builder()
            .name(name.applyValue({ args0 -> args0 }))
            .networkInterfaceIds(networkInterfaceIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .networkInterfaceType(
                networkInterfaceType?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .roleArn(roleArn.applyValue({ args0 -> args0 }))
            .securityGroupIds(securityGroupIds.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subnetId(subnetId.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [FlowVpcInterfaceArgs].
 */
@PulumiTagMarker
public class FlowVpcInterfaceArgsBuilder internal constructor() {
    private var name: Output? = null

    private var networkInterfaceIds: Output>? = null

    private var networkInterfaceType: Output? = null

    private var roleArn: Output? = null

    private var securityGroupIds: Output>? = null

    private var subnetId: Output? = null

    /**
     * @param value Immutable and has to be a unique against other VpcInterfaces in this Flow.
     */
    @JvmName("apqrpcydeskkykoo")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value IDs of the network interfaces created in customer's account by MediaConnect.
     */
    @JvmName("kbkihocwuithbxju")
    public suspend fun networkInterfaceIds(`value`: Output>) {
        this.networkInterfaceIds = value
    }

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

    /**
     * @param values IDs of the network interfaces created in customer's account by MediaConnect.
     */
    @JvmName("jbcoutvuhiubblip")
    public suspend fun networkInterfaceIds(values: List>) {
        this.networkInterfaceIds = Output.all(values)
    }

    /**
     * @param value The type of network adapter that you want MediaConnect to use on this interface. If you don't set this value, it defaults to ENA.
     */
    @JvmName("hhrmxopjfpujpwif")
    public suspend fun networkInterfaceType(`value`: Output) {
        this.networkInterfaceType = value
    }

    /**
     * @param value Role Arn MediaConnect can assume to create ENIs in customer's account.
     */
    @JvmName("hsiwxjrltplghupi")
    public suspend fun roleArn(`value`: Output) {
        this.roleArn = value
    }

    /**
     * @param value Security Group IDs to be used on ENI.
     */
    @JvmName("ujpinxibbfciprsg")
    public suspend fun securityGroupIds(`value`: Output>) {
        this.securityGroupIds = value
    }

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

    /**
     * @param values Security Group IDs to be used on ENI.
     */
    @JvmName("haybpfuyxaeunvfa")
    public suspend fun securityGroupIds(values: List>) {
        this.securityGroupIds = Output.all(values)
    }

    /**
     * @param value Subnet must be in the AZ of the Flow
     */
    @JvmName("etqdguaimkftvsjb")
    public suspend fun subnetId(`value`: Output) {
        this.subnetId = value
    }

    /**
     * @param value Immutable and has to be a unique against other VpcInterfaces in this Flow.
     */
    @JvmName("dwachcishdycjjpq")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value IDs of the network interfaces created in customer's account by MediaConnect.
     */
    @JvmName("jihujtctqkyisjkd")
    public suspend fun networkInterfaceIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkInterfaceIds = mapped
    }

    /**
     * @param values IDs of the network interfaces created in customer's account by MediaConnect.
     */
    @JvmName("uxgjolkaqonmygqw")
    public suspend fun networkInterfaceIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.networkInterfaceIds = mapped
    }

    /**
     * @param value The type of network adapter that you want MediaConnect to use on this interface. If you don't set this value, it defaults to ENA.
     */
    @JvmName("vwmlftpahieqrjwx")
    public suspend fun networkInterfaceType(`value`: FlowVpcInterfaceNetworkInterfaceType?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.networkInterfaceType = mapped
    }

    /**
     * @param value Role Arn MediaConnect can assume to create ENIs in customer's account.
     */
    @JvmName("halypfpwntliaevg")
    public suspend fun roleArn(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.roleArn = mapped
    }

    /**
     * @param value Security Group IDs to be used on ENI.
     */
    @JvmName("xdvixrcccuxaxtta")
    public suspend fun securityGroupIds(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param values Security Group IDs to be used on ENI.
     */
    @JvmName("ejbolponajhctfjw")
    public suspend fun securityGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param value Subnet must be in the AZ of the Flow
     */
    @JvmName("ncogdetpnlercfkb")
    public suspend fun subnetId(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetId = mapped
    }

    internal fun build(): FlowVpcInterfaceArgs = FlowVpcInterfaceArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        networkInterfaceIds = networkInterfaceIds,
        networkInterfaceType = networkInterfaceType,
        roleArn = roleArn ?: throw PulumiNullFieldException("roleArn"),
        securityGroupIds = securityGroupIds ?: throw PulumiNullFieldException("securityGroupIds"),
        subnetId = subnetId ?: throw PulumiNullFieldException("subnetId"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy