Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.
import type * as kendra from "@distilled.cloud/aws/kendra";
import type * as Effect from "effect/Effect";
import * as Binding from "../../Binding.ts";
import type { DataSource } from "./DataSource.ts";
/**
* Runtime binding for the `StartDataSourceSyncJob` operation (IAM action
* `kendra:StartDataSourceSyncJob`), scoped to one {@link DataSource}.
*
* Starts an on-demand sync of the data source into its index — the
* programmatic alternative to the data source's cron `schedule`. Fails
* with `ResourceInUseException` while another sync is already running.
* Provide the implementation with
* `Effect.provide(AWS.Kendra.StartDataSourceSyncJobHttp)`.
*
* @binding
* @section Syncing Data Sources
* @example Trigger a Sync
* ```typescript
* const startSync = yield* AWS.Kendra.StartDataSourceSyncJob(source);
*
* const { ExecutionId } = yield* startSync();
* ```
*/
export interface StartDataSourceSyncJob extends Binding.Service<
StartDataSourceSyncJob,
"AWS.Kendra.StartDataSourceSyncJob",
(
dataSource: DataSource,
) => Effect.Effect<
() => Effect.Effect<
kendra.StartDataSourceSyncJobResponse,
kendra.StartDataSourceSyncJobError
>
>
> {}
export const StartDataSourceSyncJob = Binding.Service<StartDataSourceSyncJob>(
"AWS.Kendra.StartDataSourceSyncJob",
);