Struct aws_sdk_securityhub::types::builders::WafActionBuilder
source · #[non_exhaustive]pub struct WafActionBuilder { /* private fields */ }
Expand description
A builder for WafAction
.
Implementations§
source§impl WafActionBuilder
impl WafActionBuilder
sourcepub fn type(self, input: impl Into<String>) -> Self
pub fn type(self, input: impl Into<String>) -> Self
Specifies how you want WAF to respond to requests that match the settings in a rule.
Valid settings include the following:
-
ALLOW
- WAF allows requests -
BLOCK
- WAF blocks requests -
COUNT
- WAF increments a counter of the requests that match all of the conditions in the rule. WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specifyCOUNT
for the default action for a web ACL.
sourcepub fn set_type(self, input: Option<String>) -> Self
pub fn set_type(self, input: Option<String>) -> Self
Specifies how you want WAF to respond to requests that match the settings in a rule.
Valid settings include the following:
-
ALLOW
- WAF allows requests -
BLOCK
- WAF blocks requests -
COUNT
- WAF increments a counter of the requests that match all of the conditions in the rule. WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specifyCOUNT
for the default action for a web ACL.
sourcepub fn get_type(&self) -> &Option<String>
pub fn get_type(&self) -> &Option<String>
Specifies how you want WAF to respond to requests that match the settings in a rule.
Valid settings include the following:
-
ALLOW
- WAF allows requests -
BLOCK
- WAF blocks requests -
COUNT
- WAF increments a counter of the requests that match all of the conditions in the rule. WAF then continues to inspect the web request based on the remaining rules in the web ACL. You can't specifyCOUNT
for the default action for a web ACL.
Trait Implementations§
source§impl Clone for WafActionBuilder
impl Clone for WafActionBuilder
source§fn clone(&self) -> WafActionBuilder
fn clone(&self) -> WafActionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for WafActionBuilder
impl Debug for WafActionBuilder
source§impl Default for WafActionBuilder
impl Default for WafActionBuilder
source§fn default() -> WafActionBuilder
fn default() -> WafActionBuilder
source§impl PartialEq for WafActionBuilder
impl PartialEq for WafActionBuilder
source§fn eq(&self, other: &WafActionBuilder) -> bool
fn eq(&self, other: &WafActionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for WafActionBuilder
Auto Trait Implementations§
impl Freeze for WafActionBuilder
impl RefUnwindSafe for WafActionBuilder
impl Send for WafActionBuilder
impl Sync for WafActionBuilder
impl Unpin for WafActionBuilder
impl UnwindSafe for WafActionBuilder
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