Skip to content

ListAccountsForParent

Source: src/AWS/Organizations/ListAccountsForParent.ts

Runtime binding for organizations:ListAccountsForParent.

Lists the accounts directly contained by the specified root or organizational unit (not accounts in child OUs). 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.ListAccountsForParentHttp).

// init — account-level binding, no resource argument
const listAccountsForParent = yield* AWS.Organizations.ListAccountsForParent();
// runtime
const { Accounts } = yield* listAccountsForParent({ ParentId: ouId });