Skip to content

InvokeDataAutomationLibraryIngestionJob

Source: src/AWS/BedrockDataAutomation/InvokeDataAutomationLibraryIngestionJob.ts

Runtime binding for the InvokeDataAutomationLibraryIngestionJob operation (IAM action bedrock:InvokeDataAutomationLibraryIngestionJob on the library ARN) — start an asynchronous ingestion job that upserts or deletes entities in the bound library from a deployed Function.

Entities can be passed inline (inputConfiguration.inlinePayload) or as an S3 object; results are written to outputConfiguration.s3Uri with the caller’s S3 permissions. Provide the implementation with Effect.provide(AWS.BedrockDataAutomation.InvokeDataAutomationLibraryIngestionJobHttp).

// deploy time — bind the library
const ingest =
yield* AWS.BedrockDataAutomation.InvokeDataAutomationLibraryIngestionJob(library);
// runtime — upsert one vocabulary entity
const { jobArn } = yield* ingest({
entityType: "VOCABULARY",
operationType: "UPSERT",
inputConfiguration: {
inlinePayload: {
upsertEntitiesInfo: [
{
vocabulary: {
language: "EN",
phrases: [{ text: "Alchemy", displayAsText: "Alchemy" }],
},
},
],
},
},
outputConfiguration: { s3Uri: `s3://${bucket}/library-results/` },
});