Skip to content

InvokeDataAutomation

Source: src/AWS/BedrockDataAutomation/InvokeDataAutomation.ts

Runtime binding for the synchronous InvokeDataAutomation operation (IAM action bedrock:InvokeDataAutomation on the project ARN + the account’s data automation profiles) — process a file inline against the bound project from a deployed Function and get the extracted output back in the response.

The bound DataAutomationProject must be created with projectType: "SYNC". Input can be passed inline as bytes or as an s3Uri; the caller supplies the cross-region data automation profile ARN (e.g. …:data-automation-profile/us.data-automation-v1). Provide the implementation with Effect.provide(AWS.BedrockDataAutomation.InvokeDataAutomationHttp).

// deploy time — bind the SYNC project
const invoke = yield* AWS.BedrockDataAutomation.InvokeDataAutomation(syncProject);
// runtime — process request bytes synchronously
const result = yield* invoke({
inputConfiguration: { bytes: documentBytes },
dataAutomationProfileArn: profileArn,
});
const fields = result.outputSegments?.[0]?.customOutput;