@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.894Z") @Stability(value=Stable) public interface CfnSecurityProfileProps extends software.amazon.jsii.JsiiSerializable
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
.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())
.metric("metric")
.metricDimension(MetricDimensionProperty.builder()
.dimensionName("dimensionName")
// the properties below are optional
.operator("operator")
.build())
.suppressAlerts(false)
.build()))
.securityProfileDescription("securityProfileDescription")
.securityProfileName("securityProfileName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.targetArns(List.of("targetArns"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnSecurityProfileProps.Builder
A builder for
CfnSecurityProfileProps |
static class |
CfnSecurityProfileProps.Jsii$Proxy
An implementation for
CfnSecurityProfileProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnSecurityProfileProps.Builder |
builder() |
default Object |
getAdditionalMetricsToRetainV2()
A list of metrics whose data is retained (stored).
|
default Object |
getAlertTargets()
Specifies the destinations to which alerts are sent.
|
default Object |
getBehaviors()
Specifies the behaviors that, when violated by a device (thing), cause an alert.
|
default String |
getSecurityProfileDescription()
A description of the security profile.
|
default String |
getSecurityProfileName()
The name you gave to the security profile.
|
default List<CfnTag> |
getTags()
Metadata that can be used to manage the security profile.
|
default List<String> |
getTargetArns()
The ARN of the target (thing group) to which the security profile is attached.
|
@Stability(value=Stable) @Nullable default Object getAdditionalMetricsToRetainV2()
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.
@Stability(value=Stable) @Nullable default Object getAlertTargets()
(Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.
@Stability(value=Stable) @Nullable default Object getBehaviors()
@Stability(value=Stable) @Nullable default String getSecurityProfileDescription()
@Stability(value=Stable) @Nullable default String getSecurityProfileName()
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
@Stability(value=Stable) @Nullable default List<String> getTargetArns()
@Stability(value=Stable) static CfnSecurityProfileProps.Builder builder()
CfnSecurityProfileProps.Builder of CfnSecurityProfilePropsCopyright © 2022. All rights reserved.