@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 36 lines 1.21 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:StopResource` — halt an in-progress Forecast
7 * job (dataset import, predictor training, forecast generation, or any of
8 * their export jobs), the cost-control lever for a runaway training run. A
9 * stopped job cannot be resumed.
10 *
11 * Job ARNs are created at runtime, so the binding takes no arguments and
12 * grants `forecast:StopResource` on `*`. Provide the implementation with
13 * `Effect.provide(AWS.Forecast.StopResourceHttp)`.
14 *
15 * ### Managing Jobs
16 * **Example:** Halt a Runaway Training Run
17 * ```typescript
18 * // init
19 * const stopResource = yield* AWS.Forecast.StopResource();
20 *
21 * // runtime
22 * yield* stopResource({ ResourceArn: predictorArn });
23 * ```
24 *
25 * @binding
26 */
27 export interface StopResource extends Binding.Service<
28 StopResource,
29 "AWS.Forecast.StopResource",
30 () => Effect.Effect<
31 (
32 request: forecast.StopResourceRequest,
33 ) => Effect.Effect<forecast.StopResourceResponse, forecast.StopResourceError>
34 >
35 > {}
36 export const StopResource = Binding.Service<StopResource>("AWS.Forecast.StopResource");