ArmFrontDoorModelFactory.ManagedRuleDefinition 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.
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
Collaborate with us on GitHub
The source for this content can be found on GitHub, where you can also create and review issues and pull requests. For more information, see our contributor guide.
Azure SDK for .NET