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
impl StructuralPartialEq for RuleAction
Auto Trait Implementations§
impl Freeze for RuleAction
impl RefUnwindSafe for RuleAction
impl Send for RuleAction
impl Sync for RuleAction
impl Unpin for RuleAction
impl UnwindSafe for RuleAction
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more