Show / Hide Table of Contents

Class FirewallPolicy

Manages an Azure Front Door Web Application Firewall Policy instance.

Inheritance
System.Object
Resource
CustomResource
FirewallPolicy
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Azure.FrontDoor
Assembly: Pulumi.Azure.dll
Syntax
public class FirewallPolicy : CustomResource

Constructors

View Source

FirewallPolicy(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 Source

CustomBlockResponseBody

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>
View Source

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>>
View Source

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>>
View Source

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>>
View Source

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>>
View Source

Location

Resource location.

Declaration
public Output<string> Location { get; }
Property Value
Type Description
Output<System.String>
View Source

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>>
View Source

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>
View Source

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>
View Source

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>
View Source

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>
View Source

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 Source

Get(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
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.