Skip to content

GetDataAutomationLibraryIngestionJob

Source: src/AWS/BedrockDataAutomation/GetDataAutomationLibraryIngestionJob.ts

Runtime binding for the GetDataAutomationLibraryIngestionJob operation (IAM action bedrock:GetDataAutomationLibraryIngestionJob on the library ARN) — poll the status of a library ingestion job from a deployed Function.

Provide the implementation with Effect.provide(AWS.BedrockDataAutomation.GetDataAutomationLibraryIngestionJobHttp).

// deploy time — bind the library
const getJob =
yield* AWS.BedrockDataAutomation.GetDataAutomationLibraryIngestionJob(library);
// runtime — check the job started by the ingestion binding
const { job } = yield* getJob({ jobArn });
if (job?.jobStatus === "COMPLETED") {
yield* Effect.log(`ingestion results at ${job.outputConfiguration.s3Uri}`);
}