com.pulumi.cloudflare.kotlin.TeamsAccountArgs.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.TeamsAccountArgs.builder
import com.pulumi.cloudflare.kotlin.inputs.TeamsAccountAntivirusArgs
import com.pulumi.cloudflare.kotlin.inputs.TeamsAccountAntivirusArgsBuilder
import com.pulumi.cloudflare.kotlin.inputs.TeamsAccountBlockPageArgs
import com.pulumi.cloudflare.kotlin.inputs.TeamsAccountBlockPageArgsBuilder
import com.pulumi.cloudflare.kotlin.inputs.TeamsAccountBodyScanningArgs
import com.pulumi.cloudflare.kotlin.inputs.TeamsAccountBodyScanningArgsBuilder
import com.pulumi.cloudflare.kotlin.inputs.TeamsAccountCustomCertificateArgs
import com.pulumi.cloudflare.kotlin.inputs.TeamsAccountCustomCertificateArgsBuilder
import com.pulumi.cloudflare.kotlin.inputs.TeamsAccountExtendedEmailMatchingArgs
import com.pulumi.cloudflare.kotlin.inputs.TeamsAccountExtendedEmailMatchingArgsBuilder
import com.pulumi.cloudflare.kotlin.inputs.TeamsAccountFipsArgs
import com.pulumi.cloudflare.kotlin.inputs.TeamsAccountFipsArgsBuilder
import com.pulumi.cloudflare.kotlin.inputs.TeamsAccountLoggingArgs
import com.pulumi.cloudflare.kotlin.inputs.TeamsAccountLoggingArgsBuilder
import com.pulumi.cloudflare.kotlin.inputs.TeamsAccountPayloadLogArgs
import com.pulumi.cloudflare.kotlin.inputs.TeamsAccountPayloadLogArgsBuilder
import com.pulumi.cloudflare.kotlin.inputs.TeamsAccountProxyArgs
import com.pulumi.cloudflare.kotlin.inputs.TeamsAccountProxyArgsBuilder
import com.pulumi.cloudflare.kotlin.inputs.TeamsAccountSshSessionLogArgs
import com.pulumi.cloudflare.kotlin.inputs.TeamsAccountSshSessionLogArgsBuilder
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.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* 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.TeamsAccount("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.TeamsAccount("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.TeamsAccount("example", new()
* {
* AccountId = "f037e56e89293a057740de681ac9abbe",
* TlsDecryptEnabled = true,
* ProtocolDetectionEnabled = true,
* BlockPage = new Cloudflare.Inputs.TeamsAccountBlockPageArgs
* {
* FooterText = "hello",
* HeaderText = "hello",
* LogoPath = "https://example.com/logo.jpg",
* BackgroundColor = "#000000",
* },
* BodyScanning = new Cloudflare.Inputs.TeamsAccountBodyScanningArgs
* {
* InspectionMode = "deep",
* },
* Antivirus = new Cloudflare.Inputs.TeamsAccountAntivirusArgs
* {
* EnabledDownloadPhase = true,
* EnabledUploadPhase = false,
* FailClosed = true,
* NotificationSettings = new Cloudflare.Inputs.TeamsAccountAntivirusNotificationSettingsArgs
* {
* Enabled = true,
* Message = "you are blocked",
* SupportUrl = "https://example.com/blocked",
* },
* },
* Fips = new Cloudflare.Inputs.TeamsAccountFipsArgs
* {
* Tls = true,
* },
* Proxy = new Cloudflare.Inputs.TeamsAccountProxyArgs
* {
* Tcp = true,
* Udp = true,
* RootCa = true,
* VirtualIp = false,
* },
* UrlBrowserIsolationEnabled = true,
* Logging = new Cloudflare.Inputs.TeamsAccountLoggingArgs
* {
* RedactPii = true,
* SettingsByRuleType = new Cloudflare.Inputs.TeamsAccountLoggingSettingsByRuleTypeArgs
* {
* Dns = new Cloudflare.Inputs.TeamsAccountLoggingSettingsByRuleTypeDnsArgs
* {
* LogAll = false,
* LogBlocks = true,
* },
* Http = new Cloudflare.Inputs.TeamsAccountLoggingSettingsByRuleTypeHttpArgs
* {
* LogAll = true,
* LogBlocks = true,
* },
* L4 = new Cloudflare.Inputs.TeamsAccountLoggingSettingsByRuleTypeL4Args
* {
* LogAll = false,
* LogBlocks = true,
* },
* },
* },
* ExtendedEmailMatching = new Cloudflare.Inputs.TeamsAccountExtendedEmailMatchingArgs
* {
* 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.NewTeamsAccount(ctx, "example", &cloudflare.TeamsAccountArgs{
* AccountId: pulumi.String("f037e56e89293a057740de681ac9abbe"),
* TlsDecryptEnabled: pulumi.Bool(true),
* ProtocolDetectionEnabled: pulumi.Bool(true),
* BlockPage: &cloudflare.TeamsAccountBlockPageArgs{
* FooterText: pulumi.String("hello"),
* HeaderText: pulumi.String("hello"),
* LogoPath: pulumi.String("https://example.com/logo.jpg"),
* BackgroundColor: pulumi.String("#000000"),
* },
* BodyScanning: &cloudflare.TeamsAccountBodyScanningArgs{
* InspectionMode: pulumi.String("deep"),
* },
* Antivirus: &cloudflare.TeamsAccountAntivirusArgs{
* EnabledDownloadPhase: pulumi.Bool(true),
* EnabledUploadPhase: pulumi.Bool(false),
* FailClosed: pulumi.Bool(true),
* NotificationSettings: &cloudflare.TeamsAccountAntivirusNotificationSettingsArgs{
* Enabled: pulumi.Bool(true),
* Message: pulumi.String("you are blocked"),
* SupportUrl: pulumi.String("https://example.com/blocked"),
* },
* },
* Fips: &cloudflare.TeamsAccountFipsArgs{
* Tls: pulumi.Bool(true),
* },
* Proxy: &cloudflare.TeamsAccountProxyArgs{
* Tcp: pulumi.Bool(true),
* Udp: pulumi.Bool(true),
* RootCa: pulumi.Bool(true),
* VirtualIp: pulumi.Bool(false),
* },
* UrlBrowserIsolationEnabled: pulumi.Bool(true),
* Logging: &cloudflare.TeamsAccountLoggingArgs{
* RedactPii: pulumi.Bool(true),
* SettingsByRuleType: &cloudflare.TeamsAccountLoggingSettingsByRuleTypeArgs{
* Dns: &cloudflare.TeamsAccountLoggingSettingsByRuleTypeDnsArgs{
* LogAll: pulumi.Bool(false),
* LogBlocks: pulumi.Bool(true),
* },
* Http: &cloudflare.TeamsAccountLoggingSettingsByRuleTypeHttpArgs{
* LogAll: pulumi.Bool(true),
* LogBlocks: pulumi.Bool(true),
* },
* L4: &cloudflare.TeamsAccountLoggingSettingsByRuleTypeL4Args{
* LogAll: pulumi.Bool(false),
* LogBlocks: pulumi.Bool(true),
* },
* },
* },
* ExtendedEmailMatching: &cloudflare.TeamsAccountExtendedEmailMatchingArgs{
* 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.TeamsAccount;
* import com.pulumi.cloudflare.TeamsAccountArgs;
* import com.pulumi.cloudflare.inputs.TeamsAccountBlockPageArgs;
* import com.pulumi.cloudflare.inputs.TeamsAccountBodyScanningArgs;
* import com.pulumi.cloudflare.inputs.TeamsAccountAntivirusArgs;
* import com.pulumi.cloudflare.inputs.TeamsAccountAntivirusNotificationSettingsArgs;
* import com.pulumi.cloudflare.inputs.TeamsAccountFipsArgs;
* import com.pulumi.cloudflare.inputs.TeamsAccountProxyArgs;
* import com.pulumi.cloudflare.inputs.TeamsAccountLoggingArgs;
* import com.pulumi.cloudflare.inputs.TeamsAccountLoggingSettingsByRuleTypeArgs;
* import com.pulumi.cloudflare.inputs.TeamsAccountLoggingSettingsByRuleTypeDnsArgs;
* import com.pulumi.cloudflare.inputs.TeamsAccountLoggingSettingsByRuleTypeHttpArgs;
* import com.pulumi.cloudflare.inputs.TeamsAccountLoggingSettingsByRuleTypeL4Args;
* import com.pulumi.cloudflare.inputs.TeamsAccountExtendedEmailMatchingArgs;
* 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 TeamsAccount("example", TeamsAccountArgs.builder()
* .accountId("f037e56e89293a057740de681ac9abbe")
* .tlsDecryptEnabled(true)
* .protocolDetectionEnabled(true)
* .blockPage(TeamsAccountBlockPageArgs.builder()
* .footerText("hello")
* .headerText("hello")
* .logoPath("https://example.com/logo.jpg")
* .backgroundColor("#000000")
* .build())
* .bodyScanning(TeamsAccountBodyScanningArgs.builder()
* .inspectionMode("deep")
* .build())
* .antivirus(TeamsAccountAntivirusArgs.builder()
* .enabledDownloadPhase(true)
* .enabledUploadPhase(false)
* .failClosed(true)
* .notificationSettings(TeamsAccountAntivirusNotificationSettingsArgs.builder()
* .enabled(true)
* .message("you are blocked")
* .supportUrl("https://example.com/blocked")
* .build())
* .build())
* .fips(TeamsAccountFipsArgs.builder()
* .tls(true)
* .build())
* .proxy(TeamsAccountProxyArgs.builder()
* .tcp(true)
* .udp(true)
* .rootCa(true)
* .virtualIp(false)
* .build())
* .urlBrowserIsolationEnabled(true)
* .logging(TeamsAccountLoggingArgs.builder()
* .redactPii(true)
* .settingsByRuleType(TeamsAccountLoggingSettingsByRuleTypeArgs.builder()
* .dns(TeamsAccountLoggingSettingsByRuleTypeDnsArgs.builder()
* .logAll(false)
* .logBlocks(true)
* .build())
* .http(TeamsAccountLoggingSettingsByRuleTypeHttpArgs.builder()
* .logAll(true)
* .logBlocks(true)
* .build())
* .l4(TeamsAccountLoggingSettingsByRuleTypeL4Args.builder()
* .logAll(false)
* .logBlocks(true)
* .build())
* .build())
* .build())
* .extendedEmailMatching(TeamsAccountExtendedEmailMatchingArgs.builder()
* .enabled(true)
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: cloudflare:TeamsAccount
* 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/teamsAccount:TeamsAccount example
* ```
* @property accountId The account identifier to target for the resource.
* @property activityLogEnabled Whether to enable the activity log.
* @property antivirus Configuration block for antivirus traffic scanning.
* @property blockPage Configuration for a custom block page.
* @property bodyScanning Configuration for body scanning.
* @property customCertificate Configuration for custom certificates / BYO-PKI.
* @property extendedEmailMatching Configuration for extended e-mail matching.
* @property fips Configure compliance with Federal Information Processing Standards.
* @property logging
* @property nonIdentityBrowserIsolationEnabled Enable non-identity onramp for Browser Isolation. Defaults to `false`.
* @property payloadLog Configuration for DLP Payload Logging.
* @property protocolDetectionEnabled Indicator that protocol detection is enabled.
* @property proxy Configuration block for specifying which protocols are proxied.
* @property sshSessionLog Configuration for SSH Session Logging.
* @property tlsDecryptEnabled Indicator that decryption of TLS traffic is enabled.
* @property urlBrowserIsolationEnabled Safely browse websites in Browser Isolation through a URL. Defaults to `false`.
*/
public data class TeamsAccountArgs(
public val accountId: Output? = null,
public val activityLogEnabled: Output? = null,
public val antivirus: Output? = null,
public val blockPage: Output? = null,
public val bodyScanning: Output? = null,
public val customCertificate: Output? = null,
public val extendedEmailMatching: Output? = null,
public val fips: Output? = null,
public val logging: Output? = null,
public val nonIdentityBrowserIsolationEnabled: Output? = null,
public val payloadLog: Output? = null,
public val protocolDetectionEnabled: Output? = null,
public val proxy: Output? = null,
public val sshSessionLog: Output? = null,
public val tlsDecryptEnabled: Output? = null,
public val urlBrowserIsolationEnabled: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.cloudflare.TeamsAccountArgs =
com.pulumi.cloudflare.TeamsAccountArgs.builder()
.accountId(accountId?.applyValue({ args0 -> args0 }))
.activityLogEnabled(activityLogEnabled?.applyValue({ args0 -> args0 }))
.antivirus(antivirus?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.blockPage(blockPage?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.bodyScanning(bodyScanning?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.customCertificate(customCertificate?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.extendedEmailMatching(
extendedEmailMatching?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.fips(fips?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.logging(logging?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.nonIdentityBrowserIsolationEnabled(
nonIdentityBrowserIsolationEnabled?.applyValue({ args0 ->
args0
}),
)
.payloadLog(payloadLog?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.protocolDetectionEnabled(protocolDetectionEnabled?.applyValue({ args0 -> args0 }))
.proxy(proxy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.sshSessionLog(sshSessionLog?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.tlsDecryptEnabled(tlsDecryptEnabled?.applyValue({ args0 -> args0 }))
.urlBrowserIsolationEnabled(urlBrowserIsolationEnabled?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TeamsAccountArgs].
*/
@PulumiTagMarker
public class TeamsAccountArgsBuilder internal constructor() {
private var accountId: Output? = null
private var activityLogEnabled: Output? = null
private var antivirus: Output? = null
private var blockPage: Output? = null
private var bodyScanning: Output? = null
private var customCertificate: Output? = null
private var extendedEmailMatching: Output? = null
private var fips: Output? = null
private var logging: Output? = null
private var nonIdentityBrowserIsolationEnabled: Output? = null
private var payloadLog: Output? = null
private var protocolDetectionEnabled: Output? = null
private var proxy: Output? = null
private var sshSessionLog: Output? = null
private var tlsDecryptEnabled: Output? = null
private var urlBrowserIsolationEnabled: Output? = null
/**
* @param value The account identifier to target for the resource.
*/
@JvmName("mkbuuoctbsfvjvix")
public suspend fun accountId(`value`: Output) {
this.accountId = value
}
/**
* @param value Whether to enable the activity log.
*/
@JvmName("fysartofraramjwd")
public suspend fun activityLogEnabled(`value`: Output) {
this.activityLogEnabled = value
}
/**
* @param value Configuration block for antivirus traffic scanning.
*/
@JvmName("dphhdybiqsvtjqgg")
public suspend fun antivirus(`value`: Output) {
this.antivirus = value
}
/**
* @param value Configuration for a custom block page.
*/
@JvmName("hobtuvtahlssqmtu")
public suspend fun blockPage(`value`: Output) {
this.blockPage = value
}
/**
* @param value Configuration for body scanning.
*/
@JvmName("crygjplihkerjvgp")
public suspend fun bodyScanning(`value`: Output) {
this.bodyScanning = value
}
/**
* @param value Configuration for custom certificates / BYO-PKI.
*/
@JvmName("wnhunsqkkpnsxgmm")
public suspend fun customCertificate(`value`: Output) {
this.customCertificate = value
}
/**
* @param value Configuration for extended e-mail matching.
*/
@JvmName("xnyqvqnsoskkmjgn")
public suspend fun extendedEmailMatching(`value`: Output) {
this.extendedEmailMatching = value
}
/**
* @param value Configure compliance with Federal Information Processing Standards.
*/
@JvmName("wliwtrjrecthypcl")
public suspend fun fips(`value`: Output) {
this.fips = value
}
/**
* @param value
*/
@JvmName("pdyojsijtsrjornm")
public suspend fun logging(`value`: Output) {
this.logging = value
}
/**
* @param value Enable non-identity onramp for Browser Isolation. Defaults to `false`.
*/
@JvmName("obtoeugrwxqkrgoo")
public suspend fun nonIdentityBrowserIsolationEnabled(`value`: Output) {
this.nonIdentityBrowserIsolationEnabled = value
}
/**
* @param value Configuration for DLP Payload Logging.
*/
@JvmName("eqmcvmqrchbsfeng")
public suspend fun payloadLog(`value`: Output) {
this.payloadLog = value
}
/**
* @param value Indicator that protocol detection is enabled.
*/
@JvmName("cwqevjljpcgswubq")
public suspend fun protocolDetectionEnabled(`value`: Output) {
this.protocolDetectionEnabled = value
}
/**
* @param value Configuration block for specifying which protocols are proxied.
*/
@JvmName("npjslacehjpxywba")
public suspend fun proxy(`value`: Output) {
this.proxy = value
}
/**
* @param value Configuration for SSH Session Logging.
*/
@JvmName("qnxjyuqbmxqnpfid")
public suspend fun sshSessionLog(`value`: Output) {
this.sshSessionLog = value
}
/**
* @param value Indicator that decryption of TLS traffic is enabled.
*/
@JvmName("hbmfyyqoowasatoy")
public suspend fun tlsDecryptEnabled(`value`: Output) {
this.tlsDecryptEnabled = value
}
/**
* @param value Safely browse websites in Browser Isolation through a URL. Defaults to `false`.
*/
@JvmName("soxvfjrbwbadhllh")
public suspend fun urlBrowserIsolationEnabled(`value`: Output) {
this.urlBrowserIsolationEnabled = value
}
/**
* @param value The account identifier to target for the resource.
*/
@JvmName("aotoabolklhwncdw")
public suspend fun accountId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.accountId = mapped
}
/**
* @param value Whether to enable the activity log.
*/
@JvmName("kpwjhnaofnlsswfy")
public suspend fun activityLogEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.activityLogEnabled = mapped
}
/**
* @param value Configuration block for antivirus traffic scanning.
*/
@JvmName("isxdrnwitwqeqppd")
public suspend fun antivirus(`value`: TeamsAccountAntivirusArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.antivirus = mapped
}
/**
* @param argument Configuration block for antivirus traffic scanning.
*/
@JvmName("wpinsvklniawhkjd")
public suspend fun antivirus(argument: suspend TeamsAccountAntivirusArgsBuilder.() -> Unit) {
val toBeMapped = TeamsAccountAntivirusArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.antivirus = mapped
}
/**
* @param value Configuration for a custom block page.
*/
@JvmName("gcsfkghvylllfavd")
public suspend fun blockPage(`value`: TeamsAccountBlockPageArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.blockPage = mapped
}
/**
* @param argument Configuration for a custom block page.
*/
@JvmName("qewokknncodijjsb")
public suspend fun blockPage(argument: suspend TeamsAccountBlockPageArgsBuilder.() -> Unit) {
val toBeMapped = TeamsAccountBlockPageArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.blockPage = mapped
}
/**
* @param value Configuration for body scanning.
*/
@JvmName("juqwvpluqbsglxxe")
public suspend fun bodyScanning(`value`: TeamsAccountBodyScanningArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.bodyScanning = mapped
}
/**
* @param argument Configuration for body scanning.
*/
@JvmName("gkrvtvnskbmrrsvw")
public suspend fun bodyScanning(argument: suspend TeamsAccountBodyScanningArgsBuilder.() -> Unit) {
val toBeMapped = TeamsAccountBodyScanningArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.bodyScanning = mapped
}
/**
* @param value Configuration for custom certificates / BYO-PKI.
*/
@JvmName("ykmluyjuutyxowwm")
public suspend fun customCertificate(`value`: TeamsAccountCustomCertificateArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.customCertificate = mapped
}
/**
* @param argument Configuration for custom certificates / BYO-PKI.
*/
@JvmName("mmadaklonwmmnypn")
public suspend fun customCertificate(argument: suspend TeamsAccountCustomCertificateArgsBuilder.() -> Unit) {
val toBeMapped = TeamsAccountCustomCertificateArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.customCertificate = mapped
}
/**
* @param value Configuration for extended e-mail matching.
*/
@JvmName("blwtngaqlnqsgqpn")
public suspend fun extendedEmailMatching(`value`: TeamsAccountExtendedEmailMatchingArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.extendedEmailMatching = mapped
}
/**
* @param argument Configuration for extended e-mail matching.
*/
@JvmName("stbyrlnqkydxgeob")
public suspend fun extendedEmailMatching(argument: suspend TeamsAccountExtendedEmailMatchingArgsBuilder.() -> Unit) {
val toBeMapped = TeamsAccountExtendedEmailMatchingArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.extendedEmailMatching = mapped
}
/**
* @param value Configure compliance with Federal Information Processing Standards.
*/
@JvmName("gxytbmbmtqbhpwsd")
public suspend fun fips(`value`: TeamsAccountFipsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.fips = mapped
}
/**
* @param argument Configure compliance with Federal Information Processing Standards.
*/
@JvmName("bwxkpxwjbcxqbkag")
public suspend fun fips(argument: suspend TeamsAccountFipsArgsBuilder.() -> Unit) {
val toBeMapped = TeamsAccountFipsArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.fips = mapped
}
/**
* @param value
*/
@JvmName("rdrwetyypaulobor")
public suspend fun logging(`value`: TeamsAccountLoggingArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.logging = mapped
}
/**
* @param argument
*/
@JvmName("pcqdsswhiaxtcojt")
public suspend fun logging(argument: suspend TeamsAccountLoggingArgsBuilder.() -> Unit) {
val toBeMapped = TeamsAccountLoggingArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.logging = mapped
}
/**
* @param value Enable non-identity onramp for Browser Isolation. Defaults to `false`.
*/
@JvmName("wjtbyyiopsudykai")
public suspend fun nonIdentityBrowserIsolationEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.nonIdentityBrowserIsolationEnabled = mapped
}
/**
* @param value Configuration for DLP Payload Logging.
*/
@JvmName("jrjctsccrrjhsjxt")
public suspend fun payloadLog(`value`: TeamsAccountPayloadLogArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.payloadLog = mapped
}
/**
* @param argument Configuration for DLP Payload Logging.
*/
@JvmName("bevfuwpptnkmyjfn")
public suspend fun payloadLog(argument: suspend TeamsAccountPayloadLogArgsBuilder.() -> Unit) {
val toBeMapped = TeamsAccountPayloadLogArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.payloadLog = mapped
}
/**
* @param value Indicator that protocol detection is enabled.
*/
@JvmName("yduaokftaouaxpoy")
public suspend fun protocolDetectionEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.protocolDetectionEnabled = mapped
}
/**
* @param value Configuration block for specifying which protocols are proxied.
*/
@JvmName("kmnsdedncmlbflgw")
public suspend fun proxy(`value`: TeamsAccountProxyArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.proxy = mapped
}
/**
* @param argument Configuration block for specifying which protocols are proxied.
*/
@JvmName("djbaobpvdqhrtoxr")
public suspend fun proxy(argument: suspend TeamsAccountProxyArgsBuilder.() -> Unit) {
val toBeMapped = TeamsAccountProxyArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.proxy = mapped
}
/**
* @param value Configuration for SSH Session Logging.
*/
@JvmName("svbpyrpqbhjsjbjq")
public suspend fun sshSessionLog(`value`: TeamsAccountSshSessionLogArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sshSessionLog = mapped
}
/**
* @param argument Configuration for SSH Session Logging.
*/
@JvmName("eqddaibxkumcyfvl")
public suspend fun sshSessionLog(argument: suspend TeamsAccountSshSessionLogArgsBuilder.() -> Unit) {
val toBeMapped = TeamsAccountSshSessionLogArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.sshSessionLog = mapped
}
/**
* @param value Indicator that decryption of TLS traffic is enabled.
*/
@JvmName("qarrngjlltqecjej")
public suspend fun tlsDecryptEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tlsDecryptEnabled = mapped
}
/**
* @param value Safely browse websites in Browser Isolation through a URL. Defaults to `false`.
*/
@JvmName("hsvawlnyfuynbsvt")
public suspend fun urlBrowserIsolationEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.urlBrowserIsolationEnabled = mapped
}
internal fun build(): TeamsAccountArgs = TeamsAccountArgs(
accountId = accountId,
activityLogEnabled = activityLogEnabled,
antivirus = antivirus,
blockPage = blockPage,
bodyScanning = bodyScanning,
customCertificate = customCertificate,
extendedEmailMatching = extendedEmailMatching,
fips = fips,
logging = logging,
nonIdentityBrowserIsolationEnabled = nonIdentityBrowserIsolationEnabled,
payloadLog = payloadLog,
protocolDetectionEnabled = protocolDetectionEnabled,
proxy = proxy,
sshSessionLog = sshSessionLog,
tlsDecryptEnabled = tlsDecryptEnabled,
urlBrowserIsolationEnabled = urlBrowserIsolationEnabled,
)
}