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

com.pulumi.awsnative.ec2.kotlin.VpnGatewayArgs.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ec2.kotlin

import com.pulumi.awsnative.ec2.VpnGatewayArgs.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

/**
 * Specifies a virtual private gateway. A virtual private gateway is the endpoint on the VPC side of your VPN connection. You can create a virtual private gateway before creating the VPC itself.
 *  For more information, see [](https://docs.aws.amazon.com/vpn/latest/s2svpn/VPC_VPN.html) in the *User Guide*.
 * @property amazonSideAsn The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
 * @property tags Any tags assigned to the virtual private gateway.
 * @property type The type of VPN connection the virtual private gateway supports.
 */
public data class VpnGatewayArgs(
    public val amazonSideAsn: Output? = null,
    public val tags: Output>? = null,
    public val type: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.VpnGatewayArgs =
        com.pulumi.awsnative.ec2.VpnGatewayArgs.builder()
            .amazonSideAsn(amazonSideAsn?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .type(type?.applyValue({ args0 -> args0 })).build()
}

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

    private var tags: Output>? = null

    private var type: Output? = null

    /**
     * @param value The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
     */
    @JvmName("milrmvhjutpxgosl")
    public suspend fun amazonSideAsn(`value`: Output) {
        this.amazonSideAsn = value
    }

    /**
     * @param value Any tags assigned to the virtual private gateway.
     */
    @JvmName("tnmiggjjbllvecef")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Any tags assigned to the virtual private gateway.
     */
    @JvmName("icuxxmfwyeehvvef")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The type of VPN connection the virtual private gateway supports.
     */
    @JvmName("mljebxagoolhcdop")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The private Autonomous System Number (ASN) for the Amazon side of a BGP session.
     */
    @JvmName("mrmyhnkbtgyoubqw")
    public suspend fun amazonSideAsn(`value`: Int?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.amazonSideAsn = mapped
    }

    /**
     * @param value Any tags assigned to the virtual private gateway.
     */
    @JvmName("jayqenfswmanyjic")
    public suspend fun tags(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param argument Any tags assigned to the virtual private gateway.
     */
    @JvmName("pocrdfpwvcexylun")
    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 Any tags assigned to the virtual private gateway.
     */
    @JvmName("ghjosiscjyjaxvou")
    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 Any tags assigned to the virtual private gateway.
     */
    @JvmName("rvmfbahefdhsrnyo")
    public suspend fun tags(argument: suspend TagArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(TagArgsBuilder().applySuspend { argument() }.build())
        val mapped = of(toBeMapped)
        this.tags = mapped
    }

    /**
     * @param values Any tags assigned to the virtual private gateway.
     */
    @JvmName("lweworfddgjasqrj")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The type of VPN connection the virtual private gateway supports.
     */
    @JvmName("anawhokqtlrejpml")
    public suspend fun type(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.type = mapped
    }

    internal fun build(): VpnGatewayArgs = VpnGatewayArgs(
        amazonSideAsn = amazonSideAsn,
        tags = tags,
        type = type,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy