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

main
ts 36 lines 1.34 KB
Raw
1 import type * as eventbridge from "@distilled.cloud/aws/eventbridge";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 export interface DescribeReplayRequest extends eventbridge.DescribeReplayRequest {}
6
7 /**
8 * Reads the progress and state of an event replay
9 * (`events:DescribeReplay`).
10 *
11 * Bind this operation inside a function runtime to poll a replay started
12 * with `StartReplay` until it completes. Provide the `DescribeReplayHttp`
13 * layer on the Function to satisfy the binding.
14 * ### Replaying Events
15 * **Example:** Poll a Replay's State
16 * ```typescript
17 * // init — bind the operation (provide AWS.EventBridge.DescribeReplayHttp on the Function)
18 * const describeReplay = yield* AWS.EventBridge.DescribeReplay();
19 *
20 * // runtime — read the replay's state and progress
21 * const replay = yield* describeReplay({ ReplayName: "backfill-2026-07-14" });
22 * console.log(replay.State, replay.EventLastReplayedTime);
23 * ```
24 *
25 * @binding
26 */
27 export interface DescribeReplay extends Binding.Service<
28 DescribeReplay,
29 "AWS.EventBridge.DescribeReplay",
30 () => Effect.Effect<
31 (
32 request: DescribeReplayRequest,
33 ) => Effect.Effect<eventbridge.DescribeReplayResponse, eventbridge.DescribeReplayError>
34 >
35 > {}
36 export const DescribeReplay = Binding.Service<DescribeReplay>("AWS.EventBridge.DescribeReplay");