@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 35 lines 1.22 KB
Raw
1 import type * as quicksight from "@distilled.cloud/aws/quicksight";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { DataSet } from "./DataSet.ts";
5
6 /**
7 * Runtime binding for `quicksight:CancelIngestion`.
8 *
9 * Cancels an in-flight SPICE ingestion on the bound {@link DataSet}.
10 * `AwsAccountId` and `DataSetId` are injected from the binding. Provide the
11 * implementation with `Effect.provide(AWS.QuickSight.CancelIngestionHttp)`.
12 * ### Refreshing SPICE Data
13 * **Example:** Cancel A Running Refresh
14 * ```typescript
15 * // init — bind the operation to the dataset
16 * const cancelIngestion = yield* AWS.QuickSight.CancelIngestion(dataSet);
17 *
18 * // runtime
19 * yield* cancelIngestion({ IngestionId: ingestionId });
20 * ```
21 *
22 * @binding
23 */
24 export interface CancelIngestion extends Binding.Service<
25 CancelIngestion,
26 "AWS.QuickSight.CancelIngestion",
27 (
28 dataSet: DataSet,
29 ) => Effect.Effect<
30 (
31 request: Omit<quicksight.CancelIngestionRequest, "AwsAccountId" | "DataSetId">,
32 ) => Effect.Effect<quicksight.CancelIngestionResponse, quicksight.CancelIngestionError>
33 >
34 > {}
35 export const CancelIngestion = Binding.Service<CancelIngestion>("AWS.QuickSight.CancelIngestion");