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

Description

 
Synopsis

Documentation

data RuleAction Source #

The action that WAF should take on a web request when it matches a rule's statement. Settings at the web ACL level can override the rule action setting.

See: newRuleAction smart constructor.

Constructors

RuleAction' 

Fields

Instances

Instances details
FromJSON RuleAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RuleAction

ToJSON RuleAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RuleAction

Generic RuleAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RuleAction

Associated Types

type Rep RuleAction :: Type -> Type #

Read RuleAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RuleAction

Show RuleAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RuleAction

NFData RuleAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RuleAction

Methods

rnf :: RuleAction -> () #

Eq RuleAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RuleAction

Hashable RuleAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RuleAction

type Rep RuleAction Source # 
Instance details

Defined in Amazonka.WAFV2.Types.RuleAction

newRuleAction :: RuleAction Source #

Create a value of RuleAction 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:RuleAction', ruleAction_allow - Instructs WAF to allow the web request.

$sel:block:RuleAction', ruleAction_block - Instructs WAF to block the web request.

$sel:captcha:RuleAction', ruleAction_captcha - Instructs WAF to run a CAPTCHA check against the web request.

$sel:challenge:RuleAction', ruleAction_challenge - Instructs WAF to run a Challenge check against the web request.

$sel:count:RuleAction', ruleAction_count - Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.

ruleAction_allow :: Lens' RuleAction (Maybe AllowAction) Source #

Instructs WAF to allow the web request.

ruleAction_block :: Lens' RuleAction (Maybe BlockAction) Source #

Instructs WAF to block the web request.

ruleAction_captcha :: Lens' RuleAction (Maybe CaptchaAction) Source #

Instructs WAF to run a CAPTCHA check against the web request.

ruleAction_challenge :: Lens' RuleAction (Maybe ChallengeAction) Source #

Instructs WAF to run a Challenge check against the web request.

ruleAction_count :: Lens' RuleAction (Maybe CountAction) Source #

Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.