amazonka-wafv2-2.0: Amazon WAFV2 SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.WAFV2.Types.SampledHTTPRequest

Description

 
Synopsis

Documentation

data SampledHTTPRequest Source #

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.

See: newSampledHTTPRequest smart constructor.

Constructors

SampledHTTPRequest' 

Fields

  • action :: Maybe Text

    The action that WAF applied to the request.

  • captchaResponse :: Maybe CaptchaResponse

    The CAPTCHA response for the request.

  • challengeResponse :: Maybe ChallengeResponse

    The Challenge response for the request.

  • labels :: Maybe [Label]

    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.

  • overriddenAction :: Maybe Text

    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 WAF applied is the Action value.

  • requestHeadersInserted :: Maybe [HTTPHeader]

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

  • responseCodeSent :: Maybe Natural

    The response code that was sent for the request.

  • ruleNameWithinRuleGroup :: Maybe Text

    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.

  • timestamp :: Maybe POSIX

    The time at which WAF received the request from your Amazon Web Services 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. 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.

Instances

Instances details
FromJSON SampledHTTPRequest Source # 
Instance details

Defined in Amazonka.WAFV2.Types.SampledHTTPRequest

Generic SampledHTTPRequest Source # 
Instance details

Defined in Amazonka.WAFV2.Types.SampledHTTPRequest

Associated Types

type Rep SampledHTTPRequest :: Type -> Type #

Read SampledHTTPRequest Source # 
Instance details

Defined in Amazonka.WAFV2.Types.SampledHTTPRequest

Show SampledHTTPRequest Source # 
Instance details

Defined in Amazonka.WAFV2.Types.SampledHTTPRequest

NFData SampledHTTPRequest Source # 
Instance details

Defined in Amazonka.WAFV2.Types.SampledHTTPRequest

Methods

rnf :: SampledHTTPRequest -> () #

Eq SampledHTTPRequest Source # 
Instance details

Defined in Amazonka.WAFV2.Types.SampledHTTPRequest

Hashable SampledHTTPRequest Source # 
Instance details

Defined in Amazonka.WAFV2.Types.SampledHTTPRequest

type Rep SampledHTTPRequest Source # 
Instance details

Defined in Amazonka.WAFV2.Types.SampledHTTPRequest

type Rep SampledHTTPRequest = D1 ('MetaData "SampledHTTPRequest" "Amazonka.WAFV2.Types.SampledHTTPRequest" "amazonka-wafv2-2.0-3v3WgpYn7RT5hSd6MsT5dN" 'False) (C1 ('MetaCons "SampledHTTPRequest'" 'PrefixI 'True) (((S1 ('MetaSel ('Just "action") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "captchaResponse") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CaptchaResponse))) :*: (S1 ('MetaSel ('Just "challengeResponse") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ChallengeResponse)) :*: (S1 ('MetaSel ('Just "labels") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Label])) :*: S1 ('MetaSel ('Just "overriddenAction") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))) :*: ((S1 ('MetaSel ('Just "requestHeadersInserted") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [HTTPHeader])) :*: (S1 ('MetaSel ('Just "responseCodeSent") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "ruleNameWithinRuleGroup") '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:action:SampledHTTPRequest', sampledHTTPRequest_action - The action that WAF applied to the request.

$sel:captchaResponse:SampledHTTPRequest', sampledHTTPRequest_captchaResponse - The CAPTCHA response for the request.

$sel:challengeResponse:SampledHTTPRequest', sampledHTTPRequest_challengeResponse - The Challenge response for the request.

$sel:labels:SampledHTTPRequest', sampledHTTPRequest_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.

$sel:overriddenAction:SampledHTTPRequest', sampledHTTPRequest_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 WAF applied is the Action value.

$sel:requestHeadersInserted:SampledHTTPRequest', sampledHTTPRequest_requestHeadersInserted - Custom request headers inserted by WAF into the request, according to the custom request configuration for the matching rule action.

$sel:responseCodeSent:SampledHTTPRequest', sampledHTTPRequest_responseCodeSent - The response code that was sent for the request.

$sel:ruleNameWithinRuleGroup:SampledHTTPRequest', sampledHTTPRequest_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.

$sel:timestamp:SampledHTTPRequest', sampledHTTPRequest_timestamp - The time at which WAF received the request from your Amazon Web Services 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. 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.

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

The action that WAF applied to the request.

sampledHTTPRequest_labels :: Lens' SampledHTTPRequest (Maybe [Label]) Source #

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.

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

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 WAF applied is the Action value.

sampledHTTPRequest_requestHeadersInserted :: Lens' SampledHTTPRequest (Maybe [HTTPHeader]) Source #

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

sampledHTTPRequest_responseCodeSent :: Lens' SampledHTTPRequest (Maybe Natural) Source #

The response code that was sent for the request.

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

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.

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

The time at which WAF received the request from your Amazon Web Services 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. 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.