Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.azure.network.kotlin.FirewallArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.network.kotlin
import com.pulumi.azure.network.FirewallArgs.builder
import com.pulumi.azure.network.kotlin.inputs.FirewallIpConfigurationArgs
import com.pulumi.azure.network.kotlin.inputs.FirewallIpConfigurationArgsBuilder
import com.pulumi.azure.network.kotlin.inputs.FirewallManagementIpConfigurationArgs
import com.pulumi.azure.network.kotlin.inputs.FirewallManagementIpConfigurationArgsBuilder
import com.pulumi.azure.network.kotlin.inputs.FirewallVirtualHubArgs
import com.pulumi.azure.network.kotlin.inputs.FirewallVirtualHubArgsBuilder
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 an Azure Firewall.
* ## 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 exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
* name: "testvnet",
* addressSpaces: ["10.0.0.0/16"],
* location: example.location,
* resourceGroupName: example.name,
* });
* const exampleSubnet = new azure.network.Subnet("example", {
* name: "AzureFirewallSubnet",
* resourceGroupName: example.name,
* virtualNetworkName: exampleVirtualNetwork.name,
* addressPrefixes: ["10.0.1.0/24"],
* });
* const examplePublicIp = new azure.network.PublicIp("example", {
* name: "testpip",
* location: example.location,
* resourceGroupName: example.name,
* allocationMethod: "Static",
* sku: "Standard",
* });
* const exampleFirewall = new azure.network.Firewall("example", {
* name: "testfirewall",
* location: example.location,
* resourceGroupName: example.name,
* skuName: "AZFW_VNet",
* skuTier: "Standard",
* ipConfigurations: [{
* name: "configuration",
* subnetId: exampleSubnet.id,
* publicIpAddressId: examplePublicIp.id,
* }],
* });
* ```
* ```python
* import pulumi
* import pulumi_azure as azure
* example = azure.core.ResourceGroup("example",
* name="example-resources",
* location="West Europe")
* example_virtual_network = azure.network.VirtualNetwork("example",
* name="testvnet",
* address_spaces=["10.0.0.0/16"],
* location=example.location,
* resource_group_name=example.name)
* example_subnet = azure.network.Subnet("example",
* name="AzureFirewallSubnet",
* resource_group_name=example.name,
* virtual_network_name=example_virtual_network.name,
* address_prefixes=["10.0.1.0/24"])
* example_public_ip = azure.network.PublicIp("example",
* name="testpip",
* location=example.location,
* resource_group_name=example.name,
* allocation_method="Static",
* sku="Standard")
* example_firewall = azure.network.Firewall("example",
* name="testfirewall",
* location=example.location,
* resource_group_name=example.name,
* sku_name="AZFW_VNet",
* sku_tier="Standard",
* ip_configurations=[{
* "name": "configuration",
* "subnet_id": example_subnet.id,
* "public_ip_address_id": example_public_ip.id,
* }])
* ```
* ```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 exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
* {
* Name = "testvnet",
* AddressSpaces = new[]
* {
* "10.0.0.0/16",
* },
* Location = example.Location,
* ResourceGroupName = example.Name,
* });
* var exampleSubnet = new Azure.Network.Subnet("example", new()
* {
* Name = "AzureFirewallSubnet",
* ResourceGroupName = example.Name,
* VirtualNetworkName = exampleVirtualNetwork.Name,
* AddressPrefixes = new[]
* {
* "10.0.1.0/24",
* },
* });
* var examplePublicIp = new Azure.Network.PublicIp("example", new()
* {
* Name = "testpip",
* Location = example.Location,
* ResourceGroupName = example.Name,
* AllocationMethod = "Static",
* Sku = "Standard",
* });
* var exampleFirewall = new Azure.Network.Firewall("example", new()
* {
* Name = "testfirewall",
* Location = example.Location,
* ResourceGroupName = example.Name,
* SkuName = "AZFW_VNet",
* SkuTier = "Standard",
* IpConfigurations = new[]
* {
* new Azure.Network.Inputs.FirewallIpConfigurationArgs
* {
* Name = "configuration",
* SubnetId = exampleSubnet.Id,
* PublicIpAddressId = examplePublicIp.Id,
* },
* },
* });
* });
* ```
* ```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
* }
* exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
* Name: pulumi.String("testvnet"),
* AddressSpaces: pulumi.StringArray{
* pulumi.String("10.0.0.0/16"),
* },
* Location: example.Location,
* ResourceGroupName: example.Name,
* })
* if err != nil {
* return err
* }
* exampleSubnet, err := network.NewSubnet(ctx, "example", &network.SubnetArgs{
* Name: pulumi.String("AzureFirewallSubnet"),
* ResourceGroupName: example.Name,
* VirtualNetworkName: exampleVirtualNetwork.Name,
* AddressPrefixes: pulumi.StringArray{
* pulumi.String("10.0.1.0/24"),
* },
* })
* if err != nil {
* return err
* }
* examplePublicIp, err := network.NewPublicIp(ctx, "example", &network.PublicIpArgs{
* Name: pulumi.String("testpip"),
* Location: example.Location,
* ResourceGroupName: example.Name,
* AllocationMethod: pulumi.String("Static"),
* Sku: pulumi.String("Standard"),
* })
* if err != nil {
* return err
* }
* _, err = network.NewFirewall(ctx, "example", &network.FirewallArgs{
* Name: pulumi.String("testfirewall"),
* Location: example.Location,
* ResourceGroupName: example.Name,
* SkuName: pulumi.String("AZFW_VNet"),
* SkuTier: pulumi.String("Standard"),
* IpConfigurations: network.FirewallIpConfigurationArray{
* &network.FirewallIpConfigurationArgs{
* Name: pulumi.String("configuration"),
* SubnetId: exampleSubnet.ID(),
* PublicIpAddressId: examplePublicIp.ID(),
* },
* },
* })
* 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.VirtualNetwork;
* import com.pulumi.azure.network.VirtualNetworkArgs;
* import com.pulumi.azure.network.Subnet;
* import com.pulumi.azure.network.SubnetArgs;
* import com.pulumi.azure.network.PublicIp;
* import com.pulumi.azure.network.PublicIpArgs;
* import com.pulumi.azure.network.Firewall;
* import com.pulumi.azure.network.FirewallArgs;
* import com.pulumi.azure.network.inputs.FirewallIpConfigurationArgs;
* 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 exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
* .name("testvnet")
* .addressSpaces("10.0.0.0/16")
* .location(example.location())
* .resourceGroupName(example.name())
* .build());
* var exampleSubnet = new Subnet("exampleSubnet", SubnetArgs.builder()
* .name("AzureFirewallSubnet")
* .resourceGroupName(example.name())
* .virtualNetworkName(exampleVirtualNetwork.name())
* .addressPrefixes("10.0.1.0/24")
* .build());
* var examplePublicIp = new PublicIp("examplePublicIp", PublicIpArgs.builder()
* .name("testpip")
* .location(example.location())
* .resourceGroupName(example.name())
* .allocationMethod("Static")
* .sku("Standard")
* .build());
* var exampleFirewall = new Firewall("exampleFirewall", FirewallArgs.builder()
* .name("testfirewall")
* .location(example.location())
* .resourceGroupName(example.name())
* .skuName("AZFW_VNet")
* .skuTier("Standard")
* .ipConfigurations(FirewallIpConfigurationArgs.builder()
* .name("configuration")
* .subnetId(exampleSubnet.id())
* .publicIpAddressId(examplePublicIp.id())
* .build())
* .build());
* }
* }
* ```
* ```yaml
* resources:
* example:
* type: azure:core:ResourceGroup
* properties:
* name: example-resources
* location: West Europe
* exampleVirtualNetwork:
* type: azure:network:VirtualNetwork
* name: example
* properties:
* name: testvnet
* addressSpaces:
* - 10.0.0.0/16
* location: ${example.location}
* resourceGroupName: ${example.name}
* exampleSubnet:
* type: azure:network:Subnet
* name: example
* properties:
* name: AzureFirewallSubnet
* resourceGroupName: ${example.name}
* virtualNetworkName: ${exampleVirtualNetwork.name}
* addressPrefixes:
* - 10.0.1.0/24
* examplePublicIp:
* type: azure:network:PublicIp
* name: example
* properties:
* name: testpip
* location: ${example.location}
* resourceGroupName: ${example.name}
* allocationMethod: Static
* sku: Standard
* exampleFirewall:
* type: azure:network:Firewall
* name: example
* properties:
* name: testfirewall
* location: ${example.location}
* resourceGroupName: ${example.name}
* skuName: AZFW_VNet
* skuTier: Standard
* ipConfigurations:
* - name: configuration
* subnetId: ${exampleSubnet.id}
* publicIpAddressId: ${examplePublicIp.id}
* ```
*
* ## Import
* Azure Firewalls can be imported using the `resource id`, e.g.
* ```sh
* $ pulumi import azure:network/firewall:Firewall example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Network/azureFirewalls/testfirewall
* ```
* @property dnsProxyEnabled Whether DNS proxy is enabled. It will forward DNS requests to the DNS servers when set to `true`. It will be set to `true` if `dns_servers` provided with a not empty list.
* @property dnsServers A list of DNS servers that the Azure Firewall will direct DNS traffic to the for name resolution.
* @property firewallPolicyId The ID of the Firewall Policy applied to this Firewall.
* @property ipConfigurations An `ip_configuration` block as documented below.
* @property location Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
* @property managementIpConfiguration A `management_ip_configuration` block as documented below, which allows force-tunnelling of traffic to be performed by the firewall. Adding or removing this block or changing the `subnet_id` in an existing block forces a new resource to be created. Changing this forces a new resource to be created.
* @property name Specifies the name of the Firewall. Changing this forces a new resource to be created.
* @property privateIpRanges A list of SNAT private CIDR IP ranges, or the special string `IANAPrivateRanges`, which indicates Azure Firewall does not SNAT when the destination IP address is a private range per IANA RFC 1918.
* @property resourceGroupName The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
* @property skuName SKU name of the Firewall. Possible values are `AZFW_Hub` and `AZFW_VNet`. Changing this forces a new resource to be created.
* @property skuTier SKU tier of the Firewall. Possible values are `Premium`, `Standard` and `Basic`.
* @property tags A mapping of tags to assign to the resource.
* @property threatIntelMode The operation mode for threat intelligence-based filtering. Possible values are: `Off`, `Alert` and `Deny`. Defaults to `Alert`.
* @property virtualHub A `virtual_hub` block as documented below.
* @property zones Specifies a list of Availability Zones in which this Azure Firewall should be located. Changing this forces a new Azure Firewall to be created.
* > **Please Note**: Availability Zones are [only supported in several regions at this time](https://docs.microsoft.com/azure/availability-zones/az-overview).
*/
public data class FirewallArgs(
public val dnsProxyEnabled: Output? = null,
public val dnsServers: Output>? = null,
public val firewallPolicyId: Output? = null,
public val ipConfigurations: Output>? = null,
public val location: Output? = null,
public val managementIpConfiguration: Output? = null,
public val name: Output? = null,
public val privateIpRanges: Output>? = null,
public val resourceGroupName: Output? = null,
public val skuName: Output? = null,
public val skuTier: Output? = null,
public val tags: Output>? = null,
public val threatIntelMode: Output? = null,
public val virtualHub: Output? = null,
public val zones: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.network.FirewallArgs =
com.pulumi.azure.network.FirewallArgs.builder()
.dnsProxyEnabled(dnsProxyEnabled?.applyValue({ args0 -> args0 }))
.dnsServers(dnsServers?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.firewallPolicyId(firewallPolicyId?.applyValue({ args0 -> args0 }))
.ipConfigurations(
ipConfigurations?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.location(location?.applyValue({ args0 -> args0 }))
.managementIpConfiguration(
managementIpConfiguration?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.name(name?.applyValue({ args0 -> args0 }))
.privateIpRanges(privateIpRanges?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
.skuName(skuName?.applyValue({ args0 -> args0 }))
.skuTier(skuTier?.applyValue({ args0 -> args0 }))
.tags(tags?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.threatIntelMode(threatIntelMode?.applyValue({ args0 -> args0 }))
.virtualHub(virtualHub?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.zones(zones?.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}
/**
* Builder for [FirewallArgs].
*/
@PulumiTagMarker
public class FirewallArgsBuilder internal constructor() {
private var dnsProxyEnabled: Output? = null
private var dnsServers: Output>? = null
private var firewallPolicyId: Output? = null
private var ipConfigurations: Output>? = null
private var location: Output? = null
private var managementIpConfiguration: Output? = null
private var name: Output? = null
private var privateIpRanges: Output>? = null
private var resourceGroupName: Output? = null
private var skuName: Output? = null
private var skuTier: Output? = null
private var tags: Output>? = null
private var threatIntelMode: Output? = null
private var virtualHub: Output? = null
private var zones: Output>? = null
/**
* @param value Whether DNS proxy is enabled. It will forward DNS requests to the DNS servers when set to `true`. It will be set to `true` if `dns_servers` provided with a not empty list.
*/
@JvmName("jplclxpmplfkigfc")
public suspend fun dnsProxyEnabled(`value`: Output) {
this.dnsProxyEnabled = value
}
/**
* @param value A list of DNS servers that the Azure Firewall will direct DNS traffic to the for name resolution.
*/
@JvmName("qwvawxvfspedhsgw")
public suspend fun dnsServers(`value`: Output>) {
this.dnsServers = value
}
@JvmName("punxcvedshteeeqq")
public suspend fun dnsServers(vararg values: Output) {
this.dnsServers = Output.all(values.asList())
}
/**
* @param values A list of DNS servers that the Azure Firewall will direct DNS traffic to the for name resolution.
*/
@JvmName("mvefpdmktntepbxl")
public suspend fun dnsServers(values: List>) {
this.dnsServers = Output.all(values)
}
/**
* @param value The ID of the Firewall Policy applied to this Firewall.
*/
@JvmName("rkiewewbuaoufvji")
public suspend fun firewallPolicyId(`value`: Output) {
this.firewallPolicyId = value
}
/**
* @param value An `ip_configuration` block as documented below.
*/
@JvmName("rlipuergcfwhhedd")
public suspend fun ipConfigurations(`value`: Output>) {
this.ipConfigurations = value
}
@JvmName("flsjidyewoqnhobo")
public suspend fun ipConfigurations(vararg values: Output) {
this.ipConfigurations = Output.all(values.asList())
}
/**
* @param values An `ip_configuration` block as documented below.
*/
@JvmName("stmysibgfklioyna")
public suspend fun ipConfigurations(values: List>) {
this.ipConfigurations = Output.all(values)
}
/**
* @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
*/
@JvmName("fjofhehywkmdufdd")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value A `management_ip_configuration` block as documented below, which allows force-tunnelling of traffic to be performed by the firewall. Adding or removing this block or changing the `subnet_id` in an existing block forces a new resource to be created. Changing this forces a new resource to be created.
*/
@JvmName("excyuwlimvnnlmsf")
public suspend fun managementIpConfiguration(`value`: Output) {
this.managementIpConfiguration = value
}
/**
* @param value Specifies the name of the Firewall. Changing this forces a new resource to be created.
*/
@JvmName("kvltujqrdhnbrqxq")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value A list of SNAT private CIDR IP ranges, or the special string `IANAPrivateRanges`, which indicates Azure Firewall does not SNAT when the destination IP address is a private range per IANA RFC 1918.
*/
@JvmName("futmrmbopwxvqrrh")
public suspend fun privateIpRanges(`value`: Output>) {
this.privateIpRanges = value
}
@JvmName("wqiwvbsktydswupk")
public suspend fun privateIpRanges(vararg values: Output) {
this.privateIpRanges = Output.all(values.asList())
}
/**
* @param values A list of SNAT private CIDR IP ranges, or the special string `IANAPrivateRanges`, which indicates Azure Firewall does not SNAT when the destination IP address is a private range per IANA RFC 1918.
*/
@JvmName("ysmebmfefkjjlmky")
public suspend fun privateIpRanges(values: List>) {
this.privateIpRanges = Output.all(values)
}
/**
* @param value The name of the resource group in which to create the resource. Changing this forces a new resource to be created.
*/
@JvmName("fgkyfadhjpqsqygs")
public suspend fun resourceGroupName(`value`: Output) {
this.resourceGroupName = value
}
/**
* @param value SKU name of the Firewall. Possible values are `AZFW_Hub` and `AZFW_VNet`. Changing this forces a new resource to be created.
*/
@JvmName("meuneibxoilmxnuu")
public suspend fun skuName(`value`: Output) {
this.skuName = value
}
/**
* @param value SKU tier of the Firewall. Possible values are `Premium`, `Standard` and `Basic`.
*/
@JvmName("loqppmjoxghekted")
public suspend fun skuTier(`value`: Output) {
this.skuTier = value
}
/**
* @param value A mapping of tags to assign to the resource.
*/
@JvmName("vglmbqmkycymetft")
public suspend fun tags(`value`: Output>) {
this.tags = value
}
/**
* @param value The operation mode for threat intelligence-based filtering. Possible values are: `Off`, `Alert` and `Deny`. Defaults to `Alert`.
*/
@JvmName("gintepavncpbouti")
public suspend fun threatIntelMode(`value`: Output) {
this.threatIntelMode = value
}
/**
* @param value A `virtual_hub` block as documented below.
*/
@JvmName("gfdebvvmlgjtfdad")
public suspend fun virtualHub(`value`: Output) {
this.virtualHub = value
}
/**
* @param value Specifies a list of Availability Zones in which this Azure Firewall should be located. Changing this forces a new Azure Firewall to be created.
* > **Please Note**: Availability Zones are [only supported in several regions at this time](https://docs.microsoft.com/azure/availability-zones/az-overview).
*/
@JvmName("ykyjjodbeqassdwx")
public suspend fun zones(`value`: Output>) {
this.zones = value
}
@JvmName("phvmuycnjulwhgaf")
public suspend fun zones(vararg values: Output) {
this.zones = Output.all(values.asList())
}
/**
* @param values Specifies a list of Availability Zones in which this Azure Firewall should be located. Changing this forces a new Azure Firewall to be created.
* > **Please Note**: Availability Zones are [only supported in several regions at this time](https://docs.microsoft.com/azure/availability-zones/az-overview).
*/
@JvmName("aepimapyrcqxoutf")
public suspend fun zones(values: List>) {
this.zones = Output.all(values)
}
/**
* @param value Whether DNS proxy is enabled. It will forward DNS requests to the DNS servers when set to `true`. It will be set to `true` if `dns_servers` provided with a not empty list.
*/
@JvmName("uqnhnsjdiaulyimc")
public suspend fun dnsProxyEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dnsProxyEnabled = mapped
}
/**
* @param value A list of DNS servers that the Azure Firewall will direct DNS traffic to the for name resolution.
*/
@JvmName("mypkqvftkrsepobx")
public suspend fun dnsServers(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.dnsServers = mapped
}
/**
* @param values A list of DNS servers that the Azure Firewall will direct DNS traffic to the for name resolution.
*/
@JvmName("oequkvpcvbsutxuv")
public suspend fun dnsServers(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.dnsServers = mapped
}
/**
* @param value The ID of the Firewall Policy applied to this Firewall.
*/
@JvmName("kloevaqerngdlaxh")
public suspend fun firewallPolicyId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.firewallPolicyId = mapped
}
/**
* @param value An `ip_configuration` block as documented below.
*/
@JvmName("oahunlpoibbmaspu")
public suspend fun ipConfigurations(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.ipConfigurations = mapped
}
/**
* @param argument An `ip_configuration` block as documented below.
*/
@JvmName("uunqgnnmefwarkfm")
public suspend fun ipConfigurations(argument: List Unit>) {
val toBeMapped = argument.toList().map {
FirewallIpConfigurationArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.ipConfigurations = mapped
}
/**
* @param argument An `ip_configuration` block as documented below.
*/
@JvmName("vcmoljhdomoeglnx")
public suspend fun ipConfigurations(vararg argument: suspend FirewallIpConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = argument.toList().map {
FirewallIpConfigurationArgsBuilder().applySuspend {
it()
}.build()
}
val mapped = of(toBeMapped)
this.ipConfigurations = mapped
}
/**
* @param argument An `ip_configuration` block as documented below.
*/
@JvmName("qndhhaeompjjchni")
public suspend fun ipConfigurations(argument: suspend FirewallIpConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = listOf(
FirewallIpConfigurationArgsBuilder().applySuspend {
argument()
}.build(),
)
val mapped = of(toBeMapped)
this.ipConfigurations = mapped
}
/**
* @param values An `ip_configuration` block as documented below.
*/
@JvmName("nkeptqvhxlcgumlw")
public suspend fun ipConfigurations(vararg values: FirewallIpConfigurationArgs) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.ipConfigurations = mapped
}
/**
* @param value Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
*/
@JvmName("sfdoirvteuuvjanh")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value A `management_ip_configuration` block as documented below, which allows force-tunnelling of traffic to be performed by the firewall. Adding or removing this block or changing the `subnet_id` in an existing block forces a new resource to be created. Changing this forces a new resource to be created.
*/
@JvmName("haxadbslrxalrnvm")
public suspend fun managementIpConfiguration(`value`: FirewallManagementIpConfigurationArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.managementIpConfiguration = mapped
}
/**
* @param argument A `management_ip_configuration` block as documented below, which allows force-tunnelling of traffic to be performed by the firewall. Adding or removing this block or changing the `subnet_id` in an existing block forces a new resource to be created. Changing this forces a new resource to be created.
*/
@JvmName("xoybngcpynkmumtm")
public suspend fun managementIpConfiguration(argument: suspend FirewallManagementIpConfigurationArgsBuilder.() -> Unit) {
val toBeMapped = FirewallManagementIpConfigurationArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.managementIpConfiguration = mapped
}
/**
* @param value Specifies the name of the Firewall. Changing this forces a new resource to be created.
*/
@JvmName("iovvowxuvnwjqhxg")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value A list of SNAT private CIDR IP ranges, or the special string `IANAPrivateRanges`, which indicates Azure Firewall does not SNAT when the destination IP address is a private range per IANA RFC 1918.
*/
@JvmName("lqjlkitfbrpctfck")
public suspend fun privateIpRanges(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.privateIpRanges = mapped
}
/**
* @param values A list of SNAT private CIDR IP ranges, or the special string `IANAPrivateRanges`, which indicates Azure Firewall does not SNAT when the destination IP address is a private range per IANA RFC 1918.
*/
@JvmName("wsdtiikvcpcdetto")
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 in which to create the resource. Changing this forces a new resource to be created.
*/
@JvmName("tjivkurlycdpjmro")
public suspend fun resourceGroupName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.resourceGroupName = mapped
}
/**
* @param value SKU name of the Firewall. Possible values are `AZFW_Hub` and `AZFW_VNet`. Changing this forces a new resource to be created.
*/
@JvmName("igjvrlviiayadpse")
public suspend fun skuName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.skuName = mapped
}
/**
* @param value SKU tier of the Firewall. Possible values are `Premium`, `Standard` and `Basic`.
*/
@JvmName("bldlxboyimvlfuuy")
public suspend fun skuTier(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.skuTier = mapped
}
/**
* @param value A mapping of tags to assign to the resource.
*/
@JvmName("jwjbgqdxsvpaqaik")
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 to assign to the resource.
*/
@JvmName("jgwrbxwwbyftwkma")
public fun tags(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.tags = mapped
}
/**
* @param value The operation mode for threat intelligence-based filtering. Possible values are: `Off`, `Alert` and `Deny`. Defaults to `Alert`.
*/
@JvmName("lifynnlfnxwycbup")
public suspend fun threatIntelMode(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.threatIntelMode = mapped
}
/**
* @param value A `virtual_hub` block as documented below.
*/
@JvmName("ovtevlvkdlisiwsu")
public suspend fun virtualHub(`value`: FirewallVirtualHubArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.virtualHub = mapped
}
/**
* @param argument A `virtual_hub` block as documented below.
*/
@JvmName("irnbbpnqlaqixwku")
public suspend fun virtualHub(argument: suspend FirewallVirtualHubArgsBuilder.() -> Unit) {
val toBeMapped = FirewallVirtualHubArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.virtualHub = mapped
}
/**
* @param value Specifies a list of Availability Zones in which this Azure Firewall should be located. Changing this forces a new Azure Firewall to be created.
* > **Please Note**: Availability Zones are [only supported in several regions at this time](https://docs.microsoft.com/azure/availability-zones/az-overview).
*/
@JvmName("thdrchesfwoeusny")
public suspend fun zones(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.zones = mapped
}
/**
* @param values Specifies a list of Availability Zones in which this Azure Firewall should be located. Changing this forces a new Azure Firewall to be created.
* > **Please Note**: Availability Zones are [only supported in several regions at this time](https://docs.microsoft.com/azure/availability-zones/az-overview).
*/
@JvmName("pfclkriefhysxcym")
public suspend fun zones(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.zones = mapped
}
internal fun build(): FirewallArgs = FirewallArgs(
dnsProxyEnabled = dnsProxyEnabled,
dnsServers = dnsServers,
firewallPolicyId = firewallPolicyId,
ipConfigurations = ipConfigurations,
location = location,
managementIpConfiguration = managementIpConfiguration,
name = name,
privateIpRanges = privateIpRanges,
resourceGroupName = resourceGroupName,
skuName = skuName,
skuTier = skuTier,
tags = tags,
threatIntelMode = threatIntelMode,
virtualHub = virtualHub,
zones = zones,
)
}