ListTargetsForPolicy
Source:
src/AWS/Organizations/ListTargetsForPolicy.ts
Runtime binding for organizations:ListTargetsForPolicy.
Lists all roots, organizational units, and accounts that the specified policy is attached to.
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.ListTargetsForPolicyHttp).
Policies & Effective Policy
Section titled “Policies & Effective Policy”// init — account-level binding, no resource argumentconst listTargetsForPolicy = yield* AWS.Organizations.ListTargetsForPolicy();
// runtimeconst { Targets } = yield* listTargetsForPolicy({ PolicyId: policyId });