AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
The bytes (typically a string that corresponds with ASCII characters) that you want AWS WAF to search for in web requests, the location in requests that you want AWS WAF to search, and other settings.
Namespace: Amazon.WAFRegional.Model
Assembly: AWSSDK.WAFRegional.dll
Version: 3.x.y.z
public class ByteMatchTuple
The ByteMatchTuple type exposes the following members
Name | Description | |
---|---|---|
ByteMatchTuple() |
Name | Type | Description | |
---|---|---|---|
FieldToMatch | Amazon.WAFRegional.Model.FieldToMatch |
Gets and sets the property FieldToMatch. The part of a web request that you want AWS WAF to search, such as a specified header or a query string. For more information, see FieldToMatch. |
|
PositionalConstraint | Amazon.WAFRegional.PositionalConstraint |
Gets and sets the property PositionalConstraint. Within the portion of a web request that you want to search (for example, in the query string, if any), specify where you want AWS WAF to search. Valid values include the following: CONTAINS
The specified part of the web request must include the value of CONTAINS_WORD
The specified part of the web request must include the value of
EXACTLY
The value of the specified part of the web request must exactly match the value of
STARTS_WITH
The value of ENDS_WITH
The value of |
|
TargetStream | System.IO.MemoryStream |
Gets and sets the property TargetStream.
The value that you want AWS WAF to search for. AWS WAF searches for the specified
string in the part of web requests that you specified in
Valid values depend on the values that you specified for
If If you're using the AWS WAF API Specify a base64-encoded version of the value. The maximum length of the value before you base64-encode it is 50 bytes.
For example, suppose the value of If you're using the AWS CLI or one of the AWS SDKs The value that you want AWS WAF to search for. The SDK automatically base64 encodes the value. |
|
TargetString | System.String |
Gets and sets the property TargetString. Setting the value of TargetString will update the value of TargetStream and vice versa.
The value that you want AWS WAF to search for. AWS WAF searches for the specified
string in the part of web requests that you specified in
Valid values depend on the values that you specified for
If |
|
TextTransformation | Amazon.WAFRegional.TextTransformation |
Gets and sets the property TextTransformation.
Text transformations eliminate some of the unusual formatting that attackers use in
web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS
WAF performs the transformation on You can only specify a single type of TextTransformation. CMD_LINE When you're concerned that attackers are injecting an operating system command line command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations:
COMPRESS_WHITE_SPACE Use this option to replace the following characters with a space character (decimal 32):
HTML_ENTITY_DECODE
Use this option to replace HTML-encoded characters with unencoded characters.
LOWERCASE Use this option to convert uppercase letters (A-Z) to lowercase (a-z). URL_DECODE Use this option to decode a URL-encoded value. NONE
Specify |
.NET Core App:
Supported in: 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5, 4.0, 3.5