libZSservicesZSamazonka-waf-regionalZSamazonka-waf-regional
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.WAFRegional.Types.SampledHTTPRequest

Description

 
Synopsis

Documentation

data SampledHTTPRequest Source #

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.

See: newSampledHTTPRequest smart constructor.

Constructors

SampledHTTPRequest' 

Fields

  • ruleWithinRuleGroup :: Maybe Text

    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.

  • action :: Maybe Text

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

  • timestamp :: Maybe POSIX

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

  • request :: HTTPRequest

    A complex type that contains detailed information about the request.

  • weight :: Natural

    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.

Instances

Instances details
Eq SampledHTTPRequest Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.SampledHTTPRequest

Read SampledHTTPRequest Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.SampledHTTPRequest

Show SampledHTTPRequest Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.SampledHTTPRequest

Generic SampledHTTPRequest Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.SampledHTTPRequest

Associated Types

type Rep SampledHTTPRequest :: Type -> Type #

NFData SampledHTTPRequest Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.SampledHTTPRequest

Methods

rnf :: SampledHTTPRequest -> () #

Hashable SampledHTTPRequest Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.SampledHTTPRequest

FromJSON SampledHTTPRequest Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.SampledHTTPRequest

type Rep SampledHTTPRequest Source # 
Instance details

Defined in Amazonka.WAFRegional.Types.SampledHTTPRequest

type Rep SampledHTTPRequest = D1 ('MetaData "SampledHTTPRequest" "Amazonka.WAFRegional.Types.SampledHTTPRequest" "libZSservicesZSamazonka-waf-regionalZSamazonka-waf-regional" 'False) (C1 ('MetaCons "SampledHTTPRequest'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "ruleWithinRuleGroup") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "action") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))) :*: (S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "request") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 HTTPRequest) :*: S1 ('MetaSel ('Just "weight") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Natural)))))

newSampledHTTPRequest Source #

Create a value of SampledHTTPRequest with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:ruleWithinRuleGroup:SampledHTTPRequest', sampledHTTPRequest_ruleWithinRuleGroup - 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.

$sel:action:SampledHTTPRequest', sampledHTTPRequest_action - The action for the Rule that the request matched: ALLOW, BLOCK, or COUNT.

$sel:timestamp:SampledHTTPRequest', sampledHTTPRequest_timestamp - The time at which AWS WAF received the request from your AWS resource, in Unix time format (in seconds).

$sel:request:SampledHTTPRequest', sampledHTTPRequest_request - A complex type that contains detailed information about the request.

$sel:weight:SampledHTTPRequest', sampledHTTPRequest_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 2 represents roughly twice as many CloudFront web requests as a result that has a weight of 1.

sampledHTTPRequest_ruleWithinRuleGroup :: Lens' SampledHTTPRequest (Maybe Text) Source #

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.

sampledHTTPRequest_action :: Lens' SampledHTTPRequest (Maybe Text) Source #

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

sampledHTTPRequest_timestamp :: Lens' SampledHTTPRequest (Maybe UTCTime) Source #

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

sampledHTTPRequest_request :: Lens' SampledHTTPRequest HTTPRequest Source #

A complex type that contains detailed information about the request.

sampledHTTPRequest_weight :: Lens' SampledHTTPRequest Natural Source #

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.