# QueryProperty

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

- Source: Generated code
- Type last changed: v2.277.0 · 13 Nov 2026

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cloudwatch as cloudwatch } from 'aws-cdk-lib';
const queryProperty: cloudwatch.CfnAlert.QueryProperty = {
  expression: 'expression',
  language: 'language',
};
```

## Properties

- `expression`: string (required) — The query expression.

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

- `language`: string (required) — The query language.

  Valid values: SQL, PROMQL.
