# MachineLearningDetectionConfigProperty

The `MachineLearningDetectionConfig` property type controls confidence of the machine learning model.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 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_iot as iot } from 'aws-cdk-lib';
const machineLearningDetectionConfigProperty: iot.CfnSecurityProfile.MachineLearningDetectionConfigProperty = {
  confidenceLevel: 'confidenceLevel',
};
```

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_iot as iot

machine_learning_detection_config_property = iot.CfnSecurityProfile.MachineLearningDetectionConfigProperty(
    confidence_level="confidenceLevel"
)
```

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.iot.*;

MachineLearningDetectionConfigProperty machineLearningDetectionConfigProperty = MachineLearningDetectionConfigProperty.builder()
        .confidenceLevel("confidenceLevel")
        .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.IoT;

var machineLearningDetectionConfigProperty = new MachineLearningDetectionConfigProperty {
    ConfidenceLevel = "confidenceLevel"
};
```

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"

machineLearningDetectionConfigProperty := &MachineLearningDetectionConfigProperty{
	ConfidenceLevel: jsii.String("confidenceLevel"),
}
```

## Properties

- `confidenceLevel`: string — The model confidence level.

  There are three levels of confidence, `"high"` , `"medium"` , and `"low"` .

  The higher the confidence level, the lower the sensitivity, and the lower the alarm frequency will be.
