AWS Fundamentals Logo
AWS Fundamentals
L1 Construct

CfnAlert

> 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

import { CfnAlert } from 'aws-cdk-lib/aws-lookoutmetrics';

Or use the module namespace:

import * as lookoutmetrics from 'aws-cdk-lib/aws-lookoutmetrics';
// lookoutmetrics.CfnAlert

Properties

Configuration passed to the constructor as CfnAlertProps.

actionRequired
IResolvable | ActionProperty

Action that will be triggered when there is an alert.

alertSensitivityThresholdRequired
number

An integer from 0 to 100 specifying the alert sensitivity threshold.

anomalyDetectorArnRequired
string

The ARN of the detector to which the alert is attached.

alertDescriptionOptional
string

A description of the alert.

alertNameOptional
string

The name of the alert.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-lookoutmetrics
Properties5

Related Constructs

External Links