Class: AWSCDK::WAFv2::CfnWebACL::AWSManagedRulesBotControlRuleSetProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(inspection_level:, enable_machine_learning: nil) ⇒ AWSManagedRulesBotControlRuleSetProperty

Returns a new instance of AWSManagedRulesBotControlRuleSetProperty.

Parameters:

  • inspection_level (String)

    The inspection level to use for the Bot Control rule group.

  • enable_machine_learning (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Applies only to the targeted inspection level.



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_learningBoolean, ... (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_levelString (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_propertiesObject



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_jsiiObject



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