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

main
ts 40 lines 1.47 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:GetResourceShareAssociations`.
7 *
8 * Retrieves the principal and resource associations of your resource shares — who has access, and to what.
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.GetResourceShareAssociationsHttp)`.
13 * ### Discovering Shares & Shared Resources
14 * **Example:** List the Principals Associated with Your Shares
15 * ```typescript
16 * // init — account-level binding, no resource argument
17 * const getResourceShareAssociations = yield* AWS.RAM.GetResourceShareAssociations();
18 *
19 * // runtime
20 * const { resourceShareAssociations } =
21 * yield* getResourceShareAssociations({ associationType: "PRINCIPAL" });
22 * ```
23 *
24 * @binding
25 */
26 export interface GetResourceShareAssociations extends Binding.Service<
27 GetResourceShareAssociations,
28 "AWS.RAM.GetResourceShareAssociations",
29 () => Effect.Effect<
30 (
31 request: ram.GetResourceShareAssociationsRequest,
32 ) => Effect.Effect<
33 ram.GetResourceShareAssociationsResponse,
34 ram.GetResourceShareAssociationsError
35 >
36 >
37 > {}
38 export const GetResourceShareAssociations = Binding.Service<GetResourceShareAssociations>(
39 "AWS.RAM.GetResourceShareAssociations",
40 );