# CfnDashboardProps

Properties for defining a `CfnDashboard`.

Extends: CfnDashboardProps
Used as props by: CfnDashboard

- Source: Generated code
- Type last changed: v2.257.0 · 21 May 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 cfnDashboardProps: cloudwatch.CfnDashboardProps = {
  dashboardBody: 'dashboardBody',

  // the properties below are optional
  dashboardName: 'dashboardName',
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

## Properties

- `dashboardBody`: string (required) — The detailed information about the dashboard in JSON format, including the widgets to include and their location on the dashboard.

  This parameter is required.

  For more information about the syntax, see [Dashboard Body Structure and Syntax](https://docs.aws.amazon.com/AmazonCloudWatch/latest/APIReference/CloudWatch-Dashboard-Body-Structure.html) .

- `dashboardName`: string — The name of the dashboard.

  The name must be between 1 and 255 characters. If you do not specify a name, one will be generated automatically.

- `tags`: [CfnTag](/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — A list of key-value pairs to associate with the cloudwatch dashboard.

  You can associate up to 50 tags with a dashboard
