Struct aws_sdk_wafv2::types::builders::ActionConditionBuilder
source · #[non_exhaustive]pub struct ActionConditionBuilder { /* private fields */ }
Expand description
A builder for ActionCondition
.
Implementations§
source§impl ActionConditionBuilder
impl ActionConditionBuilder
sourcepub fn action(self, input: ActionValue) -> Self
pub fn action(self, input: ActionValue) -> Self
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.
sourcepub fn set_action(self, input: Option<ActionValue>) -> Self
pub fn set_action(self, input: Option<ActionValue>) -> Self
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.
sourcepub fn get_action(&self) -> &Option<ActionValue>
pub fn get_action(&self) -> &Option<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.
sourcepub fn build(self) -> Result<ActionCondition, BuildError>
pub fn build(self) -> Result<ActionCondition, BuildError>
Consumes the builder and constructs a ActionCondition
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ActionConditionBuilder
impl Clone for ActionConditionBuilder
source§fn clone(&self) -> ActionConditionBuilder
fn clone(&self) -> ActionConditionBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ActionConditionBuilder
impl Debug for ActionConditionBuilder
source§impl Default for ActionConditionBuilder
impl Default for ActionConditionBuilder
source§fn default() -> ActionConditionBuilder
fn default() -> ActionConditionBuilder
source§impl PartialEq for ActionConditionBuilder
impl PartialEq for ActionConditionBuilder
source§fn eq(&self, other: &ActionConditionBuilder) -> bool
fn eq(&self, other: &ActionConditionBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.