Skip to content

ListPolicies

Source: src/AWS/Organizations/ListPolicies.ts

Runtime binding for organizations:ListPolicies.

Lists all policies of the specified type (service control, tag, backup, AI-services opt-out, …) in the organization. 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.ListPoliciesHttp).

// init — account-level binding, no resource argument
const listPolicies = yield* AWS.Organizations.ListPolicies();
// runtime
const { Policies } = yield* listPolicies({ Filter: "SERVICE_CONTROL_POLICY" });