Skip to content

Commit

Permalink
CR Changes: Default to undefined for an autogenerated AWS name
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamJHall committed Jul 16, 2024
1 parent 6fcaf99 commit 92262b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/graphql-mesh-server/lib/graphql-mesh-server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ export type MeshHostingProps = {
/**
* Specify a name for the dashboard
*
* @default - {stackName}-Mesh-Dashboard
* @default - AWS Generated name
*/
dashboardName?: string;
};
Expand Down
3 changes: 1 addition & 2 deletions packages/graphql-mesh-server/lib/metrics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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],
Expand Down

0 comments on commit 92262b5

Please sign in to comment.