Struct aws_sdk_wafv2::types::OverrideAction
source · #[non_exhaustive]pub struct OverrideAction {
pub count: Option<CountAction>,
pub none: Option<NoneAction>,
}
Expand description
The action to use in the place of the action that results from the rule group evaluation. Set the override action to none to leave the result of the rule group alone. Set it to count to override the result to count only.
You can only use this for rule statements that reference a rule group, like RuleGroupReferenceStatement
and ManagedRuleGroupStatement
.
This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead use the rule action override option, with Count
action, in your rule group reference statement settings.
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.count: Option<CountAction>
Override the rule group evaluation result to count only.
This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead use the rule action override option, with Count
action, in your rule group reference statement settings.
none: Option<NoneAction>
Don't override the rule group evaluation result. This is the most common setting.
Implementations§
source§impl OverrideAction
impl OverrideAction
sourcepub fn count(&self) -> Option<&CountAction>
pub fn count(&self) -> Option<&CountAction>
Override the rule group evaluation result to count only.
This option is usually set to none. It does not affect how the rules in the rule group are evaluated. If you want the rules in the rule group to only count matches, do not use this and instead use the rule action override option, with Count
action, in your rule group reference statement settings.
sourcepub fn none(&self) -> Option<&NoneAction>
pub fn none(&self) -> Option<&NoneAction>
Don't override the rule group evaluation result. This is the most common setting.
source§impl OverrideAction
impl OverrideAction
sourcepub fn builder() -> OverrideActionBuilder
pub fn builder() -> OverrideActionBuilder
Creates a new builder-style object to manufacture OverrideAction
.
Trait Implementations§
source§impl Clone for OverrideAction
impl Clone for OverrideAction
source§fn clone(&self) -> OverrideAction
fn clone(&self) -> OverrideAction
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for OverrideAction
impl Debug for OverrideAction
source§impl PartialEq for OverrideAction
impl PartialEq for OverrideAction
source§fn eq(&self, other: &OverrideAction) -> bool
fn eq(&self, other: &OverrideAction) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for OverrideAction
Auto Trait Implementations§
impl Freeze for OverrideAction
impl RefUnwindSafe for OverrideAction
impl Send for OverrideAction
impl Sync for OverrideAction
impl Unpin for OverrideAction
impl UnwindSafe for OverrideAction
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> 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