Struct aws_sdk_wafv2::types::RuleActionOverride
source · #[non_exhaustive]pub struct RuleActionOverride {
pub name: String,
pub action_to_use: Option<RuleAction>,
}
Expand description
Action setting to use in the place of a rule action that is configured inside the rule group. You specify one override for each rule whose action you want to change.
You can use overrides for testing, for example you can override all of rule actions to Count
and then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can also permanently override some or all actions, to modify how the rule group manages your web traffic.
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.name: String
The name of the rule to override.
action_to_use: Option<RuleAction>
The override action to use, in place of the configured action of the rule in the rule group.
Implementations§
source§impl RuleActionOverride
impl RuleActionOverride
sourcepub fn action_to_use(&self) -> Option<&RuleAction>
pub fn action_to_use(&self) -> Option<&RuleAction>
The override action to use, in place of the configured action of the rule in the rule group.
source§impl RuleActionOverride
impl RuleActionOverride
sourcepub fn builder() -> RuleActionOverrideBuilder
pub fn builder() -> RuleActionOverrideBuilder
Creates a new builder-style object to manufacture RuleActionOverride
.
Trait Implementations§
source§impl Clone for RuleActionOverride
impl Clone for RuleActionOverride
source§fn clone(&self) -> RuleActionOverride
fn clone(&self) -> RuleActionOverride
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for RuleActionOverride
impl Debug for RuleActionOverride
source§impl PartialEq for RuleActionOverride
impl PartialEq for RuleActionOverride
source§fn eq(&self, other: &RuleActionOverride) -> bool
fn eq(&self, other: &RuleActionOverride) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for RuleActionOverride
Auto Trait Implementations§
impl Freeze for RuleActionOverride
impl RefUnwindSafe for RuleActionOverride
impl Send for RuleActionOverride
impl Sync for RuleActionOverride
impl Unpin for RuleActionOverride
impl UnwindSafe for RuleActionOverride
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