Skip to content

DescribeSubscribersForNotification

Source: src/AWS/Budgets/DescribeSubscribersForNotification.ts

Runtime binding for budgets:ViewBudget via DescribeSubscribersForNotification.

Bind this operation to a Budget to list who is notified when a given alert threshold is crossed — pair it with DescribeNotificationsForBudget to enumerate a budget’s full alerting fan-out (each subscriber’s Address comes back Redacted). Provide the implementation with Effect.provide(AWS.Budgets.DescribeSubscribersForNotificationHttp).

// init — bind both operations to the budget
const notifications = yield* AWS.Budgets.DescribeNotificationsForBudget(budget);
const subscribers = yield* AWS.Budgets.DescribeSubscribersForNotification(budget);
// runtime
const { Notifications = [] } = yield* notifications();
for (const notification of Notifications) {
const result = yield* subscribers({ Notification: notification });
const recipients = (result.Subscribers ?? []).map((s) => s.SubscriptionType);
}