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

com.pulumi.awsnative.apigatewayv2.kotlin.VpcLinkArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.24.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.apigatewayv2.kotlin

import com.pulumi.awsnative.apigatewayv2.VpcLinkArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::ApiGatewayV2::VpcLink
 * @property name The name of the VPC link.
 * @property securityGroupIds A list of security group IDs for the VPC link.
 * @property subnetIds A list of subnet IDs to include in the VPC link.
 * @property tags This resource type use map for Tags, suggest to use List of Tag
 */
public data class VpcLinkArgs(
    public val name: Output? = null,
    public val securityGroupIds: Output>? = null,
    public val subnetIds: Output>? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.apigatewayv2.VpcLinkArgs =
        com.pulumi.awsnative.apigatewayv2.VpcLinkArgs.builder()
            .name(name?.applyValue({ args0 -> args0 }))
            .securityGroupIds(securityGroupIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .subnetIds(subnetIds?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .tags(
                tags?.applyValue({ args0 ->
                    args0.map({ args0 ->
                        args0.key.to(args0.value)
                    }).toMap()
                }),
            ).build()
}

/**
 * Builder for [VpcLinkArgs].
 */
@PulumiTagMarker
public class VpcLinkArgsBuilder internal constructor() {
    private var name: Output? = null

    private var securityGroupIds: Output>? = null

    private var subnetIds: Output>? = null

    private var tags: Output>? = null

    /**
     * @param value The name of the VPC link.
     */
    @JvmName("qxtuoygcsnjjcjns")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A list of security group IDs for the VPC link.
     */
    @JvmName("ljijvgvkicimitir")
    public suspend fun securityGroupIds(`value`: Output>) {
        this.securityGroupIds = value
    }

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

    /**
     * @param values A list of security group IDs for the VPC link.
     */
    @JvmName("rocrsndewgjdhjxu")
    public suspend fun securityGroupIds(values: List>) {
        this.securityGroupIds = Output.all(values)
    }

    /**
     * @param value A list of subnet IDs to include in the VPC link.
     */
    @JvmName("fqtqyviykbbplumq")
    public suspend fun subnetIds(`value`: Output>) {
        this.subnetIds = value
    }

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

    /**
     * @param values A list of subnet IDs to include in the VPC link.
     */
    @JvmName("qqgpvpkhyoisjjed")
    public suspend fun subnetIds(values: List>) {
        this.subnetIds = Output.all(values)
    }

    /**
     * @param value This resource type use map for Tags, suggest to use List of Tag
     */
    @JvmName("antmebvnoxdejico")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value The name of the VPC link.
     */
    @JvmName("nvkfisaitfboogfk")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A list of security group IDs for the VPC link.
     */
    @JvmName("bnyigjkeulyphuio")
    public suspend fun securityGroupIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param values A list of security group IDs for the VPC link.
     */
    @JvmName("wpuxqujsfrlbvcul")
    public suspend fun securityGroupIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.securityGroupIds = mapped
    }

    /**
     * @param value A list of subnet IDs to include in the VPC link.
     */
    @JvmName("ynbjlrljltsxyvrh")
    public suspend fun subnetIds(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param values A list of subnet IDs to include in the VPC link.
     */
    @JvmName("dsejccdsohrrvrek")
    public suspend fun subnetIds(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.subnetIds = mapped
    }

    /**
     * @param value This resource type use map for Tags, suggest to use List of Tag
     */
    @JvmName("kklhqwtjlrhdxici")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values This resource type use map for Tags, suggest to use List of Tag
     */
    @JvmName("qtejbqackxqapkad")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): VpcLinkArgs = VpcLinkArgs(
        name = name,
        securityGroupIds = securityGroupIds,
        subnetIds = subnetIds,
        tags = tags,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy