Skip to content

ChannelAssociation

Source: src/AWS/Notifications/ChannelAssociation.ts

An AWS User Notifications channel association — attaches a delivery channel (an email contact, an Amazon Q Developer chat channel, or a Console Mobile Application device) to a NotificationConfiguration, so matching events are actually delivered somewhere beyond the Console notification center.

The association is existence-only (there is nothing mutable): changing either ARN replaces it.

import * as Notifications from "alchemy/AWS/Notifications";
import * as NotificationsContacts from "alchemy/AWS/NotificationsContacts";
const config = yield* Notifications.NotificationConfiguration("Alerts", {
description: "Deployment alerts",
});
const contact = yield* NotificationsContacts.EmailContact("OnCall", {
emailAddress: "oncall@example.com",
});
const association = yield* Notifications.ChannelAssociation("OnCallEmail", {
notificationConfigurationArn: config.notificationConfigurationArn,
channelArn: contact.emailContactArn,
});