We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d20764d + df9814f commit 1227c6eCopy full SHA for 1227c6e
1 file changed
packages/@aws-cdk/aws-cloudwatch/lib/dashboard.ts
@@ -75,6 +75,13 @@ export interface DashboardProps {
75
* A CloudWatch dashboard
76
*/
77
export class Dashboard extends Resource {
78
+ /**
79
+ * ARN of this dashboard
80
+ *
81
+ * @attribute
82
+ */
83
+ public readonly dashboardArn: string;
84
+
85
private readonly rows: IWidget[] = [];
86
87
constructor(scope: Construct, id: string, props: DashboardProps = {}) {
@@ -111,6 +118,12 @@ export class Dashboard extends Resource {
111
118
(props.widgets || []).forEach(row => {
112
119
this.addWidgets(...row);
113
120
});
121
122
+ this.dashboardArn = Stack.of(this).formatArn({
123
+ service: 'cloudwatch',
124
+ resource: 'dashboard',
125
+ resourceName: this.physicalName,
126
+ });
114
127
}
115
128
116
129
/**
0 commit comments