/AWS1/CL_WAFSAMPLEDHTTPREQUEST¶
This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the developer guide.
For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the latest version, AWS WAF has a single set of endpoints for regional and global use.
The response from a GetSampledRequests request includes a SampledHTTPRequests complex type that
appears as SampledRequests in the response syntax. SampledHTTPRequests contains one
SampledHTTPRequest object for each web request that is returned by GetSampledRequests.
CONSTRUCTOR¶
IMPORTING¶
Required arguments:¶
io_request TYPE REF TO /AWS1/CL_WAFHTTPREQUEST /AWS1/CL_WAFHTTPREQUEST¶
A complex type that contains detailed information about the request.
iv_weight TYPE /AWS1/WAFSAMPLEWEIGHT /AWS1/WAFSAMPLEWEIGHT¶
A value that indicates how one result in the response relates proportionally to other results in the response. A result that has a weight of
2represents roughly twice as many CloudFront web requests as a result that has a weight of1.
Optional arguments:¶
iv_timestamp TYPE /AWS1/WAFTIMESTAMP /AWS1/WAFTIMESTAMP¶
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
iv_action TYPE /AWS1/WAFACTION /AWS1/WAFACTION¶
The action for the
Rulethat the request matched:ALLOW,BLOCK, orCOUNT.
iv_rulewithinrulegroup TYPE /AWS1/WAFRESOURCEID /AWS1/WAFRESOURCEID¶
This value is returned if the
GetSampledRequestsrequest specifies the ID of aRuleGrouprather than the ID of an individual rule.RuleWithinRuleGroupis the rule within the specifiedRuleGroupthat matched the request listed in the response.
Queryable Attributes¶
Request¶
A complex type that contains detailed information about the request.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_REQUEST() |
Getter for REQUEST |
Weight¶
A value that indicates how one result in the response relates proportionally to other results in the response. A result that has a weight of
2represents roughly twice as many CloudFront web requests as a result that has a weight of1.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_WEIGHT() |
Getter for WEIGHT |
Timestamp¶
The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_TIMESTAMP() |
Getter for TIMESTAMP, with configurable default |
ASK_TIMESTAMP() |
Getter for TIMESTAMP w/ exceptions if field has no value |
HAS_TIMESTAMP() |
Determine if TIMESTAMP has a value |
Action¶
The action for the
Rulethat the request matched:ALLOW,BLOCK, orCOUNT.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_ACTION() |
Getter for ACTION, with configurable default |
ASK_ACTION() |
Getter for ACTION w/ exceptions if field has no value |
HAS_ACTION() |
Determine if ACTION has a value |
RuleWithinRuleGroup¶
This value is returned if the
GetSampledRequestsrequest specifies the ID of aRuleGrouprather than the ID of an individual rule.RuleWithinRuleGroupis the rule within the specifiedRuleGroupthat matched the request listed in the response.
Accessible with the following methods¶
| Method | Description |
|---|---|
GET_RULEWITHINRULEGROUP() |
Getter for RULEWITHINRULEGROUP, with configurable default |
ASK_RULEWITHINRULEGROUP() |
Getter for RULEWITHINRULEGROUP w/ exceptions if field has no |
HAS_RULEWITHINRULEGROUP() |
Determine if RULEWITHINRULEGROUP has a value |
Public Local Types In This Class¶
Internal table types, representing arrays and maps of this class, are defined as local types:
TT_SAMPLEDHTTPREQUESTS¶
TYPES TT_SAMPLEDHTTPREQUESTS TYPE STANDARD TABLE OF REF TO /AWS1/CL_WAFSAMPLEDHTTPREQUEST WITH DEFAULT KEY
.