Struct aws_sdk_wafv2::model::action_condition::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ActionCondition
.
Implementations§
source§impl Builder
impl Builder
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 build(self) -> ActionCondition
pub fn build(self) -> ActionCondition
Consumes the builder and constructs a ActionCondition
.