CustomRule Class
Defines the common attributes for a custom rule that can be included in a waf policy.
All required parameters must be populated in order to send to Azure.
- Inheritance
-
CustomRule
Constructor
CustomRule(*, name: str, priority: int, match_conditions: List[azure.mgmt.cdn.models._models_py3.MatchCondition], action: Union[str, azure.mgmt.cdn.models._cdn_management_client_enums.ActionType], enabled_state: Optional[Union[str, azure.mgmt.cdn.models._cdn_management_client_enums.CustomRuleEnabledState]] = None, **kwargs)
Variables
- name
- str
Required. Defines the name of the custom rule.
- enabled_state
- str or CustomRuleEnabledState
Describes if the custom rule is in enabled or disabled state. Defaults to Enabled if not specified. Possible values include: "Disabled", "Enabled".
- priority
- int
Required. Defines in what order this rule be evaluated in the overall list of custom rules.
- match_conditions
- list[MatchCondition]
Required. List of match conditions.
- action
- str or ActionType
Required. Describes what action to be applied when rule matches. Possible values include: "Allow", "Block", "Log", "Redirect".
Feedback
Submit and view feedback for