ArmFrontDoorModelFactory.ManagedRuleDefinition Method

Definition

Initializes a new instance of ManagedRuleDefinition.

public static Azure.ResourceManager.FrontDoor.Models.ManagedRuleDefinition ManagedRuleDefinition (string ruleId = default, Azure.ResourceManager.FrontDoor.Models.ManagedRuleEnabledState? defaultState = default, Azure.ResourceManager.FrontDoor.Models.RuleMatchActionType? defaultAction = default, string description = default);
static member ManagedRuleDefinition : string * Nullable<Azure.ResourceManager.FrontDoor.Models.ManagedRuleEnabledState> * Nullable<Azure.ResourceManager.FrontDoor.Models.RuleMatchActionType> * string -> Azure.ResourceManager.FrontDoor.Models.ManagedRuleDefinition
Public Shared Function ManagedRuleDefinition (Optional ruleId As String = Nothing, Optional defaultState As Nullable(Of ManagedRuleEnabledState) = Nothing, Optional defaultAction As Nullable(Of RuleMatchActionType) = Nothing, Optional description As String = Nothing) As ManagedRuleDefinition

Parameters

ruleId
String

Identifier for the managed rule.

defaultState
Nullable<ManagedRuleEnabledState>

Describes the default state for the managed rule.

defaultAction
Nullable<RuleMatchActionType>

Describes the default action to be applied when the managed rule matches.

description
String

Describes the functionality of the managed rule.

Returns

A new ManagedRuleDefinition instance for mocking.

Applies to