RegexMatchStatement - AWS WAFV2


A rule statement used to search web request components for a match against a single regular expression.



The part of the web request that you want AWS WAF to inspect.

Type: FieldToMatch object

Required: Yes


The string representing the regular expression.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 512.

Pattern: .*

Required: Yes


Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass detection. If you specify one or more transformations in a rule statement, AWS WAF performs all transformations on the content of the request component identified by FieldToMatch, starting from the lowest priority setting, before inspecting the content for a match.

Type: Array of TextTransformation objects

Array Members: Minimum number of 1 item.

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following: