Skip to content

StartDataSourceSyncJob

Source: src/AWS/Kendra/StartDataSourceSyncJob.ts

Runtime binding for the StartDataSourceSyncJob operation (IAM action kendra:StartDataSourceSyncJob), scoped to one 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).

const startSync = yield* AWS.Kendra.StartDataSourceSyncJob(source);
const { ExecutionId } = yield* startSync();