ListChildren
Source:
src/AWS/Organizations/ListChildren.ts
Runtime binding for organizations:ListChildren.
Lists the child accounts or organizational units directly under the specified parent root or OU — one level of the organization tree at a time.
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.ListChildrenHttp).
Reading the Organization Tree
Section titled “Reading the Organization Tree”// init — account-level binding, no resource argumentconst listChildren = yield* AWS.Organizations.ListChildren();
// runtimeconst { Children } = yield* listChildren({ ParentId: rootId, ChildType: "ORGANIZATIONAL_UNIT",});