import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * 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, * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2025-01-01 * * ## 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 * ``` */ export declare class FirewallPolicy extends pulumi.CustomResource { /** * Get an existing FirewallPolicy 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 state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: FirewallPolicyState, opts?: pulumi.CustomResourceOptions): FirewallPolicy; /** * Returns true if the given object is an instance of FirewallPolicy. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is FirewallPolicy; /** * Whether enable auto learn private ip range. */ readonly autoLearnPrivateRangesEnabled: pulumi.Output; /** * The ID of the base Firewall Policy. */ readonly basePolicyId: pulumi.Output; /** * A list of reference to child Firewall Policies of this Firewall Policy. */ readonly childPolicies: pulumi.Output; /** * A `dns` block as defined below. */ readonly dns: pulumi.Output; /** * A `explicitProxy` block as defined below. */ readonly explicitProxy: pulumi.Output; /** * A list of references to Azure Firewalls that this Firewall Policy is associated with. */ readonly firewalls: pulumi.Output; /** * An `identity` block as defined below. */ readonly identity: pulumi.Output; /** * An `insights` block as defined below. */ readonly insights: pulumi.Output; /** * A `intrusionDetection` block as defined below. */ readonly intrusionDetection: pulumi.Output; /** * The Azure Region where the Firewall Policy should exist. Changing this forces a new Firewall Policy to be created. */ readonly location: pulumi.Output; /** * The name which should be used for this Firewall Policy. Changing this forces a new Firewall Policy to be created. */ readonly name: pulumi.Output; /** * A list of private IP ranges to which traffic will not be SNAT. */ readonly privateIpRanges: pulumi.Output; /** * The name of the Resource Group where the Firewall Policy should exist. Changing this forces a new Firewall Policy to be created. */ readonly resourceGroupName: pulumi.Output; /** * A list of references to Firewall Policy Rule Collection Groups that belongs to this Firewall Policy. */ readonly ruleCollectionGroups: pulumi.Output; /** * The SKU Tier of the Firewall Policy. Possible values are `Standard`, `Premium` and `Basic`. Defaults to `Standard`. Changing this forces a new Firewall Policy to be created. */ readonly sku: pulumi.Output; /** * Whether SQL Redirect traffic filtering is allowed. Enabling this flag requires no rule using ports between `11000`-`11999`. */ readonly sqlRedirectAllowed: pulumi.Output; /** * A mapping of tags which should be assigned to the Firewall Policy. */ readonly tags: pulumi.Output<{ [key: string]: string; } | undefined>; /** * A `threatIntelligenceAllowlist` block as defined below. */ readonly threatIntelligenceAllowlist: pulumi.Output; /** * The operation mode for Threat Intelligence. Possible values are `Alert`, `Deny` and `Off`. Defaults to `Alert`. */ readonly threatIntelligenceMode: pulumi.Output; /** * A `tlsCertificate` block as defined below. */ readonly tlsCertificate: pulumi.Output; /** * Create a FirewallPolicy resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: FirewallPolicyArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering FirewallPolicy resources. */ export interface FirewallPolicyState { /** * Whether enable auto learn private ip range. */ autoLearnPrivateRangesEnabled?: pulumi.Input; /** * The ID of the base Firewall Policy. */ basePolicyId?: pulumi.Input; /** * A list of reference to child Firewall Policies of this Firewall Policy. */ childPolicies?: pulumi.Input[]>; /** * A `dns` block as defined below. */ dns?: pulumi.Input; /** * A `explicitProxy` block as defined below. */ explicitProxy?: pulumi.Input; /** * A list of references to Azure Firewalls that this Firewall Policy is associated with. */ firewalls?: pulumi.Input[]>; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * An `insights` block as defined below. */ insights?: pulumi.Input; /** * A `intrusionDetection` block as defined below. */ intrusionDetection?: pulumi.Input; /** * The Azure Region where the Firewall Policy should exist. Changing this forces a new Firewall Policy to be created. */ location?: pulumi.Input; /** * The name which should be used for this Firewall Policy. Changing this forces a new Firewall Policy to be created. */ name?: pulumi.Input; /** * A list of private IP ranges to which traffic will not be SNAT. */ privateIpRanges?: pulumi.Input[]>; /** * The name of the Resource Group where the Firewall Policy should exist. Changing this forces a new Firewall Policy to be created. */ resourceGroupName?: pulumi.Input; /** * A list of references to Firewall Policy Rule Collection Groups that belongs to this Firewall Policy. */ ruleCollectionGroups?: pulumi.Input[]>; /** * The SKU Tier of the Firewall Policy. Possible values are `Standard`, `Premium` and `Basic`. Defaults to `Standard`. Changing this forces a new Firewall Policy to be created. */ sku?: pulumi.Input; /** * Whether SQL Redirect traffic filtering is allowed. Enabling this flag requires no rule using ports between `11000`-`11999`. */ sqlRedirectAllowed?: pulumi.Input; /** * A mapping of tags which should be assigned to the Firewall Policy. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * A `threatIntelligenceAllowlist` block as defined below. */ threatIntelligenceAllowlist?: pulumi.Input; /** * The operation mode for Threat Intelligence. Possible values are `Alert`, `Deny` and `Off`. Defaults to `Alert`. */ threatIntelligenceMode?: pulumi.Input; /** * A `tlsCertificate` block as defined below. */ tlsCertificate?: pulumi.Input; } /** * The set of arguments for constructing a FirewallPolicy resource. */ export interface FirewallPolicyArgs { /** * Whether enable auto learn private ip range. */ autoLearnPrivateRangesEnabled?: pulumi.Input; /** * The ID of the base Firewall Policy. */ basePolicyId?: pulumi.Input; /** * A `dns` block as defined below. */ dns?: pulumi.Input; /** * A `explicitProxy` block as defined below. */ explicitProxy?: pulumi.Input; /** * An `identity` block as defined below. */ identity?: pulumi.Input; /** * An `insights` block as defined below. */ insights?: pulumi.Input; /** * A `intrusionDetection` block as defined below. */ intrusionDetection?: pulumi.Input; /** * The Azure Region where the Firewall Policy should exist. Changing this forces a new Firewall Policy to be created. */ location?: pulumi.Input; /** * The name which should be used for this Firewall Policy. Changing this forces a new Firewall Policy to be created. */ name?: pulumi.Input; /** * A list of private IP ranges to which traffic will not be SNAT. */ privateIpRanges?: pulumi.Input[]>; /** * The name of the Resource Group where the Firewall Policy should exist. Changing this forces a new Firewall Policy to be created. */ resourceGroupName: pulumi.Input; /** * The SKU Tier of the Firewall Policy. Possible values are `Standard`, `Premium` and `Basic`. Defaults to `Standard`. Changing this forces a new Firewall Policy to be created. */ sku?: pulumi.Input; /** * Whether SQL Redirect traffic filtering is allowed. Enabling this flag requires no rule using ports between `11000`-`11999`. */ sqlRedirectAllowed?: pulumi.Input; /** * A mapping of tags which should be assigned to the Firewall Policy. */ tags?: pulumi.Input<{ [key: string]: pulumi.Input; }>; /** * A `threatIntelligenceAllowlist` block as defined below. */ threatIntelligenceAllowlist?: pulumi.Input; /** * The operation mode for Threat Intelligence. Possible values are `Alert`, `Deny` and `Off`. Defaults to `Alert`. */ threatIntelligenceMode?: pulumi.Input; /** * A `tlsCertificate` block as defined below. */ tlsCertificate?: pulumi.Input; }