|
184 | 184 | "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>",
|
185 | 185 | "idempotent":true
|
186 | 186 | },
|
| 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 | + }, |
187 | 204 | "GetCapability":{
|
188 | 205 | "name":"GetCapability",
|
189 | 206 | "http":{
|
|
1248 | 1265 | "type":"string",
|
1249 | 1266 | "enum":["X12"]
|
1250 | 1267 | },
|
| 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 | + }, |
1251 | 1320 | "GetCapabilityRequest":{
|
1252 | 1321 | "type":"structure",
|
1253 | 1322 | "required":["capabilityId"],
|
|
2646 | 2715 | },
|
2647 | 2716 | "status":{
|
2648 | 2717 | "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>" |
2650 | 2719 | },
|
2651 | 2720 | "fileFormat":{
|
2652 | 2721 | "shape":"FileFormat",
|
|
0 commit comments