com.pulumi.cloudflare.kotlin.TunnelRouteArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-cloudflare-kotlin Show documentation
Show all versions of pulumi-cloudflare-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin
import com.pulumi.cloudflare.TunnelRouteArgs.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/tunnelRoute:TunnelRoute 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 TunnelRouteArgs(
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.TunnelRouteArgs =
com.pulumi.cloudflare.TunnelRouteArgs.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 [TunnelRouteArgs].
*/
@PulumiTagMarker
public class TunnelRouteArgsBuilder 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("vqyfjcojfiomclot")
public suspend fun accountId(`value`: Output) {
this.accountId = value
}
/**
* @param value Description of the tunnel route.
*/
@JvmName("gerrmcrgyjhkxgxw")
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("lasnibrkrrrxexgo")
public suspend fun network(`value`: Output) {
this.network = value
}
/**
* @param value The ID of the tunnel that will service the tunnel route.
*/
@JvmName("rwoyqwxpekddnfiw")
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("gjxmdgmbwmvgrpac")
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("tbgoscrbujpykqvc")
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("badqangubixuqgvq")
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("epeolbbuadgmcwda")
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("gpjittmdqbjmduxg")
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("eikxvywvbqqptvsu")
public suspend fun virtualNetworkId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.virtualNetworkId = mapped
}
internal fun build(): TunnelRouteArgs = TunnelRouteArgs(
accountId = accountId,
comment = comment,
network = network,
tunnelId = tunnelId,
virtualNetworkId = virtualNetworkId,
)
}