Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Synopsis
- data RuleAction = RuleAction' {}
- newRuleAction :: RuleAction
- ruleAction_allow :: Lens' RuleAction (Maybe AllowAction)
- ruleAction_block :: Lens' RuleAction (Maybe BlockAction)
- ruleAction_captcha :: Lens' RuleAction (Maybe CaptchaAction)
- ruleAction_challenge :: Lens' RuleAction (Maybe ChallengeAction)
- ruleAction_count :: Lens' RuleAction (Maybe CountAction)
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.
RuleAction' | |
|
Instances
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.