#[non_exhaustive]pub struct AwsWafWebAclRuleBuilder { /* private fields */ }Expand description
A builder for AwsWafWebAclRule.
Implementations§
source§impl AwsWafWebAclRuleBuilder
impl AwsWafWebAclRuleBuilder
sourcepub fn action(self, input: WafAction) -> Self
pub fn action(self, input: WafAction) -> Self
Specifies the action that CloudFront or WAF takes when a web request matches the conditions in the rule.
sourcepub fn set_action(self, input: Option<WafAction>) -> Self
pub fn set_action(self, input: Option<WafAction>) -> Self
Specifies the action that CloudFront or WAF takes when a web request matches the conditions in the rule.
sourcepub fn get_action(&self) -> &Option<WafAction>
pub fn get_action(&self) -> &Option<WafAction>
Specifies the action that CloudFront or WAF takes when a web request matches the conditions in the rule.
sourcepub fn excluded_rules(self, input: WafExcludedRule) -> Self
pub fn excluded_rules(self, input: WafExcludedRule) -> Self
Appends an item to excluded_rules.
To override the contents of this collection use set_excluded_rules.
Rules to exclude from a rule group.
sourcepub fn set_excluded_rules(self, input: Option<Vec<WafExcludedRule>>) -> Self
pub fn set_excluded_rules(self, input: Option<Vec<WafExcludedRule>>) -> Self
Rules to exclude from a rule group.
sourcepub fn get_excluded_rules(&self) -> &Option<Vec<WafExcludedRule>>
pub fn get_excluded_rules(&self) -> &Option<Vec<WafExcludedRule>>
Rules to exclude from a rule group.
sourcepub fn override_action(self, input: WafOverrideAction) -> Self
pub fn override_action(self, input: WafOverrideAction) -> Self
Use the OverrideAction to test your RuleGroup.
Any rule in a RuleGroup can potentially block a request. If you set the OverrideAction to None, the RuleGroup blocks a request if any individual rule in the RuleGroup matches the request and is configured to block that request.
However, if you first want to test the RuleGroup, set the OverrideAction to Count. The RuleGroup then overrides any block action specified by individual rules contained within the group. Instead of blocking matching requests, those requests are counted.
ActivatedRule|OverrideAction applies only when updating or adding a RuleGroup to a web ACL. In this case you do not use ActivatedRule Action. For all other update requests, ActivatedRule Action is used instead of ActivatedRule OverrideAction.
sourcepub fn set_override_action(self, input: Option<WafOverrideAction>) -> Self
pub fn set_override_action(self, input: Option<WafOverrideAction>) -> Self
Use the OverrideAction to test your RuleGroup.
Any rule in a RuleGroup can potentially block a request. If you set the OverrideAction to None, the RuleGroup blocks a request if any individual rule in the RuleGroup matches the request and is configured to block that request.
However, if you first want to test the RuleGroup, set the OverrideAction to Count. The RuleGroup then overrides any block action specified by individual rules contained within the group. Instead of blocking matching requests, those requests are counted.
ActivatedRule|OverrideAction applies only when updating or adding a RuleGroup to a web ACL. In this case you do not use ActivatedRule Action. For all other update requests, ActivatedRule Action is used instead of ActivatedRule OverrideAction.
sourcepub fn get_override_action(&self) -> &Option<WafOverrideAction>
pub fn get_override_action(&self) -> &Option<WafOverrideAction>
Use the OverrideAction to test your RuleGroup.
Any rule in a RuleGroup can potentially block a request. If you set the OverrideAction to None, the RuleGroup blocks a request if any individual rule in the RuleGroup matches the request and is configured to block that request.
However, if you first want to test the RuleGroup, set the OverrideAction to Count. The RuleGroup then overrides any block action specified by individual rules contained within the group. Instead of blocking matching requests, those requests are counted.
ActivatedRule|OverrideAction applies only when updating or adding a RuleGroup to a web ACL. In this case you do not use ActivatedRule Action. For all other update requests, ActivatedRule Action is used instead of ActivatedRule OverrideAction.
sourcepub fn priority(self, input: i32) -> Self
pub fn priority(self, input: i32) -> Self
Specifies the order in which the rules in a web ACL are evaluated. Rules with a lower value for Priority are evaluated before rules with a higher value. The value must be a unique integer. If you add multiple rules to a web ACL, the values do not need to be consecutive.
sourcepub fn set_priority(self, input: Option<i32>) -> Self
pub fn set_priority(self, input: Option<i32>) -> Self
Specifies the order in which the rules in a web ACL are evaluated. Rules with a lower value for Priority are evaluated before rules with a higher value. The value must be a unique integer. If you add multiple rules to a web ACL, the values do not need to be consecutive.
sourcepub fn get_priority(&self) -> &Option<i32>
pub fn get_priority(&self) -> &Option<i32>
Specifies the order in which the rules in a web ACL are evaluated. Rules with a lower value for Priority are evaluated before rules with a higher value. The value must be a unique integer. If you add multiple rules to a web ACL, the values do not need to be consecutive.
sourcepub fn set_rule_id(self, input: Option<String>) -> Self
pub fn set_rule_id(self, input: Option<String>) -> Self
The identifier for a rule.
sourcepub fn get_rule_id(&self) -> &Option<String>
pub fn get_rule_id(&self) -> &Option<String>
The identifier for a rule.
sourcepub fn type(self, input: impl Into<String>) -> Self
pub fn type(self, input: impl Into<String>) -> Self
The rule type.
Valid values: REGULAR | RATE_BASED | GROUP
The default is REGULAR.
sourcepub fn set_type(self, input: Option<String>) -> Self
pub fn set_type(self, input: Option<String>) -> Self
The rule type.
Valid values: REGULAR | RATE_BASED | GROUP
The default is REGULAR.
sourcepub fn get_type(&self) -> &Option<String>
pub fn get_type(&self) -> &Option<String>
The rule type.
Valid values: REGULAR | RATE_BASED | GROUP
The default is REGULAR.
sourcepub fn build(self) -> AwsWafWebAclRule
pub fn build(self) -> AwsWafWebAclRule
Consumes the builder and constructs a AwsWafWebAclRule.
Trait Implementations§
source§impl Clone for AwsWafWebAclRuleBuilder
impl Clone for AwsWafWebAclRuleBuilder
source§fn clone(&self) -> AwsWafWebAclRuleBuilder
fn clone(&self) -> AwsWafWebAclRuleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AwsWafWebAclRuleBuilder
impl Debug for AwsWafWebAclRuleBuilder
source§impl Default for AwsWafWebAclRuleBuilder
impl Default for AwsWafWebAclRuleBuilder
source§fn default() -> AwsWafWebAclRuleBuilder
fn default() -> AwsWafWebAclRuleBuilder
source§impl PartialEq for AwsWafWebAclRuleBuilder
impl PartialEq for AwsWafWebAclRuleBuilder
source§fn eq(&self, other: &AwsWafWebAclRuleBuilder) -> bool
fn eq(&self, other: &AwsWafWebAclRuleBuilder) -> bool
self and other values to be equal, and is used
by ==.