MatchCondition Class

Define match conditions.

Constructor

MatchCondition()

Variables

Name Description
match_variable
Union[str, <xref:"WafMatchVariable">]

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

selector
str

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

operator
Union[str, <xref:"Operator">]

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

negate_condition

Describes if the result of this condition should be negated.

match_value

List of possible match values. Required.

transforms
list[Union[str, <xref:"TransformType">]]

List of transforms.

Attributes

matchValue

List of possible match values. Required.

matchValue: Required[list[str]]

matchVariable

"RemoteAddr", "SocketAddr", "RequestMethod", "RequestHeader", "RequestUri", "QueryString", "RequestBody", "Cookies", and "PostArgs".

matchVariable: Required[str | WafMatchVariable]

negateCondition

Describes if the result of this condition should be negated.

negateCondition: bool

operator

"Any", "IPMatch", "GeoMatch", "Equal", "Contains", "LessThan", "GreaterThan", "LessThanOrEqual", "GreaterThanOrEqual", "BeginsWith", "EndsWith", and "RegEx".

operator: Required[str | Operator]

selector

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

selector: str

transforms

List of transforms.

transforms: list[typing.Union[str, ForwardRef('TransformType')]]