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).
Reading Budget Alerts
Section titled “Reading Budget Alerts”// init — bind both operations to the budgetconst notifications = yield* AWS.Budgets.DescribeNotificationsForBudget(budget);const subscribers = yield* AWS.Budgets.DescribeSubscribersForNotification(budget);
// runtimeconst { Notifications = [] } = yield* notifications();for (const notification of Notifications) { const result = yield* subscribers({ Notification: notification }); const recipients = (result.Subscribers ?? []).map((s) => s.SubscriptionType);}