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

com.pulumi.awsnative.ec2.kotlin.inputs.VpnConnectionVpnTunnelOptionsSpecificationArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ec2.kotlin.inputs

import com.pulumi.awsnative.ec2.inputs.VpnConnectionVpnTunnelOptionsSpecificationArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * The tunnel options for a single VPN tunnel.
 * @property preSharedKey The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway.
 *  Constraints: Allowed characters are alphanumeric characters, periods (.), and underscores (_). Must be between 8 and 64 characters in length and cannot start with zero (0).
 * @property tunnelInsideCidr The range of inside IP addresses for the tunnel. Any specified CIDR blocks must be unique across all VPN connections that use the same virtual private gateway.
 *  Constraints: A size /30 CIDR block from the ``169.254.0.0/16`` range. The following CIDR blocks are reserved and cannot be used:
 *   +   ``169.254.0.0/30``
 *   +   ``169.254.1.0/30``
 *   +   ``169.254.2.0/30``
 *   +   ``169.254.3.0/30``
 *   +   ``169.254.4.0/30``
 *   +   ``169.254.5.0/30``
 *   +   ``169.254.169.252/30``
 */
public data class VpnConnectionVpnTunnelOptionsSpecificationArgs(
    public val preSharedKey: Output? = null,
    public val tunnelInsideCidr: Output? = null,
) :
    ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ec2.inputs.VpnConnectionVpnTunnelOptionsSpecificationArgs =
        com.pulumi.awsnative.ec2.inputs.VpnConnectionVpnTunnelOptionsSpecificationArgs.builder()
            .preSharedKey(preSharedKey?.applyValue({ args0 -> args0 }))
            .tunnelInsideCidr(tunnelInsideCidr?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [VpnConnectionVpnTunnelOptionsSpecificationArgs].
 */
@PulumiTagMarker
public class VpnConnectionVpnTunnelOptionsSpecificationArgsBuilder internal constructor() {
    private var preSharedKey: Output? = null

    private var tunnelInsideCidr: Output? = null

    /**
     * @param value The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway.
     *  Constraints: Allowed characters are alphanumeric characters, periods (.), and underscores (_). Must be between 8 and 64 characters in length and cannot start with zero (0).
     */
    @JvmName("mbhhswdgxbmkqtue")
    public suspend fun preSharedKey(`value`: Output) {
        this.preSharedKey = value
    }

    /**
     * @param value The range of inside IP addresses for the tunnel. Any specified CIDR blocks must be unique across all VPN connections that use the same virtual private gateway.
     *  Constraints: A size /30 CIDR block from the ``169.254.0.0/16`` range. The following CIDR blocks are reserved and cannot be used:
     *   +   ``169.254.0.0/30``
     *   +   ``169.254.1.0/30``
     *   +   ``169.254.2.0/30``
     *   +   ``169.254.3.0/30``
     *   +   ``169.254.4.0/30``
     *   +   ``169.254.5.0/30``
     *   +   ``169.254.169.252/30``
     */
    @JvmName("jsdvvnahjvbhxqww")
    public suspend fun tunnelInsideCidr(`value`: Output) {
        this.tunnelInsideCidr = value
    }

    /**
     * @param value The pre-shared key (PSK) to establish initial authentication between the virtual private gateway and customer gateway.
     *  Constraints: Allowed characters are alphanumeric characters, periods (.), and underscores (_). Must be between 8 and 64 characters in length and cannot start with zero (0).
     */
    @JvmName("ixwaevcqkcvowxkk")
    public suspend fun preSharedKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.preSharedKey = mapped
    }

    /**
     * @param value The range of inside IP addresses for the tunnel. Any specified CIDR blocks must be unique across all VPN connections that use the same virtual private gateway.
     *  Constraints: A size /30 CIDR block from the ``169.254.0.0/16`` range. The following CIDR blocks are reserved and cannot be used:
     *   +   ``169.254.0.0/30``
     *   +   ``169.254.1.0/30``
     *   +   ``169.254.2.0/30``
     *   +   ``169.254.3.0/30``
     *   +   ``169.254.4.0/30``
     *   +   ``169.254.5.0/30``
     *   +   ``169.254.169.252/30``
     */
    @JvmName("ppskscasorqxicok")
    public suspend fun tunnelInsideCidr(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tunnelInsideCidr = mapped
    }

    internal fun build(): VpnConnectionVpnTunnelOptionsSpecificationArgs =
        VpnConnectionVpnTunnelOptionsSpecificationArgs(
            preSharedKey = preSharedKey,
            tunnelInsideCidr = tunnelInsideCidr,
        )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy