选择您的 Cookie 首选项

我们使用必要 Cookie 和类似工具提供我们的网站和服务。我们使用性能 Cookie 收集匿名统计数据,以便我们可以了解客户如何使用我们的网站并进行改进。必要 Cookie 无法停用,但您可以单击“自定义”或“拒绝”来拒绝性能 Cookie。

如果您同意,AWS 和经批准的第三方还将使用 Cookie 提供有用的网站功能、记住您的首选项并显示相关内容,包括相关广告。要接受或拒绝所有非必要 Cookie,请单击“接受”或“拒绝”。要做出更详细的选择,请单击“自定义”。

SampledHTTPRequest

聚焦模式
SampledHTTPRequest - AWS WAFV2
此页面尚未翻译为您的语言。 请求翻译

Represents a single sampled web request. The response from GetSampledRequests includes a SampledHTTPRequests complex type that appears as SampledRequests in the response syntax. SampledHTTPRequests contains an array of SampledHTTPRequest objects.

Contents

Request

A complex type that contains detailed information about the request.

Type: HTTPRequest object

Required: Yes

Weight

A value that indicates how one result in the response relates proportionally to other results in the response. For example, a result that has a weight of 2 represents roughly twice as many web requests as a result that has a weight of 1.

Type: Long

Valid Range: Minimum value of 0.

Required: Yes

Action

The action that AWS WAF applied to the request.

Type: String

Required: No

CaptchaResponse

The CAPTCHA response for the request.

Type: CaptchaResponse object

Required: No

ChallengeResponse

The Challenge response for the request.

Type: ChallengeResponse object

Required: No

Labels

Labels applied to the web request by matching rules. AWS WAF applies fully qualified labels to matching web requests. A fully qualified label is the concatenation of a label namespace and a rule label. The rule's rule group or web ACL defines the label namespace.

For example, awswaf:111122223333:myRuleGroup:testRules:testNS1:testNS2:labelNameA or awswaf:managed:aws:managed-rule-set:header:encoding:utf8.

Type: Array of Label objects

Required: No

OverriddenAction

Used only for rule group rules that have a rule action override in place in the web ACL. This is the action that the rule group rule is configured for, and not the action that was applied to the request. The action that AWS WAF applied is the Action value.

Type: String

Required: No

RequestHeadersInserted

Custom request headers inserted by AWS WAF into the request, according to the custom request configuration for the matching rule action.

Type: Array of HTTPHeader objects

Required: No

ResponseCodeSent

The response code that was sent for the request.

Type: Integer

Valid Range: Minimum value of 200. Maximum value of 599.

Required: No

RuleNameWithinRuleGroup

The name of the Rule that the request matched. For managed rule groups, the format for this name is <vendor name>#<managed rule group name>#<rule name>. For your own rule groups, the format for this name is <rule group name>#<rule name>. If the rule is not in a rule group, this field is absent.

Type: String

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

Pattern: ^[\w\-]+$

Required: No

Timestamp

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

Type: Timestamp

Required: No

See Also

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

下一主题:

SingleHeader

上一主题:

RuleSummary

本页内容

隐私网站条款Cookie 首选项
© 2025, Amazon Web Services, Inc. 或其附属公司。保留所有权利。