Struct aws_sdk_securityhub::model::aws_waf_web_acl_rule::Builder
source · [−]pub struct Builder { /* private fields */ }
Expand description
A builder for AwsWafWebAclRule
.
Implementations
sourceimpl Builder
impl Builder
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 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 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 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 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 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 build(self) -> AwsWafWebAclRule
pub fn build(self) -> AwsWafWebAclRule
Consumes the builder and constructs a AwsWafWebAclRule
.
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more