com.pulumi.azurenative.cloudngfw.Firewall Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.cloudngfw;
import com.pulumi.azurenative.Utilities;
import com.pulumi.azurenative.cloudngfw.FirewallArgs;
import com.pulumi.azurenative.cloudngfw.outputs.AzureResourceManagerManagedIdentityPropertiesResponse;
import com.pulumi.azurenative.cloudngfw.outputs.DNSSettingsResponse;
import com.pulumi.azurenative.cloudngfw.outputs.FrontendSettingResponse;
import com.pulumi.azurenative.cloudngfw.outputs.MarketplaceDetailsResponse;
import com.pulumi.azurenative.cloudngfw.outputs.NetworkProfileResponse;
import com.pulumi.azurenative.cloudngfw.outputs.PanoramaConfigResponse;
import com.pulumi.azurenative.cloudngfw.outputs.PlanDataResponse;
import com.pulumi.azurenative.cloudngfw.outputs.RulestackDetailsResponse;
import com.pulumi.azurenative.cloudngfw.outputs.SystemDataResponse;
import com.pulumi.core.Alias;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Export;
import com.pulumi.core.annotations.ResourceType;
import com.pulumi.core.internal.Codegen;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import javax.annotation.Nullable;
/**
* PaloAltoNetworks Firewall
* Azure REST API version: 2023-09-01.
*
* Other available API versions: 2022-08-29, 2022-08-29-preview, 2023-09-01-preview, 2023-10-10-preview, 2024-01-19-preview, 2024-02-07-preview.
*
* ## Example Usage
* ### Firewalls_CreateOrUpdate_MaximumSet_Gen
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.cloudngfw.Firewall;
* import com.pulumi.azurenative.cloudngfw.FirewallArgs;
* import com.pulumi.azurenative.cloudngfw.inputs.RulestackDetailsArgs;
* import com.pulumi.azurenative.cloudngfw.inputs.DNSSettingsArgs;
* import com.pulumi.azurenative.cloudngfw.inputs.FrontendSettingArgs;
* import com.pulumi.azurenative.cloudngfw.inputs.EndpointConfigurationArgs;
* import com.pulumi.azurenative.cloudngfw.inputs.IPAddressArgs;
* import com.pulumi.azurenative.cloudngfw.inputs.AzureResourceManagerManagedIdentityPropertiesArgs;
* import com.pulumi.azurenative.cloudngfw.inputs.MarketplaceDetailsArgs;
* import com.pulumi.azurenative.cloudngfw.inputs.NetworkProfileArgs;
* import com.pulumi.azurenative.cloudngfw.inputs.VnetConfigurationArgs;
* import com.pulumi.azurenative.cloudngfw.inputs.IPAddressSpaceArgs;
* import com.pulumi.azurenative.cloudngfw.inputs.VwanConfigurationArgs;
* import com.pulumi.azurenative.cloudngfw.inputs.PanoramaConfigArgs;
* import com.pulumi.azurenative.cloudngfw.inputs.PlanDataArgs;
* 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 firewall = new Firewall("firewall", FirewallArgs.builder()
* .associatedRulestack(RulestackDetailsArgs.builder()
* .location("eastus")
* .resourceId("lrs1")
* .rulestackId("PANRSID")
* .build())
* .dnsSettings(DNSSettingsArgs.builder()
* .dnsServers(IPAddressArgs.builder()
* .address("20.22.92.111")
* .resourceId("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1")
* .build())
* .enableDnsProxy("DISABLED")
* .enabledDnsType("CUSTOM")
* .build())
* .firewallName("firewall1")
* .frontEndSettings(FrontendSettingArgs.builder()
* .backendConfiguration(EndpointConfigurationArgs.builder()
* .address(IPAddressArgs.builder()
* .address("20.22.32.136")
* .resourceId("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp2")
* .build())
* .port("80")
* .build())
* .frontendConfiguration(EndpointConfigurationArgs.builder()
* .address(IPAddressArgs.builder()
* .address("20.22.91.251")
* .resourceId("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-frontendSettingIp1")
* .build())
* .port("80")
* .build())
* .name("frontendsetting11")
* .protocol("TCP")
* .build())
* .identity(AzureResourceManagerManagedIdentityPropertiesArgs.builder()
* .type("None")
* .userAssignedIdentities(Map.of("key16", Map.ofEntries(
* Map.entry("clientId", "aaaa"),
* Map.entry("principalId", "aaaaaaaaaaaaaaa")
* )))
* .build())
* .isPanoramaManaged("TRUE")
* .location("eastus")
* .marketplaceDetails(MarketplaceDetailsArgs.builder()
* .marketplaceSubscriptionStatus("PendingFulfillmentStart")
* .offerId("liftr-pan-ame-test")
* .publisherId("isvtestuklegacy")
* .build())
* .networkProfile(NetworkProfileArgs.builder()
* .egressNatIp(IPAddressArgs.builder()
* .address("20.22.92.111")
* .resourceId("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-egressNatIp1")
* .build())
* .enableEgressNat("ENABLED")
* .networkType("VNET")
* .publicIps(IPAddressArgs.builder()
* .address("20.22.92.11")
* .resourceId("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-PublicIp1")
* .build())
* .trustedRanges("20.22.92.11")
* .vnetConfiguration(VnetConfigurationArgs.builder()
* .ipOfTrustSubnetForUdr(IPAddressArgs.builder()
* .address("10.1.1.0/24")
* .resourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet")
* .build())
* .trustSubnet(IPAddressSpaceArgs.builder()
* .addressSpace("10.1.1.0/24")
* .resourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet")
* .build())
* .unTrustSubnet(IPAddressSpaceArgs.builder()
* .addressSpace("10.1.1.0/24")
* .resourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet")
* .build())
* .vnet(IPAddressSpaceArgs.builder()
* .addressSpace("10.1.0.0/16")
* .resourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet")
* .build())
* .build())
* .vwanConfiguration(VwanConfigurationArgs.builder()
* .ipOfTrustSubnetForUdr(IPAddressArgs.builder()
* .address("10.1.1.0/24")
* .resourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet")
* .build())
* .networkVirtualApplianceId("2bf4a339-294d-4c25-b0b2-ef649e9f5c12")
* .trustSubnet(IPAddressSpaceArgs.builder()
* .addressSpace("10.1.1.0/24")
* .resourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-trust-subnet")
* .build())
* .unTrustSubnet(IPAddressSpaceArgs.builder()
* .addressSpace("10.1.1.0/24")
* .resourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet")
* .build())
* .vHub(IPAddressSpaceArgs.builder()
* .addressSpace("10.1.1.0/24")
* .resourceId("/subscriptions/2bf4a339-294d-4c25-b0b2-ef649e9f5c27/resourceGroups/os-liftr-integration/providers/Microsoft.Network/virtualNetworks/os-liftr-integration-vnet/subnets/os-liftr-integration-untrust-subnet")
* .build())
* .build())
* .build())
* .panEtag("2bf4a339-294d-4c25-b0b2-ef649e9f5c12")
* .panoramaConfig(PanoramaConfigArgs.builder()
* .configString("bas64EncodedString")
* .build())
* .planData(PlanDataArgs.builder()
* .billingCycle("MONTHLY")
* .planId("liftrpantestplan")
* .usageType("PAYG")
* .build())
* .resourceGroupName("firewall-rg")
* .tags(Map.of("tagName", "value"))
* .build());
*
* }
* }
*
* }
*
* ### Firewalls_CreateOrUpdate_MinimumSet_Gen
*
*
* {@code
* package generated_program;
*
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.azurenative.cloudngfw.Firewall;
* import com.pulumi.azurenative.cloudngfw.FirewallArgs;
* import com.pulumi.azurenative.cloudngfw.inputs.DNSSettingsArgs;
* import com.pulumi.azurenative.cloudngfw.inputs.MarketplaceDetailsArgs;
* import com.pulumi.azurenative.cloudngfw.inputs.NetworkProfileArgs;
* import com.pulumi.azurenative.cloudngfw.inputs.PlanDataArgs;
* 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 firewall = new Firewall("firewall", FirewallArgs.builder()
* .dnsSettings()
* .firewallName("firewall1")
* .location("eastus")
* .marketplaceDetails(MarketplaceDetailsArgs.builder()
* .offerId("liftr-pan-ame-test")
* .publisherId("isvtestuklegacy")
* .build())
* .networkProfile(NetworkProfileArgs.builder()
* .enableEgressNat("ENABLED")
* .networkType("VNET")
* .publicIps(IPAddressArgs.builder()
* .address("20.22.92.11")
* .resourceId("/subscriptions/01c7d41f-afaf-464e-8a8b-5c6f9f98cee8/resourceGroups/mj-liftr-integration/providers/Microsoft.Network/publicIPAddresses/mj-liftr-integration-PublicIp1")
* .build())
* .build())
* .planData(PlanDataArgs.builder()
* .billingCycle("MONTHLY")
* .planId("liftrpantestplan")
* .build())
* .resourceGroupName("firewall-rg")
* .build());
*
* }
* }
*
* }
*
*
* ## Import
*
* An existing resource can be imported using its type token, name, and identifier, e.g.
*
* ```sh
* $ pulumi import azure-native:cloudngfw:Firewall armid1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/PaloAltoNetworks.Cloudngfw/firewalls/{firewallName}
* ```
*
*/
@ResourceType(type="azure-native:cloudngfw:Firewall")
public class Firewall extends com.pulumi.resources.CustomResource {
/**
* Associated Rulestack
*
*/
@Export(name="associatedRulestack", refs={RulestackDetailsResponse.class}, tree="[0]")
private Output* @Nullable */ RulestackDetailsResponse> associatedRulestack;
/**
* @return Associated Rulestack
*
*/
public Output> associatedRulestack() {
return Codegen.optional(this.associatedRulestack);
}
/**
* DNS settings for Firewall
*
*/
@Export(name="dnsSettings", refs={DNSSettingsResponse.class}, tree="[0]")
private Output dnsSettings;
/**
* @return DNS settings for Firewall
*
*/
public Output dnsSettings() {
return this.dnsSettings;
}
/**
* Frontend settings for Firewall
*
*/
@Export(name="frontEndSettings", refs={List.class,FrontendSettingResponse.class}, tree="[0,1]")
private Output* @Nullable */ List> frontEndSettings;
/**
* @return Frontend settings for Firewall
*
*/
public Output>> frontEndSettings() {
return Codegen.optional(this.frontEndSettings);
}
/**
* The managed service identities assigned to this resource.
*
*/
@Export(name="identity", refs={AzureResourceManagerManagedIdentityPropertiesResponse.class}, tree="[0]")
private Output* @Nullable */ AzureResourceManagerManagedIdentityPropertiesResponse> identity;
/**
* @return The managed service identities assigned to this resource.
*
*/
public Output> identity() {
return Codegen.optional(this.identity);
}
/**
* Panorama Managed: Default is False. Default will be CloudSec managed
*
*/
@Export(name="isPanoramaManaged", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> isPanoramaManaged;
/**
* @return Panorama Managed: Default is False. Default will be CloudSec managed
*
*/
public Output> isPanoramaManaged() {
return Codegen.optional(this.isPanoramaManaged);
}
/**
* The geo-location where the resource lives
*
*/
@Export(name="location", refs={String.class}, tree="[0]")
private Output location;
/**
* @return The geo-location where the resource lives
*
*/
public Output location() {
return this.location;
}
/**
* Marketplace details
*
*/
@Export(name="marketplaceDetails", refs={MarketplaceDetailsResponse.class}, tree="[0]")
private Output marketplaceDetails;
/**
* @return Marketplace details
*
*/
public Output marketplaceDetails() {
return this.marketplaceDetails;
}
/**
* The name of the resource
*
*/
@Export(name="name", refs={String.class}, tree="[0]")
private Output name;
/**
* @return The name of the resource
*
*/
public Output name() {
return this.name;
}
/**
* Network settings
*
*/
@Export(name="networkProfile", refs={NetworkProfileResponse.class}, tree="[0]")
private Output networkProfile;
/**
* @return Network settings
*
*/
public Output networkProfile() {
return this.networkProfile;
}
/**
* panEtag info
*
*/
@Export(name="panEtag", refs={String.class}, tree="[0]")
private Output* @Nullable */ String> panEtag;
/**
* @return panEtag info
*
*/
public Output> panEtag() {
return Codegen.optional(this.panEtag);
}
/**
* Panorama Configuration
*
*/
@Export(name="panoramaConfig", refs={PanoramaConfigResponse.class}, tree="[0]")
private Output* @Nullable */ PanoramaConfigResponse> panoramaConfig;
/**
* @return Panorama Configuration
*
*/
public Output> panoramaConfig() {
return Codegen.optional(this.panoramaConfig);
}
/**
* Billing plan information.
*
*/
@Export(name="planData", refs={PlanDataResponse.class}, tree="[0]")
private Output planData;
/**
* @return Billing plan information.
*
*/
public Output planData() {
return this.planData;
}
/**
* Provisioning state of the resource.
*
*/
@Export(name="provisioningState", refs={String.class}, tree="[0]")
private Output provisioningState;
/**
* @return Provisioning state of the resource.
*
*/
public Output provisioningState() {
return this.provisioningState;
}
/**
* Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
@Export(name="systemData", refs={SystemDataResponse.class}, tree="[0]")
private Output systemData;
/**
* @return Azure Resource Manager metadata containing createdBy and modifiedBy information.
*
*/
public Output systemData() {
return this.systemData;
}
/**
* Resource tags.
*
*/
@Export(name="tags", refs={Map.class,String.class}, tree="[0,1,1]")
private Output* @Nullable */ Map> tags;
/**
* @return Resource tags.
*
*/
public Output>> tags() {
return Codegen.optional(this.tags);
}
/**
* The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
@Export(name="type", refs={String.class}, tree="[0]")
private Output type;
/**
* @return The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
*
*/
public Output type() {
return this.type;
}
/**
*
* @param name The _unique_ name of the resulting resource.
*/
public Firewall(java.lang.String name) {
this(name, FirewallArgs.Empty);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
*/
public Firewall(java.lang.String name, FirewallArgs args) {
this(name, args, null);
}
/**
*
* @param name The _unique_ name of the resulting resource.
* @param args The arguments to use to populate this resource's properties.
* @param options A bag of options that control this resource's behavior.
*/
public Firewall(java.lang.String name, FirewallArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:cloudngfw:Firewall", name, makeArgs(args, options), makeResourceOptions(options, Codegen.empty()), false);
}
private Firewall(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
super("azure-native:cloudngfw:Firewall", name, null, makeResourceOptions(options, id), false);
}
private static FirewallArgs makeArgs(FirewallArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options) {
if (options != null && options.getUrn().isPresent()) {
return null;
}
return args == null ? FirewallArgs.Empty : args;
}
private static com.pulumi.resources.CustomResourceOptions makeResourceOptions(@Nullable com.pulumi.resources.CustomResourceOptions options, @Nullable Output id) {
var defaultOptions = com.pulumi.resources.CustomResourceOptions.builder()
.version(Utilities.getVersion())
.aliases(List.of(
Output.of(Alias.builder().type("azure-native:cloudngfw/v20220829:Firewall").build()),
Output.of(Alias.builder().type("azure-native:cloudngfw/v20220829preview:Firewall").build()),
Output.of(Alias.builder().type("azure-native:cloudngfw/v20230901:Firewall").build()),
Output.of(Alias.builder().type("azure-native:cloudngfw/v20230901preview:Firewall").build()),
Output.of(Alias.builder().type("azure-native:cloudngfw/v20231010preview:Firewall").build()),
Output.of(Alias.builder().type("azure-native:cloudngfw/v20240119preview:Firewall").build()),
Output.of(Alias.builder().type("azure-native:cloudngfw/v20240207preview:Firewall").build())
))
.build();
return com.pulumi.resources.CustomResourceOptions.merge(defaultOptions, options, id);
}
/**
* Get an existing Host resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param options Optional settings to control the behavior of the CustomResource.
*/
public static Firewall get(java.lang.String name, Output id, @Nullable com.pulumi.resources.CustomResourceOptions options) {
return new Firewall(name, id, options);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy