ArmFrontDoorModelFactory.RulesEngineRule Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
public static Azure.ResourceManager.FrontDoor.Models.RulesEngineRule RulesEngineRule(string name = default, int priority = 0, Azure.ResourceManager.FrontDoor.Models.RulesEngineAction action = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.FrontDoor.Models.RulesEngineMatchCondition> matchConditions = default, Azure.ResourceManager.FrontDoor.Models.MatchProcessingBehavior? matchProcessingBehavior = default);
static member RulesEngineRule : string * int * Azure.ResourceManager.FrontDoor.Models.RulesEngineAction * seq<Azure.ResourceManager.FrontDoor.Models.RulesEngineMatchCondition> * Nullable<Azure.ResourceManager.FrontDoor.Models.MatchProcessingBehavior> -> Azure.ResourceManager.FrontDoor.Models.RulesEngineRule
Public Shared Function RulesEngineRule (Optional name As String = Nothing, Optional priority As Integer = 0, Optional action As RulesEngineAction = Nothing, Optional matchConditions As IEnumerable(Of RulesEngineMatchCondition) = Nothing, Optional matchProcessingBehavior As Nullable(Of MatchProcessingBehavior) = Nothing) As RulesEngineRule
Parameters
- name
- String
A name to refer to this specific rule.
- priority
- Int32
A priority assigned to this rule.
- action
- RulesEngineAction
Actions to perform on the request and response if all of the match conditions are met.
- matchConditions
- IEnumerable<RulesEngineMatchCondition>
A list of match conditions that must meet in order for the actions of this rule to run. Having no match conditions means the actions will always run.
- matchProcessingBehavior
- Nullable<MatchProcessingBehavior>
If this rule is a match should the rules engine continue running the remaining rules or stop. If not present, defaults to Continue.
Returns
A new RulesEngineRule instance for mocking.