reportingDashboard[dashboard.cfnId] = new quicksight.CfnDashboard(
this,
dashboard.cfnId,
{
awsAccountId: config.accounts[props.stage],
dashboardId: dashboard.dashboardId,
sourceEntity: {
sourceTemplate: {
arn: arn:aws:quicksight:${region}:${ config.accounts[props.stage] }:template/${dashboard.templateId}
,
dataSetReferences: [
{
dataSetArn: arn:aws:quicksight:${region}:${ config.accounts[props.stage] }:dataset/${dashboard.dataSetId}
,
dataSetPlaceholder: dashboard.dataSetPlaceholder,
},
],
},
},
// the properties below are optional
dashboardPublishOptions: dashboard.dashboardPublishOptions,
name: dashboard.name,
permissions: dashboardPermission,
themeArn: `arn:aws:quicksight:${region}:${config.accounts[props.stage]}:theme/${
dashboard.themeId
}`,
versionDescription: 'CDK managed version',
},