import {CloudwatchDashboardsWiki} from "...

5/12/2021  •  64 views
import {CloudwatchDashboardsWiki} from "@amzn/cloudwatch-dashboards-wiki-cdk-construct";
import {DeploymentEnvironment, DeploymentStack, SoftwareType} from "@amzn/pipelines";
import {App} from "monocdk";

export interface CloudwatchDashboardsWikiProps {
readonly masterAccountIds?: string[];
readonly enableEditing?: boolean;
readonly allowLogAccess?: boolean;
readonly allowCustomWidgets?: boolean;
readonly roleName?: string;
readonly region?: string;
readonly env: DeploymentEnvironment;
readonly stackName?: string;
readonly stage: string;
}

export class CloudWatchDashboardWikiStack extends DeploymentStack {
constructor(app: App, id: string, props: CloudwatchDashboardsWikiProps) {
super(app, id, {
env: props.env,
stackName: props.stackName,
softwareType: SoftwareType.INFRASTRUCTURE,
});
const wikiAccess = new CloudwatchDashboardsWiki(this, 'CloudWatchDashboardsWiki', {
masterAccountIds: props.masterAccountIds,
enableEditing: props.enableEditing,
allowLogAccess: props.allowLogAccess,
allowCustomWidgets: props.allowCustomWidgets,
roleName: props.roleName,
});
}

}
https://paste.ac/wO57scA