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

com.pulumi.azure.paloalto.kotlin.NextGenerationFirewallVirtualNetworkPanoramaArgs.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.paloalto.kotlin

import com.pulumi.azure.paloalto.NextGenerationFirewallVirtualNetworkPanoramaArgs.builder
import com.pulumi.azure.paloalto.kotlin.inputs.NextGenerationFirewallVirtualNetworkPanoramaDestinationNatArgs
import com.pulumi.azure.paloalto.kotlin.inputs.NextGenerationFirewallVirtualNetworkPanoramaDestinationNatArgsBuilder
import com.pulumi.azure.paloalto.kotlin.inputs.NextGenerationFirewallVirtualNetworkPanoramaDnsSettingsArgs
import com.pulumi.azure.paloalto.kotlin.inputs.NextGenerationFirewallVirtualNetworkPanoramaDnsSettingsArgsBuilder
import com.pulumi.azure.paloalto.kotlin.inputs.NextGenerationFirewallVirtualNetworkPanoramaNetworkProfileArgs
import com.pulumi.azure.paloalto.kotlin.inputs.NextGenerationFirewallVirtualNetworkPanoramaNetworkProfileArgsBuilder
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.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName

/**
 * Manages a Palo Alto Next Generation Firewall Virtual Network Panorama.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as azure from "@pulumi/azure";
 * const example = new azure.core.ResourceGroup("example", {
 *     name: "example-resource-group",
 *     location: "westeurope",
 * });
 * const examplePublicIp = new azure.network.PublicIp("example", {
 *     name: "example-public-ip",
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     allocationMethod: "Static",
 *     sku: "Standard",
 * });
 * const exampleNetworkSecurityGroup = new azure.network.NetworkSecurityGroup("example", {
 *     name: "example-nsg",
 *     location: test.location,
 *     resourceGroupName: test.name,
 * });
 * const exampleVirtualNetwork = new azure.network.VirtualNetwork("example", {
 *     name: "example-vnet",
 *     addressSpaces: ["10.0.0.0/16"],
 *     location: example.location,
 *     resourceGroupName: example.name,
 *     tags: {
 *         environment: "Production",
 *     },
 * });
 * const trust = new azure.network.Subnet("trust", {
 *     name: "example-trust-subnet",
 *     resourceGroupName: example.name,
 *     virtualNetworkName: exampleVirtualNetwork.name,
 *     addressPrefixes: ["10.0.1.0/24"],
 *     delegations: [{
 *         name: "trusted",
 *         serviceDelegation: {
 *             name: "PaloAltoNetworks.Cloudngfw/firewalls",
 *             actions: ["Microsoft.Network/virtualNetworks/subnets/join/action"],
 *         },
 *     }],
 * });
 * const trustSubnetNetworkSecurityGroupAssociation = new azure.network.SubnetNetworkSecurityGroupAssociation("trust", {
 *     subnetId: trust.id,
 *     networkSecurityGroupId: exampleNetworkSecurityGroup.id,
 * });
 * const untrust = new azure.network.Subnet("untrust", {
 *     name: "example-untrust-subnet",
 *     resourceGroupName: example.name,
 *     virtualNetworkName: exampleVirtualNetwork.name,
 *     addressPrefixes: ["10.0.2.0/24"],
 *     delegations: [{
 *         name: "untrusted",
 *         serviceDelegation: {
 *             name: "PaloAltoNetworks.Cloudngfw/firewalls",
 *             actions: ["Microsoft.Network/virtualNetworks/subnets/join/action"],
 *         },
 *     }],
 * });
 * const untrustSubnetNetworkSecurityGroupAssociation = new azure.network.SubnetNetworkSecurityGroupAssociation("untrust", {
 *     subnetId: untrust.id,
 *     networkSecurityGroupId: exampleNetworkSecurityGroup.id,
 * });
 * const exampleNextGenerationFirewallVirtualNetworkPanorama = new azure.paloalto.NextGenerationFirewallVirtualNetworkPanorama("example", {
 *     name: "example-ngfwvh",
 *     resourceGroupName: example.name,
 *     location: example.location,
 *     panoramaBase64Config: "e2RnbmFtZTogY25nZnctYXotZXhhbXBsZSwgdHBsbmFtZTogY25nZnctZXhhbXBsZS10ZW1wbGF0ZS1zdGFjaywgZXhhbXBsZS1wYW5vcmFtYS1zZXJ2ZXI6IDE5Mi4xNjguMC4xLCB2bS1hdXRoLWtleTogMDAwMDAwMDAwMDAwMDAwLCBleHBpcnk6IDIwMjQvMDcvMzF9Cg==",
 *     networkProfile: {
 *         publicIpAddressIds: [examplePublicIp.id],
 *         vnetConfiguration: {
 *             virtualNetworkId: exampleVirtualNetwork.id,
 *             trustedSubnetId: trust.id,
 *             untrustedSubnetId: untrust.id,
 *         },
 *     },
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_azure as azure
 * example = azure.core.ResourceGroup("example",
 *     name="example-resource-group",
 *     location="westeurope")
 * example_public_ip = azure.network.PublicIp("example",
 *     name="example-public-ip",
 *     location=example.location,
 *     resource_group_name=example.name,
 *     allocation_method="Static",
 *     sku="Standard")
 * example_network_security_group = azure.network.NetworkSecurityGroup("example",
 *     name="example-nsg",
 *     location=test["location"],
 *     resource_group_name=test["name"])
 * example_virtual_network = azure.network.VirtualNetwork("example",
 *     name="example-vnet",
 *     address_spaces=["10.0.0.0/16"],
 *     location=example.location,
 *     resource_group_name=example.name,
 *     tags={
 *         "environment": "Production",
 *     })
 * trust = azure.network.Subnet("trust",
 *     name="example-trust-subnet",
 *     resource_group_name=example.name,
 *     virtual_network_name=example_virtual_network.name,
 *     address_prefixes=["10.0.1.0/24"],
 *     delegations=[{
 *         "name": "trusted",
 *         "service_delegation": {
 *             "name": "PaloAltoNetworks.Cloudngfw/firewalls",
 *             "actions": ["Microsoft.Network/virtualNetworks/subnets/join/action"],
 *         },
 *     }])
 * trust_subnet_network_security_group_association = azure.network.SubnetNetworkSecurityGroupAssociation("trust",
 *     subnet_id=trust.id,
 *     network_security_group_id=example_network_security_group.id)
 * untrust = azure.network.Subnet("untrust",
 *     name="example-untrust-subnet",
 *     resource_group_name=example.name,
 *     virtual_network_name=example_virtual_network.name,
 *     address_prefixes=["10.0.2.0/24"],
 *     delegations=[{
 *         "name": "untrusted",
 *         "service_delegation": {
 *             "name": "PaloAltoNetworks.Cloudngfw/firewalls",
 *             "actions": ["Microsoft.Network/virtualNetworks/subnets/join/action"],
 *         },
 *     }])
 * untrust_subnet_network_security_group_association = azure.network.SubnetNetworkSecurityGroupAssociation("untrust",
 *     subnet_id=untrust.id,
 *     network_security_group_id=example_network_security_group.id)
 * example_next_generation_firewall_virtual_network_panorama = azure.paloalto.NextGenerationFirewallVirtualNetworkPanorama("example",
 *     name="example-ngfwvh",
 *     resource_group_name=example.name,
 *     location=example.location,
 *     panorama_base64_config="e2RnbmFtZTogY25nZnctYXotZXhhbXBsZSwgdHBsbmFtZTogY25nZnctZXhhbXBsZS10ZW1wbGF0ZS1zdGFjaywgZXhhbXBsZS1wYW5vcmFtYS1zZXJ2ZXI6IDE5Mi4xNjguMC4xLCB2bS1hdXRoLWtleTogMDAwMDAwMDAwMDAwMDAwLCBleHBpcnk6IDIwMjQvMDcvMzF9Cg==",
 *     network_profile={
 *         "public_ip_address_ids": [example_public_ip.id],
 *         "vnet_configuration": {
 *             "virtual_network_id": example_virtual_network.id,
 *             "trusted_subnet_id": trust.id,
 *             "untrusted_subnet_id": untrust.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-resource-group",
 *         Location = "westeurope",
 *     });
 *     var examplePublicIp = new Azure.Network.PublicIp("example", new()
 *     {
 *         Name = "example-public-ip",
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         AllocationMethod = "Static",
 *         Sku = "Standard",
 *     });
 *     var exampleNetworkSecurityGroup = new Azure.Network.NetworkSecurityGroup("example", new()
 *     {
 *         Name = "example-nsg",
 *         Location = test.Location,
 *         ResourceGroupName = test.Name,
 *     });
 *     var exampleVirtualNetwork = new Azure.Network.VirtualNetwork("example", new()
 *     {
 *         Name = "example-vnet",
 *         AddressSpaces = new[]
 *         {
 *             "10.0.0.0/16",
 *         },
 *         Location = example.Location,
 *         ResourceGroupName = example.Name,
 *         Tags =
 *         {
 *             { "environment", "Production" },
 *         },
 *     });
 *     var trust = new Azure.Network.Subnet("trust", new()
 *     {
 *         Name = "example-trust-subnet",
 *         ResourceGroupName = example.Name,
 *         VirtualNetworkName = exampleVirtualNetwork.Name,
 *         AddressPrefixes = new[]
 *         {
 *             "10.0.1.0/24",
 *         },
 *         Delegations = new[]
 *         {
 *             new Azure.Network.Inputs.SubnetDelegationArgs
 *             {
 *                 Name = "trusted",
 *                 ServiceDelegation = new Azure.Network.Inputs.SubnetDelegationServiceDelegationArgs
 *                 {
 *                     Name = "PaloAltoNetworks.Cloudngfw/firewalls",
 *                     Actions = new[]
 *                     {
 *                         "Microsoft.Network/virtualNetworks/subnets/join/action",
 *                     },
 *                 },
 *             },
 *         },
 *     });
 *     var trustSubnetNetworkSecurityGroupAssociation = new Azure.Network.SubnetNetworkSecurityGroupAssociation("trust", new()
 *     {
 *         SubnetId = trust.Id,
 *         NetworkSecurityGroupId = exampleNetworkSecurityGroup.Id,
 *     });
 *     var untrust = new Azure.Network.Subnet("untrust", new()
 *     {
 *         Name = "example-untrust-subnet",
 *         ResourceGroupName = example.Name,
 *         VirtualNetworkName = exampleVirtualNetwork.Name,
 *         AddressPrefixes = new[]
 *         {
 *             "10.0.2.0/24",
 *         },
 *         Delegations = new[]
 *         {
 *             new Azure.Network.Inputs.SubnetDelegationArgs
 *             {
 *                 Name = "untrusted",
 *                 ServiceDelegation = new Azure.Network.Inputs.SubnetDelegationServiceDelegationArgs
 *                 {
 *                     Name = "PaloAltoNetworks.Cloudngfw/firewalls",
 *                     Actions = new[]
 *                     {
 *                         "Microsoft.Network/virtualNetworks/subnets/join/action",
 *                     },
 *                 },
 *             },
 *         },
 *     });
 *     var untrustSubnetNetworkSecurityGroupAssociation = new Azure.Network.SubnetNetworkSecurityGroupAssociation("untrust", new()
 *     {
 *         SubnetId = untrust.Id,
 *         NetworkSecurityGroupId = exampleNetworkSecurityGroup.Id,
 *     });
 *     var exampleNextGenerationFirewallVirtualNetworkPanorama = new Azure.PaloAlto.NextGenerationFirewallVirtualNetworkPanorama("example", new()
 *     {
 *         Name = "example-ngfwvh",
 *         ResourceGroupName = example.Name,
 *         Location = example.Location,
 *         PanoramaBase64Config = "e2RnbmFtZTogY25nZnctYXotZXhhbXBsZSwgdHBsbmFtZTogY25nZnctZXhhbXBsZS10ZW1wbGF0ZS1zdGFjaywgZXhhbXBsZS1wYW5vcmFtYS1zZXJ2ZXI6IDE5Mi4xNjguMC4xLCB2bS1hdXRoLWtleTogMDAwMDAwMDAwMDAwMDAwLCBleHBpcnk6IDIwMjQvMDcvMzF9Cg==",
 *         NetworkProfile = new Azure.PaloAlto.Inputs.NextGenerationFirewallVirtualNetworkPanoramaNetworkProfileArgs
 *         {
 *             PublicIpAddressIds = new[]
 *             {
 *                 examplePublicIp.Id,
 *             },
 *             VnetConfiguration = new Azure.PaloAlto.Inputs.NextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationArgs
 *             {
 *                 VirtualNetworkId = exampleVirtualNetwork.Id,
 *                 TrustedSubnetId = trust.Id,
 *                 UntrustedSubnetId = untrust.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-azure/sdk/v5/go/azure/paloalto"
 * 	"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-resource-group"),
 * 			Location: pulumi.String("westeurope"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		examplePublicIp, err := network.NewPublicIp(ctx, "example", &network.PublicIpArgs{
 * 			Name:              pulumi.String("example-public-ip"),
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			AllocationMethod:  pulumi.String("Static"),
 * 			Sku:               pulumi.String("Standard"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleNetworkSecurityGroup, err := network.NewNetworkSecurityGroup(ctx, "example", &network.NetworkSecurityGroupArgs{
 * 			Name:              pulumi.String("example-nsg"),
 * 			Location:          pulumi.Any(test.Location),
 * 			ResourceGroupName: pulumi.Any(test.Name),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		exampleVirtualNetwork, err := network.NewVirtualNetwork(ctx, "example", &network.VirtualNetworkArgs{
 * 			Name: pulumi.String("example-vnet"),
 * 			AddressSpaces: pulumi.StringArray{
 * 				pulumi.String("10.0.0.0/16"),
 * 			},
 * 			Location:          example.Location,
 * 			ResourceGroupName: example.Name,
 * 			Tags: pulumi.StringMap{
 * 				"environment": pulumi.String("Production"),
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		trust, err := network.NewSubnet(ctx, "trust", &network.SubnetArgs{
 * 			Name:               pulumi.String("example-trust-subnet"),
 * 			ResourceGroupName:  example.Name,
 * 			VirtualNetworkName: exampleVirtualNetwork.Name,
 * 			AddressPrefixes: pulumi.StringArray{
 * 				pulumi.String("10.0.1.0/24"),
 * 			},
 * 			Delegations: network.SubnetDelegationArray{
 * 				&network.SubnetDelegationArgs{
 * 					Name: pulumi.String("trusted"),
 * 					ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{
 * 						Name: pulumi.String("PaloAltoNetworks.Cloudngfw/firewalls"),
 * 						Actions: pulumi.StringArray{
 * 							pulumi.String("Microsoft.Network/virtualNetworks/subnets/join/action"),
 * 						},
 * 					},
 * 				},
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = network.NewSubnetNetworkSecurityGroupAssociation(ctx, "trust", &network.SubnetNetworkSecurityGroupAssociationArgs{
 * 			SubnetId:               trust.ID(),
 * 			NetworkSecurityGroupId: exampleNetworkSecurityGroup.ID(),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		untrust, err := network.NewSubnet(ctx, "untrust", &network.SubnetArgs{
 * 			Name:               pulumi.String("example-untrust-subnet"),
 * 			ResourceGroupName:  example.Name,
 * 			VirtualNetworkName: exampleVirtualNetwork.Name,
 * 			AddressPrefixes: pulumi.StringArray{
 * 				pulumi.String("10.0.2.0/24"),
 * 			},
 * 			Delegations: network.SubnetDelegationArray{
 * 				&network.SubnetDelegationArgs{
 * 					Name: pulumi.String("untrusted"),
 * 					ServiceDelegation: &network.SubnetDelegationServiceDelegationArgs{
 * 						Name: pulumi.String("PaloAltoNetworks.Cloudngfw/firewalls"),
 * 						Actions: pulumi.StringArray{
 * 							pulumi.String("Microsoft.Network/virtualNetworks/subnets/join/action"),
 * 						},
 * 					},
 * 				},
 * 			},
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = network.NewSubnetNetworkSecurityGroupAssociation(ctx, "untrust", &network.SubnetNetworkSecurityGroupAssociationArgs{
 * 			SubnetId:               untrust.ID(),
 * 			NetworkSecurityGroupId: exampleNetworkSecurityGroup.ID(),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		_, err = paloalto.NewNextGenerationFirewallVirtualNetworkPanorama(ctx, "example", &paloalto.NextGenerationFirewallVirtualNetworkPanoramaArgs{
 * 			Name:                 pulumi.String("example-ngfwvh"),
 * 			ResourceGroupName:    example.Name,
 * 			Location:             example.Location,
 * 			PanoramaBase64Config: pulumi.String("e2RnbmFtZTogY25nZnctYXotZXhhbXBsZSwgdHBsbmFtZTogY25nZnctZXhhbXBsZS10ZW1wbGF0ZS1zdGFjaywgZXhhbXBsZS1wYW5vcmFtYS1zZXJ2ZXI6IDE5Mi4xNjguMC4xLCB2bS1hdXRoLWtleTogMDAwMDAwMDAwMDAwMDAwLCBleHBpcnk6IDIwMjQvMDcvMzF9Cg=="),
 * 			NetworkProfile: &paloalto.NextGenerationFirewallVirtualNetworkPanoramaNetworkProfileArgs{
 * 				PublicIpAddressIds: pulumi.StringArray{
 * 					examplePublicIp.ID(),
 * 				},
 * 				VnetConfiguration: &paloalto.NextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationArgs{
 * 					VirtualNetworkId:  exampleVirtualNetwork.ID(),
 * 					TrustedSubnetId:   trust.ID(),
 * 					UntrustedSubnetId: untrust.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.PublicIp;
 * import com.pulumi.azure.network.PublicIpArgs;
 * import com.pulumi.azure.network.NetworkSecurityGroup;
 * import com.pulumi.azure.network.NetworkSecurityGroupArgs;
 * 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.inputs.SubnetDelegationArgs;
 * import com.pulumi.azure.network.inputs.SubnetDelegationServiceDelegationArgs;
 * import com.pulumi.azure.network.SubnetNetworkSecurityGroupAssociation;
 * import com.pulumi.azure.network.SubnetNetworkSecurityGroupAssociationArgs;
 * import com.pulumi.azure.paloalto.NextGenerationFirewallVirtualNetworkPanorama;
 * import com.pulumi.azure.paloalto.NextGenerationFirewallVirtualNetworkPanoramaArgs;
 * import com.pulumi.azure.paloalto.inputs.NextGenerationFirewallVirtualNetworkPanoramaNetworkProfileArgs;
 * import com.pulumi.azure.paloalto.inputs.NextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationArgs;
 * 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-resource-group")
 *             .location("westeurope")
 *             .build());
 *         var examplePublicIp = new PublicIp("examplePublicIp", PublicIpArgs.builder()
 *             .name("example-public-ip")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .allocationMethod("Static")
 *             .sku("Standard")
 *             .build());
 *         var exampleNetworkSecurityGroup = new NetworkSecurityGroup("exampleNetworkSecurityGroup", NetworkSecurityGroupArgs.builder()
 *             .name("example-nsg")
 *             .location(test.location())
 *             .resourceGroupName(test.name())
 *             .build());
 *         var exampleVirtualNetwork = new VirtualNetwork("exampleVirtualNetwork", VirtualNetworkArgs.builder()
 *             .name("example-vnet")
 *             .addressSpaces("10.0.0.0/16")
 *             .location(example.location())
 *             .resourceGroupName(example.name())
 *             .tags(Map.of("environment", "Production"))
 *             .build());
 *         var trust = new Subnet("trust", SubnetArgs.builder()
 *             .name("example-trust-subnet")
 *             .resourceGroupName(example.name())
 *             .virtualNetworkName(exampleVirtualNetwork.name())
 *             .addressPrefixes("10.0.1.0/24")
 *             .delegations(SubnetDelegationArgs.builder()
 *                 .name("trusted")
 *                 .serviceDelegation(SubnetDelegationServiceDelegationArgs.builder()
 *                     .name("PaloAltoNetworks.Cloudngfw/firewalls")
 *                     .actions("Microsoft.Network/virtualNetworks/subnets/join/action")
 *                     .build())
 *                 .build())
 *             .build());
 *         var trustSubnetNetworkSecurityGroupAssociation = new SubnetNetworkSecurityGroupAssociation("trustSubnetNetworkSecurityGroupAssociation", SubnetNetworkSecurityGroupAssociationArgs.builder()
 *             .subnetId(trust.id())
 *             .networkSecurityGroupId(exampleNetworkSecurityGroup.id())
 *             .build());
 *         var untrust = new Subnet("untrust", SubnetArgs.builder()
 *             .name("example-untrust-subnet")
 *             .resourceGroupName(example.name())
 *             .virtualNetworkName(exampleVirtualNetwork.name())
 *             .addressPrefixes("10.0.2.0/24")
 *             .delegations(SubnetDelegationArgs.builder()
 *                 .name("untrusted")
 *                 .serviceDelegation(SubnetDelegationServiceDelegationArgs.builder()
 *                     .name("PaloAltoNetworks.Cloudngfw/firewalls")
 *                     .actions("Microsoft.Network/virtualNetworks/subnets/join/action")
 *                     .build())
 *                 .build())
 *             .build());
 *         var untrustSubnetNetworkSecurityGroupAssociation = new SubnetNetworkSecurityGroupAssociation("untrustSubnetNetworkSecurityGroupAssociation", SubnetNetworkSecurityGroupAssociationArgs.builder()
 *             .subnetId(untrust.id())
 *             .networkSecurityGroupId(exampleNetworkSecurityGroup.id())
 *             .build());
 *         var exampleNextGenerationFirewallVirtualNetworkPanorama = new NextGenerationFirewallVirtualNetworkPanorama("exampleNextGenerationFirewallVirtualNetworkPanorama", NextGenerationFirewallVirtualNetworkPanoramaArgs.builder()
 *             .name("example-ngfwvh")
 *             .resourceGroupName(example.name())
 *             .location(example.location())
 *             .panoramaBase64Config("e2RnbmFtZTogY25nZnctYXotZXhhbXBsZSwgdHBsbmFtZTogY25nZnctZXhhbXBsZS10ZW1wbGF0ZS1zdGFjaywgZXhhbXBsZS1wYW5vcmFtYS1zZXJ2ZXI6IDE5Mi4xNjguMC4xLCB2bS1hdXRoLWtleTogMDAwMDAwMDAwMDAwMDAwLCBleHBpcnk6IDIwMjQvMDcvMzF9Cg==")
 *             .networkProfile(NextGenerationFirewallVirtualNetworkPanoramaNetworkProfileArgs.builder()
 *                 .publicIpAddressIds(examplePublicIp.id())
 *                 .vnetConfiguration(NextGenerationFirewallVirtualNetworkPanoramaNetworkProfileVnetConfigurationArgs.builder()
 *                     .virtualNetworkId(exampleVirtualNetwork.id())
 *                     .trustedSubnetId(trust.id())
 *                     .untrustedSubnetId(untrust.id())
 *                     .build())
 *                 .build())
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   example:
 *     type: azure:core:ResourceGroup
 *     properties:
 *       name: example-resource-group
 *       location: westeurope
 *   examplePublicIp:
 *     type: azure:network:PublicIp
 *     name: example
 *     properties:
 *       name: example-public-ip
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       allocationMethod: Static
 *       sku: Standard
 *   exampleNetworkSecurityGroup:
 *     type: azure:network:NetworkSecurityGroup
 *     name: example
 *     properties:
 *       name: example-nsg
 *       location: ${test.location}
 *       resourceGroupName: ${test.name}
 *   exampleVirtualNetwork:
 *     type: azure:network:VirtualNetwork
 *     name: example
 *     properties:
 *       name: example-vnet
 *       addressSpaces:
 *         - 10.0.0.0/16
 *       location: ${example.location}
 *       resourceGroupName: ${example.name}
 *       tags:
 *         environment: Production
 *   trust:
 *     type: azure:network:Subnet
 *     properties:
 *       name: example-trust-subnet
 *       resourceGroupName: ${example.name}
 *       virtualNetworkName: ${exampleVirtualNetwork.name}
 *       addressPrefixes:
 *         - 10.0.1.0/24
 *       delegations:
 *         - name: trusted
 *           serviceDelegation:
 *             name: PaloAltoNetworks.Cloudngfw/firewalls
 *             actions:
 *               - Microsoft.Network/virtualNetworks/subnets/join/action
 *   trustSubnetNetworkSecurityGroupAssociation:
 *     type: azure:network:SubnetNetworkSecurityGroupAssociation
 *     name: trust
 *     properties:
 *       subnetId: ${trust.id}
 *       networkSecurityGroupId: ${exampleNetworkSecurityGroup.id}
 *   untrust:
 *     type: azure:network:Subnet
 *     properties:
 *       name: example-untrust-subnet
 *       resourceGroupName: ${example.name}
 *       virtualNetworkName: ${exampleVirtualNetwork.name}
 *       addressPrefixes:
 *         - 10.0.2.0/24
 *       delegations:
 *         - name: untrusted
 *           serviceDelegation:
 *             name: PaloAltoNetworks.Cloudngfw/firewalls
 *             actions:
 *               - Microsoft.Network/virtualNetworks/subnets/join/action
 *   untrustSubnetNetworkSecurityGroupAssociation:
 *     type: azure:network:SubnetNetworkSecurityGroupAssociation
 *     name: untrust
 *     properties:
 *       subnetId: ${untrust.id}
 *       networkSecurityGroupId: ${exampleNetworkSecurityGroup.id}
 *   exampleNextGenerationFirewallVirtualNetworkPanorama:
 *     type: azure:paloalto:NextGenerationFirewallVirtualNetworkPanorama
 *     name: example
 *     properties:
 *       name: example-ngfwvh
 *       resourceGroupName: ${example.name}
 *       location: ${example.location}
 *       panoramaBase64Config: e2RnbmFtZTogY25nZnctYXotZXhhbXBsZSwgdHBsbmFtZTogY25nZnctZXhhbXBsZS10ZW1wbGF0ZS1zdGFjaywgZXhhbXBsZS1wYW5vcmFtYS1zZXJ2ZXI6IDE5Mi4xNjguMC4xLCB2bS1hdXRoLWtleTogMDAwMDAwMDAwMDAwMDAwLCBleHBpcnk6IDIwMjQvMDcvMzF9Cg==
 *       networkProfile:
 *         publicIpAddressIds:
 *           - ${examplePublicIp.id}
 *         vnetConfiguration:
 *           virtualNetworkId: ${exampleVirtualNetwork.id}
 *           trustedSubnetId: ${trust.id}
 *           untrustedSubnetId: ${untrust.id}
 * ```
 * 
 * ## Import
 * Palo Alto Next Generation Firewall Virtual Network Panoramas can be imported using the `resource id`, e.g.
 * ```sh
 * $ pulumi import azure:paloalto/nextGenerationFirewallVirtualNetworkPanorama:NextGenerationFirewallVirtualNetworkPanorama example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/PaloAltoNetworks.Cloudngfw/firewalls/myVNetPanoramaFW
 * ```
 * @property destinationNats One or more `destination_nat` blocks as defined below.
 * @property dnsSettings A `dns_settings` block as defined below.
 * @property location The Azure Region where the Palo Alto Next Generation Firewall Virtual Network Panorama should exist. Changing this forces a new Palo Alto Next Generation Firewall Virtual Network Panorama to be created.
 * @property name The name which should be used for this Palo Alto Next Generation Firewall Virtual Network Panorama. Changing this forces a new Palo Alto Next Generation Firewall Virtual Network Panorama to be created.
 * @property networkProfile A `network_profile` block as defined below.
 * @property panoramaBase64Config The base64 encoded configuration registration string as defined by your Panorama Server for your Cloud Device Group.
 * @property resourceGroupName The name of the Resource Group where the Palo Alto Next Generation Firewall Virtual Network Panorama should exist. Changing this forces a new Palo Alto Next Generation Firewall Virtual Network Panorama to be created.
 * @property tags A mapping of tags which should be assigned to the Palo Alto Next Generation Firewall Virtual Network Panorama.
 */
public data class NextGenerationFirewallVirtualNetworkPanoramaArgs(
    public val destinationNats: Output>? = null,
    public val dnsSettings: Output? =
        null,
    public val location: Output? = null,
    public val name: Output? = null,
    public val networkProfile: Output? =
        null,
    public val panoramaBase64Config: Output? = null,
    public val resourceGroupName: Output? = null,
    public val tags: Output>? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.paloalto.NextGenerationFirewallVirtualNetworkPanoramaArgs = com.pulumi.azure.paloalto.NextGenerationFirewallVirtualNetworkPanoramaArgs.builder()
        .destinationNats(
            destinationNats?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                })
            }),
        )
        .dnsSettings(dnsSettings?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .location(location?.applyValue({ args0 -> args0 }))
        .name(name?.applyValue({ args0 -> args0 }))
        .networkProfile(networkProfile?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
        .panoramaBase64Config(panoramaBase64Config?.applyValue({ args0 -> args0 }))
        .resourceGroupName(resourceGroupName?.applyValue({ args0 -> args0 }))
        .tags(
            tags?.applyValue({ args0 ->
                args0.map({ args0 ->
                    args0.key.to(args0.value)
                }).toMap()
            }),
        ).build()
}

/**
 * Builder for [NextGenerationFirewallVirtualNetworkPanoramaArgs].
 */
@PulumiTagMarker
public class NextGenerationFirewallVirtualNetworkPanoramaArgsBuilder internal constructor() {
    private var destinationNats:
        Output>? = null

    private var dnsSettings: Output? =
        null

    private var location: Output? = null

    private var name: Output? = null

    private var networkProfile:
        Output? = null

    private var panoramaBase64Config: Output? = null

    private var resourceGroupName: Output? = null

    private var tags: Output>? = null

    /**
     * @param value One or more `destination_nat` blocks as defined below.
     */
    @JvmName("uultfmrudmcffucp")
    public suspend fun destinationNats(`value`: Output>) {
        this.destinationNats = value
    }

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

    /**
     * @param values One or more `destination_nat` blocks as defined below.
     */
    @JvmName("ucsbfpfqlbhvyhfx")
    public suspend fun destinationNats(values: List>) {
        this.destinationNats = Output.all(values)
    }

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

    /**
     * @param value The Azure Region where the Palo Alto Next Generation Firewall Virtual Network Panorama should exist. Changing this forces a new Palo Alto Next Generation Firewall Virtual Network Panorama to be created.
     */
    @JvmName("ymalulbsydbtbrys")
    public suspend fun location(`value`: Output) {
        this.location = value
    }

    /**
     * @param value The name which should be used for this Palo Alto Next Generation Firewall Virtual Network Panorama. Changing this forces a new Palo Alto Next Generation Firewall Virtual Network Panorama to be created.
     */
    @JvmName("hbholupnvpleapat")
    public suspend fun name(`value`: Output) {
        this.name = value
    }

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

    /**
     * @param value The base64 encoded configuration registration string as defined by your Panorama Server for your Cloud Device Group.
     */
    @JvmName("kpymbxyafoswmacq")
    public suspend fun panoramaBase64Config(`value`: Output) {
        this.panoramaBase64Config = value
    }

    /**
     * @param value The name of the Resource Group where the Palo Alto Next Generation Firewall Virtual Network Panorama should exist. Changing this forces a new Palo Alto Next Generation Firewall Virtual Network Panorama to be created.
     */
    @JvmName("wxogcpmiqaaylpbu")
    public suspend fun resourceGroupName(`value`: Output) {
        this.resourceGroupName = value
    }

    /**
     * @param value A mapping of tags which should be assigned to the Palo Alto Next Generation Firewall Virtual Network Panorama.
     */
    @JvmName("mscbkiqivfrraswx")
    public suspend fun tags(`value`: Output>) {
        this.tags = value
    }

    /**
     * @param value One or more `destination_nat` blocks as defined below.
     */
    @JvmName("ehkqllqcuxlwuvom")
    public suspend fun destinationNats(`value`: List?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.destinationNats = mapped
    }

    /**
     * @param argument One or more `destination_nat` blocks as defined below.
     */
    @JvmName("crcyhselmlihvgtv")
    public suspend fun destinationNats(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            NextGenerationFirewallVirtualNetworkPanoramaDestinationNatArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.destinationNats = mapped
    }

    /**
     * @param argument One or more `destination_nat` blocks as defined below.
     */
    @JvmName("xoyyimuuhgbjxotp")
    public suspend fun destinationNats(vararg argument: suspend NextGenerationFirewallVirtualNetworkPanoramaDestinationNatArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            NextGenerationFirewallVirtualNetworkPanoramaDestinationNatArgsBuilder().applySuspend {
                it()
            }.build()
        }
        val mapped = of(toBeMapped)
        this.destinationNats = mapped
    }

    /**
     * @param argument One or more `destination_nat` blocks as defined below.
     */
    @JvmName("yjpodkavxnchuaxp")
    public suspend fun destinationNats(argument: suspend NextGenerationFirewallVirtualNetworkPanoramaDestinationNatArgsBuilder.() -> Unit) {
        val toBeMapped =
            listOf(
                NextGenerationFirewallVirtualNetworkPanoramaDestinationNatArgsBuilder().applySuspend
                    { argument() }.build(),
            )
        val mapped = of(toBeMapped)
        this.destinationNats = mapped
    }

    /**
     * @param values One or more `destination_nat` blocks as defined below.
     */
    @JvmName("lmonnhanwqlmlocs")
    public suspend fun destinationNats(vararg values: NextGenerationFirewallVirtualNetworkPanoramaDestinationNatArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.destinationNats = mapped
    }

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

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

    /**
     * @param value The Azure Region where the Palo Alto Next Generation Firewall Virtual Network Panorama should exist. Changing this forces a new Palo Alto Next Generation Firewall Virtual Network Panorama to be created.
     */
    @JvmName("gnciqjhkfsmsmdff")
    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 Palo Alto Next Generation Firewall Virtual Network Panorama. Changing this forces a new Palo Alto Next Generation Firewall Virtual Network Panorama to be created.
     */
    @JvmName("klmjvcapswlsgnnh")
    public suspend fun name(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.name = mapped
    }

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

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

    /**
     * @param value The base64 encoded configuration registration string as defined by your Panorama Server for your Cloud Device Group.
     */
    @JvmName("nduxrkiewdaroynf")
    public suspend fun panoramaBase64Config(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.panoramaBase64Config = mapped
    }

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

    /**
     * @param value A mapping of tags which should be assigned to the Palo Alto Next Generation Firewall Virtual Network Panorama.
     */
    @JvmName("kgtgowuchjfefwbt")
    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 Palo Alto Next Generation Firewall Virtual Network Panorama.
     */
    @JvmName("fyfvurisfenjcfaf")
    public fun tags(vararg values: Pair) {
        val toBeMapped = values.toMap()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.tags = mapped
    }

    internal fun build(): NextGenerationFirewallVirtualNetworkPanoramaArgs =
        NextGenerationFirewallVirtualNetworkPanoramaArgs(
            destinationNats = destinationNats,
            dnsSettings = dnsSettings,
            location = location,
            name = name,
            networkProfile = networkProfile,
            panoramaBase64Config = panoramaBase64Config,
            resourceGroupName = resourceGroupName,
            tags = tags,
        )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy