Skip to content

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

// init — account-level binding, no resource argument
const listParents = yield* AWS.Organizations.ListParents();
// runtime
const { Parents } = yield* listParents({ ChildId: accountId });