> End of support notice: On Oct 9, 2025, AWS will end support for Amazon Lookout for Metrics. After Oct 9, 2025, you will no longer be able to access the Amazon Lookout for Metrics console or Amazon Lookout for Metrics resources. For more information, see [Amazon Lookout for Metrics end of support](https://docs.aws.amazon.com//blogs/machine-learning/transitioning-off-amazon-lookout-for-metrics/) . The `AWS::LookoutMetrics::Alert` type creates an alert for an anomaly detector.
import { CfnAlert } from 'aws-cdk-lib/aws-lookoutmetrics';Or use the module namespace:
import * as lookoutmetrics from 'aws-cdk-lib/aws-lookoutmetrics';
// lookoutmetrics.CfnAlertConfiguration passed to the constructor as CfnAlertProps.
actionRequiredIResolvable | ActionPropertyAction that will be triggered when there is an alert.
alertSensitivityThresholdRequirednumberAn integer from 0 to 100 specifying the alert sensitivity threshold.
anomalyDetectorArnRequiredstringThe ARN of the detector to which the alert is attached.
alertDescriptionOptionalstringA description of the alert.
alertNameOptionalstringThe name of the alert.
Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.
Subscribe to Newsletteraws-lookoutmetrics