Struct aws_sdk_wafv2::types::ActionCondition
source · #[non_exhaustive]pub struct ActionCondition {
pub action: ActionValue,
}
Expand description
A single action condition for a Condition
in a logging filter.
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.action: ActionValue
The action setting that a log record must contain in order to meet the condition. This is the action that WAF applied to the web request.
For rule groups, this is either the configured rule action setting, or if you've applied a rule action override to the rule, it's the override action. The value EXCLUDED_AS_COUNT
matches on excluded rules and also on rules that have a rule action override of Count.
Implementations§
source§impl ActionCondition
impl ActionCondition
sourcepub fn action(&self) -> &ActionValue
pub fn action(&self) -> &ActionValue
The action setting that a log record must contain in order to meet the condition. This is the action that WAF applied to the web request.
For rule groups, this is either the configured rule action setting, or if you've applied a rule action override to the rule, it's the override action. The value EXCLUDED_AS_COUNT
matches on excluded rules and also on rules that have a rule action override of Count.
source§impl ActionCondition
impl ActionCondition
sourcepub fn builder() -> ActionConditionBuilder
pub fn builder() -> ActionConditionBuilder
Creates a new builder-style object to manufacture ActionCondition
.
Trait Implementations§
source§impl Clone for ActionCondition
impl Clone for ActionCondition
source§fn clone(&self) -> ActionCondition
fn clone(&self) -> ActionCondition
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ActionCondition
impl Debug for ActionCondition
source§impl PartialEq for ActionCondition
impl PartialEq for ActionCondition
source§fn eq(&self, other: &ActionCondition) -> bool
fn eq(&self, other: &ActionCondition) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ActionCondition
Auto Trait Implementations§
impl Freeze for ActionCondition
impl RefUnwindSafe for ActionCondition
impl Send for ActionCondition
impl Sync for ActionCondition
impl Unpin for ActionCondition
impl UnwindSafe for ActionCondition
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