The best way to control Claude Code, Codex and more from any computer or phone

main
ts 35 lines 1.09 KB
Raw
1 import type * as kendra from "@distilled.cloud/aws/kendra";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { DataSource } from "./DataSource.ts";
5
6 /**
7 * Runtime binding for the `StopDataSourceSyncJob` operation (IAM action
8 * `kendra:StopDataSourceSyncJob`), scoped to one {@link DataSource}.
9 *
10 * Stops the data source's currently-running sync job, if any.
11 * Provide the implementation with
12 * `Effect.provide(AWS.Kendra.StopDataSourceSyncJobHttp)`.
13 *
14 * ### Syncing Data Sources
15 * **Example:** Stop a Running Sync
16 * ```typescript
17 * const stopSync = yield* AWS.Kendra.StopDataSourceSyncJob(source);
18 *
19 * yield* stopSync();
20 * ```
21 *
22 * @binding
23 */
24 export interface StopDataSourceSyncJob extends Binding.Service<
25 StopDataSourceSyncJob,
26 "AWS.Kendra.StopDataSourceSyncJob",
27 (
28 dataSource: DataSource,
29 ) => Effect.Effect<
30 () => Effect.Effect<kendra.StopDataSourceSyncJobResponse, kendra.StopDataSourceSyncJobError>
31 >
32 > {}
33 export const StopDataSourceSyncJob = Binding.Service<StopDataSourceSyncJob>(
34 "AWS.Kendra.StopDataSourceSyncJob",
35 );