Struct aws_sdk_wafv2::types::DefaultAction
source · #[non_exhaustive]pub struct DefaultAction {
pub block: Option<BlockAction>,
pub allow: Option<AllowAction>,
}
Expand description
In a WebACL
, this is the action that you want WAF to perform when a web request doesn't match any of the rules in the WebACL
. The default action must be a terminating action.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.block: Option<BlockAction>
Specifies that WAF should block requests by default.
allow: Option<AllowAction>
Specifies that WAF should allow requests by default.
Implementations§
source§impl DefaultAction
impl DefaultAction
sourcepub fn block(&self) -> Option<&BlockAction>
pub fn block(&self) -> Option<&BlockAction>
Specifies that WAF should block requests by default.
sourcepub fn allow(&self) -> Option<&AllowAction>
pub fn allow(&self) -> Option<&AllowAction>
Specifies that WAF should allow requests by default.
source§impl DefaultAction
impl DefaultAction
sourcepub fn builder() -> DefaultActionBuilder
pub fn builder() -> DefaultActionBuilder
Creates a new builder-style object to manufacture DefaultAction
.
Trait Implementations§
source§impl Clone for DefaultAction
impl Clone for DefaultAction
source§fn clone(&self) -> DefaultAction
fn clone(&self) -> DefaultAction
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for DefaultAction
impl Debug for DefaultAction
source§impl PartialEq for DefaultAction
impl PartialEq for DefaultAction
source§fn eq(&self, other: &DefaultAction) -> bool
fn eq(&self, other: &DefaultAction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DefaultAction
Auto Trait Implementations§
impl Freeze for DefaultAction
impl RefUnwindSafe for DefaultAction
impl Send for DefaultAction
impl Sync for DefaultAction
impl Unpin for DefaultAction
impl UnwindSafe for DefaultAction
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
Mutably borrows from an owned value. Read more
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>
Converts
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>
Converts
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 moreCreates a shared type from an unshared type.