API Reference

The AWS Documentation website is getting a new look!
Try it now and let us know what you think. Switch to the new look >>

You can return to the original look by selecting English in the language selector above.


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.



The action for the Rule that the request matched: ALLOW, BLOCK, or COUNT.

Type: String

Required: No


A complex type that contains detailed information about the request.

Type: HTTPRequest object

Required: Yes


This value is returned if the GetSampledRequests request specifies the ID of a RuleGroup rather than the ID of an individual rule. RuleWithinRuleGroup is the rule within the specified RuleGroup that matched the request listed in the response.

Type: String

Length Constraints: Minimum length of 1. Maximum length of 128.

Required: No


The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).

Type: Timestamp

Required: No


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 2 represents roughly twice as many CloudFront web requests as a result that has a weight of 1.

Type: Long

Valid Range: Minimum value of 0.

Required: Yes

See Also

For more information about using this API in one of the language-specific AWS SDKs, see the following:

On this page: