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.CountAction

Description

 
Synopsis

Documentation

data CountAction Source #

Specifies that WAF should count the request. Optionally defines additional custom handling for the request.

This is used in the context of other settings, for example to specify values for RuleAction and web ACL DefaultAction.

See: newCountAction smart constructor.

Constructors

CountAction' 

Fields

Instances

Instances details
FromJSON CountAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CountAction

ToJSON CountAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CountAction

Generic CountAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CountAction

Associated Types

type Rep CountAction :: Type -> Type #

Read CountAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CountAction

Show CountAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CountAction

NFData CountAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CountAction

Methods

rnf :: CountAction -> () #

Eq CountAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CountAction

Hashable CountAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CountAction

type Rep CountAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.CountAction

type Rep CountAction = D1 ('MetaData "CountAction" "Amazonka.WAFV2.Types.CountAction" "amazonka-wafv2-2.0-3v3WgpYn7RT5hSd6MsT5dN" 'False) (C1 ('MetaCons "CountAction'" 'PrefixI 'True) (S1 ('MetaSel ('Just "customRequestHandling") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe CustomRequestHandling))))

newCountAction :: CountAction Source #

Create a value of CountAction 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:customRequestHandling:CountAction', countAction_customRequestHandling - Defines custom handling for the web request.

For information about customizing web requests and responses, see Customizing web requests and responses in WAF in the WAF Developer Guide.

countAction_customRequestHandling :: Lens' CountAction (Maybe CustomRequestHandling) Source #

Defines custom handling for the web request.

For information about customizing web requests and responses, see Customizing web requests and responses in WAF in the WAF Developer Guide.