Skip to content

ListPermissions

Source: src/AWS/RAM/ListPermissions.ts

Runtime binding for ram:ListPermissions.

Lists the AWS managed and customer managed RAM permissions available for the supported resource types. 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.ListPermissionsHttp).

// init — account-level binding, no resource argument
const listPermissions = yield* AWS.RAM.ListPermissions();
// runtime
const { permissions } = yield* listPermissions({
permissionType: "CUSTOMER_MANAGED",
});