MatchCondition Class
Define match conditions.
Constructor
MatchCondition()
Variables
| Name | Description |
|---|---|
|
match_variable
|
Match variable to compare against. Required. Known values are: "RemoteAddr", "SocketAddr", "RequestMethod", "RequestHeader", "RequestUri", "QueryString", "RequestBody", "Cookies", and "PostArgs". |
|
selector
|
Selector can used to match a specific key for QueryString, Cookies, RequestHeader or PostArgs. |
|
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 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')]]