amazonka-wafv2-2.0: Amazon WAFV2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.WAFV2.Types.RegexMatchStatement

Description

 
Synopsis

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.

Constructors

RegexMatchStatement' 

Fields

  • regexString :: Text

    The string representing the regular expression.

  • fieldToMatch :: FieldToMatch

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

  • textTransformations :: NonEmpty TextTransformation

    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.

Instances

Instances details
FromJSON RegexMatchStatement Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RegexMatchStatement

ToJSON RegexMatchStatement Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RegexMatchStatement

Generic RegexMatchStatement Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RegexMatchStatement

Associated Types

type Rep RegexMatchStatement :: Type -> Type #

Read RegexMatchStatement Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RegexMatchStatement

Show RegexMatchStatement Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RegexMatchStatement

NFData RegexMatchStatement Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RegexMatchStatement

Methods

rnf :: RegexMatchStatement -> () #

Eq RegexMatchStatement Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RegexMatchStatement

Hashable RegexMatchStatement Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RegexMatchStatement

type Rep RegexMatchStatement Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RegexMatchStatement

type Rep RegexMatchStatement = D1 ('MetaData "RegexMatchStatement" "Amazonka.WAFV2.Types.RegexMatchStatement" "amazonka-wafv2-2.0-3v3WgpYn7RT5hSd6MsT5dN" 'False) (C1 ('MetaCons "RegexMatchStatement'" 'PrefixI 'True) (S1 ('MetaSel ('Just "regexString") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "fieldToMatch") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 FieldToMatch) :*: S1 ('MetaSel ('Just "textTransformations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty TextTransformation)))))

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.