com.pulumi.cloudflare.kotlin.ZeroTrustSplitTunnelArgs.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.
The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.cloudflare.kotlin
import com.pulumi.cloudflare.ZeroTrustSplitTunnelArgs.builder
import com.pulumi.cloudflare.kotlin.inputs.ZeroTrustSplitTunnelTunnelArgs
import com.pulumi.cloudflare.kotlin.inputs.ZeroTrustSplitTunnelTunnelArgsBuilder
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Provides a Cloudflare Split Tunnel resource. Split tunnels are used to either
* include or exclude lists of routes from the WARP client's tunnel.
* @property accountId The account identifier to target for the resource.
* @property mode The mode of the split tunnel policy. Available values: `include`, `exclude`.
* @property policyId The settings policy for which to configure this split tunnel policy.
* @property tunnels The value of the tunnel attributes.
*/
public data class ZeroTrustSplitTunnelArgs(
public val accountId: Output? = null,
public val mode: Output? = null,
public val policyId: Output? = null,
public val tunnels: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.ZeroTrustSplitTunnelArgs =
com.pulumi.cloudflare.ZeroTrustSplitTunnelArgs.builder()
.accountId(accountId?.applyValue({ args0 -> args0 }))
.mode(mode?.applyValue({ args0 -> args0 }))
.policyId(policyId?.applyValue({ args0 -> args0 }))
.tunnels(
tunnels?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
).build()
}
/**
* Builder for [ZeroTrustSplitTunnelArgs].
*/
@PulumiTagMarker
public class ZeroTrustSplitTunnelArgsBuilder internal constructor() {
private var accountId: Output? = null
private var mode: Output? = null
private var policyId: Output? = null
private var tunnels: Output>? = null
/**
* @param value The account identifier to target for the resource.
*/
@JvmName("woymqmdvdxbfkacs")
public suspend fun accountId(`value`: Output) {
this.accountId = value
}
/**
* @param value The mode of the split tunnel policy. Available values: `include`, `exclude`.
*/
@JvmName("jcrepueirdkpcuob")
public suspend fun mode(`value`: Output) {
this.mode = value
}
/**
* @param value The settings policy for which to configure this split tunnel policy.
*/
@JvmName("xljldxhsclospdjm")
public suspend fun policyId(`value`: Output) {
this.policyId = value
}
/**
* @param value The value of the tunnel attributes.
*/
@JvmName("nqeofampqqvchxsf")
public suspend fun tunnels(`value`: Output>) {
this.tunnels = value
}
@JvmName("egcjuuqndownlveh")
public suspend fun tunnels(vararg values: Output) {
this.tunnels = Output.all(values.asList())
}
/**
* @param values The value of the tunnel attributes.
*/
@JvmName("uiuevwexamkylrlw")
public suspend fun tunnels(values: List