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

Description

 
Synopsis

Documentation

data BlockAction Source #

Specifies that WAF should block the request and optionally defines additional custom handling for the response to the web request.

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

See: newBlockAction smart constructor.

Constructors

BlockAction' 

Fields

Instances

Instances details
FromJSON BlockAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.BlockAction

ToJSON BlockAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.BlockAction

Generic BlockAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.BlockAction

Associated Types

type Rep BlockAction :: Type -> Type #

Read BlockAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.BlockAction

Show BlockAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.BlockAction

NFData BlockAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.BlockAction

Methods

rnf :: BlockAction -> () #

Eq BlockAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.BlockAction

Hashable BlockAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.BlockAction

type Rep BlockAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.BlockAction

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

newBlockAction :: BlockAction Source #

Create a value of BlockAction 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:customResponse:BlockAction', blockAction_customResponse - Defines a custom response 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.

blockAction_customResponse :: Lens' BlockAction (Maybe CustomResponse) Source #

Defines a custom response 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.