
com.pulumi.aws.apigateway.kotlin.inputs.GetVpcLinkPlainArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.aws.apigateway.kotlin.inputs
import com.pulumi.aws.apigateway.inputs.GetVpcLinkPlainArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* A collection of arguments for invoking getVpcLink.
* @property name Name of the API Gateway VPC Link to look up. If no API Gateway VPC Link is found with this name, an error will be returned.
* If multiple API Gateway VPC Links are found with this name, an error will be returned.
* @property tags Key-value map of resource tags
*/
public data class GetVpcLinkPlainArgs(
public val name: String,
public val tags: Map? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.apigateway.inputs.GetVpcLinkPlainArgs =
com.pulumi.aws.apigateway.inputs.GetVpcLinkPlainArgs.builder()
.name(name.let({ args0 -> args0 }))
.tags(tags?.let({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() })).build()
}
/**
* Builder for [GetVpcLinkPlainArgs].
*/
@PulumiTagMarker
public class GetVpcLinkPlainArgsBuilder internal constructor() {
private var name: String? = null
private var tags: Map? = null
/**
* @param value Name of the API Gateway VPC Link to look up. If no API Gateway VPC Link is found with this name, an error will be returned.
* If multiple API Gateway VPC Links are found with this name, an error will be returned.
*/
@JvmName("hpqxrlwtoyffoxsd")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> args0 })
this.name = mapped
}
/**
* @param value Key-value map of resource tags
*/
@JvmName("vvidnvjtamhwmbfk")
public suspend fun tags(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> args0 })
this.tags = mapped
}
/**
* @param values Key-value map of resource tags
*/
@JvmName("pnarxhxtfctwktmm")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> args0 })
this.tags = mapped
}
internal fun build(): GetVpcLinkPlainArgs = GetVpcLinkPlainArgs(
name = name ?: throw PulumiNullFieldException("name"),
tags = tags,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy