ArmFrontDoorModelFactory.ManagedRuleOverride 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.ManagedRuleOverride ManagedRuleOverride(string ruleId = default, Azure.ResourceManager.FrontDoor.Models.ManagedRuleEnabledState? enabledState = default, Azure.ResourceManager.FrontDoor.Models.RuleMatchActionType? action = default, Azure.ResourceManager.FrontDoor.Models.FrontDoorSensitivityType? sensitivity = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.FrontDoor.Models.ManagedRuleExclusion> exclusions = default);
static member ManagedRuleOverride : string * Nullable<Azure.ResourceManager.FrontDoor.Models.ManagedRuleEnabledState> * Nullable<Azure.ResourceManager.FrontDoor.Models.RuleMatchActionType> * Nullable<Azure.ResourceManager.FrontDoor.Models.FrontDoorSensitivityType> * seq<Azure.ResourceManager.FrontDoor.Models.ManagedRuleExclusion> -> Azure.ResourceManager.FrontDoor.Models.ManagedRuleOverride
Public Shared Function ManagedRuleOverride (Optional ruleId As String = Nothing, Optional enabledState As Nullable(Of ManagedRuleEnabledState) = Nothing, Optional action As Nullable(Of RuleMatchActionType) = Nothing, Optional sensitivity As Nullable(Of FrontDoorSensitivityType) = Nothing, Optional exclusions As IEnumerable(Of ManagedRuleExclusion) = Nothing) As ManagedRuleOverride
Parameters
- ruleId
- String
Identifier for the managed rule.
- enabledState
- Nullable<ManagedRuleEnabledState>
Describes if the managed rule is in enabled or disabled state. Defaults to Disabled if not specified.
- action
- Nullable<RuleMatchActionType>
Describes the override action to be applied when rule matches.
- sensitivity
- Nullable<FrontDoorSensitivityType>
Describes the override sensitivity to be applied when rule matches.
- exclusions
- IEnumerable<ManagedRuleExclusion>
Describes the exclusions that are applied to this specific rule.
Returns
A new ManagedRuleOverride instance for mocking.