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

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

import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @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 ZeroTrustTunnelCloudflaredConfigConfig(
    public val ingressRules: List,
    public val originRequest: ZeroTrustTunnelCloudflaredConfigConfigOriginRequest? = null,
    public val warpRouting: ZeroTrustTunnelCloudflaredConfigConfigWarpRouting? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.cloudflare.outputs.ZeroTrustTunnelCloudflaredConfigConfig): ZeroTrustTunnelCloudflaredConfigConfig = ZeroTrustTunnelCloudflaredConfigConfig(
            ingressRules = javaType.ingressRules().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.cloudflare.kotlin.outputs.ZeroTrustTunnelCloudflaredConfigConfigIngressRule.Companion.toKotlin(args0)
                })
            }),
            originRequest = javaType.originRequest().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.cloudflare.kotlin.outputs.ZeroTrustTunnelCloudflaredConfigConfigOriginRequest.Companion.toKotlin(args0)
                })
            }).orElse(null),
            warpRouting = javaType.warpRouting().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.cloudflare.kotlin.outputs.ZeroTrustTunnelCloudflaredConfigConfigWarpRouting.Companion.toKotlin(args0)
                })
            }).orElse(null),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy