ListTopics
Source:
src/AWS/SNS/ListTopics.ts
Runtime binding for sns:ListTopics.
An account-scoped operation — bind it with no arguments to page through
all topic ARNs in the account/region. The binding grants the host function
sns:ListTopics. Provide the ListTopicsHttp layer on the Function to
implement the binding.
Listing Topics
Section titled “Listing Topics”// init (provide SNS.ListTopicsHttp on the Function)const listTopics = yield* SNS.ListTopics();
// runtime: pass NextToken to page through large accountsconst response = yield* listTopics();const arns = (response.Topics ?? []).map((topic) => topic.TopicArn);