ListParents
Source:
src/AWS/Organizations/ListParents.ts
Runtime binding for organizations:ListParents.
Lists the direct parent (root or OU) of the specified child account or OU — walking the organization tree upward.
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.ListParentsHttp).
Reading the Organization Tree
Section titled “Reading the Organization Tree”// init — account-level binding, no resource argumentconst listParents = yield* AWS.Organizations.ListParents();
// runtimeconst { Parents } = yield* listParents({ ChildId: accountId });