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.
Creating a Notification Configuration
Section titled “Creating a Notification Configuration”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" },});Adding Event Rules
Section titled “Adding Event Rules”const rule = yield* Notifications.EventRule("AlarmRule", { notificationConfigurationArn: config.notificationConfigurationArn, source: "aws.cloudwatch", eventType: "CloudWatch Alarm State Change", regions: ["us-west-2"],});