ArmCdnModelFactory.RateLimitRule 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 a rate limiting rule that can be included in a waf policy.
public static Azure.ResourceManager.Cdn.Models.RateLimitRule RateLimitRule(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, int rateLimitThreshold = 0, int rateLimitDurationInMinutes = 0);
static member RateLimitRule : string * Nullable<Azure.ResourceManager.Cdn.Models.CustomRuleEnabledState> * int * seq<Azure.ResourceManager.Cdn.Models.CustomRuleMatchCondition> * Azure.ResourceManager.Cdn.Models.OverrideActionType * int * int -> Azure.ResourceManager.Cdn.Models.RateLimitRule
Public Shared Function RateLimitRule (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, Optional rateLimitThreshold As Integer = 0, Optional rateLimitDurationInMinutes As Integer = 0) As RateLimitRule
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.
- rateLimitThreshold
- Int32
Defines rate limit threshold.
- rateLimitDurationInMinutes
- Int32
Defines rate limit duration. Default is 1 minute.
Returns
A new RateLimitRule instance for mocking.