@aws-sdk/client-machine-learning 3.503.1 → 3.507.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +53 -716
- package/dist-es/protocols/Aws_json1_1.js +63 -726
- package/package.json +3 -3
|
@@ -172,7 +172,7 @@ export const se_UpdateMLModelCommand = async (input, context) => {
|
|
|
172
172
|
};
|
|
173
173
|
export const de_AddTagsCommand = async (output, context) => {
|
|
174
174
|
if (output.statusCode >= 300) {
|
|
175
|
-
return
|
|
175
|
+
return de_CommandError(output, context);
|
|
176
176
|
}
|
|
177
177
|
const data = await parseBody(output.body, context);
|
|
178
178
|
let contents = {};
|
|
@@ -183,40 +183,9 @@ export const de_AddTagsCommand = async (output, context) => {
|
|
|
183
183
|
};
|
|
184
184
|
return response;
|
|
185
185
|
};
|
|
186
|
-
const de_AddTagsCommandError = async (output, context) => {
|
|
187
|
-
const parsedOutput = {
|
|
188
|
-
...output,
|
|
189
|
-
body: await parseErrorBody(output.body, context),
|
|
190
|
-
};
|
|
191
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
192
|
-
switch (errorCode) {
|
|
193
|
-
case "InternalServerException":
|
|
194
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
195
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
196
|
-
case "InvalidInputException":
|
|
197
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
198
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
199
|
-
case "InvalidTagException":
|
|
200
|
-
case "com.amazonaws.machinelearning#InvalidTagException":
|
|
201
|
-
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
202
|
-
case "ResourceNotFoundException":
|
|
203
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
204
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
205
|
-
case "TagLimitExceededException":
|
|
206
|
-
case "com.amazonaws.machinelearning#TagLimitExceededException":
|
|
207
|
-
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
208
|
-
default:
|
|
209
|
-
const parsedBody = parsedOutput.body;
|
|
210
|
-
return throwDefaultError({
|
|
211
|
-
output,
|
|
212
|
-
parsedBody,
|
|
213
|
-
errorCode,
|
|
214
|
-
});
|
|
215
|
-
}
|
|
216
|
-
};
|
|
217
186
|
export const de_CreateBatchPredictionCommand = async (output, context) => {
|
|
218
187
|
if (output.statusCode >= 300) {
|
|
219
|
-
return
|
|
188
|
+
return de_CommandError(output, context);
|
|
220
189
|
}
|
|
221
190
|
const data = await parseBody(output.body, context);
|
|
222
191
|
let contents = {};
|
|
@@ -227,34 +196,9 @@ export const de_CreateBatchPredictionCommand = async (output, context) => {
|
|
|
227
196
|
};
|
|
228
197
|
return response;
|
|
229
198
|
};
|
|
230
|
-
const de_CreateBatchPredictionCommandError = async (output, context) => {
|
|
231
|
-
const parsedOutput = {
|
|
232
|
-
...output,
|
|
233
|
-
body: await parseErrorBody(output.body, context),
|
|
234
|
-
};
|
|
235
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
236
|
-
switch (errorCode) {
|
|
237
|
-
case "IdempotentParameterMismatchException":
|
|
238
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
239
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
240
|
-
case "InternalServerException":
|
|
241
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
242
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
243
|
-
case "InvalidInputException":
|
|
244
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
245
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
246
|
-
default:
|
|
247
|
-
const parsedBody = parsedOutput.body;
|
|
248
|
-
return throwDefaultError({
|
|
249
|
-
output,
|
|
250
|
-
parsedBody,
|
|
251
|
-
errorCode,
|
|
252
|
-
});
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
199
|
export const de_CreateDataSourceFromRDSCommand = async (output, context) => {
|
|
256
200
|
if (output.statusCode >= 300) {
|
|
257
|
-
return
|
|
201
|
+
return de_CommandError(output, context);
|
|
258
202
|
}
|
|
259
203
|
const data = await parseBody(output.body, context);
|
|
260
204
|
let contents = {};
|
|
@@ -265,34 +209,9 @@ export const de_CreateDataSourceFromRDSCommand = async (output, context) => {
|
|
|
265
209
|
};
|
|
266
210
|
return response;
|
|
267
211
|
};
|
|
268
|
-
const de_CreateDataSourceFromRDSCommandError = async (output, context) => {
|
|
269
|
-
const parsedOutput = {
|
|
270
|
-
...output,
|
|
271
|
-
body: await parseErrorBody(output.body, context),
|
|
272
|
-
};
|
|
273
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
274
|
-
switch (errorCode) {
|
|
275
|
-
case "IdempotentParameterMismatchException":
|
|
276
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
277
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
278
|
-
case "InternalServerException":
|
|
279
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
280
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
281
|
-
case "InvalidInputException":
|
|
282
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
283
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
284
|
-
default:
|
|
285
|
-
const parsedBody = parsedOutput.body;
|
|
286
|
-
return throwDefaultError({
|
|
287
|
-
output,
|
|
288
|
-
parsedBody,
|
|
289
|
-
errorCode,
|
|
290
|
-
});
|
|
291
|
-
}
|
|
292
|
-
};
|
|
293
212
|
export const de_CreateDataSourceFromRedshiftCommand = async (output, context) => {
|
|
294
213
|
if (output.statusCode >= 300) {
|
|
295
|
-
return
|
|
214
|
+
return de_CommandError(output, context);
|
|
296
215
|
}
|
|
297
216
|
const data = await parseBody(output.body, context);
|
|
298
217
|
let contents = {};
|
|
@@ -303,34 +222,9 @@ export const de_CreateDataSourceFromRedshiftCommand = async (output, context) =>
|
|
|
303
222
|
};
|
|
304
223
|
return response;
|
|
305
224
|
};
|
|
306
|
-
const de_CreateDataSourceFromRedshiftCommandError = async (output, context) => {
|
|
307
|
-
const parsedOutput = {
|
|
308
|
-
...output,
|
|
309
|
-
body: await parseErrorBody(output.body, context),
|
|
310
|
-
};
|
|
311
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
312
|
-
switch (errorCode) {
|
|
313
|
-
case "IdempotentParameterMismatchException":
|
|
314
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
315
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
316
|
-
case "InternalServerException":
|
|
317
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
318
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
319
|
-
case "InvalidInputException":
|
|
320
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
321
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
322
|
-
default:
|
|
323
|
-
const parsedBody = parsedOutput.body;
|
|
324
|
-
return throwDefaultError({
|
|
325
|
-
output,
|
|
326
|
-
parsedBody,
|
|
327
|
-
errorCode,
|
|
328
|
-
});
|
|
329
|
-
}
|
|
330
|
-
};
|
|
331
225
|
export const de_CreateDataSourceFromS3Command = async (output, context) => {
|
|
332
226
|
if (output.statusCode >= 300) {
|
|
333
|
-
return
|
|
227
|
+
return de_CommandError(output, context);
|
|
334
228
|
}
|
|
335
229
|
const data = await parseBody(output.body, context);
|
|
336
230
|
let contents = {};
|
|
@@ -341,34 +235,9 @@ export const de_CreateDataSourceFromS3Command = async (output, context) => {
|
|
|
341
235
|
};
|
|
342
236
|
return response;
|
|
343
237
|
};
|
|
344
|
-
const de_CreateDataSourceFromS3CommandError = async (output, context) => {
|
|
345
|
-
const parsedOutput = {
|
|
346
|
-
...output,
|
|
347
|
-
body: await parseErrorBody(output.body, context),
|
|
348
|
-
};
|
|
349
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
350
|
-
switch (errorCode) {
|
|
351
|
-
case "IdempotentParameterMismatchException":
|
|
352
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
353
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
354
|
-
case "InternalServerException":
|
|
355
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
356
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
357
|
-
case "InvalidInputException":
|
|
358
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
359
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
360
|
-
default:
|
|
361
|
-
const parsedBody = parsedOutput.body;
|
|
362
|
-
return throwDefaultError({
|
|
363
|
-
output,
|
|
364
|
-
parsedBody,
|
|
365
|
-
errorCode,
|
|
366
|
-
});
|
|
367
|
-
}
|
|
368
|
-
};
|
|
369
238
|
export const de_CreateEvaluationCommand = async (output, context) => {
|
|
370
239
|
if (output.statusCode >= 300) {
|
|
371
|
-
return
|
|
240
|
+
return de_CommandError(output, context);
|
|
372
241
|
}
|
|
373
242
|
const data = await parseBody(output.body, context);
|
|
374
243
|
let contents = {};
|
|
@@ -379,34 +248,9 @@ export const de_CreateEvaluationCommand = async (output, context) => {
|
|
|
379
248
|
};
|
|
380
249
|
return response;
|
|
381
250
|
};
|
|
382
|
-
const de_CreateEvaluationCommandError = async (output, context) => {
|
|
383
|
-
const parsedOutput = {
|
|
384
|
-
...output,
|
|
385
|
-
body: await parseErrorBody(output.body, context),
|
|
386
|
-
};
|
|
387
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
388
|
-
switch (errorCode) {
|
|
389
|
-
case "IdempotentParameterMismatchException":
|
|
390
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
391
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
392
|
-
case "InternalServerException":
|
|
393
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
394
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
395
|
-
case "InvalidInputException":
|
|
396
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
397
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
398
|
-
default:
|
|
399
|
-
const parsedBody = parsedOutput.body;
|
|
400
|
-
return throwDefaultError({
|
|
401
|
-
output,
|
|
402
|
-
parsedBody,
|
|
403
|
-
errorCode,
|
|
404
|
-
});
|
|
405
|
-
}
|
|
406
|
-
};
|
|
407
251
|
export const de_CreateMLModelCommand = async (output, context) => {
|
|
408
252
|
if (output.statusCode >= 300) {
|
|
409
|
-
return
|
|
253
|
+
return de_CommandError(output, context);
|
|
410
254
|
}
|
|
411
255
|
const data = await parseBody(output.body, context);
|
|
412
256
|
let contents = {};
|
|
@@ -417,34 +261,9 @@ export const de_CreateMLModelCommand = async (output, context) => {
|
|
|
417
261
|
};
|
|
418
262
|
return response;
|
|
419
263
|
};
|
|
420
|
-
const de_CreateMLModelCommandError = async (output, context) => {
|
|
421
|
-
const parsedOutput = {
|
|
422
|
-
...output,
|
|
423
|
-
body: await parseErrorBody(output.body, context),
|
|
424
|
-
};
|
|
425
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
426
|
-
switch (errorCode) {
|
|
427
|
-
case "IdempotentParameterMismatchException":
|
|
428
|
-
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
429
|
-
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
430
|
-
case "InternalServerException":
|
|
431
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
432
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
433
|
-
case "InvalidInputException":
|
|
434
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
435
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
436
|
-
default:
|
|
437
|
-
const parsedBody = parsedOutput.body;
|
|
438
|
-
return throwDefaultError({
|
|
439
|
-
output,
|
|
440
|
-
parsedBody,
|
|
441
|
-
errorCode,
|
|
442
|
-
});
|
|
443
|
-
}
|
|
444
|
-
};
|
|
445
264
|
export const de_CreateRealtimeEndpointCommand = async (output, context) => {
|
|
446
265
|
if (output.statusCode >= 300) {
|
|
447
|
-
return
|
|
266
|
+
return de_CommandError(output, context);
|
|
448
267
|
}
|
|
449
268
|
const data = await parseBody(output.body, context);
|
|
450
269
|
let contents = {};
|
|
@@ -455,34 +274,9 @@ export const de_CreateRealtimeEndpointCommand = async (output, context) => {
|
|
|
455
274
|
};
|
|
456
275
|
return response;
|
|
457
276
|
};
|
|
458
|
-
const de_CreateRealtimeEndpointCommandError = async (output, context) => {
|
|
459
|
-
const parsedOutput = {
|
|
460
|
-
...output,
|
|
461
|
-
body: await parseErrorBody(output.body, context),
|
|
462
|
-
};
|
|
463
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
464
|
-
switch (errorCode) {
|
|
465
|
-
case "InternalServerException":
|
|
466
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
467
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
468
|
-
case "InvalidInputException":
|
|
469
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
470
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
471
|
-
case "ResourceNotFoundException":
|
|
472
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
473
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
474
|
-
default:
|
|
475
|
-
const parsedBody = parsedOutput.body;
|
|
476
|
-
return throwDefaultError({
|
|
477
|
-
output,
|
|
478
|
-
parsedBody,
|
|
479
|
-
errorCode,
|
|
480
|
-
});
|
|
481
|
-
}
|
|
482
|
-
};
|
|
483
277
|
export const de_DeleteBatchPredictionCommand = async (output, context) => {
|
|
484
278
|
if (output.statusCode >= 300) {
|
|
485
|
-
return
|
|
279
|
+
return de_CommandError(output, context);
|
|
486
280
|
}
|
|
487
281
|
const data = await parseBody(output.body, context);
|
|
488
282
|
let contents = {};
|
|
@@ -493,34 +287,9 @@ export const de_DeleteBatchPredictionCommand = async (output, context) => {
|
|
|
493
287
|
};
|
|
494
288
|
return response;
|
|
495
289
|
};
|
|
496
|
-
const de_DeleteBatchPredictionCommandError = async (output, context) => {
|
|
497
|
-
const parsedOutput = {
|
|
498
|
-
...output,
|
|
499
|
-
body: await parseErrorBody(output.body, context),
|
|
500
|
-
};
|
|
501
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
502
|
-
switch (errorCode) {
|
|
503
|
-
case "InternalServerException":
|
|
504
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
505
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
506
|
-
case "InvalidInputException":
|
|
507
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
508
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
509
|
-
case "ResourceNotFoundException":
|
|
510
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
511
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
512
|
-
default:
|
|
513
|
-
const parsedBody = parsedOutput.body;
|
|
514
|
-
return throwDefaultError({
|
|
515
|
-
output,
|
|
516
|
-
parsedBody,
|
|
517
|
-
errorCode,
|
|
518
|
-
});
|
|
519
|
-
}
|
|
520
|
-
};
|
|
521
290
|
export const de_DeleteDataSourceCommand = async (output, context) => {
|
|
522
291
|
if (output.statusCode >= 300) {
|
|
523
|
-
return
|
|
292
|
+
return de_CommandError(output, context);
|
|
524
293
|
}
|
|
525
294
|
const data = await parseBody(output.body, context);
|
|
526
295
|
let contents = {};
|
|
@@ -531,34 +300,9 @@ export const de_DeleteDataSourceCommand = async (output, context) => {
|
|
|
531
300
|
};
|
|
532
301
|
return response;
|
|
533
302
|
};
|
|
534
|
-
const de_DeleteDataSourceCommandError = async (output, context) => {
|
|
535
|
-
const parsedOutput = {
|
|
536
|
-
...output,
|
|
537
|
-
body: await parseErrorBody(output.body, context),
|
|
538
|
-
};
|
|
539
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
540
|
-
switch (errorCode) {
|
|
541
|
-
case "InternalServerException":
|
|
542
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
543
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
544
|
-
case "InvalidInputException":
|
|
545
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
546
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
547
|
-
case "ResourceNotFoundException":
|
|
548
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
549
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
550
|
-
default:
|
|
551
|
-
const parsedBody = parsedOutput.body;
|
|
552
|
-
return throwDefaultError({
|
|
553
|
-
output,
|
|
554
|
-
parsedBody,
|
|
555
|
-
errorCode,
|
|
556
|
-
});
|
|
557
|
-
}
|
|
558
|
-
};
|
|
559
303
|
export const de_DeleteEvaluationCommand = async (output, context) => {
|
|
560
304
|
if (output.statusCode >= 300) {
|
|
561
|
-
return
|
|
305
|
+
return de_CommandError(output, context);
|
|
562
306
|
}
|
|
563
307
|
const data = await parseBody(output.body, context);
|
|
564
308
|
let contents = {};
|
|
@@ -569,34 +313,9 @@ export const de_DeleteEvaluationCommand = async (output, context) => {
|
|
|
569
313
|
};
|
|
570
314
|
return response;
|
|
571
315
|
};
|
|
572
|
-
const de_DeleteEvaluationCommandError = async (output, context) => {
|
|
573
|
-
const parsedOutput = {
|
|
574
|
-
...output,
|
|
575
|
-
body: await parseErrorBody(output.body, context),
|
|
576
|
-
};
|
|
577
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
578
|
-
switch (errorCode) {
|
|
579
|
-
case "InternalServerException":
|
|
580
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
581
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
582
|
-
case "InvalidInputException":
|
|
583
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
584
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
585
|
-
case "ResourceNotFoundException":
|
|
586
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
587
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
588
|
-
default:
|
|
589
|
-
const parsedBody = parsedOutput.body;
|
|
590
|
-
return throwDefaultError({
|
|
591
|
-
output,
|
|
592
|
-
parsedBody,
|
|
593
|
-
errorCode,
|
|
594
|
-
});
|
|
595
|
-
}
|
|
596
|
-
};
|
|
597
316
|
export const de_DeleteMLModelCommand = async (output, context) => {
|
|
598
317
|
if (output.statusCode >= 300) {
|
|
599
|
-
return
|
|
318
|
+
return de_CommandError(output, context);
|
|
600
319
|
}
|
|
601
320
|
const data = await parseBody(output.body, context);
|
|
602
321
|
let contents = {};
|
|
@@ -607,34 +326,9 @@ export const de_DeleteMLModelCommand = async (output, context) => {
|
|
|
607
326
|
};
|
|
608
327
|
return response;
|
|
609
328
|
};
|
|
610
|
-
const de_DeleteMLModelCommandError = async (output, context) => {
|
|
611
|
-
const parsedOutput = {
|
|
612
|
-
...output,
|
|
613
|
-
body: await parseErrorBody(output.body, context),
|
|
614
|
-
};
|
|
615
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
616
|
-
switch (errorCode) {
|
|
617
|
-
case "InternalServerException":
|
|
618
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
619
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
620
|
-
case "InvalidInputException":
|
|
621
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
622
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
623
|
-
case "ResourceNotFoundException":
|
|
624
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
625
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
626
|
-
default:
|
|
627
|
-
const parsedBody = parsedOutput.body;
|
|
628
|
-
return throwDefaultError({
|
|
629
|
-
output,
|
|
630
|
-
parsedBody,
|
|
631
|
-
errorCode,
|
|
632
|
-
});
|
|
633
|
-
}
|
|
634
|
-
};
|
|
635
329
|
export const de_DeleteRealtimeEndpointCommand = async (output, context) => {
|
|
636
330
|
if (output.statusCode >= 300) {
|
|
637
|
-
return
|
|
331
|
+
return de_CommandError(output, context);
|
|
638
332
|
}
|
|
639
333
|
const data = await parseBody(output.body, context);
|
|
640
334
|
let contents = {};
|
|
@@ -645,34 +339,9 @@ export const de_DeleteRealtimeEndpointCommand = async (output, context) => {
|
|
|
645
339
|
};
|
|
646
340
|
return response;
|
|
647
341
|
};
|
|
648
|
-
const de_DeleteRealtimeEndpointCommandError = async (output, context) => {
|
|
649
|
-
const parsedOutput = {
|
|
650
|
-
...output,
|
|
651
|
-
body: await parseErrorBody(output.body, context),
|
|
652
|
-
};
|
|
653
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
654
|
-
switch (errorCode) {
|
|
655
|
-
case "InternalServerException":
|
|
656
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
657
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
658
|
-
case "InvalidInputException":
|
|
659
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
660
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
661
|
-
case "ResourceNotFoundException":
|
|
662
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
663
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
664
|
-
default:
|
|
665
|
-
const parsedBody = parsedOutput.body;
|
|
666
|
-
return throwDefaultError({
|
|
667
|
-
output,
|
|
668
|
-
parsedBody,
|
|
669
|
-
errorCode,
|
|
670
|
-
});
|
|
671
|
-
}
|
|
672
|
-
};
|
|
673
342
|
export const de_DeleteTagsCommand = async (output, context) => {
|
|
674
343
|
if (output.statusCode >= 300) {
|
|
675
|
-
return
|
|
344
|
+
return de_CommandError(output, context);
|
|
676
345
|
}
|
|
677
346
|
const data = await parseBody(output.body, context);
|
|
678
347
|
let contents = {};
|
|
@@ -683,37 +352,9 @@ export const de_DeleteTagsCommand = async (output, context) => {
|
|
|
683
352
|
};
|
|
684
353
|
return response;
|
|
685
354
|
};
|
|
686
|
-
const de_DeleteTagsCommandError = async (output, context) => {
|
|
687
|
-
const parsedOutput = {
|
|
688
|
-
...output,
|
|
689
|
-
body: await parseErrorBody(output.body, context),
|
|
690
|
-
};
|
|
691
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
692
|
-
switch (errorCode) {
|
|
693
|
-
case "InternalServerException":
|
|
694
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
695
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
696
|
-
case "InvalidInputException":
|
|
697
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
698
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
699
|
-
case "InvalidTagException":
|
|
700
|
-
case "com.amazonaws.machinelearning#InvalidTagException":
|
|
701
|
-
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
702
|
-
case "ResourceNotFoundException":
|
|
703
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
704
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
705
|
-
default:
|
|
706
|
-
const parsedBody = parsedOutput.body;
|
|
707
|
-
return throwDefaultError({
|
|
708
|
-
output,
|
|
709
|
-
parsedBody,
|
|
710
|
-
errorCode,
|
|
711
|
-
});
|
|
712
|
-
}
|
|
713
|
-
};
|
|
714
355
|
export const de_DescribeBatchPredictionsCommand = async (output, context) => {
|
|
715
356
|
if (output.statusCode >= 300) {
|
|
716
|
-
return
|
|
357
|
+
return de_CommandError(output, context);
|
|
717
358
|
}
|
|
718
359
|
const data = await parseBody(output.body, context);
|
|
719
360
|
let contents = {};
|
|
@@ -724,31 +365,9 @@ export const de_DescribeBatchPredictionsCommand = async (output, context) => {
|
|
|
724
365
|
};
|
|
725
366
|
return response;
|
|
726
367
|
};
|
|
727
|
-
const de_DescribeBatchPredictionsCommandError = async (output, context) => {
|
|
728
|
-
const parsedOutput = {
|
|
729
|
-
...output,
|
|
730
|
-
body: await parseErrorBody(output.body, context),
|
|
731
|
-
};
|
|
732
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
733
|
-
switch (errorCode) {
|
|
734
|
-
case "InternalServerException":
|
|
735
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
736
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
737
|
-
case "InvalidInputException":
|
|
738
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
739
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
740
|
-
default:
|
|
741
|
-
const parsedBody = parsedOutput.body;
|
|
742
|
-
return throwDefaultError({
|
|
743
|
-
output,
|
|
744
|
-
parsedBody,
|
|
745
|
-
errorCode,
|
|
746
|
-
});
|
|
747
|
-
}
|
|
748
|
-
};
|
|
749
368
|
export const de_DescribeDataSourcesCommand = async (output, context) => {
|
|
750
369
|
if (output.statusCode >= 300) {
|
|
751
|
-
return
|
|
370
|
+
return de_CommandError(output, context);
|
|
752
371
|
}
|
|
753
372
|
const data = await parseBody(output.body, context);
|
|
754
373
|
let contents = {};
|
|
@@ -759,101 +378,35 @@ export const de_DescribeDataSourcesCommand = async (output, context) => {
|
|
|
759
378
|
};
|
|
760
379
|
return response;
|
|
761
380
|
};
|
|
762
|
-
const de_DescribeDataSourcesCommandError = async (output, context) => {
|
|
763
|
-
const parsedOutput = {
|
|
764
|
-
...output,
|
|
765
|
-
body: await parseErrorBody(output.body, context),
|
|
766
|
-
};
|
|
767
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
768
|
-
switch (errorCode) {
|
|
769
|
-
case "InternalServerException":
|
|
770
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
771
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
772
|
-
case "InvalidInputException":
|
|
773
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
774
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
775
|
-
default:
|
|
776
|
-
const parsedBody = parsedOutput.body;
|
|
777
|
-
return throwDefaultError({
|
|
778
|
-
output,
|
|
779
|
-
parsedBody,
|
|
780
|
-
errorCode,
|
|
781
|
-
});
|
|
782
|
-
}
|
|
783
|
-
};
|
|
784
381
|
export const de_DescribeEvaluationsCommand = async (output, context) => {
|
|
785
382
|
if (output.statusCode >= 300) {
|
|
786
|
-
return
|
|
787
|
-
}
|
|
788
|
-
const data = await parseBody(output.body, context);
|
|
789
|
-
let contents = {};
|
|
790
|
-
contents = de_DescribeEvaluationsOutput(data, context);
|
|
791
|
-
const response = {
|
|
792
|
-
$metadata: deserializeMetadata(output),
|
|
793
|
-
...contents,
|
|
794
|
-
};
|
|
795
|
-
return response;
|
|
796
|
-
};
|
|
797
|
-
const de_DescribeEvaluationsCommandError = async (output, context) => {
|
|
798
|
-
const parsedOutput = {
|
|
799
|
-
...output,
|
|
800
|
-
body: await parseErrorBody(output.body, context),
|
|
801
|
-
};
|
|
802
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
803
|
-
switch (errorCode) {
|
|
804
|
-
case "InternalServerException":
|
|
805
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
806
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
807
|
-
case "InvalidInputException":
|
|
808
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
809
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
810
|
-
default:
|
|
811
|
-
const parsedBody = parsedOutput.body;
|
|
812
|
-
return throwDefaultError({
|
|
813
|
-
output,
|
|
814
|
-
parsedBody,
|
|
815
|
-
errorCode,
|
|
816
|
-
});
|
|
817
|
-
}
|
|
818
|
-
};
|
|
819
|
-
export const de_DescribeMLModelsCommand = async (output, context) => {
|
|
820
|
-
if (output.statusCode >= 300) {
|
|
821
|
-
return de_DescribeMLModelsCommandError(output, context);
|
|
383
|
+
return de_CommandError(output, context);
|
|
822
384
|
}
|
|
823
|
-
const data = await parseBody(output.body, context);
|
|
824
|
-
let contents = {};
|
|
825
|
-
contents =
|
|
826
|
-
const response = {
|
|
827
|
-
$metadata: deserializeMetadata(output),
|
|
828
|
-
...contents,
|
|
829
|
-
};
|
|
830
|
-
return response;
|
|
831
|
-
};
|
|
832
|
-
const
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
body: await parseErrorBody(output.body, context),
|
|
836
|
-
};
|
|
837
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
838
|
-
switch (errorCode) {
|
|
839
|
-
case "InternalServerException":
|
|
840
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
841
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
842
|
-
case "InvalidInputException":
|
|
843
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
844
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
845
|
-
default:
|
|
846
|
-
const parsedBody = parsedOutput.body;
|
|
847
|
-
return throwDefaultError({
|
|
848
|
-
output,
|
|
849
|
-
parsedBody,
|
|
850
|
-
errorCode,
|
|
851
|
-
});
|
|
385
|
+
const data = await parseBody(output.body, context);
|
|
386
|
+
let contents = {};
|
|
387
|
+
contents = de_DescribeEvaluationsOutput(data, context);
|
|
388
|
+
const response = {
|
|
389
|
+
$metadata: deserializeMetadata(output),
|
|
390
|
+
...contents,
|
|
391
|
+
};
|
|
392
|
+
return response;
|
|
393
|
+
};
|
|
394
|
+
export const de_DescribeMLModelsCommand = async (output, context) => {
|
|
395
|
+
if (output.statusCode >= 300) {
|
|
396
|
+
return de_CommandError(output, context);
|
|
852
397
|
}
|
|
398
|
+
const data = await parseBody(output.body, context);
|
|
399
|
+
let contents = {};
|
|
400
|
+
contents = de_DescribeMLModelsOutput(data, context);
|
|
401
|
+
const response = {
|
|
402
|
+
$metadata: deserializeMetadata(output),
|
|
403
|
+
...contents,
|
|
404
|
+
};
|
|
405
|
+
return response;
|
|
853
406
|
};
|
|
854
407
|
export const de_DescribeTagsCommand = async (output, context) => {
|
|
855
408
|
if (output.statusCode >= 300) {
|
|
856
|
-
return
|
|
409
|
+
return de_CommandError(output, context);
|
|
857
410
|
}
|
|
858
411
|
const data = await parseBody(output.body, context);
|
|
859
412
|
let contents = {};
|
|
@@ -864,34 +417,9 @@ export const de_DescribeTagsCommand = async (output, context) => {
|
|
|
864
417
|
};
|
|
865
418
|
return response;
|
|
866
419
|
};
|
|
867
|
-
const de_DescribeTagsCommandError = async (output, context) => {
|
|
868
|
-
const parsedOutput = {
|
|
869
|
-
...output,
|
|
870
|
-
body: await parseErrorBody(output.body, context),
|
|
871
|
-
};
|
|
872
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
873
|
-
switch (errorCode) {
|
|
874
|
-
case "InternalServerException":
|
|
875
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
876
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
877
|
-
case "InvalidInputException":
|
|
878
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
879
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
880
|
-
case "ResourceNotFoundException":
|
|
881
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
882
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
883
|
-
default:
|
|
884
|
-
const parsedBody = parsedOutput.body;
|
|
885
|
-
return throwDefaultError({
|
|
886
|
-
output,
|
|
887
|
-
parsedBody,
|
|
888
|
-
errorCode,
|
|
889
|
-
});
|
|
890
|
-
}
|
|
891
|
-
};
|
|
892
420
|
export const de_GetBatchPredictionCommand = async (output, context) => {
|
|
893
421
|
if (output.statusCode >= 300) {
|
|
894
|
-
return
|
|
422
|
+
return de_CommandError(output, context);
|
|
895
423
|
}
|
|
896
424
|
const data = await parseBody(output.body, context);
|
|
897
425
|
let contents = {};
|
|
@@ -902,34 +430,9 @@ export const de_GetBatchPredictionCommand = async (output, context) => {
|
|
|
902
430
|
};
|
|
903
431
|
return response;
|
|
904
432
|
};
|
|
905
|
-
const de_GetBatchPredictionCommandError = async (output, context) => {
|
|
906
|
-
const parsedOutput = {
|
|
907
|
-
...output,
|
|
908
|
-
body: await parseErrorBody(output.body, context),
|
|
909
|
-
};
|
|
910
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
911
|
-
switch (errorCode) {
|
|
912
|
-
case "InternalServerException":
|
|
913
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
914
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
915
|
-
case "InvalidInputException":
|
|
916
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
917
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
918
|
-
case "ResourceNotFoundException":
|
|
919
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
920
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
921
|
-
default:
|
|
922
|
-
const parsedBody = parsedOutput.body;
|
|
923
|
-
return throwDefaultError({
|
|
924
|
-
output,
|
|
925
|
-
parsedBody,
|
|
926
|
-
errorCode,
|
|
927
|
-
});
|
|
928
|
-
}
|
|
929
|
-
};
|
|
930
433
|
export const de_GetDataSourceCommand = async (output, context) => {
|
|
931
434
|
if (output.statusCode >= 300) {
|
|
932
|
-
return
|
|
435
|
+
return de_CommandError(output, context);
|
|
933
436
|
}
|
|
934
437
|
const data = await parseBody(output.body, context);
|
|
935
438
|
let contents = {};
|
|
@@ -940,34 +443,9 @@ export const de_GetDataSourceCommand = async (output, context) => {
|
|
|
940
443
|
};
|
|
941
444
|
return response;
|
|
942
445
|
};
|
|
943
|
-
const de_GetDataSourceCommandError = async (output, context) => {
|
|
944
|
-
const parsedOutput = {
|
|
945
|
-
...output,
|
|
946
|
-
body: await parseErrorBody(output.body, context),
|
|
947
|
-
};
|
|
948
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
949
|
-
switch (errorCode) {
|
|
950
|
-
case "InternalServerException":
|
|
951
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
952
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
953
|
-
case "InvalidInputException":
|
|
954
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
955
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
956
|
-
case "ResourceNotFoundException":
|
|
957
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
958
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
959
|
-
default:
|
|
960
|
-
const parsedBody = parsedOutput.body;
|
|
961
|
-
return throwDefaultError({
|
|
962
|
-
output,
|
|
963
|
-
parsedBody,
|
|
964
|
-
errorCode,
|
|
965
|
-
});
|
|
966
|
-
}
|
|
967
|
-
};
|
|
968
446
|
export const de_GetEvaluationCommand = async (output, context) => {
|
|
969
447
|
if (output.statusCode >= 300) {
|
|
970
|
-
return
|
|
448
|
+
return de_CommandError(output, context);
|
|
971
449
|
}
|
|
972
450
|
const data = await parseBody(output.body, context);
|
|
973
451
|
let contents = {};
|
|
@@ -978,34 +456,9 @@ export const de_GetEvaluationCommand = async (output, context) => {
|
|
|
978
456
|
};
|
|
979
457
|
return response;
|
|
980
458
|
};
|
|
981
|
-
const de_GetEvaluationCommandError = async (output, context) => {
|
|
982
|
-
const parsedOutput = {
|
|
983
|
-
...output,
|
|
984
|
-
body: await parseErrorBody(output.body, context),
|
|
985
|
-
};
|
|
986
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
987
|
-
switch (errorCode) {
|
|
988
|
-
case "InternalServerException":
|
|
989
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
990
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
991
|
-
case "InvalidInputException":
|
|
992
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
993
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
994
|
-
case "ResourceNotFoundException":
|
|
995
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
996
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
997
|
-
default:
|
|
998
|
-
const parsedBody = parsedOutput.body;
|
|
999
|
-
return throwDefaultError({
|
|
1000
|
-
output,
|
|
1001
|
-
parsedBody,
|
|
1002
|
-
errorCode,
|
|
1003
|
-
});
|
|
1004
|
-
}
|
|
1005
|
-
};
|
|
1006
459
|
export const de_GetMLModelCommand = async (output, context) => {
|
|
1007
460
|
if (output.statusCode >= 300) {
|
|
1008
|
-
return
|
|
461
|
+
return de_CommandError(output, context);
|
|
1009
462
|
}
|
|
1010
463
|
const data = await parseBody(output.body, context);
|
|
1011
464
|
let contents = {};
|
|
@@ -1016,34 +469,9 @@ export const de_GetMLModelCommand = async (output, context) => {
|
|
|
1016
469
|
};
|
|
1017
470
|
return response;
|
|
1018
471
|
};
|
|
1019
|
-
const de_GetMLModelCommandError = async (output, context) => {
|
|
1020
|
-
const parsedOutput = {
|
|
1021
|
-
...output,
|
|
1022
|
-
body: await parseErrorBody(output.body, context),
|
|
1023
|
-
};
|
|
1024
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1025
|
-
switch (errorCode) {
|
|
1026
|
-
case "InternalServerException":
|
|
1027
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1028
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1029
|
-
case "InvalidInputException":
|
|
1030
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1031
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1032
|
-
case "ResourceNotFoundException":
|
|
1033
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1034
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1035
|
-
default:
|
|
1036
|
-
const parsedBody = parsedOutput.body;
|
|
1037
|
-
return throwDefaultError({
|
|
1038
|
-
output,
|
|
1039
|
-
parsedBody,
|
|
1040
|
-
errorCode,
|
|
1041
|
-
});
|
|
1042
|
-
}
|
|
1043
|
-
};
|
|
1044
472
|
export const de_PredictCommand = async (output, context) => {
|
|
1045
473
|
if (output.statusCode >= 300) {
|
|
1046
|
-
return
|
|
474
|
+
return de_CommandError(output, context);
|
|
1047
475
|
}
|
|
1048
476
|
const data = await parseBody(output.body, context);
|
|
1049
477
|
let contents = {};
|
|
@@ -1054,40 +482,9 @@ export const de_PredictCommand = async (output, context) => {
|
|
|
1054
482
|
};
|
|
1055
483
|
return response;
|
|
1056
484
|
};
|
|
1057
|
-
const de_PredictCommandError = async (output, context) => {
|
|
1058
|
-
const parsedOutput = {
|
|
1059
|
-
...output,
|
|
1060
|
-
body: await parseErrorBody(output.body, context),
|
|
1061
|
-
};
|
|
1062
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1063
|
-
switch (errorCode) {
|
|
1064
|
-
case "InternalServerException":
|
|
1065
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1066
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1067
|
-
case "InvalidInputException":
|
|
1068
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1069
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1070
|
-
case "LimitExceededException":
|
|
1071
|
-
case "com.amazonaws.machinelearning#LimitExceededException":
|
|
1072
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1073
|
-
case "PredictorNotMountedException":
|
|
1074
|
-
case "com.amazonaws.machinelearning#PredictorNotMountedException":
|
|
1075
|
-
throw await de_PredictorNotMountedExceptionRes(parsedOutput, context);
|
|
1076
|
-
case "ResourceNotFoundException":
|
|
1077
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1078
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1079
|
-
default:
|
|
1080
|
-
const parsedBody = parsedOutput.body;
|
|
1081
|
-
return throwDefaultError({
|
|
1082
|
-
output,
|
|
1083
|
-
parsedBody,
|
|
1084
|
-
errorCode,
|
|
1085
|
-
});
|
|
1086
|
-
}
|
|
1087
|
-
};
|
|
1088
485
|
export const de_UpdateBatchPredictionCommand = async (output, context) => {
|
|
1089
486
|
if (output.statusCode >= 300) {
|
|
1090
|
-
return
|
|
487
|
+
return de_CommandError(output, context);
|
|
1091
488
|
}
|
|
1092
489
|
const data = await parseBody(output.body, context);
|
|
1093
490
|
let contents = {};
|
|
@@ -1098,34 +495,9 @@ export const de_UpdateBatchPredictionCommand = async (output, context) => {
|
|
|
1098
495
|
};
|
|
1099
496
|
return response;
|
|
1100
497
|
};
|
|
1101
|
-
const de_UpdateBatchPredictionCommandError = async (output, context) => {
|
|
1102
|
-
const parsedOutput = {
|
|
1103
|
-
...output,
|
|
1104
|
-
body: await parseErrorBody(output.body, context),
|
|
1105
|
-
};
|
|
1106
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1107
|
-
switch (errorCode) {
|
|
1108
|
-
case "InternalServerException":
|
|
1109
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1110
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1111
|
-
case "InvalidInputException":
|
|
1112
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1113
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1114
|
-
case "ResourceNotFoundException":
|
|
1115
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1116
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1117
|
-
default:
|
|
1118
|
-
const parsedBody = parsedOutput.body;
|
|
1119
|
-
return throwDefaultError({
|
|
1120
|
-
output,
|
|
1121
|
-
parsedBody,
|
|
1122
|
-
errorCode,
|
|
1123
|
-
});
|
|
1124
|
-
}
|
|
1125
|
-
};
|
|
1126
498
|
export const de_UpdateDataSourceCommand = async (output, context) => {
|
|
1127
499
|
if (output.statusCode >= 300) {
|
|
1128
|
-
return
|
|
500
|
+
return de_CommandError(output, context);
|
|
1129
501
|
}
|
|
1130
502
|
const data = await parseBody(output.body, context);
|
|
1131
503
|
let contents = {};
|
|
@@ -1136,34 +508,9 @@ export const de_UpdateDataSourceCommand = async (output, context) => {
|
|
|
1136
508
|
};
|
|
1137
509
|
return response;
|
|
1138
510
|
};
|
|
1139
|
-
const de_UpdateDataSourceCommandError = async (output, context) => {
|
|
1140
|
-
const parsedOutput = {
|
|
1141
|
-
...output,
|
|
1142
|
-
body: await parseErrorBody(output.body, context),
|
|
1143
|
-
};
|
|
1144
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1145
|
-
switch (errorCode) {
|
|
1146
|
-
case "InternalServerException":
|
|
1147
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1148
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1149
|
-
case "InvalidInputException":
|
|
1150
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1151
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1152
|
-
case "ResourceNotFoundException":
|
|
1153
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1154
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1155
|
-
default:
|
|
1156
|
-
const parsedBody = parsedOutput.body;
|
|
1157
|
-
return throwDefaultError({
|
|
1158
|
-
output,
|
|
1159
|
-
parsedBody,
|
|
1160
|
-
errorCode,
|
|
1161
|
-
});
|
|
1162
|
-
}
|
|
1163
|
-
};
|
|
1164
511
|
export const de_UpdateEvaluationCommand = async (output, context) => {
|
|
1165
512
|
if (output.statusCode >= 300) {
|
|
1166
|
-
return
|
|
513
|
+
return de_CommandError(output, context);
|
|
1167
514
|
}
|
|
1168
515
|
const data = await parseBody(output.body, context);
|
|
1169
516
|
let contents = {};
|
|
@@ -1174,34 +521,9 @@ export const de_UpdateEvaluationCommand = async (output, context) => {
|
|
|
1174
521
|
};
|
|
1175
522
|
return response;
|
|
1176
523
|
};
|
|
1177
|
-
const de_UpdateEvaluationCommandError = async (output, context) => {
|
|
1178
|
-
const parsedOutput = {
|
|
1179
|
-
...output,
|
|
1180
|
-
body: await parseErrorBody(output.body, context),
|
|
1181
|
-
};
|
|
1182
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1183
|
-
switch (errorCode) {
|
|
1184
|
-
case "InternalServerException":
|
|
1185
|
-
case "com.amazonaws.machinelearning#InternalServerException":
|
|
1186
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1187
|
-
case "InvalidInputException":
|
|
1188
|
-
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1189
|
-
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
1190
|
-
case "ResourceNotFoundException":
|
|
1191
|
-
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1192
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1193
|
-
default:
|
|
1194
|
-
const parsedBody = parsedOutput.body;
|
|
1195
|
-
return throwDefaultError({
|
|
1196
|
-
output,
|
|
1197
|
-
parsedBody,
|
|
1198
|
-
errorCode,
|
|
1199
|
-
});
|
|
1200
|
-
}
|
|
1201
|
-
};
|
|
1202
524
|
export const de_UpdateMLModelCommand = async (output, context) => {
|
|
1203
525
|
if (output.statusCode >= 300) {
|
|
1204
|
-
return
|
|
526
|
+
return de_CommandError(output, context);
|
|
1205
527
|
}
|
|
1206
528
|
const data = await parseBody(output.body, context);
|
|
1207
529
|
let contents = {};
|
|
@@ -1212,7 +534,7 @@ export const de_UpdateMLModelCommand = async (output, context) => {
|
|
|
1212
534
|
};
|
|
1213
535
|
return response;
|
|
1214
536
|
};
|
|
1215
|
-
const
|
|
537
|
+
const de_CommandError = async (output, context) => {
|
|
1216
538
|
const parsedOutput = {
|
|
1217
539
|
...output,
|
|
1218
540
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1225,9 +547,24 @@ const de_UpdateMLModelCommandError = async (output, context) => {
|
|
|
1225
547
|
case "InvalidInputException":
|
|
1226
548
|
case "com.amazonaws.machinelearning#InvalidInputException":
|
|
1227
549
|
throw await de_InvalidInputExceptionRes(parsedOutput, context);
|
|
550
|
+
case "InvalidTagException":
|
|
551
|
+
case "com.amazonaws.machinelearning#InvalidTagException":
|
|
552
|
+
throw await de_InvalidTagExceptionRes(parsedOutput, context);
|
|
1228
553
|
case "ResourceNotFoundException":
|
|
1229
554
|
case "com.amazonaws.machinelearning#ResourceNotFoundException":
|
|
1230
555
|
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
556
|
+
case "TagLimitExceededException":
|
|
557
|
+
case "com.amazonaws.machinelearning#TagLimitExceededException":
|
|
558
|
+
throw await de_TagLimitExceededExceptionRes(parsedOutput, context);
|
|
559
|
+
case "IdempotentParameterMismatchException":
|
|
560
|
+
case "com.amazonaws.machinelearning#IdempotentParameterMismatchException":
|
|
561
|
+
throw await de_IdempotentParameterMismatchExceptionRes(parsedOutput, context);
|
|
562
|
+
case "LimitExceededException":
|
|
563
|
+
case "com.amazonaws.machinelearning#LimitExceededException":
|
|
564
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
565
|
+
case "PredictorNotMountedException":
|
|
566
|
+
case "com.amazonaws.machinelearning#PredictorNotMountedException":
|
|
567
|
+
throw await de_PredictorNotMountedExceptionRes(parsedOutput, context);
|
|
1231
568
|
default:
|
|
1232
569
|
const parsedBody = parsedOutput.body;
|
|
1233
570
|
return throwDefaultError({
|