#[non_exhaustive]pub struct ManagedRuleGroupStatementBuilder { /* private fields */ }
Expand description
A builder for ManagedRuleGroupStatement
.
Implementations§
source§impl ManagedRuleGroupStatementBuilder
impl ManagedRuleGroupStatementBuilder
sourcepub fn vendor_name(self, input: impl Into<String>) -> Self
pub fn vendor_name(self, input: impl Into<String>) -> Self
The name of the managed rule group vendor. You use this, along with the rule group name, to identify a rule group.
This field is required.sourcepub fn set_vendor_name(self, input: Option<String>) -> Self
pub fn set_vendor_name(self, input: Option<String>) -> Self
The name of the managed rule group vendor. You use this, along with the rule group name, to identify a rule group.
sourcepub fn get_vendor_name(&self) -> &Option<String>
pub fn get_vendor_name(&self) -> &Option<String>
The name of the managed rule group vendor. You use this, along with the rule group name, to identify a rule group.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the managed rule group. You use this, along with the vendor name, to identify the rule group.
This field is required.sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the managed rule group. You use this, along with the vendor name, to identify the rule group.
sourcepub fn get_name(&self) -> &Option<String>
pub fn get_name(&self) -> &Option<String>
The name of the managed rule group. You use this, along with the vendor name, to identify the rule group.
sourcepub fn version(self, input: impl Into<String>) -> Self
pub fn version(self, input: impl Into<String>) -> Self
The version of the managed rule group to use. If you specify this, the version setting is fixed until you change it. If you don't specify this, WAF uses the vendor's default version, and then keeps the version at the vendor's default when the vendor updates the managed rule group settings.
sourcepub fn set_version(self, input: Option<String>) -> Self
pub fn set_version(self, input: Option<String>) -> Self
The version of the managed rule group to use. If you specify this, the version setting is fixed until you change it. If you don't specify this, WAF uses the vendor's default version, and then keeps the version at the vendor's default when the vendor updates the managed rule group settings.
sourcepub fn get_version(&self) -> &Option<String>
pub fn get_version(&self) -> &Option<String>
The version of the managed rule group to use. If you specify this, the version setting is fixed until you change it. If you don't specify this, WAF uses the vendor's default version, and then keeps the version at the vendor's default when the vendor updates the managed rule group settings.
sourcepub fn excluded_rules(self, input: ExcludedRule) -> Self
pub fn excluded_rules(self, input: ExcludedRule) -> Self
Appends an item to excluded_rules
.
To override the contents of this collection use set_excluded_rules
.
Rules in the referenced rule group whose actions are set to Count
.
Instead of this option, use RuleActionOverrides
. It accepts any valid action setting, including Count
.
sourcepub fn set_excluded_rules(self, input: Option<Vec<ExcludedRule>>) -> Self
pub fn set_excluded_rules(self, input: Option<Vec<ExcludedRule>>) -> Self
Rules in the referenced rule group whose actions are set to Count
.
Instead of this option, use RuleActionOverrides
. It accepts any valid action setting, including Count
.
sourcepub fn get_excluded_rules(&self) -> &Option<Vec<ExcludedRule>>
pub fn get_excluded_rules(&self) -> &Option<Vec<ExcludedRule>>
Rules in the referenced rule group whose actions are set to Count
.
Instead of this option, use RuleActionOverrides
. It accepts any valid action setting, including Count
.
sourcepub fn scope_down_statement(self, input: impl Into<Box<Statement>>) -> Self
pub fn scope_down_statement(self, input: impl Into<Box<Statement>>) -> Self
An optional nested statement that narrows the scope of the web requests that are evaluated by the managed rule group. Requests are only evaluated by the rule group if they match the scope-down statement. You can use any nestable Statement
in the scope-down statement, and you can nest statements at any level, the same as you can for a rule statement.
sourcepub fn set_scope_down_statement(self, input: Option<Box<Statement>>) -> Self
pub fn set_scope_down_statement(self, input: Option<Box<Statement>>) -> Self
An optional nested statement that narrows the scope of the web requests that are evaluated by the managed rule group. Requests are only evaluated by the rule group if they match the scope-down statement. You can use any nestable Statement
in the scope-down statement, and you can nest statements at any level, the same as you can for a rule statement.
sourcepub fn get_scope_down_statement(&self) -> &Option<Box<Statement>>
pub fn get_scope_down_statement(&self) -> &Option<Box<Statement>>
An optional nested statement that narrows the scope of the web requests that are evaluated by the managed rule group. Requests are only evaluated by the rule group if they match the scope-down statement. You can use any nestable Statement
in the scope-down statement, and you can nest statements at any level, the same as you can for a rule statement.
sourcepub fn managed_rule_group_configs(self, input: ManagedRuleGroupConfig) -> Self
pub fn managed_rule_group_configs(self, input: ManagedRuleGroupConfig) -> Self
Appends an item to managed_rule_group_configs
.
To override the contents of this collection use set_managed_rule_group_configs
.
Additional information that's used by a managed rule group. Many managed rule groups don't require this.
The rule groups used for intelligent threat mitigation require additional configuration:
-
Use the
AWSManagedRulesACFPRuleSet
configuration object to configure the account creation fraud prevention managed rule group. The configuration includes the registration and sign-up pages of your application and the locations in the account creation request payload of data, such as the user email and phone number fields. -
Use the
AWSManagedRulesATPRuleSet
configuration object to configure the account takeover prevention managed rule group. The configuration includes the sign-in page of your application and the locations in the login request payload of data such as the username and password. -
Use the
AWSManagedRulesBotControlRuleSet
configuration object to configure the protection level that you want the Bot Control rule group to use.
sourcepub fn set_managed_rule_group_configs(
self,
input: Option<Vec<ManagedRuleGroupConfig>>
) -> Self
pub fn set_managed_rule_group_configs( self, input: Option<Vec<ManagedRuleGroupConfig>> ) -> Self
Additional information that's used by a managed rule group. Many managed rule groups don't require this.
The rule groups used for intelligent threat mitigation require additional configuration:
-
Use the
AWSManagedRulesACFPRuleSet
configuration object to configure the account creation fraud prevention managed rule group. The configuration includes the registration and sign-up pages of your application and the locations in the account creation request payload of data, such as the user email and phone number fields. -
Use the
AWSManagedRulesATPRuleSet
configuration object to configure the account takeover prevention managed rule group. The configuration includes the sign-in page of your application and the locations in the login request payload of data such as the username and password. -
Use the
AWSManagedRulesBotControlRuleSet
configuration object to configure the protection level that you want the Bot Control rule group to use.
sourcepub fn get_managed_rule_group_configs(
&self
) -> &Option<Vec<ManagedRuleGroupConfig>>
pub fn get_managed_rule_group_configs( &self ) -> &Option<Vec<ManagedRuleGroupConfig>>
Additional information that's used by a managed rule group. Many managed rule groups don't require this.
The rule groups used for intelligent threat mitigation require additional configuration:
-
Use the
AWSManagedRulesACFPRuleSet
configuration object to configure the account creation fraud prevention managed rule group. The configuration includes the registration and sign-up pages of your application and the locations in the account creation request payload of data, such as the user email and phone number fields. -
Use the
AWSManagedRulesATPRuleSet
configuration object to configure the account takeover prevention managed rule group. The configuration includes the sign-in page of your application and the locations in the login request payload of data such as the username and password. -
Use the
AWSManagedRulesBotControlRuleSet
configuration object to configure the protection level that you want the Bot Control rule group to use.
sourcepub fn rule_action_overrides(self, input: RuleActionOverride) -> Self
pub fn rule_action_overrides(self, input: RuleActionOverride) -> Self
Appends an item to rule_action_overrides
.
To override the contents of this collection use set_rule_action_overrides
.
Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change.
You can use overrides for testing, for example you can override all of rule actions to Count
and then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can also permanently override some or all actions, to modify how the rule group manages your web traffic.
sourcepub fn set_rule_action_overrides(
self,
input: Option<Vec<RuleActionOverride>>
) -> Self
pub fn set_rule_action_overrides( self, input: Option<Vec<RuleActionOverride>> ) -> Self
Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change.
You can use overrides for testing, for example you can override all of rule actions to Count
and then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can also permanently override some or all actions, to modify how the rule group manages your web traffic.
sourcepub fn get_rule_action_overrides(&self) -> &Option<Vec<RuleActionOverride>>
pub fn get_rule_action_overrides(&self) -> &Option<Vec<RuleActionOverride>>
Action settings to use in the place of the rule actions that are configured inside the rule group. You specify one override for each rule whose action you want to change.
You can use overrides for testing, for example you can override all of rule actions to Count
and then monitor the resulting count metrics to understand how the rule group would handle your web traffic. You can also permanently override some or all actions, to modify how the rule group manages your web traffic.
sourcepub fn build(self) -> Result<ManagedRuleGroupStatement, BuildError>
pub fn build(self) -> Result<ManagedRuleGroupStatement, BuildError>
Consumes the builder and constructs a ManagedRuleGroupStatement
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ManagedRuleGroupStatementBuilder
impl Clone for ManagedRuleGroupStatementBuilder
source§fn clone(&self) -> ManagedRuleGroupStatementBuilder
fn clone(&self) -> ManagedRuleGroupStatementBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ManagedRuleGroupStatementBuilder
impl Default for ManagedRuleGroupStatementBuilder
source§fn default() -> ManagedRuleGroupStatementBuilder
fn default() -> ManagedRuleGroupStatementBuilder
source§impl PartialEq for ManagedRuleGroupStatementBuilder
impl PartialEq for ManagedRuleGroupStatementBuilder
source§fn eq(&self, other: &ManagedRuleGroupStatementBuilder) -> bool
fn eq(&self, other: &ManagedRuleGroupStatementBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ManagedRuleGroupStatementBuilder
Auto Trait Implementations§
impl Freeze for ManagedRuleGroupStatementBuilder
impl RefUnwindSafe for ManagedRuleGroupStatementBuilder
impl Send for ManagedRuleGroupStatementBuilder
impl Sync for ManagedRuleGroupStatementBuilder
impl Unpin for ManagedRuleGroupStatementBuilder
impl UnwindSafe for ManagedRuleGroupStatementBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more