Skip to content

NotificationChannel

Source: src/AWS/DevOpsGuru/NotificationChannel.ts

A DevOps Guru notification channel — an Amazon SNS topic that DevOps Guru uses to notify you when insights are generated, closed, or change severity.

The channel configuration is immutable in the AWS API: changing the topic replaces the channel, while filter changes are converged in place by removing and re-adding the channel (the channel id attribute changes).

Notify an SNS topic about all insights

const topic = yield* SNS.Topic("Alerts", {});
const channel = yield* DevOpsGuru.NotificationChannel("Channel", {
topicArn: topic.topicArn,
});

Filter to high-severity new insights

const channel = yield* DevOpsGuru.NotificationChannel("Channel", {
topicArn: topic.topicArn,
severities: ["HIGH"],
messageTypes: ["NEW_INSIGHT", "SEVERITY_UPGRADED"],
});