@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 33 lines 1.11 KB
Raw
1 import type * as SVC from "@distilled.cloud/aws/databrew";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Recipe } from "./Recipe.ts";
5
6 export interface PublishRecipeRequest extends Omit<SVC.PublishRecipeRequest, "Name"> {}
7
8 /**
9 * Runtime binding for `databrew:PublishRecipe` — snapshots the bound
10 * recipe's `LATEST_WORKING` steps as the next numbered published version
11 * (recipe jobs consume the latest published version by default).
12 * ### Publishing Recipes
13 * **Example:** Publish a New Version
14 * ```typescript
15 * const publishRecipe = yield* AWS.DataBrew.PublishRecipe(recipe);
16 *
17 * const { Name } = yield* publishRecipe({ Description: "nightly cut" });
18 * ```
19 *
20 * @binding
21 */
22 export interface PublishRecipe extends Binding.Service<
23 PublishRecipe,
24 "AWS.DataBrew.PublishRecipe",
25 <R extends Recipe>(
26 recipe: R,
27 ) => Effect.Effect<
28 (
29 request?: PublishRecipeRequest,
30 ) => Effect.Effect<SVC.PublishRecipeResponse, SVC.PublishRecipeError>
31 >
32 > {}
33 export const PublishRecipe = Binding.Service<PublishRecipe>("AWS.DataBrew.PublishRecipe");