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

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

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

package com.pulumi.awsnative.ec2.kotlin

import com.pulumi.awsnative.ec2.TransitGatewayArgs.builder
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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::EC2::TransitGateway
 * @property amazonSideAsn A private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534 for 16-bit ASNs. The default is 64512.
 * @property associationDefaultRouteTableId The ID of the default association route table.
 * @property autoAcceptSharedAttachments Enable or disable automatic acceptance of attachment requests. Disabled by default.
 * @property defaultRouteTableAssociation Enable or disable automatic association with the default association route table. Enabled by default.
 * @property defaultRouteTablePropagation Enable or disable automatic propagation of routes to the default propagation route table. Enabled by default.
 * @property description The description of the transit gateway.
 * @property dnsSupport Enable or disable DNS support. Enabled by default.
 * @property multicastSupport Indicates whether multicast is enabled on the transit gateway
 * @property propagationDefaultRouteTableId The ID of the default propagation route table.
 * @property tags The tags for the transit gateway.
 * @property transitGatewayCidrBlocks The transit gateway CIDR blocks.
 * @property vpnEcmpSupport Enable or disable Equal Cost Multipath Protocol support. Enabled by default.
 */
public data class TransitGatewayArgs(
    public val amazonSideAsn: Output? = null,
    public val associationDefaultRouteTableId: Output? = null,
    public val autoAcceptSharedAttachments: Output? = null,
    public val defaultRouteTableAssociation: Output? = null,
    public val defaultRouteTablePropagation: Output? = null,
    public val description: Output? = null,
    public val dnsSupport: Output? = null,
    public val multicastSupport: Output? = null,
    public val propagationDefaultRouteTableId: Output? = null,
    public val tags: Output>? = null,
    public val transitGatewayCidrBlocks: Output>? = null,
    public val vpnEcmpSupport: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.TransitGatewayArgs =
        com.pulumi.awsnative.ec2.TransitGatewayArgs.builder()
            .amazonSideAsn(amazonSideAsn?.applyValue({ args0 -> args0 }))
            .associationDefaultRouteTableId(associationDefaultRouteTableId?.applyValue({ args0 -> args0 }))
            .autoAcceptSharedAttachments(autoAcceptSharedAttachments?.applyValue({ args0 -> args0 }))
            .defaultRouteTableAssociation(defaultRouteTableAssociation?.applyValue({ args0 -> args0 }))
            .defaultRouteTablePropagation(defaultRouteTablePropagation?.applyValue({ args0 -> args0 }))
            .description(description?.applyValue({ args0 -> args0 }))
            .dnsSupport(dnsSupport?.applyValue({ args0 -> args0 }))
            .multicastSupport(multicastSupport?.applyValue({ args0 -> args0 }))
            .propagationDefaultRouteTableId(propagationDefaultRouteTableId?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .transitGatewayCidrBlocks(
                transitGatewayCidrBlocks?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0
                    })
                }),
            )
            .vpnEcmpSupport(vpnEcmpSupport?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [TransitGatewayArgs].
 */
@PulumiTagMarker
public class TransitGatewayArgsBuilder internal constructor() {
    private var amazonSideAsn: Output? = null

    private var associationDefaultRouteTableId: Output? = null

    private var autoAcceptSharedAttachments: Output? = null

    private var defaultRouteTableAssociation: Output? = null

    private var defaultRouteTablePropagation: Output? = null

    private var description: Output? = null

    private var dnsSupport: Output? = null

    private var multicastSupport: Output? = null

    private var propagationDefaultRouteTableId: Output? = null

    private var tags: Output>? = null

    private var transitGatewayCidrBlocks: Output>? = null

    private var vpnEcmpSupport: Output? = null

    /**
     * @param value A private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534 for 16-bit ASNs. The default is 64512.
     */
    @JvmName("iyrqhtvpwgsjqcak")
    public suspend fun amazonSideAsn(`value`: Output) {
        this.amazonSideAsn = value
    }

    /**
     * @param value The ID of the default association route table.
     */
    @JvmName("ativfvvuwhdhfioi")
    public suspend fun associationDefaultRouteTableId(`value`: Output) {
        this.associationDefaultRouteTableId = value
    }

    /**
     * @param value Enable or disable automatic acceptance of attachment requests. Disabled by default.
     */
    @JvmName("achwhnysuasremtg")
    public suspend fun autoAcceptSharedAttachments(`value`: Output) {
        this.autoAcceptSharedAttachments = value
    }

    /**
     * @param value Enable or disable automatic association with the default association route table. Enabled by default.
     */
    @JvmName("dvuijnadqnrisyeu")
    public suspend fun defaultRouteTableAssociation(`value`: Output) {
        this.defaultRouteTableAssociation = value
    }

    /**
     * @param value Enable or disable automatic propagation of routes to the default propagation route table. Enabled by default.
     */
    @JvmName("oksqbauthfnycpdv")
    public suspend fun defaultRouteTablePropagation(`value`: Output) {
        this.defaultRouteTablePropagation = value
    }

    /**
     * @param value The description of the transit gateway.
     */
    @JvmName("ydserqndottihytv")
    public suspend fun description(`value`: Output) {
        this.description = value
    }

    /**
     * @param value Enable or disable DNS support. Enabled by default.
     */
    @JvmName("cfturxwiunrhyjqr")
    public suspend fun dnsSupport(`value`: Output) {
        this.dnsSupport = value
    }

    /**
     * @param value Indicates whether multicast is enabled on the transit gateway
     */
    @JvmName("bhacuegcqqdfldtd")
    public suspend fun multicastSupport(`value`: Output) {
        this.multicastSupport = value
    }

    /**
     * @param value The ID of the default propagation route table.
     */
    @JvmName("gfjgmvtjtshkajme")
    public suspend fun propagationDefaultRouteTableId(`value`: Output) {
        this.propagationDefaultRouteTableId = value
    }

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

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

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

    /**
     * @param value The transit gateway CIDR blocks.
     */
    @JvmName("vqahrecemwmaxehx")
    public suspend fun transitGatewayCidrBlocks(`value`: Output>) {
        this.transitGatewayCidrBlocks = value
    }

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

    /**
     * @param values The transit gateway CIDR blocks.
     */
    @JvmName("bwvrtlblqmlugdyv")
    public suspend fun transitGatewayCidrBlocks(values: List>) {
        this.transitGatewayCidrBlocks = Output.all(values)
    }

    /**
     * @param value Enable or disable Equal Cost Multipath Protocol support. Enabled by default.
     */
    @JvmName("rhsrhoynunhrlqdv")
    public suspend fun vpnEcmpSupport(`value`: Output) {
        this.vpnEcmpSupport = value
    }

    /**
     * @param value A private Autonomous System Number (ASN) for the Amazon side of a BGP session. The range is 64512 to 65534 for 16-bit ASNs. The default is 64512.
     */
    @JvmName("posbqlebpacvvwrj")
    public suspend fun amazonSideAsn(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.amazonSideAsn = mapped
    }

    /**
     * @param value The ID of the default association route table.
     */
    @JvmName("sfskfnfasefsnxso")
    public suspend fun associationDefaultRouteTableId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.associationDefaultRouteTableId = mapped
    }

    /**
     * @param value Enable or disable automatic acceptance of attachment requests. Disabled by default.
     */
    @JvmName("vlusomtwtgctcqqr")
    public suspend fun autoAcceptSharedAttachments(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoAcceptSharedAttachments = mapped
    }

    /**
     * @param value Enable or disable automatic association with the default association route table. Enabled by default.
     */
    @JvmName("rlechkpmdmrstsll")
    public suspend fun defaultRouteTableAssociation(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultRouteTableAssociation = mapped
    }

    /**
     * @param value Enable or disable automatic propagation of routes to the default propagation route table. Enabled by default.
     */
    @JvmName("ytemfchvgbivngre")
    public suspend fun defaultRouteTablePropagation(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.defaultRouteTablePropagation = mapped
    }

    /**
     * @param value The description of the transit gateway.
     */
    @JvmName("wquemewdogxusuru")
    public suspend fun description(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.description = mapped
    }

    /**
     * @param value Enable or disable DNS support. Enabled by default.
     */
    @JvmName("pdhslughqmppbube")
    public suspend fun dnsSupport(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dnsSupport = mapped
    }

    /**
     * @param value Indicates whether multicast is enabled on the transit gateway
     */
    @JvmName("myxqrnvbmuwqjpbl")
    public suspend fun multicastSupport(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.multicastSupport = mapped
    }

    /**
     * @param value The ID of the default propagation route table.
     */
    @JvmName("uwoelddbnodojcwu")
    public suspend fun propagationDefaultRouteTableId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.propagationDefaultRouteTableId = mapped
    }

    /**
     * @param value The tags for the transit gateway.
     */
    @JvmName("hphhvskebtwrkibi")
    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 transit gateway.
     */
    @JvmName("gsbumjmivtqueprg")
    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 transit gateway.
     */
    @JvmName("tmtppmykykraqrfg")
    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 transit gateway.
     */
    @JvmName("otqlprqewkwqqhxu")
    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 transit gateway.
     */
    @JvmName("pjbitdulhuvqhtgu")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The transit gateway CIDR blocks.
     */
    @JvmName("drpgimbrvsmwkvsm")
    public suspend fun transitGatewayCidrBlocks(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transitGatewayCidrBlocks = mapped
    }

    /**
     * @param values The transit gateway CIDR blocks.
     */
    @JvmName("hmyvhmibdkhmelti")
    public suspend fun transitGatewayCidrBlocks(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.transitGatewayCidrBlocks = mapped
    }

    /**
     * @param value Enable or disable Equal Cost Multipath Protocol support. Enabled by default.
     */
    @JvmName("nnfvecnmlaqohogc")
    public suspend fun vpnEcmpSupport(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpnEcmpSupport = mapped
    }

    internal fun build(): TransitGatewayArgs = TransitGatewayArgs(
        amazonSideAsn = amazonSideAsn,
        associationDefaultRouteTableId = associationDefaultRouteTableId,
        autoAcceptSharedAttachments = autoAcceptSharedAttachments,
        defaultRouteTableAssociation = defaultRouteTableAssociation,
        defaultRouteTablePropagation = defaultRouteTablePropagation,
        description = description,
        dnsSupport = dnsSupport,
        multicastSupport = multicastSupport,
        propagationDefaultRouteTableId = propagationDefaultRouteTableId,
        tags = tags,
        transitGatewayCidrBlocks = transitGatewayCidrBlocks,
        vpnEcmpSupport = vpnEcmpSupport,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy