com.pulumi.awsnative.ec2.kotlin.VpnGatewayArgs.kt Maven / Gradle / Ivy
@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("lfibwjsqejoxgobr")
public suspend fun amazonSideAsn(`value`: Output) {
this.amazonSideAsn = value
}
/**
* @param value Any tags assigned to the virtual private gateway.
*/
@JvmName("fdbayommihvskmbs")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
@JvmName("lviejwanpukspphc")
public suspend fun tags(vararg values: Output) {
this.tags = Output.all(values.asList())
}
/**
* @param values Any tags assigned to the virtual private gateway.
*/
@JvmName("lnussrccjjmppsux")
public suspend fun tags(values: List