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

com.pulumi.aws.ec2.kotlin.inputs.GetTransitGatewayRouteTablesPlainArgs.kt Maven / Gradle / Ivy

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

package com.pulumi.aws.ec2.kotlin.inputs

import com.pulumi.aws.ec2.inputs.GetTransitGatewayRouteTablesPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * A collection of arguments for invoking getTransitGatewayRouteTables.
 * @property filters Custom filter block as described below.
 * @property tags Mapping of tags, each pair of which must exactly match
 * a pair on the desired transit gateway route table.
 * More complex filters can be expressed using one or more `filter` sub-blocks,
 * which take the following arguments:
 */
public data class GetTransitGatewayRouteTablesPlainArgs(
    public val filters: List? = null,
    public val tags: Map? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.ec2.inputs.GetTransitGatewayRouteTablesPlainArgs =
        com.pulumi.aws.ec2.inputs.GetTransitGatewayRouteTablesPlainArgs.builder()
            .filters(filters?.let({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .tags(tags?.let({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() })).build()
}

/**
 * Builder for [GetTransitGatewayRouteTablesPlainArgs].
 */
@PulumiTagMarker
public class GetTransitGatewayRouteTablesPlainArgsBuilder internal constructor() {
    private var filters: List? = null

    private var tags: Map? = null

    /**
     * @param value Custom filter block as described below.
     */
    @JvmName("ttboyenfscrjhnjp")
    public suspend fun filters(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.filters = mapped
    }

    /**
     * @param argument Custom filter block as described below.
     */
    @JvmName("losurjpwybnbeias")
    public suspend fun filters(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            GetTransitGatewayRouteTablesFilterBuilder().applySuspend { it() }.build()
        }
        val mapped = toBeMapped
        this.filters = mapped
    }

    /**
     * @param argument Custom filter block as described below.
     */
    @JvmName("eupwqexaoviyfvny")
    public suspend fun filters(vararg argument: suspend GetTransitGatewayRouteTablesFilterBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            GetTransitGatewayRouteTablesFilterBuilder().applySuspend { it() }.build()
        }
        val mapped = toBeMapped
        this.filters = mapped
    }

    /**
     * @param argument Custom filter block as described below.
     */
    @JvmName("xdjlhdpoelgswqin")
    public suspend fun filters(argument: suspend GetTransitGatewayRouteTablesFilterBuilder.() -> Unit) {
        val toBeMapped = listOf(
            GetTransitGatewayRouteTablesFilterBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = toBeMapped
        this.filters = mapped
    }

    /**
     * @param values Custom filter block as described below.
     */
    @JvmName("svwupeagjujurvvb")
    public suspend fun filters(vararg values: GetTransitGatewayRouteTablesFilter) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.filters = mapped
    }

    /**
     * @param value Mapping of tags, each pair of which must exactly match
     * a pair on the desired transit gateway route table.
     * More complex filters can be expressed using one or more `filter` sub-blocks,
     * which take the following arguments:
     */
    @JvmName("mnwvpfbhoknibwws")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> args0 })
        this.tags = mapped
    }

    /**
     * @param values Mapping of tags, each pair of which must exactly match
     * a pair on the desired transit gateway route table.
     * More complex filters can be expressed using one or more `filter` sub-blocks,
     * which take the following arguments:
     */
    @JvmName("lqcdxjadeixjvywn")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> args0 })
        this.tags = mapped
    }

    internal fun build(): GetTransitGatewayRouteTablesPlainArgs =
        GetTransitGatewayRouteTablesPlainArgs(
            filters = filters,
            tags = tags,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy