@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 39 lines 1.31 KB
Raw
1 import type * as emr from "@distilled.cloud/aws/emr-serverless";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Application } from "./Application.ts";
5
6 /**
7 * Request accepted by the {@link ListSessions} runtime callable. The
8 * `applicationId` is injected from the bound {@link Application}.
9 */
10 export type ListSessionsInput = Omit<emr.ListSessionsRequest, "applicationId">;
11
12 /**
13 * Runtime binding for `emr-serverless:ListSessions`.
14 *
15 * Enumerates interactive sessions on the bound {@link Application},
16 * optionally filtered by state or creation window. Provide the
17 * implementation with `Effect.provide(AWS.EMRServerless.ListSessionsHttp)`.
18 * ### Interactive Sessions
19 * **Example:** List Idle Sessions
20 * ```typescript
21 * // init
22 * const listSessions = yield* AWS.EMRServerless.ListSessions(app);
23 *
24 * // runtime
25 * const { sessions } = yield* listSessions({ states: ["IDLE"] });
26 * ```
27 *
28 * @binding
29 */
30 export interface ListSessions extends Binding.Service<
31 ListSessions,
32 "AWS.EMRServerless.ListSessions",
33 (
34 application: Application,
35 ) => Effect.Effect<
36 (request?: ListSessionsInput) => Effect.Effect<emr.ListSessionsResponse, emr.ListSessionsError>
37 >
38 > {}
39 export const ListSessions = Binding.Service<ListSessions>("AWS.EMRServerless.ListSessions");