AWS::IoT::SecurityProfileUse the `AWS::IoT::SecurityProfile` resource to create a Device Defender security profile. For API reference, see [CreateSecurityProfile](https://docs.aws.amazon.com/iot/latest/apireference/API_CreateSecurityProfile.html) and for general information, see [Detect](https://docs.aws.amazon.com/iot/latest/developerguide/device-defender-detect.html) .
import { CfnSecurityProfile } from 'aws-cdk-lib/aws-iot';Or use the module namespace:
import * as iot from 'aws-cdk-lib/aws-iot';
// iot.CfnSecurityProfileConfiguration passed to the constructor as CfnSecurityProfileProps.
additionalMetricsToRetainV2OptionalIResolvable | IResolvable | MetricToRetainProperty[]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.
alertTargetsOptionalIResolvable | { [key: string]: IResolvable | AlertTargetProperty }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.
behaviorsOptionalIResolvable | IResolvable | BehaviorProperty[]Specifies the behaviors that, when violated by a device (thing), cause an alert.
metricsExportConfigOptionalIResolvable | MetricsExportConfigPropertySpecifies the MQTT topic and role ARN required for metric export.
securityProfileDescriptionOptionalstringA description of the security profile.
securityProfileNameOptionalstringThe name you gave to the security profile.
tagsOptionalCfnTag[]Metadata that can be used to manage the security profile.
targetArnsOptionalstring[]The ARN of the target (thing group) to which the security profile is attached.
This L1 construct maps directly to the following CloudFormation resource type.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-iotAWS::IoT::SecurityProfile