Slide 67
Slide 67 text
#DevOpsDaysTokyo
export class DeadLetterQueue extends cdk.Queue {
public readonly alarm cloudwatch.IAlarm;
constructor(scope, id, props = {}) {
super(scope, id);
this.alarm = new cloudwatch.Alarm(this, 'Alarm', {
alarmDescription: 'messages in the DLQ',
evaluationPeriods: 1,
threshold: 1,
metric: this.metricApproximateNumberOfMessagesVisible(),
period: cdk.Duration.minutes(1),
});
}
}