com.pulumi.cloudflare.kotlin.inputs.ZeroTrustTunnelCloudflaredConfigConfigArgs.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.inputs
import com.pulumi.cloudflare.inputs.ZeroTrustTunnelCloudflaredConfigConfigArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property ingressRules Each incoming request received by cloudflared causes cloudflared to send a request to a local service. This section configures the rules that determine which requests are sent to which local services. Last rule must match all requests, e.g `service = "http_status:503"`. [Read more](https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide/local/local-management/ingress/).
* @property originRequest
* @property warpRouting If you're exposing a [private network](https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/private-net/), you need to add the `warp-routing` key and set it to `true`.
*/
public data class ZeroTrustTunnelCloudflaredConfigConfigArgs(
public val ingressRules: Output>,
public val originRequest: Output? = null,
public val warpRouting: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.inputs.ZeroTrustTunnelCloudflaredConfigConfigArgs =
com.pulumi.cloudflare.inputs.ZeroTrustTunnelCloudflaredConfigConfigArgs.builder()
.ingressRules(
ingressRules.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.originRequest(originRequest?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.warpRouting(warpRouting?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ZeroTrustTunnelCloudflaredConfigConfigArgs].
*/
@PulumiTagMarker
public class ZeroTrustTunnelCloudflaredConfigConfigArgsBuilder internal constructor() {
private var ingressRules: Output>? =
null
private var originRequest: Output? = null
private var warpRouting: Output? = null
/**
* @param value Each incoming request received by cloudflared causes cloudflared to send a request to a local service. This section configures the rules that determine which requests are sent to which local services. Last rule must match all requests, e.g `service = "http_status:503"`. [Read more](https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide/local/local-management/ingress/).
*/
@JvmName("mbddigovkravmtux")
public suspend fun ingressRules(`value`: Output>) {
this.ingressRules = value
}
@JvmName("xsrmesoujysnpaqj")
public suspend fun ingressRules(vararg values: Output) {
this.ingressRules = Output.all(values.asList())
}
/**
* @param values Each incoming request received by cloudflared causes cloudflared to send a request to a local service. This section configures the rules that determine which requests are sent to which local services. Last rule must match all requests, e.g `service = "http_status:503"`. [Read more](https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide/local/local-management/ingress/).
*/
@JvmName("nufvksttarrtjirl")
public suspend fun ingressRules(values: List