Class: AWSCDK::WAFv2::CfnWebACL::AWSManagedRulesBotControlRuleSetProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::WAFv2::CfnWebACL::AWSManagedRulesBotControlRuleSetProperty
- Defined in:
- wa_fv2/cfn_web_acl.rb
Overview
Details for your use of the Bot Control managed rule group, AWSManagedRulesBotControlRuleSet .
This configuration is used in ManagedRuleGroupConfig .
For additional information about this and the other intelligent threat mitigation rule groups, see Intelligent threat mitigation in AWS WAF and AWS Managed Rules rule groups list in the AWS WAF Developer Guide .
Instance Attribute Summary collapse
-
#enable_machine_learning ⇒ Boolean, ...
readonly
Applies only to the targeted inspection level.
-
#inspection_level ⇒ String
readonly
The inspection level to use for the Bot Control rule group.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(inspection_level:, enable_machine_learning: nil) ⇒ AWSManagedRulesBotControlRuleSetProperty
constructor
A new instance of AWSManagedRulesBotControlRuleSetProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(inspection_level:, enable_machine_learning: nil) ⇒ AWSManagedRulesBotControlRuleSetProperty
Returns a new instance of AWSManagedRulesBotControlRuleSetProperty.
1001 1002 1003 1004 1005 1006 |
# File 'wa_fv2/cfn_web_acl.rb', line 1001 def initialize(inspection_level:, enable_machine_learning: nil) @inspection_level = inspection_level Jsii::Type.check_type(@inspection_level, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "inspectionLevel") @enable_machine_learning = enable_machine_learning Jsii::Type.check_type(@enable_machine_learning, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enableMachineLearning") unless @enable_machine_learning.nil? end |
Instance Attribute Details
#enable_machine_learning ⇒ Boolean, ... (readonly)
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 AWS WAF Developer Guide .
Default: TRUE
1026 1027 1028 |
# File 'wa_fv2/cfn_web_acl.rb', line 1026 def enable_machine_learning @enable_machine_learning end |
#inspection_level ⇒ String (readonly)
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 AWS WAF Bot Control rule group in the AWS WAF Developer Guide .
1014 1015 1016 |
# File 'wa_fv2/cfn_web_acl.rb', line 1014 def inspection_level @inspection_level end |
Class Method Details
.jsii_properties ⇒ Object
1028 1029 1030 1031 1032 1033 |
# File 'wa_fv2/cfn_web_acl.rb', line 1028 def self.jsii_properties { :inspection_level => "inspectionLevel", :enable_machine_learning => "enableMachineLearning", } end |
Instance Method Details
#to_jsii ⇒ Object
1035 1036 1037 1038 1039 1040 1041 1042 |
# File 'wa_fv2/cfn_web_acl.rb', line 1035 def to_jsii result = {} result.merge!({ "inspectionLevel" => @inspection_level, "enableMachineLearning" => @enable_machine_learning, }) result.compact end |