# AWSManagedRulesBotControlRuleSetProperty

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](https://docs.aws.amazon.com/waf/latest/developerguide/waf-managed-protections) and [AWS Managed Rules rule groups list](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-list) in the *AWS WAF Developer Guide* .

- Source: Generated at build time
- Type last changed: v2.103.0 · 26 Oct 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_wafv2 as wafv2 } from 'aws-cdk-lib';
const aWSManagedRulesBotControlRuleSetProperty: wafv2.CfnWebACL.AWSManagedRulesBotControlRuleSetProperty = {
  inspectionLevel: 'inspectionLevel',

  // the properties below are optional
  enableMachineLearning: false,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_wafv2 as wafv2

a_ws_managed_rules_bot_control_rule_set_property = wafv2.CfnWebACL.AWSManagedRulesBotControlRuleSetProperty(
    inspection_level="inspectionLevel",

    # the properties below are optional
    enable_machine_learning=False
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.wafv2.*;

AWSManagedRulesBotControlRuleSetProperty aWSManagedRulesBotControlRuleSetProperty = AWSManagedRulesBotControlRuleSetProperty.builder()
        .inspectionLevel("inspectionLevel")

        // the properties below are optional
        .enableMachineLearning(false)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.WAFv2;

var aWSManagedRulesBotControlRuleSetProperty = new AWSManagedRulesBotControlRuleSetProperty {
    InspectionLevel = "inspectionLevel",

    // the properties below are optional
    EnableMachineLearning = false
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

aWSManagedRulesBotControlRuleSetProperty := &AWSManagedRulesBotControlRuleSetProperty{
	InspectionLevel: jsii.String("inspectionLevel"),

	// the properties below are optional
	EnableMachineLearning: jsii.Boolean(false),
}
```

## Properties

- `enableMachineLearning`: boolean | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — 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](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-bot.html#aws-managed-rule-groups-bot-rules) in the *AWS WAF Developer Guide* .

  Default: `TRUE`

- `inspectionLevel`: string (required) — 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](https://docs.aws.amazon.com/waf/latest/developerguide/aws-managed-rule-groups-bot.html) in the *AWS WAF Developer Guide* .
