Skip to content

SampledHTTPRequest

Source code in docs_src/capo_waf_regional/types/sampled_http_request.py
class SampledHTTPRequest(TypedDict, closed=True):
    request: "capo_waf_regional.types.http_request.HTTPRequest"
    """<p>A complex type that contains detailed information about the request.</p>"""
    weight: "capo_waf_regional.types.sample_weight.SampleWeight"
    """<p>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 <code>2</code> represents roughly twice as many CloudFront web requests as a result that has a weight of <code>1</code>.</p>"""
    timestamp: NotRequired["capo_waf_regional.types.timestamp.Timestamp"]
    """<p>The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).</p>"""
    action: NotRequired["capo_waf_regional.types.action.Action"]
    """<p>The action for the <code>Rule</code> that the request matched: <code>ALLOW</code>, <code>BLOCK</code>, or <code>COUNT</code>.</p>"""
    rule_within_rule_group: NotRequired[
        "capo_waf_regional.types.resource_id.ResourceId"
    ]
    """<p>This value is returned if the <code>GetSampledRequests</code> request specifies the ID of a <code>RuleGroup</code> rather than the ID of an individual rule. <code>RuleWithinRuleGroup</code> is the rule within the specified <code>RuleGroup</code> that matched the request listed in the response.</p>"""

action instance-attribute

action: NotRequired[Action]

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

request instance-attribute

request: HTTPRequest

A complex type that contains detailed information about the request.

rule_within_rule_group instance-attribute

rule_within_rule_group: NotRequired[ResourceId]

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.

timestamp instance-attribute

timestamp: NotRequired[Timestamp]

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

weight instance-attribute

weight: SampleWeight

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.