in usecases/guest-webapp-sample/lib/blea-ecr-stack.ts [14:24]
constructor(scope: cdk.Construct, id: string, props: BLEAECRStackProps) {
super(scope, id, props);
// Create a repository
this.repository = new ecr.Repository(this, props.repositoryName, {
imageScanOnPush: true,
});
const target = new eventtarget.SnsTopic(props.alarmTopic);
this.repository.onImageScanCompleted('ImageScanComplete').addTarget(target);
}