Skip to content

NotificationHub

Source: src/AWS/Notifications/NotificationHub.ts

An AWS User Notifications notification hub — a regional enablement that stores and replicates notification events. An account can register at most 3 hubs, and at least one ACTIVE hub must exist for notification configurations to deliver events.

Registration is a true upsert keyed by region (re-registering an existing hub region is a no-op), so the hub behaves like a per-region singleton.

AWS refuses to deregister the last ACTIVE hub in the account (ConflictException). Destroying a stack containing the account’s only hub therefore fails — keep a baseline hub registered outside the stack, or register a second hub first.

import * as Notifications from "alchemy/AWS/Notifications";
const hub = yield* Notifications.NotificationHub("Hub", {
region: "us-east-2",
});