diff --git a/packages/aws-cdk-lib/aws-cloudwatch/lib/dashboard.ts b/packages/aws-cdk-lib/aws-cloudwatch/lib/dashboard.ts index 2cf844c734ca3..bf11d4b055d55 100644 --- a/packages/aws-cdk-lib/aws-cloudwatch/lib/dashboard.ts +++ b/packages/aws-cdk-lib/aws-cloudwatch/lib/dashboard.ts @@ -37,9 +37,11 @@ export interface DashboardProps { * Interval duration for metrics. * You can specify defaultInterval with the relative time(eg. cdk.Duration.days(7)). * + * Both properties `defaultInterval` and `start` cannot be set at once. + * * @default When the dashboard loads, the defaultInterval time will be the default time range. */ - readonly defaultInterval?: Duration + readonly defaultInterval?: Duration; /** * The start of the time range to use for each widget on the dashboard. @@ -49,6 +51,8 @@ export interface DashboardProps { * You can also use start along with an end field, to specify an absolute time range. * When specifying an absolute time range, use the ISO 8601 format. For example, 2018-12-17T06:00:00.000Z. * + * Both properties `defaultInterval` and `start` cannot be set at once. + * * @default When the dashboard loads, the start time will be the default time range. */ readonly start?: string;