This is the new AWS CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the AWS CloudFormation User Guide.
AWS::LookoutMetrics::Alert
Note
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
The AWS::LookoutMetrics::Alert type creates an alert for an anomaly detector.
Syntax
To declare this entity in your AWS CloudFormation template, use the following syntax:
JSON
{ "Type" : "AWS::LookoutMetrics::Alert", "Properties" : { "Action" :Action, "AlertDescription" :String, "AlertName" :String, "AlertSensitivityThreshold" :Integer, "AnomalyDetectorArn" :String} }
YAML
Type: AWS::LookoutMetrics::Alert Properties: Action:ActionAlertDescription:StringAlertName:StringAlertSensitivityThreshold:IntegerAnomalyDetectorArn:String
Properties
Action-
Action that will be triggered when there is an alert.
Required: Yes
Type: Action
Update requires: Replacement
AlertDescription-
A description of the alert.
Required: No
Type: String
Pattern:
.*\S.*Maximum:
256Update requires: Replacement
AlertName-
The name of the alert.
Required: No
Type: String
Pattern:
^[a-zA-Z0-9][a-zA-Z0-9\-_]*Minimum:
1Maximum:
63Update requires: Replacement
AlertSensitivityThreshold-
An integer from 0 to 100 specifying the alert sensitivity threshold.
Required: Yes
Type: Integer
Minimum:
0Maximum:
100Update requires: Replacement
AnomalyDetectorArn-
The ARN of the detector to which the alert is attached.
Required: Yes
Type: String
Pattern:
arn:([a-z\d-]+):.*:.*:.*:.+Maximum:
256Update requires: Replacement
Return values
Ref
When you pass the logical ID of this resource to the intrinsic Ref function, Ref returns the resource name.
For more information about using the Ref function, see Ref.
Fn::GetAtt
The Fn::GetAtt intrinsic function returns a value for a specified attribute of this type. The following are the available attributes and sample return values.
For more information about using the Fn::GetAtt intrinsic function, see Fn::GetAtt.
Arn-
The Amazon Resource Name (ARN) of the alert. For example,
arn:aws:lookoutmetrics:us-east-2:123456789012:Alert:my-alert