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

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

There is a newer version: 5.40.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin

import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustGatewaySettingsAntivirus
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustGatewaySettingsBlockPage
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustGatewaySettingsBodyScanning
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustGatewaySettingsCustomCertificate
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustGatewaySettingsExtendedEmailMatching
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustGatewaySettingsFips
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustGatewaySettingsLogging
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustGatewaySettingsPayloadLog
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustGatewaySettingsProxy
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustGatewaySettingsSshSessionLog
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustGatewaySettingsAntivirus.Companion.toKotlin as zeroTrustGatewaySettingsAntivirusToKotlin
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustGatewaySettingsBlockPage.Companion.toKotlin as zeroTrustGatewaySettingsBlockPageToKotlin
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustGatewaySettingsBodyScanning.Companion.toKotlin as zeroTrustGatewaySettingsBodyScanningToKotlin
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustGatewaySettingsCustomCertificate.Companion.toKotlin as zeroTrustGatewaySettingsCustomCertificateToKotlin
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustGatewaySettingsExtendedEmailMatching.Companion.toKotlin as zeroTrustGatewaySettingsExtendedEmailMatchingToKotlin
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustGatewaySettingsFips.Companion.toKotlin as zeroTrustGatewaySettingsFipsToKotlin
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustGatewaySettingsLogging.Companion.toKotlin as zeroTrustGatewaySettingsLoggingToKotlin
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustGatewaySettingsPayloadLog.Companion.toKotlin as zeroTrustGatewaySettingsPayloadLogToKotlin
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustGatewaySettingsProxy.Companion.toKotlin as zeroTrustGatewaySettingsProxyToKotlin
import com.pulumi.cloudflare.kotlin.outputs.ZeroTrustGatewaySettingsSshSessionLog.Companion.toKotlin as zeroTrustGatewaySettingsSshSessionLogToKotlin

/**
 * Builder for [ZeroTrustGatewaySettings].
 */
@PulumiTagMarker
public class ZeroTrustGatewaySettingsResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: ZeroTrustGatewaySettingsArgs = ZeroTrustGatewaySettingsArgs()

    public var opts: CustomResourceOptions = CustomResourceOptions()

    /**
     * @param name The _unique_ name of the resulting resource.
     */
    public fun name(`value`: String) {
        this.name = value
    }

    /**
     * @param block The arguments to use to populate this resource's properties.
     */
    public suspend fun args(block: suspend ZeroTrustGatewaySettingsArgsBuilder.() -> Unit) {
        val builder = ZeroTrustGatewaySettingsArgsBuilder()
        block(builder)
        this.args = builder.build()
    }

    /**
     * @param block A bag of options that control this resource's behavior.
     */
    public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
        this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
    }

    internal fun build(): ZeroTrustGatewaySettings {
        val builtJavaResource = com.pulumi.cloudflare.ZeroTrustGatewaySettings(
            this.name,
            this.args.toJava(),
            this.opts.toJava(),
        )
        return ZeroTrustGatewaySettings(builtJavaResource)
    }
}

/**
 * Provides a Cloudflare Teams Account resource. The Teams Account
 * resource defines configuration for secure web gateway.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as cloudflare from "@pulumi/cloudflare";
 * const example = new cloudflare.ZeroTrustGatewaySettings("example", {
 *     accountId: "f037e56e89293a057740de681ac9abbe",
 *     tlsDecryptEnabled: true,
 *     protocolDetectionEnabled: true,
 *     blockPage: {
 *         footerText: "hello",
 *         headerText: "hello",
 *         logoPath: "https://example.com/logo.jpg",
 *         backgroundColor: "#000000",
 *     },
 *     bodyScanning: {
 *         inspectionMode: "deep",
 *     },
 *     antivirus: {
 *         enabledDownloadPhase: true,
 *         enabledUploadPhase: false,
 *         failClosed: true,
 *         notificationSettings: {
 *             enabled: true,
 *             message: "you are blocked",
 *             supportUrl: "https://example.com/blocked",
 *         },
 *     },
 *     fips: {
 *         tls: true,
 *     },
 *     proxy: {
 *         tcp: true,
 *         udp: true,
 *         rootCa: true,
 *         virtualIp: false,
 *     },
 *     urlBrowserIsolationEnabled: true,
 *     logging: {
 *         redactPii: true,
 *         settingsByRuleType: {
 *             dns: {
 *                 logAll: false,
 *                 logBlocks: true,
 *             },
 *             http: {
 *                 logAll: true,
 *                 logBlocks: true,
 *             },
 *             l4: {
 *                 logAll: false,
 *                 logBlocks: true,
 *             },
 *         },
 *     },
 *     extendedEmailMatching: {
 *         enabled: true,
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_cloudflare as cloudflare
 * example = cloudflare.ZeroTrustGatewaySettings("example",
 *     account_id="f037e56e89293a057740de681ac9abbe",
 *     tls_decrypt_enabled=True,
 *     protocol_detection_enabled=True,
 *     block_page={
 *         "footer_text": "hello",
 *         "header_text": "hello",
 *         "logo_path": "https://example.com/logo.jpg",
 *         "background_color": "#000000",
 *     },
 *     body_scanning={
 *         "inspection_mode": "deep",
 *     },
 *     antivirus={
 *         "enabled_download_phase": True,
 *         "enabled_upload_phase": False,
 *         "fail_closed": True,
 *         "notification_settings": {
 *             "enabled": True,
 *             "message": "you are blocked",
 *             "support_url": "https://example.com/blocked",
 *         },
 *     },
 *     fips={
 *         "tls": True,
 *     },
 *     proxy={
 *         "tcp": True,
 *         "udp": True,
 *         "root_ca": True,
 *         "virtual_ip": False,
 *     },
 *     url_browser_isolation_enabled=True,
 *     logging={
 *         "redact_pii": True,
 *         "settings_by_rule_type": {
 *             "dns": {
 *                 "log_all": False,
 *                 "log_blocks": True,
 *             },
 *             "http": {
 *                 "log_all": True,
 *                 "log_blocks": True,
 *             },
 *             "l4": {
 *                 "log_all": False,
 *                 "log_blocks": True,
 *             },
 *         },
 *     },
 *     extended_email_matching={
 *         "enabled": True,
 *     })
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Cloudflare = Pulumi.Cloudflare;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Cloudflare.ZeroTrustGatewaySettings("example", new()
 *     {
 *         AccountId = "f037e56e89293a057740de681ac9abbe",
 *         TlsDecryptEnabled = true,
 *         ProtocolDetectionEnabled = true,
 *         BlockPage = new Cloudflare.Inputs.ZeroTrustGatewaySettingsBlockPageArgs
 *         {
 *             FooterText = "hello",
 *             HeaderText = "hello",
 *             LogoPath = "https://example.com/logo.jpg",
 *             BackgroundColor = "#000000",
 *         },
 *         BodyScanning = new Cloudflare.Inputs.ZeroTrustGatewaySettingsBodyScanningArgs
 *         {
 *             InspectionMode = "deep",
 *         },
 *         Antivirus = new Cloudflare.Inputs.ZeroTrustGatewaySettingsAntivirusArgs
 *         {
 *             EnabledDownloadPhase = true,
 *             EnabledUploadPhase = false,
 *             FailClosed = true,
 *             NotificationSettings = new Cloudflare.Inputs.ZeroTrustGatewaySettingsAntivirusNotificationSettingsArgs
 *             {
 *                 Enabled = true,
 *                 Message = "you are blocked",
 *                 SupportUrl = "https://example.com/blocked",
 *             },
 *         },
 *         Fips = new Cloudflare.Inputs.ZeroTrustGatewaySettingsFipsArgs
 *         {
 *             Tls = true,
 *         },
 *         Proxy = new Cloudflare.Inputs.ZeroTrustGatewaySettingsProxyArgs
 *         {
 *             Tcp = true,
 *             Udp = true,
 *             RootCa = true,
 *             VirtualIp = false,
 *         },
 *         UrlBrowserIsolationEnabled = true,
 *         Logging = new Cloudflare.Inputs.ZeroTrustGatewaySettingsLoggingArgs
 *         {
 *             RedactPii = true,
 *             SettingsByRuleType = new Cloudflare.Inputs.ZeroTrustGatewaySettingsLoggingSettingsByRuleTypeArgs
 *             {
 *                 Dns = new Cloudflare.Inputs.ZeroTrustGatewaySettingsLoggingSettingsByRuleTypeDnsArgs
 *                 {
 *                     LogAll = false,
 *                     LogBlocks = true,
 *                 },
 *                 Http = new Cloudflare.Inputs.ZeroTrustGatewaySettingsLoggingSettingsByRuleTypeHttpArgs
 *                 {
 *                     LogAll = true,
 *                     LogBlocks = true,
 *                 },
 *                 L4 = new Cloudflare.Inputs.ZeroTrustGatewaySettingsLoggingSettingsByRuleTypeL4Args
 *                 {
 *                     LogAll = false,
 *                     LogBlocks = true,
 *                 },
 *             },
 *         },
 *         ExtendedEmailMatching = new Cloudflare.Inputs.ZeroTrustGatewaySettingsExtendedEmailMatchingArgs
 *         {
 *             Enabled = true,
 *         },
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-cloudflare/sdk/v5/go/cloudflare"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := cloudflare.NewZeroTrustGatewaySettings(ctx, "example", &cloudflare.ZeroTrustGatewaySettingsArgs{
 * 			AccountId:                pulumi.String("f037e56e89293a057740de681ac9abbe"),
 * 			TlsDecryptEnabled:        pulumi.Bool(true),
 * 			ProtocolDetectionEnabled: pulumi.Bool(true),
 * 			BlockPage: &cloudflare.ZeroTrustGatewaySettingsBlockPageArgs{
 * 				FooterText:      pulumi.String("hello"),
 * 				HeaderText:      pulumi.String("hello"),
 * 				LogoPath:        pulumi.String("https://example.com/logo.jpg"),
 * 				BackgroundColor: pulumi.String("#000000"),
 * 			},
 * 			BodyScanning: &cloudflare.ZeroTrustGatewaySettingsBodyScanningArgs{
 * 				InspectionMode: pulumi.String("deep"),
 * 			},
 * 			Antivirus: &cloudflare.ZeroTrustGatewaySettingsAntivirusArgs{
 * 				EnabledDownloadPhase: pulumi.Bool(true),
 * 				EnabledUploadPhase:   pulumi.Bool(false),
 * 				FailClosed:           pulumi.Bool(true),
 * 				NotificationSettings: &cloudflare.ZeroTrustGatewaySettingsAntivirusNotificationSettingsArgs{
 * 					Enabled:    pulumi.Bool(true),
 * 					Message:    pulumi.String("you are blocked"),
 * 					SupportUrl: pulumi.String("https://example.com/blocked"),
 * 				},
 * 			},
 * 			Fips: &cloudflare.ZeroTrustGatewaySettingsFipsArgs{
 * 				Tls: pulumi.Bool(true),
 * 			},
 * 			Proxy: &cloudflare.ZeroTrustGatewaySettingsProxyArgs{
 * 				Tcp:       pulumi.Bool(true),
 * 				Udp:       pulumi.Bool(true),
 * 				RootCa:    pulumi.Bool(true),
 * 				VirtualIp: pulumi.Bool(false),
 * 			},
 * 			UrlBrowserIsolationEnabled: pulumi.Bool(true),
 * 			Logging: &cloudflare.ZeroTrustGatewaySettingsLoggingArgs{
 * 				RedactPii: pulumi.Bool(true),
 * 				SettingsByRuleType: &cloudflare.ZeroTrustGatewaySettingsLoggingSettingsByRuleTypeArgs{
 * 					Dns: &cloudflare.ZeroTrustGatewaySettingsLoggingSettingsByRuleTypeDnsArgs{
 * 						LogAll:    pulumi.Bool(false),
 * 						LogBlocks: pulumi.Bool(true),
 * 					},
 * 					Http: &cloudflare.ZeroTrustGatewaySettingsLoggingSettingsByRuleTypeHttpArgs{
 * 						LogAll:    pulumi.Bool(true),
 * 						LogBlocks: pulumi.Bool(true),
 * 					},
 * 					L4: &cloudflare.ZeroTrustGatewaySettingsLoggingSettingsByRuleTypeL4Args{
 * 						LogAll:    pulumi.Bool(false),
 * 						LogBlocks: pulumi.Bool(true),
 * 					},
 * 				},
 * 			},
 * 			ExtendedEmailMatching: &cloudflare.ZeroTrustGatewaySettingsExtendedEmailMatchingArgs{
 * 				Enabled: pulumi.Bool(true),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.cloudflare.ZeroTrustGatewaySettings;
 * import com.pulumi.cloudflare.ZeroTrustGatewaySettingsArgs;
 * import com.pulumi.cloudflare.inputs.ZeroTrustGatewaySettingsBlockPageArgs;
 * import com.pulumi.cloudflare.inputs.ZeroTrustGatewaySettingsBodyScanningArgs;
 * import com.pulumi.cloudflare.inputs.ZeroTrustGatewaySettingsAntivirusArgs;
 * import com.pulumi.cloudflare.inputs.ZeroTrustGatewaySettingsAntivirusNotificationSettingsArgs;
 * import com.pulumi.cloudflare.inputs.ZeroTrustGatewaySettingsFipsArgs;
 * import com.pulumi.cloudflare.inputs.ZeroTrustGatewaySettingsProxyArgs;
 * import com.pulumi.cloudflare.inputs.ZeroTrustGatewaySettingsLoggingArgs;
 * import com.pulumi.cloudflare.inputs.ZeroTrustGatewaySettingsLoggingSettingsByRuleTypeArgs;
 * import com.pulumi.cloudflare.inputs.ZeroTrustGatewaySettingsLoggingSettingsByRuleTypeDnsArgs;
 * import com.pulumi.cloudflare.inputs.ZeroTrustGatewaySettingsLoggingSettingsByRuleTypeHttpArgs;
 * import com.pulumi.cloudflare.inputs.ZeroTrustGatewaySettingsLoggingSettingsByRuleTypeL4Args;
 * import com.pulumi.cloudflare.inputs.ZeroTrustGatewaySettingsExtendedEmailMatchingArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var example = new ZeroTrustGatewaySettings("example", ZeroTrustGatewaySettingsArgs.builder()
 *             .accountId("f037e56e89293a057740de681ac9abbe")
 *             .tlsDecryptEnabled(true)
 *             .protocolDetectionEnabled(true)
 *             .blockPage(ZeroTrustGatewaySettingsBlockPageArgs.builder()
 *                 .footerText("hello")
 *                 .headerText("hello")
 *                 .logoPath("https://example.com/logo.jpg")
 *                 .backgroundColor("#000000")
 *                 .build())
 *             .bodyScanning(ZeroTrustGatewaySettingsBodyScanningArgs.builder()
 *                 .inspectionMode("deep")
 *                 .build())
 *             .antivirus(ZeroTrustGatewaySettingsAntivirusArgs.builder()
 *                 .enabledDownloadPhase(true)
 *                 .enabledUploadPhase(false)
 *                 .failClosed(true)
 *                 .notificationSettings(ZeroTrustGatewaySettingsAntivirusNotificationSettingsArgs.builder()
 *                     .enabled(true)
 *                     .message("you are blocked")
 *                     .supportUrl("https://example.com/blocked")
 *                     .build())
 *                 .build())
 *             .fips(ZeroTrustGatewaySettingsFipsArgs.builder()
 *                 .tls(true)
 *                 .build())
 *             .proxy(ZeroTrustGatewaySettingsProxyArgs.builder()
 *                 .tcp(true)
 *                 .udp(true)
 *                 .rootCa(true)
 *                 .virtualIp(false)
 *                 .build())
 *             .urlBrowserIsolationEnabled(true)
 *             .logging(ZeroTrustGatewaySettingsLoggingArgs.builder()
 *                 .redactPii(true)
 *                 .settingsByRuleType(ZeroTrustGatewaySettingsLoggingSettingsByRuleTypeArgs.builder()
 *                     .dns(ZeroTrustGatewaySettingsLoggingSettingsByRuleTypeDnsArgs.builder()
 *                         .logAll(false)
 *                         .logBlocks(true)
 *                         .build())
 *                     .http(ZeroTrustGatewaySettingsLoggingSettingsByRuleTypeHttpArgs.builder()
 *                         .logAll(true)
 *                         .logBlocks(true)
 *                         .build())
 *                     .l4(ZeroTrustGatewaySettingsLoggingSettingsByRuleTypeL4Args.builder()
 *                         .logAll(false)
 *                         .logBlocks(true)
 *                         .build())
 *                     .build())
 *                 .build())
 *             .extendedEmailMatching(ZeroTrustGatewaySettingsExtendedEmailMatchingArgs.builder()
 *                 .enabled(true)
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: cloudflare:ZeroTrustGatewaySettings
 *     properties:
 *       accountId: f037e56e89293a057740de681ac9abbe
 *       tlsDecryptEnabled: true
 *       protocolDetectionEnabled: true
 *       blockPage:
 *         footerText: hello
 *         headerText: hello
 *         logoPath: https://example.com/logo.jpg
 *         backgroundColor: '#000000'
 *       bodyScanning:
 *         inspectionMode: deep
 *       antivirus:
 *         enabledDownloadPhase: true
 *         enabledUploadPhase: false
 *         failClosed: true
 *         notificationSettings:
 *           enabled: true
 *           message: you are blocked
 *           supportUrl: https://example.com/blocked
 *       fips:
 *         tls: true
 *       proxy:
 *         tcp: true
 *         udp: true
 *         rootCa: true
 *         virtualIp: false
 *       urlBrowserIsolationEnabled: true
 *       logging:
 *         redactPii: true
 *         settingsByRuleType:
 *           dns:
 *             logAll: false
 *             logBlocks: true
 *           http:
 *             logAll: true
 *             logBlocks: true
 *           l4:
 *             logAll: false
 *             logBlocks: true
 *       extendedEmailMatching:
 *         enabled: true
 * ```
 * 
 * ## Import
 * ```sh
 * $ pulumi import cloudflare:index/zeroTrustGatewaySettings:ZeroTrustGatewaySettings example 
 * ```
 */
public class ZeroTrustGatewaySettings internal constructor(
    override val javaResource: com.pulumi.cloudflare.ZeroTrustGatewaySettings,
) : KotlinCustomResource(javaResource, ZeroTrustGatewaySettingsMapper) {
    /**
     * The account identifier to target for the resource.
     */
    public val accountId: Output
        get() = javaResource.accountId().applyValue({ args0 -> args0 })

    /**
     * Whether to enable the activity log.
     */
    public val activityLogEnabled: Output?
        get() = javaResource.activityLogEnabled().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * Configuration block for antivirus traffic scanning.
     */
    public val antivirus: Output?
        get() = javaResource.antivirus().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    zeroTrustGatewaySettingsAntivirusToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * Configuration for a custom block page.
     */
    public val blockPage: Output?
        get() = javaResource.blockPage().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    zeroTrustGatewaySettingsBlockPageToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * Configuration for body scanning.
     */
    public val bodyScanning: Output?
        get() = javaResource.bodyScanning().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    zeroTrustGatewaySettingsBodyScanningToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * Configuration for custom certificates / BYO-PKI.
     */
    public val customCertificate: Output?
        get() = javaResource.customCertificate().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    zeroTrustGatewaySettingsCustomCertificateToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * Configuration for extended e-mail matching.
     */
    public val extendedEmailMatching: Output
        get() = javaResource.extendedEmailMatching().applyValue({ args0 ->
            args0.let({ args0 ->
                zeroTrustGatewaySettingsExtendedEmailMatchingToKotlin(args0)
            })
        })

    /**
     * Configure compliance with Federal Information Processing Standards.
     */
    public val fips: Output?
        get() = javaResource.fips().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    zeroTrustGatewaySettingsFipsToKotlin(args0)
                })
            }).orElse(null)
        })

    public val logging: Output?
        get() = javaResource.logging().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    zeroTrustGatewaySettingsLoggingToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * Enable non-identity onramp for Browser Isolation. Defaults to `false`.
     */
    public val nonIdentityBrowserIsolationEnabled: Output?
        get() = javaResource.nonIdentityBrowserIsolationEnabled().applyValue({ args0 ->
            args0.map({ args0 -> args0 }).orElse(null)
        })

    /**
     * Configuration for DLP Payload Logging.
     */
    public val payloadLog: Output?
        get() = javaResource.payloadLog().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    zeroTrustGatewaySettingsPayloadLogToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * Indicator that protocol detection is enabled.
     */
    public val protocolDetectionEnabled: Output?
        get() = javaResource.protocolDetectionEnabled().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * Configuration block for specifying which protocols are proxied.
     */
    public val proxy: Output?
        get() = javaResource.proxy().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    zeroTrustGatewaySettingsProxyToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * Configuration for SSH Session Logging.
     */
    public val sshSessionLog: Output?
        get() = javaResource.sshSessionLog().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 -> zeroTrustGatewaySettingsSshSessionLogToKotlin(args0) })
            }).orElse(null)
        })

    /**
     * Indicator that decryption of TLS traffic is enabled.
     */
    public val tlsDecryptEnabled: Output?
        get() = javaResource.tlsDecryptEnabled().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })

    /**
     * Safely browse websites in Browser Isolation through a URL. Defaults to `false`.
     */
    public val urlBrowserIsolationEnabled: Output?
        get() = javaResource.urlBrowserIsolationEnabled().applyValue({ args0 ->
            args0.map({ args0 ->
                args0
            }).orElse(null)
        })
}

public object ZeroTrustGatewaySettingsMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.cloudflare.ZeroTrustGatewaySettings::class == javaResource::class

    override fun map(javaResource: Resource): ZeroTrustGatewaySettings =
        ZeroTrustGatewaySettings(javaResource as com.pulumi.cloudflare.ZeroTrustGatewaySettings)
}

/**
 * @see [ZeroTrustGatewaySettings].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [ZeroTrustGatewaySettings].
 */
public suspend fun zeroTrustGatewaySettings(
    name: String,
    block: suspend ZeroTrustGatewaySettingsResourceBuilder.() -> Unit,
): ZeroTrustGatewaySettings {
    val builder = ZeroTrustGatewaySettingsResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [ZeroTrustGatewaySettings].
 * @param name The _unique_ name of the resulting resource.
 */
public fun zeroTrustGatewaySettings(name: String): ZeroTrustGatewaySettings {
    val builder = ZeroTrustGatewaySettingsResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy