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).
Reading the Organization Tree
Section titled “Reading the Organization Tree”// init — account-level binding, no resource argumentconst listAccountsForParent = yield* AWS.Organizations.ListAccountsForParent();
// runtimeconst { Accounts } = yield* listAccountsForParent({ ParentId: ouId });