The best way to control Claude Code, Codex and more from any computer or phone

main
ts 41 lines 1.4 KB
Raw
1 import type * as ram from "@distilled.cloud/aws/ram";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `ram:ListResourceSharePermissions`.
7 *
8 * Lists the RAM permissions that are associated with a resource share.
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.ListResourceSharePermissionsHttp)`.
13 * ### Managed Permissions
14 * **Example:** List the Permissions on a Share
15 * ```typescript
16 * // init — account-level binding, no resource argument
17 * const listResourceSharePermissions = yield* AWS.RAM.ListResourceSharePermissions();
18 *
19 * // runtime
20 * const { permissions } = yield* listResourceSharePermissions({
21 * resourceShareArn: share.resourceShareArn,
22 * });
23 * ```
24 *
25 * @binding
26 */
27 export interface ListResourceSharePermissions extends Binding.Service<
28 ListResourceSharePermissions,
29 "AWS.RAM.ListResourceSharePermissions",
30 () => Effect.Effect<
31 (
32 request: ram.ListResourceSharePermissionsRequest,
33 ) => Effect.Effect<
34 ram.ListResourceSharePermissionsResponse,
35 ram.ListResourceSharePermissionsError
36 >
37 >
38 > {}
39 export const ListResourceSharePermissions = Binding.Service<ListResourceSharePermissions>(
40 "AWS.RAM.ListResourceSharePermissions",
41 );