View a markdown version of this page

AWS::CloudWatch::Alert Query - Amazon CloudFormation
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.

AWS::CloudWatch::Alert Query

The query the alert runs, and the language it is written in.

Syntax

To declare this entity in your Amazon CloudFormation template, use the following syntax:

JSON

{ "Expression" : String, "Language" : String }

YAML

Expression: String Language: String

Properties

Expression

The query expression. For PromQL, the series value is returned in a field named value.

Required: Yes

Type: String

Minimum: 1

Maximum: 10000

Update requires: No interruption

Language

The query language. Valid values: SQL, PROMQL.

Required: Yes

Type: String

Allowed values: SQL | PROMQL

Update requires: No interruption