interface BehaviorProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.IoT.Mixins.CfnSecurityProfilePropsMixin.BehaviorProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsiot/mixins#CfnSecurityProfilePropsMixin_BehaviorProperty |
Java | software.amazon.awscdk.mixins.preview.services.iot.mixins.CfnSecurityProfilePropsMixin.BehaviorProperty |
Python | aws_cdk.mixins_preview.aws_iot.mixins.CfnSecurityProfilePropsMixin.BehaviorProperty |
TypeScript | @aws-cdk/mixins-preview » aws_iot » mixins » CfnSecurityProfilePropsMixin » 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 { mixins as iot_mixins } from '@aws-cdk/mixins-preview/aws-iot';
const behaviorProperty: iot_mixins.CfnSecurityProfilePropsMixin.BehaviorProperty = {
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'],
},
},
exportMetric: false,
metric: 'metric',
metricDimension: {
dimensionName: 'dimensionName',
operator: 'operator',
},
name: 'name',
suppressAlerts: false,
};
Properties
| Name | Type | Description |
|---|---|---|
| criteria? | IResolvable | Behavior | The criteria that determine if a device is behaving normally in regard to the metric . |
| export | boolean | IResolvable | Value indicates exporting metrics related to the behavior when it is true. |
| metric? | string | What is measured by the behavior. |
| metric | IResolvable | Metric | The dimension of the metric. |
| name? | string | The name you've given to the behavior. |
| suppress | boolean | IResolvable | The alert status. |
criteria?
Type:
IResolvable | Behavior
(optional)
The criteria that determine if a device is behaving normally in regard to the metric .
In the AWS IoT console, you can choose to be sent an alert through Amazon SNS when AWS IoT Device Defender detects that a device is behaving anomalously.
exportMetric?
Type:
boolean | IResolvable
(optional)
Value indicates exporting metrics related to the behavior when it is true.
metric?
Type:
string
(optional)
What is measured by the behavior.
metricDimension?
Type:
IResolvable | Metric
(optional)
The dimension of the metric.
name?
Type:
string
(optional)
The name you've given to the behavior.
suppressAlerts?
Type:
boolean | IResolvable
(optional)
The alert status.
If you set the value to true , alerts will be suppressed.

.NET
Go
Java
Python
TypeScript