Struct aws_sdk_wafv2::model::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, so you can't use count.
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>
Specifies that WAF should block requests by default.
allow: Option<AllowAction>
Specifies that WAF should allow requests by default.
Implementations
Specifies that WAF should block requests by default.
Specifies that WAF should allow requests by default.
Creates a new builder-style object to manufacture DefaultAction
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for DefaultAction
impl Send for DefaultAction
impl Sync for DefaultAction
impl Unpin for DefaultAction
impl UnwindSafe for DefaultAction
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more