Skip to content

CreateAdapterVersion

Source: src/AWS/Textract/CreateAdapterVersion.ts

Runtime binding for textract:CreateAdapterVersion — train a new version of the bound adapter from an annotated dataset manifest in S3 (automated retraining pipelines). The AdapterId is injected automatically; the caller also needs read access to the manifest and write access to the output bucket.

// init
const createAdapterVersion = yield* AWS.Textract.CreateAdapterVersion(adapter);
// runtime
const { AdapterVersion } = yield* createAdapterVersion({
DatasetConfig: {
ManifestS3Object: { Bucket: bucketName, Name: "manifest.jsonl" },
},
OutputConfig: { S3Bucket: bucketName, S3Prefix: "training-output/" },
});