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.XssMatchStatement

Description

 
Synopsis

Documentation

data XssMatchStatement Source #

A rule statement that inspects for cross-site scripting (XSS) attacks. In XSS attacks, the attacker uses vulnerabilities in a benign website as a vehicle to inject malicious client-site scripts into other legitimate web browsers.

See: newXssMatchStatement smart constructor.

Constructors

XssMatchStatement' 

Fields

  • 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 XssMatchStatement Source # 
Instance details

Defined in Amazonka.WAFV2.Types.XssMatchStatement

ToJSON XssMatchStatement Source # 
Instance details

Defined in Amazonka.WAFV2.Types.XssMatchStatement

Generic XssMatchStatement Source # 
Instance details

Defined in Amazonka.WAFV2.Types.XssMatchStatement

Associated Types

type Rep XssMatchStatement :: Type -> Type #

Read XssMatchStatement Source # 
Instance details

Defined in Amazonka.WAFV2.Types.XssMatchStatement

Show XssMatchStatement Source # 
Instance details

Defined in Amazonka.WAFV2.Types.XssMatchStatement

NFData XssMatchStatement Source # 
Instance details

Defined in Amazonka.WAFV2.Types.XssMatchStatement

Methods

rnf :: XssMatchStatement -> () #

Eq XssMatchStatement Source # 
Instance details

Defined in Amazonka.WAFV2.Types.XssMatchStatement

Hashable XssMatchStatement Source # 
Instance details

Defined in Amazonka.WAFV2.Types.XssMatchStatement

type Rep XssMatchStatement Source # 
Instance details

Defined in Amazonka.WAFV2.Types.XssMatchStatement

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

newXssMatchStatement Source #

Create a value of XssMatchStatement 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:fieldToMatch:XssMatchStatement', xssMatchStatement_fieldToMatch - The part of the web request that you want WAF to inspect.

$sel:textTransformations:XssMatchStatement', xssMatchStatement_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.

xssMatchStatement_fieldToMatch :: Lens' XssMatchStatement FieldToMatch Source #

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

xssMatchStatement_textTransformations :: Lens' XssMatchStatement (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.