Class CfnSecurityProfile.BehaviorProperty
A Device Defender security profile behavior.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.IoT
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class BehaviorProperty : Object, CfnSecurityProfile.IBehaviorProperty
Syntax (vb)
Public Class BehaviorProperty
Inherits Object
Implements CfnSecurityProfile.IBehaviorProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// 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 behaviorProperty = new BehaviorProperty {
Name = "name",
// the properties below are optional
Criteria = new BehaviorCriteriaProperty {
ComparisonOperator = "comparisonOperator",
ConsecutiveDatapointsToAlarm = 123,
ConsecutiveDatapointsToClear = 123,
DurationSeconds = 123,
MlDetectionConfig = new MachineLearningDetectionConfigProperty {
ConfidenceLevel = "confidenceLevel"
},
StatisticalThreshold = new StatisticalThresholdProperty {
Statistic = "statistic"
},
Value = new MetricValueProperty {
Cidrs = new [] { "cidrs" },
Count = "count",
Number = 123,
Numbers = new [] { 123 },
Ports = new [] { 123 },
Strings = new [] { "strings" }
}
},
ExportMetric = false,
Metric = "metric",
MetricDimension = new MetricDimensionProperty {
DimensionName = "dimensionName",
// the properties below are optional
Operator = "operator"
},
SuppressAlerts = false
};
Synopsis
Constructors
BehaviorProperty() |
Properties
Criteria | The criteria that determine if a device is behaving normally in regard to the |
ExportMetric | Value indicates exporting metrics related to the behavior when it is true. |
Metric | What is measured by the behavior. |
MetricDimension | The dimension of the metric. |
Name | The name you've given to the behavior. |
SuppressAlerts | The alert status. |
Constructors
BehaviorProperty()
public BehaviorProperty()
Properties
Criteria
The criteria that determine if a device is behaving normally in regard to the metric
.
public object Criteria { get; set; }
Property Value
System.Object
Remarks
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
Value indicates exporting metrics related to the behavior when it is true.
public object ExportMetric { get; set; }
Property Value
System.Object
Remarks
Metric
What is measured by the behavior.
public string Metric { get; set; }
Property Value
System.String
Remarks
MetricDimension
The dimension of the metric.
public object MetricDimension { get; set; }
Property Value
System.Object
Remarks
Name
The name you've given to the behavior.
public string Name { get; set; }
Property Value
System.String
Remarks
SuppressAlerts
The alert status.
public object SuppressAlerts { get; set; }
Property Value
System.Object
Remarks
If you set the value to true
, alerts will be suppressed.