class Aws::WAFV2::Types::SampledHTTPRequest

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.

@!attribute [rw] request

A complex type that contains detailed information about the request.
@return [Types::HTTPRequest]

@!attribute [rw] 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`.
@return [Integer]

@!attribute [rw] timestamp

The time at which WAF received the request from your Amazon Web
Services resource, in Unix time format (in seconds).
@return [Time]

@!attribute [rw] action

The action for the `Rule` that the request matched: `ALLOW`,
`BLOCK`, or `COUNT`.
@return [String]

@!attribute [rw] rule_name_within_rule_group

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.
@return [String]

@!attribute [rw] request_headers_inserted

Custom request headers inserted by WAF into the request, according
to the custom request configuration for the matching rule action.
@return [Array<Types::HTTPHeader>]

@!attribute [rw] response_code_sent

The response code that was sent for the request.
@return [Integer]

@!attribute [rw] labels

Labels applied to the web request by matching rules. 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`.
@return [Array<Types::Label>]

@see docs.aws.amazon.com/goto/WebAPI/wafv2-2019-07-29/SampledHTTPRequest AWS API Documentation

Constants

SENSITIVE