ArmFrontDoorModelFactory.WebApplicationCustomRule Method

Definition

public static Azure.ResourceManager.FrontDoor.Models.WebApplicationCustomRule WebApplicationCustomRule(string name = default, int priority = 0, Azure.ResourceManager.FrontDoor.Models.CustomRuleEnabledState? enabledState = default, Azure.ResourceManager.FrontDoor.Models.WebApplicationRuleType ruleType = default, int? rateLimitDurationInMinutes = default, int? rateLimitThreshold = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.FrontDoor.Models.FrontDoorWebApplicationFirewallPolicyGroupByVariable> groupBy = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.FrontDoor.Models.WebApplicationRuleMatchCondition> matchConditions = default, Azure.ResourceManager.FrontDoor.Models.RuleMatchActionType action = default);
static member WebApplicationCustomRule : string * int * Nullable<Azure.ResourceManager.FrontDoor.Models.CustomRuleEnabledState> * Azure.ResourceManager.FrontDoor.Models.WebApplicationRuleType * Nullable<int> * Nullable<int> * seq<Azure.ResourceManager.FrontDoor.Models.FrontDoorWebApplicationFirewallPolicyGroupByVariable> * seq<Azure.ResourceManager.FrontDoor.Models.WebApplicationRuleMatchCondition> * Azure.ResourceManager.FrontDoor.Models.RuleMatchActionType -> Azure.ResourceManager.FrontDoor.Models.WebApplicationCustomRule
Public Shared Function WebApplicationCustomRule (Optional name As String = Nothing, Optional priority As Integer = 0, Optional enabledState As Nullable(Of CustomRuleEnabledState) = Nothing, Optional ruleType As WebApplicationRuleType = Nothing, Optional rateLimitDurationInMinutes As Nullable(Of Integer) = Nothing, Optional rateLimitThreshold As Nullable(Of Integer) = Nothing, Optional groupBy As IEnumerable(Of FrontDoorWebApplicationFirewallPolicyGroupByVariable) = Nothing, Optional matchConditions As IEnumerable(Of WebApplicationRuleMatchCondition) = Nothing, Optional action As RuleMatchActionType = Nothing) As WebApplicationCustomRule

Parameters

name
String

Describes the name of the rule.

priority
Int32

Describes priority of the rule. Rules with a lower value will be evaluated before rules with a higher value.

enabledState
Nullable<CustomRuleEnabledState>

Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.

ruleType
WebApplicationRuleType

Describes type of rule.

rateLimitDurationInMinutes
Nullable<Int32>

Time window for resetting the rate limit count. Default is 1 minute.

rateLimitThreshold
Nullable<Int32>

Number of allowed requests per client within the time window.

groupBy
IEnumerable<FrontDoorWebApplicationFirewallPolicyGroupByVariable>

Describes the list of variables to group the rate limit requests.

matchConditions
IEnumerable<WebApplicationRuleMatchCondition>

List of match conditions.

action
RuleMatchActionType

Describes what action to be applied when rule matches.

Returns

A new WebApplicationCustomRule instance for mocking.

Applies to