ByteMatchStatement class
A rule statement that defines a string match search for AWS WAF to apply to
web requests. The byte match statement provides the bytes to search for, the
location in requests that you want AWS WAF to search, and other settings.
The bytes to search for are typically a string that corresponds with ASCII
characters. In the AWS WAF console and the developer guide, this is refered
to as a string match statement.
Constructors
-
ByteMatchStatement.new({required FieldToMatch fieldToMatch, required PositionalConstraint positionalConstraint, required Uint8List searchString, required List<
TextTransformation> textTransformations}) -
ByteMatchStatement.fromJson(Map<
String, dynamic> json) -
factory
Properties
- fieldToMatch → FieldToMatch
-
The part of a web request that you want AWS WAF to inspect. For more
information, see FieldToMatch.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- positionalConstraint → PositionalConstraint
-
The area within the portion of a web request that you want AWS WAF to search
for
SearchString
. Valid values include the following:final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- searchString → Uint8List
-
A string value that you want AWS WAF to search for. AWS WAF searches only in
the part of web requests that you designate for inspection in
FieldToMatch. The maximum length of the value is 50 bytes.
final
-
textTransformations
→ List<
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, 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.final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited