File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed
packages/@aws-cdk/aws-cloudwatch/lib Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -75,6 +75,13 @@ export interface DashboardProps {
7575 * A CloudWatch dashboard
7676 */
7777export class Dashboard extends Resource {
78+ /**
79+ * ARN of this dashboard
80+ *
81+ * @attribute
82+ */
83+ public readonly dashboardArn : string ;
84+
7885 private readonly rows : IWidget [ ] = [ ] ;
7986
8087 constructor ( scope : Construct , id : string , props : DashboardProps = { } ) {
@@ -111,6 +118,12 @@ export class Dashboard extends Resource {
111118 ( props . widgets || [ ] ) . forEach ( row => {
112119 this . addWidgets ( ...row ) ;
113120 } ) ;
121+
122+ this . dashboardArn = Stack . of ( this ) . formatArn ( {
123+ service : 'cloudwatch' ,
124+ resource : 'dashboard' ,
125+ resourceName : this . physicalName ,
126+ } ) ;
114127 }
115128
116129 /**
You can’t perform that action at this time.
0 commit comments