@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.890Z") @Stability(value=Stable) public class CfnSecurityProfile extends CfnResource implements IInspectable
Use the AWS::IoT::SecurityProfile resource to create a Device Defender security profile. For API reference, see CreateSecurityProfile and for general information, see Detect .
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.*;
CfnSecurityProfile cfnSecurityProfile = CfnSecurityProfile.Builder.create(this, "MyCfnSecurityProfile")
.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 | Class and Description |
|---|---|
static interface |
CfnSecurityProfile.AlertTargetProperty
A structure containing the alert target ARN and the role ARN.
|
static interface |
CfnSecurityProfile.BehaviorCriteriaProperty
The criteria by which the behavior is determined to be normal.
|
static interface |
CfnSecurityProfile.BehaviorProperty
A Device Defender security profile behavior.
|
static class |
CfnSecurityProfile.Builder
A fluent builder for
CfnSecurityProfile. |
static interface |
CfnSecurityProfile.MachineLearningDetectionConfigProperty
The `MachineLearningDetectionConfig` property type controls confidence of the machine learning model.
|
static interface |
CfnSecurityProfile.MetricDimensionProperty
The dimension of the metric.
|
static interface |
CfnSecurityProfile.MetricToRetainProperty
The metric you want to retain.
|
static interface |
CfnSecurityProfile.MetricValueProperty
The value to be compared with the `metric` .
|
static interface |
CfnSecurityProfile.StatisticalThresholdProperty
A statistical ranking (percentile) that indicates a threshold value by which a behavior is determined to be in compliance or in violation of the behavior.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnSecurityProfile(software.constructs.Construct scope,
String id)
Create a new `AWS::IoT::SecurityProfile`.
|
|
CfnSecurityProfile(software.constructs.Construct scope,
String id,
CfnSecurityProfileProps props)
Create a new `AWS::IoT::SecurityProfile`.
|
protected |
CfnSecurityProfile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnSecurityProfile(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAdditionalMetricsToRetainV2()
A list of metrics whose data is retained (stored).
|
Object |
getAlertTargets()
Specifies the destinations to which alerts are sent.
|
String |
getAttrSecurityProfileArn()
The Amazon Resource Name (ARN) of the security profile.
|
Object |
getBehaviors()
Specifies the behaviors that, when violated by a device (thing), cause an alert.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getSecurityProfileDescription()
A description of the security profile.
|
String |
getSecurityProfileName()
The name you gave to the security profile.
|
TagManager |
getTags()
Metadata that can be used to manage the security profile.
|
List<String> |
getTargetArns()
The ARN of the target (thing group) to which the security profile is attached.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAdditionalMetricsToRetainV2(IResolvable value)
A list of metrics whose data is retained (stored).
|
void |
setAdditionalMetricsToRetainV2(List<Object> value)
A list of metrics whose data is retained (stored).
|
void |
setAlertTargets(IResolvable value)
Specifies the destinations to which alerts are sent.
|
void |
setAlertTargets(Map<String,Object> value)
Specifies the destinations to which alerts are sent.
|
void |
setBehaviors(IResolvable value)
Specifies the behaviors that, when violated by a device (thing), cause an alert.
|
void |
setBehaviors(List<Object> value)
Specifies the behaviors that, when violated by a device (thing), cause an alert.
|
void |
setSecurityProfileDescription(String value)
A description of the security profile.
|
void |
setSecurityProfileName(String value)
The name you gave to the security profile.
|
void |
setTargetArns(List<String> value)
The ARN of the target (thing group) to which the security profile is attached.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnSecurityProfile(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnSecurityProfile(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnSecurityProfile(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@Nullable
CfnSecurityProfileProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties.@Stability(value=Stable)
public CfnSecurityProfile(@NotNull
software.constructs.Construct scope,
@NotNull
String id)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrSecurityProfileArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @Nullable public 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)
public void setAdditionalMetricsToRetainV2(@Nullable
IResolvable value)
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)
public void setAdditionalMetricsToRetainV2(@Nullable
List<Object> value)
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 public Object getAlertTargets()
(Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.
@Stability(value=Stable)
public void setAlertTargets(@Nullable
IResolvable value)
(Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.
@Stability(value=Stable)
public void setAlertTargets(@Nullable
Map<String,Object> value)
(Alerts are always sent to the console.) Alerts are generated when a device (thing) violates a behavior.
@Stability(value=Stable) @Nullable public Object getBehaviors()
@Stability(value=Stable)
public void setBehaviors(@Nullable
IResolvable value)
@Stability(value=Stable)
public void setBehaviors(@Nullable
List<Object> value)
@Stability(value=Stable) @Nullable public String getSecurityProfileDescription()
@Stability(value=Stable)
public void setSecurityProfileDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getSecurityProfileName()
@Stability(value=Stable)
public void setSecurityProfileName(@Nullable
String value)
@Stability(value=Stable) @Nullable public List<String> getTargetArns()
Copyright © 2022. All rights reserved.