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

com.pulumi.awsnative.ec2.kotlin.TransitGatewayConnectArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.ec2.kotlin

import com.pulumi.awsnative.ec2.TransitGatewayConnectArgs.builder
import com.pulumi.awsnative.ec2.kotlin.inputs.TransitGatewayConnectOptionsArgs
import com.pulumi.awsnative.ec2.kotlin.inputs.TransitGatewayConnectOptionsArgsBuilder
import com.pulumi.awsnative.kotlin.inputs.TagArgs
import com.pulumi.awsnative.kotlin.inputs.TagArgsBuilder
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

/**
 * The AWS::EC2::TransitGatewayConnect type
 * @property options The Connect attachment options.
 * @property tags The tags for the attachment.
 * @property transportTransitGatewayAttachmentId The ID of the attachment from which the Connect attachment was created.
 */
public data class TransitGatewayConnectArgs(
    public val options: Output? = null,
    public val tags: Output>? = null,
    public val transportTransitGatewayAttachmentId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.TransitGatewayConnectArgs =
        com.pulumi.awsnative.ec2.TransitGatewayConnectArgs.builder()
            .options(options?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .transportTransitGatewayAttachmentId(
                transportTransitGatewayAttachmentId?.applyValue({ args0 ->
                    args0
                }),
            ).build()
}

/**
 * Builder for [TransitGatewayConnectArgs].
 */
@PulumiTagMarker
public class TransitGatewayConnectArgsBuilder internal constructor() {
    private var options: Output? = null

    private var tags: Output>? = null

    private var transportTransitGatewayAttachmentId: Output? = null

    /**
     * @param value The Connect attachment options.
     */
    @JvmName("bnuoetkmbguybayl")
    public suspend fun options(`value`: Output) {
        this.options = value
    }

    /**
     * @param value The tags for the attachment.
     */
    @JvmName("jvxnycefydjcabof")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values The tags for the attachment.
     */
    @JvmName("hhfmnbcnegmljoml")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The ID of the attachment from which the Connect attachment was created.
     */
    @JvmName("upqevhgubglcphrd")
    public suspend fun transportTransitGatewayAttachmentId(`value`: Output) {
        this.transportTransitGatewayAttachmentId = value
    }

    /**
     * @param value The Connect attachment options.
     */
    @JvmName("xqceutkcvivhocie")
    public suspend fun options(`value`: TransitGatewayConnectOptionsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.options = mapped
    }

    /**
     * @param argument The Connect attachment options.
     */
    @JvmName("rblpivieicoirawg")
    public suspend fun options(argument: suspend TransitGatewayConnectOptionsArgsBuilder.() -> Unit) {
        val toBeMapped = TransitGatewayConnectOptionsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.options = mapped
    }

    /**
     * @param value The tags for the attachment.
     */
    @JvmName("gdfoiktkvyveyuju")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument The tags for the attachment.
     */
    @JvmName("lhypusdxtkcbtfkh")
    public suspend fun tags(argument: List Unit>) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags for the attachment.
     */
    @JvmName("mrqfwgmsdtrjeljg")
    public suspend fun tags(vararg argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map { TagArgsBuilder().applySuspend { it() }.build() }
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param argument The tags for the attachment.
     */
    @JvmName("ttnjnmdkdfinjfsm")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values The tags for the attachment.
     */
    @JvmName("fspwgpinsmqwemof")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The ID of the attachment from which the Connect attachment was created.
     */
    @JvmName("ersvnlbptexghbqp")
    public suspend fun transportTransitGatewayAttachmentId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transportTransitGatewayAttachmentId = mapped
    }

    internal fun build(): TransitGatewayConnectArgs = TransitGatewayConnectArgs(
        options = options,
        tags = tags,
        transportTransitGatewayAttachmentId = transportTransitGatewayAttachmentId,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy