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

com.pulumi.cloudflare.kotlin.ZeroTrustTunnelRouteArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin

import com.pulumi.cloudflare.ZeroTrustTunnelRouteArgs.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

/**
 * Provides a resource, that manages Cloudflare tunnel routes for Zero
 * Trust. Tunnel routes are used to direct IP traffic through
 * Cloudflare Tunnels.
 * ## Import
 * ```sh
 * $ pulumi import cloudflare:index/zeroTrustTunnelRoute:ZeroTrustTunnelRoute example //
 * ```
 * @property accountId The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
 * @property comment Description of the tunnel route.
 * @property network The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
 * @property tunnelId The ID of the tunnel that will service the tunnel route.
 * @property virtualNetworkId The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided. **Modifying this attribute will force creation of a new resource.**
 */
public data class ZeroTrustTunnelRouteArgs(
    public val accountId: Output? = null,
    public val comment: Output? = null,
    public val network: Output? = null,
    public val tunnelId: Output? = null,
    public val virtualNetworkId: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.ZeroTrustTunnelRouteArgs =
        com.pulumi.cloudflare.ZeroTrustTunnelRouteArgs.builder()
            .accountId(accountId?.applyValue({ args0 -> args0 }))
            .comment(comment?.applyValue({ args0 -> args0 }))
            .network(network?.applyValue({ args0 -> args0 }))
            .tunnelId(tunnelId?.applyValue({ args0 -> args0 }))
            .virtualNetworkId(virtualNetworkId?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ZeroTrustTunnelRouteArgs].
 */
@PulumiTagMarker
public class ZeroTrustTunnelRouteArgsBuilder internal constructor() {
    private var accountId: Output? = null

    private var comment: Output? = null

    private var network: Output? = null

    private var tunnelId: Output? = null

    private var virtualNetworkId: Output? = null

    /**
     * @param value The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
     */
    @JvmName("hiqfrcaagnapaqqd")
    public suspend fun accountId(`value`: Output) {
        this.accountId = value
    }

    /**
     * @param value Description of the tunnel route.
     */
    @JvmName("ndorishijnedixfo")
    public suspend fun comment(`value`: Output) {
        this.comment = value
    }

    /**
     * @param value The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
     */
    @JvmName("bxfjulkdekecokqb")
    public suspend fun network(`value`: Output) {
        this.network = value
    }

    /**
     * @param value The ID of the tunnel that will service the tunnel route.
     */
    @JvmName("lwoplbgexkckokcj")
    public suspend fun tunnelId(`value`: Output) {
        this.tunnelId = value
    }

    /**
     * @param value The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided. **Modifying this attribute will force creation of a new resource.**
     */
    @JvmName("iskcmuawmivomtob")
    public suspend fun virtualNetworkId(`value`: Output) {
        this.virtualNetworkId = value
    }

    /**
     * @param value The account identifier to target for the resource. **Modifying this attribute will force creation of a new resource.**
     */
    @JvmName("fxmhhrfxypdfshst")
    public suspend fun accountId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.accountId = mapped
    }

    /**
     * @param value Description of the tunnel route.
     */
    @JvmName("atufxyywxoeusprl")
    public suspend fun comment(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.comment = mapped
    }

    /**
     * @param value The IPv4 or IPv6 network that should use this tunnel route, in CIDR notation.
     */
    @JvmName("iwbxakqjkguqdfim")
    public suspend fun network(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.network = mapped
    }

    /**
     * @param value The ID of the tunnel that will service the tunnel route.
     */
    @JvmName("rbtdppwojhhnignk")
    public suspend fun tunnelId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tunnelId = mapped
    }

    /**
     * @param value The ID of the virtual network for which this route is being added; uses the default virtual network of the account if none is provided. **Modifying this attribute will force creation of a new resource.**
     */
    @JvmName("ttikjocdeselgdvj")
    public suspend fun virtualNetworkId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.virtualNetworkId = mapped
    }

    internal fun build(): ZeroTrustTunnelRouteArgs = ZeroTrustTunnelRouteArgs(
        accountId = accountId,
        comment = comment,
        network = network,
        tunnelId = tunnelId,
        virtualNetworkId = virtualNetworkId,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy