Skip to content

ListPrincipals

Source: src/AWS/RAM/ListPrincipals.ts

Runtime binding for ram:ListPrincipals.

Lists the principals that you are sharing resources with or that are sharing resources with you. Account-level operation — the target shares, invitations, and permissions are chosen per request at runtime, so the binding takes no resource argument. Provide the implementation with Effect.provide(AWS.RAM.ListPrincipalsHttp).

// init — account-level binding, no resource argument
const listPrincipals = yield* AWS.RAM.ListPrincipals();
// runtime
const { principals } = yield* listPrincipals({ resourceOwner: "SELF" });