interface BehaviorProperty
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.IoT.CfnSecurityProfile.BehaviorProperty | 
|  Java | software.amazon.awscdk.services.iot.CfnSecurityProfile.BehaviorProperty | 
|  Python | aws_cdk.aws_iot.CfnSecurityProfile.BehaviorProperty | 
|  TypeScript | @aws-cdk/aws-iot»CfnSecurityProfile»BehaviorProperty | 
A Device Defender security profile behavior.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as iot from '@aws-cdk/aws-iot';
const behaviorProperty: iot.CfnSecurityProfile.BehaviorProperty = {
  name: 'name',
  // the properties below are optional
  criteria: {
    comparisonOperator: 'comparisonOperator',
    consecutiveDatapointsToAlarm: 123,
    consecutiveDatapointsToClear: 123,
    durationSeconds: 123,
    mlDetectionConfig: {
      confidenceLevel: 'confidenceLevel',
    },
    statisticalThreshold: {
      statistic: 'statistic',
    },
    value: {
      cidrs: ['cidrs'],
      count: 'count',
      number: 123,
      numbers: [123],
      ports: [123],
      strings: ['strings'],
    },
  },
  metric: 'metric',
  metricDimension: {
    dimensionName: 'dimensionName',
    // the properties below are optional
    operator: 'operator',
  },
  suppressAlerts: false,
};
Properties
| Name | Type | Description | 
|---|---|---|
| name | string | The name you've given to the behavior. | 
| criteria? | IResolvable | Behavior | The criteria that determine if a device is behaving normally in regard to the metric. | 
| metric? | string | What is measured by the behavior. | 
| metric | IResolvable | Metric | The dimension of the metric. | 
| suppress | boolean | IResolvable | The alert status. | 
name
Type:
string
The name you've given to the behavior.
criteria?
Type:
IResolvable | Behavior
(optional)
The criteria that determine if a device is behaving normally in regard to the metric .
metric?
Type:
string
(optional)
What is measured by the behavior.
metricDimension?
Type:
IResolvable | Metric
(optional)
The dimension of the metric.
suppressAlerts?
Type:
boolean | IResolvable
(optional)
The alert status.
If you set the value to true , alerts will be suppressed.
