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 ==
.