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

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

package com.pulumi.awsnative.ec2.kotlin

import com.pulumi.awsnative.ec2.VpnConnectionArgs.builder
import com.pulumi.awsnative.ec2.kotlin.inputs.VpnConnectionVpnTunnelOptionsSpecificationArgs
import com.pulumi.awsnative.ec2.kotlin.inputs.VpnConnectionVpnTunnelOptionsSpecificationArgsBuilder
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 * Resource Type definition for AWS::EC2::VPNConnection
 * @property customerGatewayId The ID of the customer gateway at your end of the VPN connection.
 * @property staticRoutesOnly Indicates whether the VPN connection uses static routes only.
 * @property tags Any tags assigned to the VPN connection.
 * @property transitGatewayId The ID of the transit gateway associated with the VPN connection.
 * @property type The type of VPN connection.
 * @property vpnGatewayId The ID of the virtual private gateway at the AWS side of the VPN connection.
 * @property vpnTunnelOptionsSpecifications The tunnel options for the VPN connection.
 */
public data class VpnConnectionArgs(
    public val customerGatewayId: Output? = null,
    public val staticRoutesOnly: Output? = null,
    public val tags: Output>? = null,
    public val transitGatewayId: Output? = null,
    public val type: Output? = null,
    public val vpnGatewayId: Output? = null,
    public val vpnTunnelOptionsSpecifications: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.VpnConnectionArgs =
        com.pulumi.awsnative.ec2.VpnConnectionArgs.builder()
            .customerGatewayId(customerGatewayId?.applyValue({ args0 -> args0 }))
            .staticRoutesOnly(staticRoutesOnly?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) }) }))
            .transitGatewayId(transitGatewayId?.applyValue({ args0 -> args0 }))
            .type(type?.applyValue({ args0 -> args0 }))
            .vpnGatewayId(vpnGatewayId?.applyValue({ args0 -> args0 }))
            .vpnTunnelOptionsSpecifications(
                vpnTunnelOptionsSpecifications?.applyValue({ args0 ->
                    args0.map({ args0 -> args0.let({ args0 -> args0.toJava() }) })
                }),
            ).build()
}

/**
 * Builder for [VpnConnectionArgs].
 */
@PulumiTagMarker
public class VpnConnectionArgsBuilder internal constructor() {
    private var customerGatewayId: Output? = null

    private var staticRoutesOnly: Output? = null

    private var tags: Output>? = null

    private var transitGatewayId: Output? = null

    private var type: Output? = null

    private var vpnGatewayId: Output? = null

    private var vpnTunnelOptionsSpecifications:
        Output>? = null

    /**
     * @param value The ID of the customer gateway at your end of the VPN connection.
     */
    @JvmName("uyivefglkjdcvdmg")
    public suspend fun customerGatewayId(`value`: Output) {
        this.customerGatewayId = value
    }

    /**
     * @param value Indicates whether the VPN connection uses static routes only.
     */
    @JvmName("gwecuiofksgcrmqo")
    public suspend fun staticRoutesOnly(`value`: Output) {
        this.staticRoutesOnly = value
    }

    /**
     * @param value Any tags assigned to the VPN connection.
     */
    @JvmName("rffgwpsmycpijlhh")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

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

    /**
     * @param values Any tags assigned to the VPN connection.
     */
    @JvmName("ydulpjwnuggultyk")
    public suspend fun tags(values: List>) {
        this.tags = Output.all(values)
    }

    /**
     * @param value The ID of the transit gateway associated with the VPN connection.
     */
    @JvmName("srwcframedtqxoke")
    public suspend fun transitGatewayId(`value`: Output) {
        this.transitGatewayId = value
    }

    /**
     * @param value The type of VPN connection.
     */
    @JvmName("etbiudkhfooemelm")
    public suspend fun type(`value`: Output) {
        this.type = value
    }

    /**
     * @param value The ID of the virtual private gateway at the AWS side of the VPN connection.
     */
    @JvmName("vmelhmpgpitrwgok")
    public suspend fun vpnGatewayId(`value`: Output) {
        this.vpnGatewayId = value
    }

    /**
     * @param value The tunnel options for the VPN connection.
     */
    @JvmName("wxtvnhwijoixyuor")
    public suspend fun vpnTunnelOptionsSpecifications(`value`: Output>) {
        this.vpnTunnelOptionsSpecifications = value
    }

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

    /**
     * @param values The tunnel options for the VPN connection.
     */
    @JvmName("hnfhmebjvdrpvbgi")
    public suspend fun vpnTunnelOptionsSpecifications(values: List>) {
        this.vpnTunnelOptionsSpecifications = Output.all(values)
    }

    /**
     * @param value The ID of the customer gateway at your end of the VPN connection.
     */
    @JvmName("jsiwqkhtdcthntar")
    public suspend fun customerGatewayId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.customerGatewayId = mapped
    }

    /**
     * @param value Indicates whether the VPN connection uses static routes only.
     */
    @JvmName("ypwvogohfkkkogeo")
    public suspend fun staticRoutesOnly(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.staticRoutesOnly = mapped
    }

    /**
     * @param value Any tags assigned to the VPN connection.
     */
    @JvmName("ltpqxdelkdmoassi")
    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 VPN connection.
     */
    @JvmName("ihcndprvjcvhxmbe")
    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 VPN connection.
     */
    @JvmName("qufjambrkmoiaucl")
    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 VPN connection.
     */
    @JvmName("ftdcwwphubsvdbvu")
    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 VPN connection.
     */
    @JvmName("rslietxyhsgdsyqj")
    public suspend fun tags(vararg values: TagArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value The ID of the transit gateway associated with the VPN connection.
     */
    @JvmName("ywpkjfiyuxxrltkc")
    public suspend fun transitGatewayId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.transitGatewayId = mapped
    }

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

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

    /**
     * @param value The tunnel options for the VPN connection.
     */
    @JvmName("ovsuxfvijvpveeen")
    public suspend fun vpnTunnelOptionsSpecifications(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.vpnTunnelOptionsSpecifications = mapped
    }

    /**
     * @param argument The tunnel options for the VPN connection.
     */
    @JvmName("rcvbngqrsmheygmb")
    public suspend fun vpnTunnelOptionsSpecifications(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            VpnConnectionVpnTunnelOptionsSpecificationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.vpnTunnelOptionsSpecifications = mapped
    }

    /**
     * @param argument The tunnel options for the VPN connection.
     */
    @JvmName("xeucrlvyijdihebb")
    public suspend fun vpnTunnelOptionsSpecifications(vararg argument: suspend VpnConnectionVpnTunnelOptionsSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            VpnConnectionVpnTunnelOptionsSpecificationArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.vpnTunnelOptionsSpecifications = mapped
    }

    /**
     * @param argument The tunnel options for the VPN connection.
     */
    @JvmName("vplripowrahcrebo")
    public suspend fun vpnTunnelOptionsSpecifications(argument: suspend VpnConnectionVpnTunnelOptionsSpecificationArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            VpnConnectionVpnTunnelOptionsSpecificationArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.vpnTunnelOptionsSpecifications = mapped
    }

    /**
     * @param values The tunnel options for the VPN connection.
     */
    @JvmName("xrlkiqekejmrspdu")
    public suspend fun vpnTunnelOptionsSpecifications(vararg values: VpnConnectionVpnTunnelOptionsSpecificationArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.vpnTunnelOptionsSpecifications = mapped
    }

    internal fun build(): VpnConnectionArgs = VpnConnectionArgs(
        customerGatewayId = customerGatewayId,
        staticRoutesOnly = staticRoutesOnly,
        tags = tags,
        transitGatewayId = transitGatewayId,
        type = type,
        vpnGatewayId = vpnGatewayId,
        vpnTunnelOptionsSpecifications = vpnTunnelOptionsSpecifications,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy