@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 38 lines 1.31 KB
Raw
1 import type * as forecast from "@distilled.cloud/aws/forecast";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `forecast:DeleteResourceTree` — delete an entire tree
7 * of runtime-created Forecast resources (a predictor and its forecasts and
8 * exports, or a dataset's import jobs) in a single call, the cost-hygiene
9 * counterpart to the `Create*` bindings.
10 *
11 * The target ARNs are created at runtime, so the binding takes no arguments
12 * and grants `forecast:DeleteResourceTree` on `*`. Provide the implementation
13 * with `Effect.provide(AWS.Forecast.DeleteResourceTreeHttp)`.
14 *
15 * ### Cleaning Up
16 * **Example:** Delete a Predictor's Artifact Tree
17 * ```typescript
18 * // init
19 * const deleteResourceTree = yield* AWS.Forecast.DeleteResourceTree();
20 *
21 * // runtime
22 * yield* deleteResourceTree({ ResourceArn: predictorArn });
23 * ```
24 *
25 * @binding
26 */
27 export interface DeleteResourceTree extends Binding.Service<
28 DeleteResourceTree,
29 "AWS.Forecast.DeleteResourceTree",
30 () => Effect.Effect<
31 (
32 request: forecast.DeleteResourceTreeRequest,
33 ) => Effect.Effect<forecast.DeleteResourceTreeResponse, forecast.DeleteResourceTreeError>
34 >
35 > {}
36 export const DeleteResourceTree = Binding.Service<DeleteResourceTree>(
37 "AWS.Forecast.DeleteResourceTree",
38 );