Interface CfnSecurityProfilePropsMixin.BehaviorProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnSecurityProfilePropsMixin.BehaviorProperty.Jsii$Proxy
- Enclosing class:
CfnSecurityProfilePropsMixin
@Stability(Stable)
public static interface CfnSecurityProfilePropsMixin.BehaviorProperty
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.cfnpropertymixins.services.iot.*;
BehaviorProperty behaviorProperty = BehaviorProperty.builder()
.criteria(BehaviorCriteriaProperty.builder()
.comparisonOperator("comparisonOperator")
.consecutiveDatapointsToAlarm(123)
.consecutiveDatapointsToClear(123)
.durationSeconds(123)
.mlDetectionConfig(MachineLearningDetectionConfigProperty.builder()
.confidenceLevel("confidenceLevel")
.build())
.statisticalThreshold(StatisticalThresholdProperty.builder()
.statistic("statistic")
.build())
.value(MetricValueProperty.builder()
.cidrs(List.of("cidrs"))
.count("count")
.number(123)
.numbers(List.of(123))
.ports(List.of(123))
.strings(List.of("strings"))
.build())
.build())
.exportMetric(false)
.metric("metric")
.metricDimension(MetricDimensionProperty.builder()
.dimensionName("dimensionName")
.operator("operator")
.build())
.name("name")
.suppressAlerts(false)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnSecurityProfilePropsMixin.BehaviorPropertystatic final classAn implementation forCfnSecurityProfilePropsMixin.BehaviorProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThe criteria that determine if a device is behaving normally in regard to themetric.default ObjectValue indicates exporting metrics related to the behavior when it is true.default StringWhat is measured by the behavior.default ObjectThe dimension of the metric.default StringgetName()The name you've given to the behavior.default ObjectThe alert status.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCriteria
The criteria that determine if a device is behaving normally in regard to themetric.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.
Returns union: either
IResolvableorCfnSecurityProfilePropsMixin.BehaviorCriteriaProperty- See Also:
-
getExportMetric
Value indicates exporting metrics related to the behavior when it is true.Returns union: either
BooleanorIResolvable- See Also:
-
getMetric
What is measured by the behavior.- See Also:
-
getMetricDimension
The dimension of the metric.Returns union: either
IResolvableorCfnSecurityProfilePropsMixin.MetricDimensionProperty- See Also:
-
getName
The name you've given to the behavior.- See Also:
-
getSuppressAlerts
The alert status.If you set the value to
true, alerts will be suppressed.Returns union: either
BooleanorIResolvable- See Also:
-
builder
-