Skip to content

NotificationConfiguration

Source: src/AWS/Notifications/NotificationConfiguration.ts

An AWS User Notifications notification configuration — the container that groups EventRules (which events to notify on) and delivery channels (where notifications go: Console bell, email contacts, chat).

User Notifications is a global service managed from us-east-1; the provider pins the control-plane region automatically, so the resource works from a stack deployed in any region.

Basic configuration

import * as Notifications from "alchemy/AWS/Notifications";
const config = yield* Notifications.NotificationConfiguration("Alerts", {
description: "Deployment alerts",
});

Aggregate duplicate events for 5 minutes

const config = yield* Notifications.NotificationConfiguration("Alerts", {
description: "Deployment alerts",
aggregationDuration: "SHORT",
tags: { team: "platform" },
});
const rule = yield* Notifications.EventRule("AlarmRule", {
notificationConfigurationArn: config.notificationConfigurationArn,
source: "aws.cloudwatch",
eventType: "CloudWatch Alarm State Change",
regions: ["us-west-2"],
});