ListPoliciesForTarget
Source:
src/AWS/Organizations/ListPoliciesForTarget.ts
Runtime binding for organizations:ListPoliciesForTarget.
Lists the policies of the specified type that are directly attached to the specified target root, OU, or account.
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.ListPoliciesForTargetHttp).
Policies & Effective Policy
Section titled “Policies & Effective Policy”// init — account-level binding, no resource argumentconst listPoliciesForTarget = yield* AWS.Organizations.ListPoliciesForTarget();
// runtimeconst { Policies } = yield* listPoliciesForTarget({ TargetId: accountId, Filter: "SERVICE_CONTROL_POLICY",});