@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 34 lines 1.12 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:ResumeResource` — resume a stopped Forecast
7 * monitor so it continues evaluating a deployed predictor's drift.
8 *
9 * Monitor ARNs are created at runtime, so the binding takes no arguments and
10 * grants `forecast:ResumeResource` on `*`. Provide the implementation with
11 * `Effect.provide(AWS.Forecast.ResumeResourceHttp)`.
12 *
13 * ### Managing Jobs
14 * **Example:** Resume a Stopped Monitor
15 * ```typescript
16 * // init
17 * const resumeResource = yield* AWS.Forecast.ResumeResource();
18 *
19 * // runtime
20 * yield* resumeResource({ ResourceArn: monitorArn });
21 * ```
22 *
23 * @binding
24 */
25 export interface ResumeResource extends Binding.Service<
26 ResumeResource,
27 "AWS.Forecast.ResumeResource",
28 () => Effect.Effect<
29 (
30 request: forecast.ResumeResourceRequest,
31 ) => Effect.Effect<forecast.ResumeResourceResponse, forecast.ResumeResourceError>
32 >
33 > {}
34 export const ResumeResource = Binding.Service<ResumeResource>("AWS.Forecast.ResumeResource");