ListAccounts
Source:
src/AWS/Organizations/ListAccounts.ts
Runtime binding for organizations:ListAccounts.
Lists all accounts in the organization — the backbone of cross-account automation that iterates every member account.
Account-level operation — Organizations is a management-account-scoped
global service, so the binding takes no resource argument. Provide the
implementation with Effect.provide(AWS.Organizations.ListAccountsHttp).
Reading the Organization Tree
Section titled “Reading the Organization Tree”// init — account-level binding, no resource argumentconst listAccounts = yield* AWS.Organizations.ListAccounts();
// runtimeconst { Accounts } = yield* listAccounts();