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

Description

 
Synopsis

Documentation

data DefaultAction Source #

In a WebACL, this is the action that you want WAF to perform when a web request doesn't match any of the rules in the WebACL. The default action must be a terminating action.

See: newDefaultAction smart constructor.

Constructors

DefaultAction' 

Fields

Instances

Instances details
FromJSON DefaultAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.DefaultAction

ToJSON DefaultAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.DefaultAction

Generic DefaultAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.DefaultAction

Associated Types

type Rep DefaultAction :: Type -> Type #

Read DefaultAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.DefaultAction

Show DefaultAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.DefaultAction

NFData DefaultAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.DefaultAction

Methods

rnf :: DefaultAction -> () #

Eq DefaultAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.DefaultAction

Hashable DefaultAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.DefaultAction

type Rep DefaultAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.DefaultAction

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

newDefaultAction :: DefaultAction Source #

Create a value of DefaultAction 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:allow:DefaultAction', defaultAction_allow - Specifies that WAF should allow requests by default.

$sel:block:DefaultAction', defaultAction_block - Specifies that WAF should block requests by default.

defaultAction_allow :: Lens' DefaultAction (Maybe AllowAction) Source #

Specifies that WAF should allow requests by default.

defaultAction_block :: Lens' DefaultAction (Maybe BlockAction) Source #

Specifies that WAF should block requests by default.