Interface CfnSecurityProfileProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnSecurityProfileProps.Jsii$Proxy
CfnSecurityProfile.
Example:
// 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.*;
CfnSecurityProfileProps cfnSecurityProfileProps = CfnSecurityProfileProps.builder()
.additionalMetricsToRetainV2(List.of(MetricToRetainProperty.builder()
.metric("metric")
// the properties below are optional
.exportMetric(false)
.metricDimension(MetricDimensionProperty.builder()
.dimensionName("dimensionName")
// the properties below are optional
.operator("operator")
.build())
.build()))
.alertTargets(Map.of(
"alertTargetsKey", AlertTargetProperty.builder()
.alertTargetArn("alertTargetArn")
.roleArn("roleArn")
.build()))
.behaviors(List.of(BehaviorProperty.builder()
.name("name")
// the properties below are optional
.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")
// the properties below are optional
.operator("operator")
.build())
.suppressAlerts(false)
.build()))
.metricsExportConfig(MetricsExportConfigProperty.builder()
.mqttTopic("mqttTopic")
.roleArn("roleArn")
.build())
.securityProfileDescription("securityProfileDescription")
.securityProfileName("securityProfileName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.targetArns(List.of("targetArns"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnSecurityProfilePropsstatic final classAn implementation forCfnSecurityProfileProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectA list of metrics whose data is retained (stored).default ObjectSpecifies the destinations to which alerts are sent.default ObjectSpecifies the behaviors that, when violated by a device (thing), cause an alert.default ObjectSpecifies the MQTT topic and role ARN required for metric export.default StringA description of the security profile.default StringThe name you gave to the security profile.getTags()Metadata that can be used to manage the security profile.The ARN of the target (thing group) to which the security profile is attached.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAdditionalMetricsToRetainV2
A list of metrics whose data is retained (stored).By default, data is retained for any metric used in the profile's
behaviors, but it's also retained for any metric specified here. Can be used with custom metrics; can't be used with dimensions.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnSecurityProfile.MetricToRetainProperty>- See Also:
-
getAlertTargets
Specifies the destinations to which alerts are sent.(Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.
Returns union: either
IResolvableor Mapinvalid input: '<'String, eitherIResolvableorCfnSecurityProfile.AlertTargetProperty>- See Also:
-
getBehaviors
Specifies the behaviors that, when violated by a device (thing), cause an alert.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnSecurityProfile.BehaviorProperty>- See Also:
-
getMetricsExportConfig
Specifies the MQTT topic and role ARN required for metric export.Returns union: either
IResolvableorCfnSecurityProfile.MetricsExportConfigProperty- See Also:
-
getSecurityProfileDescription
A description of the security profile.- See Also:
-
getSecurityProfileName
The name you gave to the security profile.- See Also:
-
getTags
Metadata that can be used to manage the security profile.- See Also:
-
getTargetArns
The ARN of the target (thing group) to which the security profile is attached.- See Also:
-
builder
- Returns:
- a
CfnSecurityProfileProps.BuilderofCfnSecurityProfileProps
-