1import type * as ram from "@distilled.cloud/aws/ram";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for `ram:ListPermissions`.
7 *
8 * Lists the AWS managed and customer managed RAM permissions available for the supported resource types.
9 * Account-level operation — the target shares, invitations, and permissions
10 * are chosen per request at runtime, so the binding takes no resource
11 * argument. Provide the implementation with
12 * `Effect.provide(AWS.RAM.ListPermissionsHttp)`.
13 * ### Managed Permissions
14 * **Example:** List the Customer Managed Permissions
15 * ```typescript
16 * // init — account-level binding, no resource argument
17 * const listPermissions = yield* AWS.RAM.ListPermissions();
18 *
19 * // runtime
20 * const { permissions } = yield* listPermissions({
21 * permissionType: "CUSTOMER_MANAGED",
22 * });
23 * ```
24 *
25 * @binding
26 */
27export interface ListPermissions extends Binding.Service<
28 ListPermissions,
29 "AWS.RAM.ListPermissions",
30 () => Effect.Effect<
31 (
32 request?: ram.ListPermissionsRequest,
33 ) => Effect.Effect<ram.ListPermissionsResponse, ram.ListPermissionsError>
34 >
35> {}
36export const ListPermissions = Binding.Service<ListPermissions>(
37 "AWS.RAM.ListPermissions",
38);