#[non_exhaustive]pub struct AwsManagedRulesBotControlRuleSetBuilder { /* private fields */ }
Expand description
A builder for AwsManagedRulesBotControlRuleSet
.
Implementations§
source§impl AwsManagedRulesBotControlRuleSetBuilder
impl AwsManagedRulesBotControlRuleSetBuilder
sourcepub fn inspection_level(self, input: InspectionLevel) -> Self
pub fn inspection_level(self, input: InspectionLevel) -> Self
The inspection level to use for the Bot Control rule group. The common level is the least expensive. The targeted level includes all common level rules and adds rules with more advanced inspection criteria. For details, see WAF Bot Control rule group in the WAF Developer Guide.
This field is required.sourcepub fn set_inspection_level(self, input: Option<InspectionLevel>) -> Self
pub fn set_inspection_level(self, input: Option<InspectionLevel>) -> Self
The inspection level to use for the Bot Control rule group. The common level is the least expensive. The targeted level includes all common level rules and adds rules with more advanced inspection criteria. For details, see WAF Bot Control rule group in the WAF Developer Guide.
sourcepub fn get_inspection_level(&self) -> &Option<InspectionLevel>
pub fn get_inspection_level(&self) -> &Option<InspectionLevel>
The inspection level to use for the Bot Control rule group. The common level is the least expensive. The targeted level includes all common level rules and adds rules with more advanced inspection criteria. For details, see WAF Bot Control rule group in the WAF Developer Guide.
sourcepub fn enable_machine_learning(self, input: bool) -> Self
pub fn enable_machine_learning(self, input: bool) -> Self
Applies only to the targeted inspection level.
Determines whether to use machine learning (ML) to analyze your web traffic for bot-related activity. Machine learning is required for the Bot Control rules TGT_ML_CoordinatedActivityLow
and TGT_ML_CoordinatedActivityMedium
, which inspect for anomalous behavior that might indicate distributed, coordinated bot activity.
For more information about this choice, see the listing for these rules in the table at Bot Control rules listing in the WAF Developer Guide.
Default: TRUE
sourcepub fn set_enable_machine_learning(self, input: Option<bool>) -> Self
pub fn set_enable_machine_learning(self, input: Option<bool>) -> Self
Applies only to the targeted inspection level.
Determines whether to use machine learning (ML) to analyze your web traffic for bot-related activity. Machine learning is required for the Bot Control rules TGT_ML_CoordinatedActivityLow
and TGT_ML_CoordinatedActivityMedium
, which inspect for anomalous behavior that might indicate distributed, coordinated bot activity.
For more information about this choice, see the listing for these rules in the table at Bot Control rules listing in the WAF Developer Guide.
Default: TRUE
sourcepub fn get_enable_machine_learning(&self) -> &Option<bool>
pub fn get_enable_machine_learning(&self) -> &Option<bool>
Applies only to the targeted inspection level.
Determines whether to use machine learning (ML) to analyze your web traffic for bot-related activity. Machine learning is required for the Bot Control rules TGT_ML_CoordinatedActivityLow
and TGT_ML_CoordinatedActivityMedium
, which inspect for anomalous behavior that might indicate distributed, coordinated bot activity.
For more information about this choice, see the listing for these rules in the table at Bot Control rules listing in the WAF Developer Guide.
Default: TRUE
sourcepub fn build(self) -> Result<AwsManagedRulesBotControlRuleSet, BuildError>
pub fn build(self) -> Result<AwsManagedRulesBotControlRuleSet, BuildError>
Consumes the builder and constructs a AwsManagedRulesBotControlRuleSet
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for AwsManagedRulesBotControlRuleSetBuilder
impl Clone for AwsManagedRulesBotControlRuleSetBuilder
source§fn clone(&self) -> AwsManagedRulesBotControlRuleSetBuilder
fn clone(&self) -> AwsManagedRulesBotControlRuleSetBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for AwsManagedRulesBotControlRuleSetBuilder
impl Default for AwsManagedRulesBotControlRuleSetBuilder
source§fn default() -> AwsManagedRulesBotControlRuleSetBuilder
fn default() -> AwsManagedRulesBotControlRuleSetBuilder
source§impl PartialEq for AwsManagedRulesBotControlRuleSetBuilder
impl PartialEq for AwsManagedRulesBotControlRuleSetBuilder
source§fn eq(&self, other: &AwsManagedRulesBotControlRuleSetBuilder) -> bool
fn eq(&self, other: &AwsManagedRulesBotControlRuleSetBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for AwsManagedRulesBotControlRuleSetBuilder
Auto Trait Implementations§
impl Freeze for AwsManagedRulesBotControlRuleSetBuilder
impl RefUnwindSafe for AwsManagedRulesBotControlRuleSetBuilder
impl Send for AwsManagedRulesBotControlRuleSetBuilder
impl Sync for AwsManagedRulesBotControlRuleSetBuilder
impl Unpin for AwsManagedRulesBotControlRuleSetBuilder
impl UnwindSafe for AwsManagedRulesBotControlRuleSetBuilder
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