![]() |
![]()
| ![]() |
![]()
NAMEPaws::WAF::ByteMatchTuple USAGEThis class represents one of two things: Arguments in a call to a service Use the attributes of this class as arguments to methods. You shouldn't make instances of this class. Each attribute should be used as a named argument in the calls that expect this type of object. As an example, if Att1 is expected to be a Paws::WAF::ByteMatchTuple object: $service_obj->Method(Att1 => { FieldToMatch => $value, ..., TextTransformation => $value }); Results returned from an API call Use accessors for each attribute. If Att1 is expected to be an Paws::WAF::ByteMatchTuple object: $result = $service_obj->Method(...); $result->Att1->FieldToMatch DESCRIPTIONThis is AWS WAF Classic documentation. For more information, see AWS WAF Classic (https://docs.aws.amazon.com/waf/latest/developerguide/classic-waf-chapter.html) in the developer guide. For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide (https://docs.aws.amazon.com/waf/latest/developerguide/waf-chapter.html). With the latest version, AWS WAF has a single set of endpoints for regional and global use. 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. ATTRIBUTESREQUIRED FieldToMatch => Paws::WAF::FieldToMatchThe 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. REQUIRED PositionalConstraint => StrWithin 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 "TargetString", but the location doesn't matter. CONTAINS_WORD The specified part of the web request must include the value of "TargetString", and "TargetString" must contain only alphanumeric characters or underscore (A-Z, a-z, 0-9, or _). In addition, "TargetString" must be a word, which means one of the following:
EXACTLY The value of the specified part of the web request must exactly match the value of "TargetString". STARTS_WITH The value of "TargetString" must appear at the beginning of the specified part of the web request. ENDS_WITH The value of "TargetString" must appear at the end of the specified part of the web request. REQUIRED TargetString => StrThe 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 "FieldToMatch". The maximum length of the value is 50 bytes. Valid values depend on the values that you specified for "FieldToMatch":
If "TargetString" includes alphabetic characters A-Z and a-z, note that the value is case sensitive. 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 "Type" is "HEADER" and the value of "Data" is "User-Agent". If you want to search the "User-Agent" header for the value "BadBot", you base64-encode "BadBot" using MIME base64-encoding and include the resulting value, "QmFkQm90", in the value of "TargetString". 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. REQUIRED TextTransformation => StrText 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 "FieldToMatch" before inspecting it for a match. 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):
"COMPRESS_WHITE_SPACE" also replaces multiple spaces with one space. HTML_ENTITY_DECODE Use this option to replace HTML-encoded characters with unencoded characters. "HTML_ENTITY_DECODE" performs the following operations:
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 "NONE" if you don't want to perform any text transformations. SEE ALSOThis class forms part of Paws, describing an object used in Paws::WAF BUGS and CONTRIBUTIONSThe source code is located here: <https://github.com/pplu/aws-sdk-perl> Please report bugs to: <https://github.com/pplu/aws-sdk-perl/issues>
|