ArmCdnModelFactory.CustomRule 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.
Defines the common attributes for a custom rule that can be included in a waf policy.
public static Azure.ResourceManager.Cdn.Models.CustomRule CustomRule(string name = default, Azure.ResourceManager.Cdn.Models.CustomRuleEnabledState? enabledState = default, int priority = 0, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Cdn.Models.CustomRuleMatchCondition> matchConditions = default, Azure.ResourceManager.Cdn.Models.OverrideActionType action = default);
static member CustomRule : string * Nullable<Azure.ResourceManager.Cdn.Models.CustomRuleEnabledState> * int * seq<Azure.ResourceManager.Cdn.Models.CustomRuleMatchCondition> * Azure.ResourceManager.Cdn.Models.OverrideActionType -> Azure.ResourceManager.Cdn.Models.CustomRule
Public Shared Function CustomRule (Optional name As String = Nothing, Optional enabledState As Nullable(Of CustomRuleEnabledState) = Nothing, Optional priority As Integer = 0, Optional matchConditions As IEnumerable(Of CustomRuleMatchCondition) = Nothing, Optional action As OverrideActionType = Nothing) As CustomRule
Parameters
- name
- String
Defines the name of the custom rule.
- enabledState
- Nullable<CustomRuleEnabledState>
Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified.
- priority
- Int32
Defines in what order this rule be evaluated in the overall list of custom rules.
- matchConditions
- IEnumerable<CustomRuleMatchCondition>
List of match conditions.
- action
- OverrideActionType
Describes what action to be applied when rule matches.
Returns
A new CustomRule instance for mocking.