Skip to content

Commit 2838fb8

Browse files
author
AWS
committed
AWS B2B Data Interchange Update: This release adds a GenerateMapping API to allow generation of JSONata or XSLT transformer code based on input and output samples.
1 parent 252eabd commit 2838fb8

File tree

2 files changed

+76
-1
lines changed

2 files changed

+76
-1
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"type": "feature",
3+
"category": "AWS B2B Data Interchange",
4+
"contributor": "",
5+
"description": "This release adds a GenerateMapping API to allow generation of JSONata or XSLT transformer code based on input and output samples."
6+
}

services/b2bi/src/main/resources/codegen-resources/service-2.json

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,23 @@
184184
"documentation":"<p>Deletes the specified transformer. A transformer can take an EDI file as input and transform it into a JSON-or XML-formatted document. Alternatively, a transformer can take a JSON-or XML-formatted document as input and transform it into an EDI file.</p>",
185185
"idempotent":true
186186
},
187+
"GenerateMapping":{
188+
"name":"GenerateMapping",
189+
"http":{
190+
"method":"POST",
191+
"requestUri":"/"
192+
},
193+
"input":{"shape":"GenerateMappingRequest"},
194+
"output":{"shape":"GenerateMappingResponse"},
195+
"errors":[
196+
{"shape":"AccessDeniedException"},
197+
{"shape":"ValidationException"},
198+
{"shape":"ThrottlingException"},
199+
{"shape":"InternalServerException"}
200+
],
201+
"documentation":"<p>Takes sample input and output documents and uses Amazon Bedrock to generate a mapping automatically. Depending on the accuracy and other factors, you can then edit the mapping for your needs.</p> <note> <p>Before you can use the AI-assisted feature for Amazon Web Services B2B Data Interchange you must enable models in Amazon Bedrock. For details, see <a href=\"https://docs.aws.amazon.com/b2bi/latest/userguide/ai-assisted-mapping.html#ai-assist-prereq\">AI-assisted template mapping prerequisites</a> in the <i>Amazon Web Services B2B Data Interchange User guide</i>.</p> </note>",
202+
"idempotent":true
203+
},
187204
"GetCapability":{
188205
"name":"GetCapability",
189206
"http":{
@@ -1248,6 +1265,58 @@
12481265
"type":"string",
12491266
"enum":["X12"]
12501267
},
1268+
"GenerateMappingInputFileContent":{
1269+
"type":"string",
1270+
"max":5000000,
1271+
"min":0
1272+
},
1273+
"GenerateMappingOutputFileContent":{
1274+
"type":"string",
1275+
"max":5000000,
1276+
"min":0
1277+
},
1278+
"GenerateMappingRequest":{
1279+
"type":"structure",
1280+
"required":[
1281+
"inputFileContent",
1282+
"outputFileContent",
1283+
"mappingType"
1284+
],
1285+
"members":{
1286+
"inputFileContent":{
1287+
"shape":"GenerateMappingInputFileContent",
1288+
"documentation":"<p>Provide the contents of a sample X12 EDI file (for inbound EDI) or JSON/XML file (for outbound EDI) to use as a starting point for the mapping.</p>"
1289+
},
1290+
"outputFileContent":{
1291+
"shape":"GenerateMappingOutputFileContent",
1292+
"documentation":"<p>Provide the contents of a sample X12 EDI file (for outbound EDI) or JSON/XML file (for inbound EDI) to use as a target for the mapping.</p>"
1293+
},
1294+
"mappingType":{
1295+
"shape":"MappingType",
1296+
"documentation":"<p>Specify the mapping type: either <code>JSONATA</code> or <code>XSLT.</code> </p>"
1297+
}
1298+
}
1299+
},
1300+
"GenerateMappingResponse":{
1301+
"type":"structure",
1302+
"required":["mappingTemplate"],
1303+
"members":{
1304+
"mappingTemplate":{
1305+
"shape":"String",
1306+
"documentation":"<p>Returns a mapping template based on your inputs.</p>"
1307+
},
1308+
"mappingAccuracy":{
1309+
"shape":"GenerateMappingResponseMappingAccuracyFloat",
1310+
"documentation":"<p>Returns a percentage that estimates the accuracy of the generated mapping.</p>"
1311+
}
1312+
}
1313+
},
1314+
"GenerateMappingResponseMappingAccuracyFloat":{
1315+
"type":"float",
1316+
"box":true,
1317+
"max":1.0,
1318+
"min":0.0
1319+
},
12511320
"GetCapabilityRequest":{
12521321
"type":"structure",
12531322
"required":["capabilityId"],
@@ -2646,7 +2715,7 @@
26462715
},
26472716
"status":{
26482717
"shape":"TransformerStatus",
2649-
"documentation":"<p>Specifies the transformer's status. You can update the state of the transformer, from <code>active</code> to <code>inactive</code>, or <code>inactive</code> to <code>active</code>.</p>"
2718+
"documentation":"<p>Specifies the transformer's status. You can update the state of the transformer from <code>inactive</code> to <code>active</code>.</p>"
26502719
},
26512720
"fileFormat":{
26522721
"shape":"FileFormat",

0 commit comments

Comments
 (0)