Skip to content

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).

// init — account-level binding, no resource argument
const listAccounts = yield* AWS.Organizations.ListAccounts();
// runtime
const { Accounts } = yield* listAccounts();