Skip to content

StartIngestionJob

Source: src/AWS/Bedrock/StartIngestionJob.ts

Runtime binding for bedrock-agent:StartIngestionJob — kick off an ingestion (sync) job that reads the bound DataSource’s content and indexes it into its knowledge base.

The binding grants the function bedrock:StartIngestionJob scoped to the data source’s parent knowledge base. Poll the returned job with GetIngestionJob until its status settles.

// init
const startIngestionJob = yield* Bedrock.StartIngestionJob(dataSource);
// runtime
const { ingestionJob } = yield* startIngestionJob({
description: "nightly refresh",
});
const jobId = ingestionJob.ingestionJobId;