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

com.pulumi.azure.network.kotlin.FirewallPolicyArgs.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: 6.21.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.network.kotlin

import com.pulumi.azure.network.FirewallPolicyArgs.builder
import com.pulumi.azure.network.kotlin.inputs.FirewallPolicyDnsArgs
import com.pulumi.azure.network.kotlin.inputs.FirewallPolicyDnsArgsBuilder
import com.pulumi.azure.network.kotlin.inputs.FirewallPolicyExplicitProxyArgs
import com.pulumi.azure.network.kotlin.inputs.FirewallPolicyExplicitProxyArgsBuilder
import com.pulumi.azure.network.kotlin.inputs.FirewallPolicyIdentityArgs
import com.pulumi.azure.network.kotlin.inputs.FirewallPolicyIdentityArgsBuilder
import com.pulumi.azure.network.kotlin.inputs.FirewallPolicyInsightsArgs
import com.pulumi.azure.network.kotlin.inputs.FirewallPolicyInsightsArgsBuilder
import com.pulumi.azure.network.kotlin.inputs.FirewallPolicyIntrusionDetectionArgs
import com.pulumi.azure.network.kotlin.inputs.FirewallPolicyIntrusionDetectionArgsBuilder
import com.pulumi.azure.network.kotlin.inputs.FirewallPolicyThreatIntelligenceAllowlistArgs
import com.pulumi.azure.network.kotlin.inputs.FirewallPolicyThreatIntelligenceAllowlistArgsBuilder
import com.pulumi.azure.network.kotlin.inputs.FirewallPolicyTlsCertificateArgs
import com.pulumi.azure.network.kotlin.inputs.FirewallPolicyTlsCertificateArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a Firewall Policy.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resources",
 *     location: "West Europe",
 * });
 * const exampleFirewallPolicy = new azure.network.FirewallPolicy("example", {
 *     name: "example-policy",
 *     resourceGroupName: example.name,
 *     location: example.location,
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resources",
 *     location="West Europe")
 * example_firewall_policy = azure.network.FirewallPolicy("example",
 *     name="example-policy",
 *     resource_group_name=example.name,
 *     location=example.location)
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Azure = Pulumi.Azure;
 * return await Deployment.RunAsync(() =>
 * {
 *     var example = new Azure.Core.ResourceGroup("example", new()
 *     {
 *         Name = "example-resources",
 *         Location = "West Europe",
 *     });
 *     var exampleFirewallPolicy = new Azure.Network.FirewallPolicy("example", new()
 *     {
 *         Name = "example-policy",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
 * 	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/network"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
 * 			Name:     pulumi.String("example-resources"),
 * 			Location: pulumi.String("West Europe"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = network.NewFirewallPolicy(ctx, "example", &network.FirewallPolicyArgs{
 * 			Name:              pulumi.String("example-policy"),
 * 			ResourceGroupName: example.Name,
 * 			Location:          example.Location,
 * 		})
 * 		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.azure.core.ResourceGroup;
 * import com.pulumi.azure.core.ResourceGroupArgs;
 * import com.pulumi.azure.network.FirewallPolicy;
 * import com.pulumi.azure.network.FirewallPolicyArgs;
 * 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 ResourceGroup("example", ResourceGroupArgs.builder()
 *             .name("example-resources")
 *             .location("West Europe")
 *             .build());
 *         var exampleFirewallPolicy = new FirewallPolicy("exampleFirewallPolicy", FirewallPolicyArgs.builder()
 *             .name("example-policy")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resources
 *       location: West Europe
 *   exampleFirewallPolicy:
 *     type: azure:network:FirewallPolicy
 *     name: example
 *     properties:
 *       name: example-policy
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 * ```
 * 
 * ## Import
 * Firewall Policies can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:network/firewallPolicy:FirewallPolicy example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Network/firewallPolicies/policy1
 * ```
 * @property autoLearnPrivateRangesEnabled Whether enable auto learn private ip range.
 * @property basePolicyId The ID of the base Firewall Policy.
 * @property dns A `dns` block as defined below.
 * @property explicitProxy A `explicit_proxy` block as defined below.
 * @property identity An `identity` block as defined below.
 * @property insights An `insights` block as defined below.
 * @property intrusionDetection A `intrusion_detection` block as defined below.
 * @property location The Azure Region where the Firewall Policy should exist. Changing this forces a new Firewall Policy to be created.
 * @property name The name which should be used for this Firewall Policy. Changing this forces a new Firewall Policy to be created.
 * @property privateIpRanges A list of private IP ranges to which traffic will not be SNAT.
 * @property resourceGroupName The name of the Resource Group where the Firewall Policy should exist. Changing this forces a new Firewall Policy to be created.
 * @property sku The SKU Tier of the Firewall Policy. Possible values are `Standard`, `Premium` and `Basic`. Changing this forces a new Firewall Policy to be created.
 * @property sqlRedirectAllowed Whether SQL Redirect traffic filtering is allowed. Enabling this flag requires no rule using ports between `11000`-`11999`.
 * @property tags A mapping of tags which should be assigned to the Firewall Policy.
 * @property threatIntelligenceAllowlist A `threat_intelligence_allowlist` block as defined below.
 * @property threatIntelligenceMode The operation mode for Threat Intelligence. Possible values are `Alert`, `Deny` and `Off`. Defaults to `Alert`.
 * @property tlsCertificate A `tls_certificate` block as defined below.
 */
public data class FirewallPolicyArgs(
    public val autoLearnPrivateRangesEnabled: Output? = null,
    public val basePolicyId: Output? = null,
    public val dns: Output? = null,
    public val explicitProxy: Output? = null,
    public val identity: Output? = null,
    public val insights: Output? = null,
    public val intrusionDetection: Output? = null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val privateIpRanges: Output>? = null,
    public val resourceGroupName: Output? = null,
    public val sku: Output? = null,
    public val sqlRedirectAllowed: Output? = null,
    public val tags: Output>? = null,
    public val threatIntelligenceAllowlist: Output? =
        null,
    public val threatIntelligenceMode: Output? = null,
    public val tlsCertificate: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.network.FirewallPolicyArgs =
        com.pulumi.azure.network.FirewallPolicyArgs.builder()
            .autoLearnPrivateRangesEnabled(autoLearnPrivateRangesEnabled?.applyValue({ args0 -> args0 }))
            .basePolicyId(basePolicyId?.applyValue({ args0 -> args0 }))
            .dns(dns?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .explicitProxy(explicitProxy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .identity(identity?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .insights(insights?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
            .intrusionDetection(
                intrusionDetection?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .location(location?.applyValue({ args0 -> args0 }))
            .name(name?.applyValue({ args0 -> args0 }))
            .privateIpRanges(privateIpRanges?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
            .sku(sku?.applyValue({ args0 -> args0 }))
            .sqlRedirectAllowed(sqlRedirectAllowed?.applyValue({ args0 -> args0 }))
            .tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
            .threatIntelligenceAllowlist(
                threatIntelligenceAllowlist?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .threatIntelligenceMode(threatIntelligenceMode?.applyValue({ args0 -> args0 }))
            .tlsCertificate(
                tlsCertificate?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            ).build()
}

/**
 * Builder for [FirewallPolicyArgs].
 */
@PulumiTagMarker
public class FirewallPolicyArgsBuilder internal constructor() {
    private var autoLearnPrivateRangesEnabled: Output? = null

    private var basePolicyId: Output? = null

    private var dns: Output? = null

    private var explicitProxy: Output? = null

    private var identity: Output? = null

    private var insights: Output? = null

    private var intrusionDetection: Output? = null

    private var location: Output? = null

    private var name: Output? = null

    private var privateIpRanges: Output>? = null

    private var resourceGroupName: Output? = null

    private var sku: Output? = null

    private var sqlRedirectAllowed: Output? = null

    private var tags: Output>? = null

    private var threatIntelligenceAllowlist: Output? =
        null

    private var threatIntelligenceMode: Output? = null

    private var tlsCertificate: Output? = null

    /**
     * @param value Whether enable auto learn private ip range.
     */
    @JvmName("cdegvccmqutfgoal")
    public suspend fun autoLearnPrivateRangesEnabled(`value`: Output) {
        this.autoLearnPrivateRangesEnabled = value
    }

    /**
     * @param value The ID of the base Firewall Policy.
     */
    @JvmName("reybsecdmsrwfoea")
    public suspend fun basePolicyId(`value`: Output) {
        this.basePolicyId = value
    }

    /**
     * @param value A `dns` block as defined below.
     */
    @JvmName("olqlgvicjroiohtj")
    public suspend fun dns(`value`: Output) {
        this.dns = value
    }

    /**
     * @param value A `explicit_proxy` block as defined below.
     */
    @JvmName("pxnpkunddkegiogu")
    public suspend fun explicitProxy(`value`: Output) {
        this.explicitProxy = value
    }

    /**
     * @param value An `identity` block as defined below.
     */
    @JvmName("thcjrpppoyghtjbk")
    public suspend fun identity(`value`: Output) {
        this.identity = value
    }

    /**
     * @param value An `insights` block as defined below.
     */
    @JvmName("wgryyadtjggosmio")
    public suspend fun insights(`value`: Output) {
        this.insights = value
    }

    /**
     * @param value A `intrusion_detection` block as defined below.
     */
    @JvmName("mxxyefxofvrmxwbr")
    public suspend fun intrusionDetection(`value`: Output) {
        this.intrusionDetection = value
    }

    /**
     * @param value The Azure Region where the Firewall Policy should exist. Changing this forces a new Firewall Policy to be created.
     */
    @JvmName("dwqtamypyovapefr")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The name which should be used for this Firewall Policy. Changing this forces a new Firewall Policy to be created.
     */
    @JvmName("iairroibsvxnexha")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

    /**
     * @param value A list of private IP ranges to which traffic will not be SNAT.
     */
    @JvmName("gnkjvrikaywgdwmh")
    public suspend fun privateIpRanges(`value`: Output>) {
        this.privateIpRanges = value
    }

    @JvmName("jmcyrqtfbsclpeor")
    public suspend fun privateIpRanges(vararg values: Output) {
        this.privateIpRanges = Output.all(values.asList())
    }

    /**
     * @param values A list of private IP ranges to which traffic will not be SNAT.
     */
    @JvmName("fssvnlpeaujerrkl")
    public suspend fun privateIpRanges(values: List>) {
        this.privateIpRanges = Output.all(values)
    }

    /**
     * @param value The name of the Resource Group where the Firewall Policy should exist. Changing this forces a new Firewall Policy to be created.
     */
    @JvmName("qsvqboyihbcwwuxa")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value The SKU Tier of the Firewall Policy. Possible values are `Standard`, `Premium` and `Basic`. Changing this forces a new Firewall Policy to be created.
     */
    @JvmName("iabpljnaqcitungi")
    public suspend fun sku(`value`: Output) {
        this.sku = value
    }

    /**
     * @param value Whether SQL Redirect traffic filtering is allowed. Enabling this flag requires no rule using ports between `11000`-`11999`.
     */
    @JvmName("dfntyiobqbhbqfdh")
    public suspend fun sqlRedirectAllowed(`value`: Output) {
        this.sqlRedirectAllowed = value
    }

    /**
     * @param value A mapping of tags which should be assigned to the Firewall Policy.
     */
    @JvmName("fllmmxdnutxvhfig")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value A `threat_intelligence_allowlist` block as defined below.
     */
    @JvmName("gismslklfistbmem")
    public suspend fun threatIntelligenceAllowlist(`value`: Output) {
        this.threatIntelligenceAllowlist = value
    }

    /**
     * @param value The operation mode for Threat Intelligence. Possible values are `Alert`, `Deny` and `Off`. Defaults to `Alert`.
     */
    @JvmName("snkpakbljvumissf")
    public suspend fun threatIntelligenceMode(`value`: Output) {
        this.threatIntelligenceMode = value
    }

    /**
     * @param value A `tls_certificate` block as defined below.
     */
    @JvmName("avhqdvanorfjnday")
    public suspend fun tlsCertificate(`value`: Output) {
        this.tlsCertificate = value
    }

    /**
     * @param value Whether enable auto learn private ip range.
     */
    @JvmName("kvgchktdrmsbbjom")
    public suspend fun autoLearnPrivateRangesEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.autoLearnPrivateRangesEnabled = mapped
    }

    /**
     * @param value The ID of the base Firewall Policy.
     */
    @JvmName("kpjdhxuvlbgmelqf")
    public suspend fun basePolicyId(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.basePolicyId = mapped
    }

    /**
     * @param value A `dns` block as defined below.
     */
    @JvmName("unduqfpkpkuatuxn")
    public suspend fun dns(`value`: FirewallPolicyDnsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.dns = mapped
    }

    /**
     * @param argument A `dns` block as defined below.
     */
    @JvmName("ekgjnnbcgoslxmrx")
    public suspend fun dns(argument: suspend FirewallPolicyDnsArgsBuilder.() -> Unit) {
        val toBeMapped = FirewallPolicyDnsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.dns = mapped
    }

    /**
     * @param value A `explicit_proxy` block as defined below.
     */
    @JvmName("yilnylqvpwhismsa")
    public suspend fun explicitProxy(`value`: FirewallPolicyExplicitProxyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.explicitProxy = mapped
    }

    /**
     * @param argument A `explicit_proxy` block as defined below.
     */
    @JvmName("bieabanagsabykox")
    public suspend fun explicitProxy(argument: suspend FirewallPolicyExplicitProxyArgsBuilder.() -> Unit) {
        val toBeMapped = FirewallPolicyExplicitProxyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.explicitProxy = mapped
    }

    /**
     * @param value An `identity` block as defined below.
     */
    @JvmName("teykdwuwkpvpyjfe")
    public suspend fun identity(`value`: FirewallPolicyIdentityArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.identity = mapped
    }

    /**
     * @param argument An `identity` block as defined below.
     */
    @JvmName("pqluwbdnhkmygfoh")
    public suspend fun identity(argument: suspend FirewallPolicyIdentityArgsBuilder.() -> Unit) {
        val toBeMapped = FirewallPolicyIdentityArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.identity = mapped
    }

    /**
     * @param value An `insights` block as defined below.
     */
    @JvmName("xaboadoyawrpktbq")
    public suspend fun insights(`value`: FirewallPolicyInsightsArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.insights = mapped
    }

    /**
     * @param argument An `insights` block as defined below.
     */
    @JvmName("egvgjjommlbwshnr")
    public suspend fun insights(argument: suspend FirewallPolicyInsightsArgsBuilder.() -> Unit) {
        val toBeMapped = FirewallPolicyInsightsArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.insights = mapped
    }

    /**
     * @param value A `intrusion_detection` block as defined below.
     */
    @JvmName("bmehkhauafgjdcuk")
    public suspend fun intrusionDetection(`value`: FirewallPolicyIntrusionDetectionArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.intrusionDetection = mapped
    }

    /**
     * @param argument A `intrusion_detection` block as defined below.
     */
    @JvmName("enceuirjayaejxbx")
    public suspend fun intrusionDetection(argument: suspend FirewallPolicyIntrusionDetectionArgsBuilder.() -> Unit) {
        val toBeMapped = FirewallPolicyIntrusionDetectionArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.intrusionDetection = mapped
    }

    /**
     * @param value The Azure Region where the Firewall Policy should exist. Changing this forces a new Firewall Policy to be created.
     */
    @JvmName("pbliqyafaooxqrkc")
    public suspend fun location(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.location = mapped
    }

    /**
     * @param value The name which should be used for this Firewall Policy. Changing this forces a new Firewall Policy to be created.
     */
    @JvmName("jdwgubekmbujvpkx")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @param value A list of private IP ranges to which traffic will not be SNAT.
     */
    @JvmName("vxryrpwxqgblycoi")
    public suspend fun privateIpRanges(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.privateIpRanges = mapped
    }

    /**
     * @param values A list of private IP ranges to which traffic will not be SNAT.
     */
    @JvmName("uxhopqtilxptmeul")
    public suspend fun privateIpRanges(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.privateIpRanges = mapped
    }

    /**
     * @param value The name of the Resource Group where the Firewall Policy should exist. Changing this forces a new Firewall Policy to be created.
     */
    @JvmName("brhvspwviegcoqpj")
    public suspend fun resourceGroupName(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.resourceGroupName = mapped
    }

    /**
     * @param value The SKU Tier of the Firewall Policy. Possible values are `Standard`, `Premium` and `Basic`. Changing this forces a new Firewall Policy to be created.
     */
    @JvmName("upvuhgnyoofqfjof")
    public suspend fun sku(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sku = mapped
    }

    /**
     * @param value Whether SQL Redirect traffic filtering is allowed. Enabling this flag requires no rule using ports between `11000`-`11999`.
     */
    @JvmName("upadhtfuqomgnedr")
    public suspend fun sqlRedirectAllowed(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sqlRedirectAllowed = mapped
    }

    /**
     * @param value A mapping of tags which should be assigned to the Firewall Policy.
     */
    @JvmName("ndefvxscftyhglrx")
    public suspend fun tags(`value`: Map?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param values A mapping of tags which should be assigned to the Firewall Policy.
     */
    @JvmName("oyigjkmupgueoyqm")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    /**
     * @param value A `threat_intelligence_allowlist` block as defined below.
     */
    @JvmName("bawdkupychjrphya")
    public suspend fun threatIntelligenceAllowlist(`value`: FirewallPolicyThreatIntelligenceAllowlistArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.threatIntelligenceAllowlist = mapped
    }

    /**
     * @param argument A `threat_intelligence_allowlist` block as defined below.
     */
    @JvmName("ixhvvrbnsdwjjhlu")
    public suspend fun threatIntelligenceAllowlist(argument: suspend FirewallPolicyThreatIntelligenceAllowlistArgsBuilder.() -> Unit) {
        val toBeMapped = FirewallPolicyThreatIntelligenceAllowlistArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.threatIntelligenceAllowlist = mapped
    }

    /**
     * @param value The operation mode for Threat Intelligence. Possible values are `Alert`, `Deny` and `Off`. Defaults to `Alert`.
     */
    @JvmName("twajvxnyfcocicqi")
    public suspend fun threatIntelligenceMode(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.threatIntelligenceMode = mapped
    }

    /**
     * @param value A `tls_certificate` block as defined below.
     */
    @JvmName("xqdynmoyxirrrtrk")
    public suspend fun tlsCertificate(`value`: FirewallPolicyTlsCertificateArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.tlsCertificate = mapped
    }

    /**
     * @param argument A `tls_certificate` block as defined below.
     */
    @JvmName("dfqeeuxbichjkgji")
    public suspend fun tlsCertificate(argument: suspend FirewallPolicyTlsCertificateArgsBuilder.() -> Unit) {
        val toBeMapped = FirewallPolicyTlsCertificateArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.tlsCertificate = mapped
    }

    internal fun build(): FirewallPolicyArgs = FirewallPolicyArgs(
        autoLearnPrivateRangesEnabled = autoLearnPrivateRangesEnabled,
        basePolicyId = basePolicyId,
        dns = dns,
        explicitProxy = explicitProxy,
        identity = identity,
        insights = insights,
        intrusionDetection = intrusionDetection,
        location = location,
        name = name,
        privateIpRanges = privateIpRanges,
        resourceGroupName = resourceGroupName,
        sku = sku,
        sqlRedirectAllowed = sqlRedirectAllowed,
        tags = tags,
        threatIntelligenceAllowlist = threatIntelligenceAllowlist,
        threatIntelligenceMode = threatIntelligenceMode,
        tlsCertificate = tlsCertificate,
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy