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).
Library Ingestion
Section titled “Library Ingestion”// deploy time — bind the libraryconst ingest = yield* AWS.BedrockDataAutomation.InvokeDataAutomationLibraryIngestionJob(library);
// runtime — upsert one vocabulary entityconst { jobArn } = yield* ingest({ entityType: "VOCABULARY", operationType: "UPSERT", inputConfiguration: { inlinePayload: { upsertEntitiesInfo: [ { vocabulary: { language: "EN", phrases: [{ text: "Alchemy", displayAsText: "Alchemy" }], }, }, ], }, }, outputConfiguration: { s3Uri: `s3://${bucket}/library-results/` },});