com.pulumi.aws.ec2transitgateway.kotlin.inputs.GetConnectPlainArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.ec2transitgateway.kotlin.inputs
import com.pulumi.aws.ec2transitgateway.inputs.GetConnectPlainArgs.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 getConnect.
* @property filters One or more configuration blocks containing name-values filters. Detailed below.
* @property tags Key-value tags for the EC2 Transit Gateway Connect
* @property transitGatewayConnectId Identifier of the EC2 Transit Gateway Connect.
*/
public data class GetConnectPlainArgs(
public val filters: List? = null,
public val tags: Map? = null,
public val transitGatewayConnectId: String? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.ec2transitgateway.inputs.GetConnectPlainArgs =
com.pulumi.aws.ec2transitgateway.inputs.GetConnectPlainArgs.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() }))
.transitGatewayConnectId(transitGatewayConnectId?.let({ args0 -> args0 })).build()
}
/**
* Builder for [GetConnectPlainArgs].
*/
@PulumiTagMarker
public class GetConnectPlainArgsBuilder internal constructor() {
private var filters: List? = null
private var tags: Map? = null
private var transitGatewayConnectId: String? = null
/**
* @param value One or more configuration blocks containing name-values filters. Detailed below.
*/
@JvmName("ngwmcvfaqqyiobhk")
public suspend fun filters(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.filters = mapped
}
/**
* @param argument One or more configuration blocks containing name-values filters. Detailed below.
*/
@JvmName("kvwxreiqnlunnbge")
public suspend fun filters(argument: List Unit>) {
val toBeMapped = argument.toList().map {
GetConnectFilterBuilder().applySuspend { it() }.build()
}
val mapped = toBeMapped
this.filters = mapped
}
/**
* @param argument One or more configuration blocks containing name-values filters. Detailed below.
*/
@JvmName("ovpwngfgebmjafsg")
public suspend fun filters(vararg argument: suspend GetConnectFilterBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
GetConnectFilterBuilder().applySuspend { it() }.build()
}
val mapped = toBeMapped
this.filters = mapped
}
/**
* @param argument One or more configuration blocks containing name-values filters. Detailed below.
*/
@JvmName("rmcxquyrnmngiuvr")
public suspend fun filters(argument: suspend GetConnectFilterBuilder.() -> Unit) {
val toBeMapped = listOf(GetConnectFilterBuilder().applySuspend { argument() }.build())
val mapped = toBeMapped
this.filters = mapped
}
/**
* @param values One or more configuration blocks containing name-values filters. Detailed below.
*/
@JvmName("rhpupqpxbmhmdyoy")
public suspend fun filters(vararg values: GetConnectFilter) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> args0 })
this.filters = mapped
}
/**
* @param value Key-value tags for the EC2 Transit Gateway Connect
*/
@JvmName("pmiwbsbhbeeipqvn")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.tags = mapped
}
/**
* @param values Key-value tags for the EC2 Transit Gateway Connect
*/
@JvmName("aujiwjacluqjhuft")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> args0 })
this.tags = mapped
}
/**
* @param value Identifier of the EC2 Transit Gateway Connect.
*/
@JvmName("qntoceeydebkgpwf")
public suspend fun transitGatewayConnectId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.transitGatewayConnectId = mapped
}
internal fun build(): GetConnectPlainArgs = GetConnectPlainArgs(
filters = filters,
tags = tags,
transitGatewayConnectId = transitGatewayConnectId,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy