Skip to content

Capability

Source: src/AWS/B2BI/Capability.ts

An AWS B2B Data Interchange (B2BI) capability. A capability contains the information required to transform incoming or outgoing EDI documents: the X12 transaction set, a transformer, and the S3 input/output locations.

const capability = yield* B2BI.Capability("Orders", {
name: "inbound-orders",
configuration: {
edi: {
capabilityDirection: "INBOUND",
type: { x12Details: { transactionSet: "X12_850", version: "VERSION_4010" } },
inputLocation: { bucketName: bucket.bucketName, key: "inbound/" },
outputLocation: { bucketName: bucket.bucketName, key: "processed/" },
transformerId: transformer.transformerId,
},
},
});