MatchCondition Class

Define match conditions.

All required parameters must be populated in order to send to Azure.

Inheritance
MatchCondition

Constructor

MatchCondition(*, match_variable: Union[str, azure.mgmt.cdn.models._cdn_management_client_enums.WafMatchVariable], operator: Union[str, azure.mgmt.cdn.models._cdn_management_client_enums.Operator], match_value: List[str], selector: Optional[str] = None, negate_condition: Optional[bool] = None, transforms: Optional[List[Union[str, azure.mgmt.cdn.models._cdn_management_client_enums.TransformType]]] = None, **kwargs)

Variables

match_variable
str or WafMatchVariable

Required. Match variable to compare against. Possible values include: "RemoteAddr", "SocketAddr", "RequestMethod", "RequestHeader", "RequestUri", "QueryString", "RequestBody", "Cookies", "PostArgs".

selector
str

Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs.

operator
str or Operator

Required. Describes operator to be matched. Possible values include: "Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith", "RegEx".

negate_condition
bool

Describes if the result of this condition should be negated.

match_value
list[str]

Required. List of possible match values.

transforms
list[str or TransformType]

List of transforms.