From 92262b577db95e816b6cb9fc8de56f20d5546e7c Mon Sep 17 00:00:00 2001 From: Adam Hall Date: Tue, 16 Jul 2024 13:11:54 +0930 Subject: [PATCH] CR Changes: Default to undefined for an autogenerated AWS name --- packages/graphql-mesh-server/lib/graphql-mesh-server.ts | 2 +- packages/graphql-mesh-server/lib/metrics.ts | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/packages/graphql-mesh-server/lib/graphql-mesh-server.ts b/packages/graphql-mesh-server/lib/graphql-mesh-server.ts index fe9733c3..0205e64a 100644 --- a/packages/graphql-mesh-server/lib/graphql-mesh-server.ts +++ b/packages/graphql-mesh-server/lib/graphql-mesh-server.ts @@ -223,7 +223,7 @@ export type MeshHostingProps = { /** * Specify a name for the dashboard * - * @default - {stackName}-Mesh-Dashboard + * @default - AWS Generated name */ dashboardName?: string; }; diff --git a/packages/graphql-mesh-server/lib/metrics.ts b/packages/graphql-mesh-server/lib/metrics.ts index b89e6a1a..bed81aa1 100644 --- a/packages/graphql-mesh-server/lib/metrics.ts +++ b/packages/graphql-mesh-server/lib/metrics.ts @@ -356,8 +356,7 @@ export class PerformanceMetrics extends Construct { // Create the dashboard new Dashboard(this, "dashboard", { - dashboardName: - props.dashboardName ?? Stack.of(this).stackName + "-Mesh-Dashboard", + dashboardName: props.dashboardName, widgets: [ [new Column(...loadBalancerWidgets), new Column(...wafWidgets)], [meshPerformanceLabel],