| 1 | import type * as kendra from "@distilled.cloud/aws/kendra"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 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< |
| 31 | kendra.StopDataSourceSyncJobResponse, |
| 32 | kendra.StopDataSourceSyncJobError |
| 33 | > |
| 34 | > |
| 35 | > {} |
| 36 | export const StopDataSourceSyncJob = Binding.Service<StopDataSourceSyncJob>( |
| 37 | "AWS.Kendra.StopDataSourceSyncJob", |
| 38 | ); |