Struct aws_sdk_wafv2::types::RuleAction
source · #[non_exhaustive]pub struct RuleAction {
pub block: Option<BlockAction>,
pub allow: Option<AllowAction>,
pub count: Option<CountAction>,
pub captcha: Option<CaptchaAction>,
pub challenge: Option<ChallengeAction>,
}
Expand description
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.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.block: Option<BlockAction>
Instructs WAF to block the web request.
allow: Option<AllowAction>
Instructs WAF to allow the web request.
count: Option<CountAction>
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
captcha: Option<CaptchaAction>
Instructs WAF to run a CAPTCHA
check against the web request.
challenge: Option<ChallengeAction>
Instructs WAF to run a Challenge
check against the web request.
Implementations§
source§impl RuleAction
impl RuleAction
sourcepub fn block(&self) -> Option<&BlockAction>
pub fn block(&self) -> Option<&BlockAction>
Instructs WAF to block the web request.
sourcepub fn allow(&self) -> Option<&AllowAction>
pub fn allow(&self) -> Option<&AllowAction>
Instructs WAF to allow the web request.
sourcepub fn count(&self) -> Option<&CountAction>
pub fn count(&self) -> Option<&CountAction>
Instructs WAF to count the web request and then continue evaluating the request using the remaining rules in the web ACL.
sourcepub fn captcha(&self) -> Option<&CaptchaAction>
pub fn captcha(&self) -> Option<&CaptchaAction>
Instructs WAF to run a CAPTCHA
check against the web request.
sourcepub fn challenge(&self) -> Option<&ChallengeAction>
pub fn challenge(&self) -> Option<&ChallengeAction>
Instructs WAF to run a Challenge
check against the web request.
source§impl RuleAction
impl RuleAction
sourcepub fn builder() -> RuleActionBuilder
pub fn builder() -> RuleActionBuilder
Creates a new builder-style object to manufacture RuleAction
.
Trait Implementations§
source§impl Clone for RuleAction
impl Clone for RuleAction
source§fn clone(&self) -> RuleAction
fn clone(&self) -> RuleAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RuleAction
impl Debug for RuleAction
source§impl PartialEq for RuleAction
impl PartialEq for RuleAction
source§fn eq(&self, other: &RuleAction) -> bool
fn eq(&self, other: &RuleAction) -> bool
self
and other
values to be equal, and is used
by ==
.