Skip to content

ListSubscriptions

Source: src/AWS/SNS/ListSubscriptions.ts

Runtime binding for sns:ListSubscriptions.

An account-scoped operation — bind it with no arguments to page through all subscriptions in the account/region. The binding grants the host function sns:ListSubscriptions. Provide the ListSubscriptionsHttp layer on the Function to implement the binding.

To list only the subscriptions of one topic, use ListSubscriptionsByTopic.

// init (provide SNS.ListSubscriptionsHttp on the Function)
const listSubscriptions = yield* SNS.ListSubscriptions();
// runtime: pass NextToken to page through large accounts
const response = yield* listSubscriptions();
// response.Subscriptions