@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, 06:00 UTC

main
ts 40 lines 1.25 KB
Raw
1 import type * as glue from "@distilled.cloud/aws/glue";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Job } from "./Job.ts";
5
6 export interface ResetJobBookmarkRequest extends Omit<glue.ResetJobBookmarkRequest, "JobName"> {}
7
8 /**
9 * Runtime binding for `glue:ResetJobBookmark`.
10 *
11 * Resets the bound {@link Job}'s bookmark entry so the next bookmarked run
12 * reprocesses the source data from the beginning — the standard remediation
13 * after a bad deploy consumed data incorrectly. The job name is injected
14 * from the binding. Provide the implementation with
15 * `Effect.provide(AWS.Glue.ResetJobBookmarkHttp)`.
16 * ### Job Bookmarks
17 * **Example:** Reset the Bookmark
18 * ```typescript
19 * // init
20 * const resetJobBookmark = yield* AWS.Glue.ResetJobBookmark(job);
21 *
22 * // runtime
23 * yield* resetJobBookmark();
24 * ```
25 *
26 * @binding
27 */
28 export interface ResetJobBookmark extends Binding.Service<
29 ResetJobBookmark,
30 "AWS.Glue.ResetJobBookmark",
31 (
32 job: Job,
33 ) => Effect.Effect<
34 (
35 request?: ResetJobBookmarkRequest,
36 ) => Effect.Effect<glue.ResetJobBookmarkResponse, glue.ResetJobBookmarkError>
37 >
38 > {}
39
40 export const ResetJobBookmark = Binding.Service<ResetJobBookmark>("AWS.Glue.ResetJobBookmark");