Skip to content

ListPermissionVersions

Source: src/AWS/RAM/ListPermissionVersions.ts

Runtime binding for ram:ListPermissionVersions.

Lists the available versions of the specified RAM permission. 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.ListPermissionVersionsHttp).

// init — account-level binding, no resource argument
const listPermissionVersions = yield* AWS.RAM.ListPermissionVersions();
// runtime
const { permissions } = yield* listPermissionVersions({
permissionArn: permission.permissionArn,
});