Class FirewallPolicy
Manages an Azure Front Door Web Application Firewall Policy instance.
Inherited Members
Namespace: Pulumi.Azure.FrontDoor
Assembly: Pulumi.Azure.dll
Syntax
public class FirewallPolicy : CustomResource
Constructors
View SourceFirewallPolicy(String, FirewallPolicyArgs, CustomResourceOptions)
Create a FirewallPolicy resource with the given unique name, arguments, and options.
Declaration
public FirewallPolicy(string name, FirewallPolicyArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| FirewallPolicyArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceCustomBlockResponseBody
If a custom_rule block's action type is block, this is the response body. The body must be specified in base64 encoding.
Declaration
public Output<string> CustomBlockResponseBody { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
CustomBlockResponseStatusCode
If a custom_rule block's action type is block, this is the response status code. Possible values are 200, 403, 405, 406, or 429.
Declaration
public Output<int?> CustomBlockResponseStatusCode { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Int32>> |
CustomRules
One or more custom_rule blocks as defined below.
Declaration
public Output<ImmutableArray<FirewallPolicyCustomRule>> CustomRules { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<FirewallPolicyCustomRule>> |
Enabled
Is the policy a enabled state or disabled state. Defaults to true.
Declaration
public Output<bool?> Enabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
FrontendEndpointIds
the Frontend Endpoints associated with this Front Door Web Application Firewall policy.
Declaration
public Output<ImmutableArray<string>> FrontendEndpointIds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Location
Resource location.
Declaration
public Output<string> Location { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ManagedRules
One or more managed_rule blocks as defined below.
Declaration
public Output<ImmutableArray<FirewallPolicyManagedRule>> ManagedRules { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<FirewallPolicyManagedRule>> |
Mode
The firewall policy mode. Possible values are Detection, Prevention and defaults to Prevention.
Declaration
public Output<string> Mode { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the policy. Changing this forces a new resource to be created.
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
RedirectUrl
If action type is redirect, this field represents redirect URL for the client.
Declaration
public Output<string> RedirectUrl { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceGroupName
The name of the resource group. Changing this forces a new resource to be created.
Declaration
public Output<string> ResourceGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
A mapping of tags to assign to the Web Application Firewall Policy.
Declaration
public Output<ImmutableDictionary<string, string>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.String>> |
Methods
View SourceGet(String, Input<String>, FirewallPolicyState, CustomResourceOptions)
Get an existing FirewallPolicy resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static FirewallPolicy Get(string name, Input<string> id, FirewallPolicyState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| FirewallPolicyState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| FirewallPolicy |