From 260e95ad2d35efce3f5e3cf677b4bf21aa1ecdc8 Mon Sep 17 00:00:00 2001 From: Ankcorn Date: Tue, 29 Aug 2023 15:49:01 +0100 Subject: [PATCH] export widget type --- src/config.ts | 2 +- src/resources/dashboard.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/config.ts b/src/config.ts index 0dc5621..2d723ad 100644 --- a/src/config.ts +++ b/src/config.ts @@ -74,7 +74,7 @@ export namespace Baselime { construct = target; baselimeSecret = options.apiKey; serviceName = options.serviceName; - serviceToken = `arn:aws:lambda:${options.region || process.env.CDK_DEPLOY_REGION || "eu-west-1" + serviceToken = `arn:aws:lambda:${options.region || process.env.CDK_DEPLOY_REGION || process.env.CDK_DEFAULT_REGION || "eu-west-1" }:${options._account || "097948374213"}:function:baselime-orl-cloudformation`; defaultChannel = options.defaultChannel; disableStackFilter = options.disableStackFilter; diff --git a/src/resources/dashboard.ts b/src/resources/dashboard.ts index 347ab49..b9d94e9 100644 --- a/src/resources/dashboard.ts +++ b/src/resources/dashboard.ts @@ -3,7 +3,7 @@ import { Baselime as Config } from "../config"; import { DashboardProps } from "../types/dashboard"; import { getServiceName } from "../utils/service-name"; - +export { WidgetType } from "../types/dashboard"; export class Dashboard extends CfnResource { constructor(id: string, props: DashboardProps) {