Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data RegexMatchStatement = RegexMatchStatement' {}
- newRegexMatchStatement :: Text -> FieldToMatch -> NonEmpty TextTransformation -> RegexMatchStatement
- regexMatchStatement_regexString :: Lens' RegexMatchStatement Text
- regexMatchStatement_fieldToMatch :: Lens' RegexMatchStatement FieldToMatch
- regexMatchStatement_textTransformations :: Lens' RegexMatchStatement (NonEmpty TextTransformation)
Documentation
data RegexMatchStatement Source #
A rule statement used to search web request components for a match against a single regular expression.
See: newRegexMatchStatement
smart constructor.
RegexMatchStatement' | |
|
Instances
newRegexMatchStatement Source #
Create a value of RegexMatchStatement
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:regexString:RegexMatchStatement'
, regexMatchStatement_regexString
- The string representing the regular expression.
$sel:fieldToMatch:RegexMatchStatement'
, regexMatchStatement_fieldToMatch
- The part of the web request that you want WAF to inspect.
$sel:textTransformations:RegexMatchStatement'
, regexMatchStatement_textTransformations
- 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, 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.
regexMatchStatement_regexString :: Lens' RegexMatchStatement Text Source #
The string representing the regular expression.
regexMatchStatement_fieldToMatch :: Lens' RegexMatchStatement FieldToMatch Source #
The part of the web request that you want WAF to inspect.
regexMatchStatement_textTransformations :: Lens' RegexMatchStatement (NonEmpty TextTransformation) Source #
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, 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.