# AlarmStatusWidgetProps

Properties for an Alarm Status Widget.

Extends: AlarmStatusWidgetProps
Used as props by: AlarmStatusWidget

- Source: [`aws-cloudwatch/lib/alarm-status-widget.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/aws-cloudwatch/lib/alarm-status-widget.ts#L33)
- Type last changed: v2.234.0 · 8 Jan 2026

## Example

```ts
declare const dashboard: cloudwatch.Dashboard;
declare const errorAlarm: cloudwatch.Alarm;

dashboard.addWidgets(
  new cloudwatch.AlarmStatusWidget({
    alarms: [errorAlarm],
  })
);
```

## Properties

- `alarms`: [IAlarmRef](/cdk/api/v2/docs/aws-cdk-lib.interfaces.aws_cloudwatch.IAlarmRef.html)[] (required) — CloudWatch Alarms to show in widget.

- `height`: number = 3 — Height of the widget.

- `sortBy`: [AlarmStatusWidgetSortBy](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.AlarmStatusWidgetSortBy.html) — Specifies how to sort the alarms in the widget.

  **Default:** alphabetical order

- `states`: [AlarmState](/cdk/api/v2/docs/aws-cdk-lib.aws_cloudwatch.AlarmState.html)[] — Use this field to filter the list of alarms displayed in the widget to only those alarms currently in the specified states.

  **Default:** all the alarms specified in alarms are displayed.

  You can specify one or more alarm states in the value for this field.
  The alarm states that you can specify are ALARM, INSUFFICIENT_DATA, and OK.

  If you omit this field or specify an empty array, all the alarms specified in alarms are displayed.

- `title`: string — The title of the widget.

  **Default:** 'Alarm Status'

- `width`: number = 6 — Width of the widget, in a grid of 24 units wide.
