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

main
ts 34 lines 1.21 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:ListPrincipals`.
7 *
8 * Lists the principals that you are sharing resources with or that are sharing resources with you.
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.ListPrincipalsHttp)`.
13 * ### Discovering Shares & Shared Resources
14 * **Example:** List the Principals You Share With
15 * ```typescript
16 * // init — account-level binding, no resource argument
17 * const listPrincipals = yield* AWS.RAM.ListPrincipals();
18 *
19 * // runtime
20 * const { principals } = yield* listPrincipals({ resourceOwner: "SELF" });
21 * ```
22 *
23 * @binding
24 */
25 export interface ListPrincipals extends Binding.Service<
26 ListPrincipals,
27 "AWS.RAM.ListPrincipals",
28 () => Effect.Effect<
29 (
30 request: ram.ListPrincipalsRequest,
31 ) => Effect.Effect<ram.ListPrincipalsResponse, ram.ListPrincipalsError>
32 >
33 > {}
34 export const ListPrincipals = Binding.Service<ListPrincipals>("AWS.RAM.ListPrincipals");