@aws-sdk/client-emr-containers 3.504.0 → 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 +28 -479
- package/dist-es/protocols/Aws_restJson1.js +27 -478
- package/package.json +3 -3
|
@@ -281,7 +281,7 @@ export const se_UntagResourceCommand = async (input, context) => {
|
|
|
281
281
|
};
|
|
282
282
|
export const de_CancelJobRunCommand = async (output, context) => {
|
|
283
283
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
284
|
-
return
|
|
284
|
+
return de_CommandError(output, context);
|
|
285
285
|
}
|
|
286
286
|
const contents = map({
|
|
287
287
|
$metadata: deserializeMetadata(output),
|
|
@@ -294,31 +294,9 @@ export const de_CancelJobRunCommand = async (output, context) => {
|
|
|
294
294
|
Object.assign(contents, doc);
|
|
295
295
|
return contents;
|
|
296
296
|
};
|
|
297
|
-
const de_CancelJobRunCommandError = async (output, context) => {
|
|
298
|
-
const parsedOutput = {
|
|
299
|
-
...output,
|
|
300
|
-
body: await parseErrorBody(output.body, context),
|
|
301
|
-
};
|
|
302
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
303
|
-
switch (errorCode) {
|
|
304
|
-
case "InternalServerException":
|
|
305
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
306
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
307
|
-
case "ValidationException":
|
|
308
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
309
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
310
|
-
default:
|
|
311
|
-
const parsedBody = parsedOutput.body;
|
|
312
|
-
return throwDefaultError({
|
|
313
|
-
output,
|
|
314
|
-
parsedBody,
|
|
315
|
-
errorCode,
|
|
316
|
-
});
|
|
317
|
-
}
|
|
318
|
-
};
|
|
319
297
|
export const de_CreateJobTemplateCommand = async (output, context) => {
|
|
320
298
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
321
|
-
return
|
|
299
|
+
return de_CommandError(output, context);
|
|
322
300
|
}
|
|
323
301
|
const contents = map({
|
|
324
302
|
$metadata: deserializeMetadata(output),
|
|
@@ -333,34 +311,9 @@ export const de_CreateJobTemplateCommand = async (output, context) => {
|
|
|
333
311
|
Object.assign(contents, doc);
|
|
334
312
|
return contents;
|
|
335
313
|
};
|
|
336
|
-
const de_CreateJobTemplateCommandError = async (output, context) => {
|
|
337
|
-
const parsedOutput = {
|
|
338
|
-
...output,
|
|
339
|
-
body: await parseErrorBody(output.body, context),
|
|
340
|
-
};
|
|
341
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
342
|
-
switch (errorCode) {
|
|
343
|
-
case "InternalServerException":
|
|
344
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
345
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
346
|
-
case "ResourceNotFoundException":
|
|
347
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
348
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
349
|
-
case "ValidationException":
|
|
350
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
351
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
352
|
-
default:
|
|
353
|
-
const parsedBody = parsedOutput.body;
|
|
354
|
-
return throwDefaultError({
|
|
355
|
-
output,
|
|
356
|
-
parsedBody,
|
|
357
|
-
errorCode,
|
|
358
|
-
});
|
|
359
|
-
}
|
|
360
|
-
};
|
|
361
314
|
export const de_CreateManagedEndpointCommand = async (output, context) => {
|
|
362
315
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
363
|
-
return
|
|
316
|
+
return de_CommandError(output, context);
|
|
364
317
|
}
|
|
365
318
|
const contents = map({
|
|
366
319
|
$metadata: deserializeMetadata(output),
|
|
@@ -375,34 +328,9 @@ export const de_CreateManagedEndpointCommand = async (output, context) => {
|
|
|
375
328
|
Object.assign(contents, doc);
|
|
376
329
|
return contents;
|
|
377
330
|
};
|
|
378
|
-
const de_CreateManagedEndpointCommandError = async (output, context) => {
|
|
379
|
-
const parsedOutput = {
|
|
380
|
-
...output,
|
|
381
|
-
body: await parseErrorBody(output.body, context),
|
|
382
|
-
};
|
|
383
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
384
|
-
switch (errorCode) {
|
|
385
|
-
case "InternalServerException":
|
|
386
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
387
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
388
|
-
case "ResourceNotFoundException":
|
|
389
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
390
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
391
|
-
case "ValidationException":
|
|
392
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
393
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
394
|
-
default:
|
|
395
|
-
const parsedBody = parsedOutput.body;
|
|
396
|
-
return throwDefaultError({
|
|
397
|
-
output,
|
|
398
|
-
parsedBody,
|
|
399
|
-
errorCode,
|
|
400
|
-
});
|
|
401
|
-
}
|
|
402
|
-
};
|
|
403
331
|
export const de_CreateVirtualClusterCommand = async (output, context) => {
|
|
404
332
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
405
|
-
return
|
|
333
|
+
return de_CommandError(output, context);
|
|
406
334
|
}
|
|
407
335
|
const contents = map({
|
|
408
336
|
$metadata: deserializeMetadata(output),
|
|
@@ -416,34 +344,9 @@ export const de_CreateVirtualClusterCommand = async (output, context) => {
|
|
|
416
344
|
Object.assign(contents, doc);
|
|
417
345
|
return contents;
|
|
418
346
|
};
|
|
419
|
-
const de_CreateVirtualClusterCommandError = async (output, context) => {
|
|
420
|
-
const parsedOutput = {
|
|
421
|
-
...output,
|
|
422
|
-
body: await parseErrorBody(output.body, context),
|
|
423
|
-
};
|
|
424
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
425
|
-
switch (errorCode) {
|
|
426
|
-
case "InternalServerException":
|
|
427
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
428
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
429
|
-
case "ResourceNotFoundException":
|
|
430
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
431
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
432
|
-
case "ValidationException":
|
|
433
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
434
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
435
|
-
default:
|
|
436
|
-
const parsedBody = parsedOutput.body;
|
|
437
|
-
return throwDefaultError({
|
|
438
|
-
output,
|
|
439
|
-
parsedBody,
|
|
440
|
-
errorCode,
|
|
441
|
-
});
|
|
442
|
-
}
|
|
443
|
-
};
|
|
444
347
|
export const de_DeleteJobTemplateCommand = async (output, context) => {
|
|
445
348
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
446
|
-
return
|
|
349
|
+
return de_CommandError(output, context);
|
|
447
350
|
}
|
|
448
351
|
const contents = map({
|
|
449
352
|
$metadata: deserializeMetadata(output),
|
|
@@ -455,31 +358,9 @@ export const de_DeleteJobTemplateCommand = async (output, context) => {
|
|
|
455
358
|
Object.assign(contents, doc);
|
|
456
359
|
return contents;
|
|
457
360
|
};
|
|
458
|
-
const de_DeleteJobTemplateCommandError = 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.emrcontainers#InternalServerException":
|
|
467
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
468
|
-
case "ValidationException":
|
|
469
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
470
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
471
|
-
default:
|
|
472
|
-
const parsedBody = parsedOutput.body;
|
|
473
|
-
return throwDefaultError({
|
|
474
|
-
output,
|
|
475
|
-
parsedBody,
|
|
476
|
-
errorCode,
|
|
477
|
-
});
|
|
478
|
-
}
|
|
479
|
-
};
|
|
480
361
|
export const de_DeleteManagedEndpointCommand = async (output, context) => {
|
|
481
362
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
482
|
-
return
|
|
363
|
+
return de_CommandError(output, context);
|
|
483
364
|
}
|
|
484
365
|
const contents = map({
|
|
485
366
|
$metadata: deserializeMetadata(output),
|
|
@@ -492,31 +373,9 @@ export const de_DeleteManagedEndpointCommand = async (output, context) => {
|
|
|
492
373
|
Object.assign(contents, doc);
|
|
493
374
|
return contents;
|
|
494
375
|
};
|
|
495
|
-
const de_DeleteManagedEndpointCommandError = async (output, context) => {
|
|
496
|
-
const parsedOutput = {
|
|
497
|
-
...output,
|
|
498
|
-
body: await parseErrorBody(output.body, context),
|
|
499
|
-
};
|
|
500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
501
|
-
switch (errorCode) {
|
|
502
|
-
case "InternalServerException":
|
|
503
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
504
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
505
|
-
case "ValidationException":
|
|
506
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
507
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
508
|
-
default:
|
|
509
|
-
const parsedBody = parsedOutput.body;
|
|
510
|
-
return throwDefaultError({
|
|
511
|
-
output,
|
|
512
|
-
parsedBody,
|
|
513
|
-
errorCode,
|
|
514
|
-
});
|
|
515
|
-
}
|
|
516
|
-
};
|
|
517
376
|
export const de_DeleteVirtualClusterCommand = async (output, context) => {
|
|
518
377
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
519
|
-
return
|
|
378
|
+
return de_CommandError(output, context);
|
|
520
379
|
}
|
|
521
380
|
const contents = map({
|
|
522
381
|
$metadata: deserializeMetadata(output),
|
|
@@ -528,31 +387,9 @@ export const de_DeleteVirtualClusterCommand = async (output, context) => {
|
|
|
528
387
|
Object.assign(contents, doc);
|
|
529
388
|
return contents;
|
|
530
389
|
};
|
|
531
|
-
const de_DeleteVirtualClusterCommandError = async (output, context) => {
|
|
532
|
-
const parsedOutput = {
|
|
533
|
-
...output,
|
|
534
|
-
body: await parseErrorBody(output.body, context),
|
|
535
|
-
};
|
|
536
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
537
|
-
switch (errorCode) {
|
|
538
|
-
case "InternalServerException":
|
|
539
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
540
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
541
|
-
case "ValidationException":
|
|
542
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
543
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
544
|
-
default:
|
|
545
|
-
const parsedBody = parsedOutput.body;
|
|
546
|
-
return throwDefaultError({
|
|
547
|
-
output,
|
|
548
|
-
parsedBody,
|
|
549
|
-
errorCode,
|
|
550
|
-
});
|
|
551
|
-
}
|
|
552
|
-
};
|
|
553
390
|
export const de_DescribeJobRunCommand = async (output, context) => {
|
|
554
391
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
555
|
-
return
|
|
392
|
+
return de_CommandError(output, context);
|
|
556
393
|
}
|
|
557
394
|
const contents = map({
|
|
558
395
|
$metadata: deserializeMetadata(output),
|
|
@@ -564,34 +401,9 @@ export const de_DescribeJobRunCommand = async (output, context) => {
|
|
|
564
401
|
Object.assign(contents, doc);
|
|
565
402
|
return contents;
|
|
566
403
|
};
|
|
567
|
-
const de_DescribeJobRunCommandError = async (output, context) => {
|
|
568
|
-
const parsedOutput = {
|
|
569
|
-
...output,
|
|
570
|
-
body: await parseErrorBody(output.body, context),
|
|
571
|
-
};
|
|
572
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
573
|
-
switch (errorCode) {
|
|
574
|
-
case "InternalServerException":
|
|
575
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
576
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
577
|
-
case "ResourceNotFoundException":
|
|
578
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
579
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
580
|
-
case "ValidationException":
|
|
581
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
582
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
583
|
-
default:
|
|
584
|
-
const parsedBody = parsedOutput.body;
|
|
585
|
-
return throwDefaultError({
|
|
586
|
-
output,
|
|
587
|
-
parsedBody,
|
|
588
|
-
errorCode,
|
|
589
|
-
});
|
|
590
|
-
}
|
|
591
|
-
};
|
|
592
404
|
export const de_DescribeJobTemplateCommand = async (output, context) => {
|
|
593
405
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
594
|
-
return
|
|
406
|
+
return de_CommandError(output, context);
|
|
595
407
|
}
|
|
596
408
|
const contents = map({
|
|
597
409
|
$metadata: deserializeMetadata(output),
|
|
@@ -603,34 +415,9 @@ export const de_DescribeJobTemplateCommand = async (output, context) => {
|
|
|
603
415
|
Object.assign(contents, doc);
|
|
604
416
|
return contents;
|
|
605
417
|
};
|
|
606
|
-
const de_DescribeJobTemplateCommandError = async (output, context) => {
|
|
607
|
-
const parsedOutput = {
|
|
608
|
-
...output,
|
|
609
|
-
body: await parseErrorBody(output.body, context),
|
|
610
|
-
};
|
|
611
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
612
|
-
switch (errorCode) {
|
|
613
|
-
case "InternalServerException":
|
|
614
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
615
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
616
|
-
case "ResourceNotFoundException":
|
|
617
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
618
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
619
|
-
case "ValidationException":
|
|
620
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
621
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
622
|
-
default:
|
|
623
|
-
const parsedBody = parsedOutput.body;
|
|
624
|
-
return throwDefaultError({
|
|
625
|
-
output,
|
|
626
|
-
parsedBody,
|
|
627
|
-
errorCode,
|
|
628
|
-
});
|
|
629
|
-
}
|
|
630
|
-
};
|
|
631
418
|
export const de_DescribeManagedEndpointCommand = async (output, context) => {
|
|
632
419
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
633
|
-
return
|
|
420
|
+
return de_CommandError(output, context);
|
|
634
421
|
}
|
|
635
422
|
const contents = map({
|
|
636
423
|
$metadata: deserializeMetadata(output),
|
|
@@ -642,34 +429,9 @@ export const de_DescribeManagedEndpointCommand = async (output, context) => {
|
|
|
642
429
|
Object.assign(contents, doc);
|
|
643
430
|
return contents;
|
|
644
431
|
};
|
|
645
|
-
const de_DescribeManagedEndpointCommandError = async (output, context) => {
|
|
646
|
-
const parsedOutput = {
|
|
647
|
-
...output,
|
|
648
|
-
body: await parseErrorBody(output.body, context),
|
|
649
|
-
};
|
|
650
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
651
|
-
switch (errorCode) {
|
|
652
|
-
case "InternalServerException":
|
|
653
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
654
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
655
|
-
case "ResourceNotFoundException":
|
|
656
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
657
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
658
|
-
case "ValidationException":
|
|
659
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
660
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
661
|
-
default:
|
|
662
|
-
const parsedBody = parsedOutput.body;
|
|
663
|
-
return throwDefaultError({
|
|
664
|
-
output,
|
|
665
|
-
parsedBody,
|
|
666
|
-
errorCode,
|
|
667
|
-
});
|
|
668
|
-
}
|
|
669
|
-
};
|
|
670
432
|
export const de_DescribeVirtualClusterCommand = async (output, context) => {
|
|
671
433
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
672
|
-
return
|
|
434
|
+
return de_CommandError(output, context);
|
|
673
435
|
}
|
|
674
436
|
const contents = map({
|
|
675
437
|
$metadata: deserializeMetadata(output),
|
|
@@ -681,34 +443,9 @@ export const de_DescribeVirtualClusterCommand = async (output, context) => {
|
|
|
681
443
|
Object.assign(contents, doc);
|
|
682
444
|
return contents;
|
|
683
445
|
};
|
|
684
|
-
const de_DescribeVirtualClusterCommandError = async (output, context) => {
|
|
685
|
-
const parsedOutput = {
|
|
686
|
-
...output,
|
|
687
|
-
body: await parseErrorBody(output.body, context),
|
|
688
|
-
};
|
|
689
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
690
|
-
switch (errorCode) {
|
|
691
|
-
case "InternalServerException":
|
|
692
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
693
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
694
|
-
case "ResourceNotFoundException":
|
|
695
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
696
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
697
|
-
case "ValidationException":
|
|
698
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
699
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
700
|
-
default:
|
|
701
|
-
const parsedBody = parsedOutput.body;
|
|
702
|
-
return throwDefaultError({
|
|
703
|
-
output,
|
|
704
|
-
parsedBody,
|
|
705
|
-
errorCode,
|
|
706
|
-
});
|
|
707
|
-
}
|
|
708
|
-
};
|
|
709
446
|
export const de_GetManagedEndpointSessionCredentialsCommand = async (output, context) => {
|
|
710
447
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
711
|
-
return
|
|
448
|
+
return de_CommandError(output, context);
|
|
712
449
|
}
|
|
713
450
|
const contents = map({
|
|
714
451
|
$metadata: deserializeMetadata(output),
|
|
@@ -722,37 +459,9 @@ export const de_GetManagedEndpointSessionCredentialsCommand = async (output, con
|
|
|
722
459
|
Object.assign(contents, doc);
|
|
723
460
|
return contents;
|
|
724
461
|
};
|
|
725
|
-
const de_GetManagedEndpointSessionCredentialsCommandError = async (output, context) => {
|
|
726
|
-
const parsedOutput = {
|
|
727
|
-
...output,
|
|
728
|
-
body: await parseErrorBody(output.body, context),
|
|
729
|
-
};
|
|
730
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
731
|
-
switch (errorCode) {
|
|
732
|
-
case "InternalServerException":
|
|
733
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
734
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
735
|
-
case "RequestThrottledException":
|
|
736
|
-
case "com.amazonaws.emrcontainers#RequestThrottledException":
|
|
737
|
-
throw await de_RequestThrottledExceptionRes(parsedOutput, context);
|
|
738
|
-
case "ResourceNotFoundException":
|
|
739
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
740
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
741
|
-
case "ValidationException":
|
|
742
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
743
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
744
|
-
default:
|
|
745
|
-
const parsedBody = parsedOutput.body;
|
|
746
|
-
return throwDefaultError({
|
|
747
|
-
output,
|
|
748
|
-
parsedBody,
|
|
749
|
-
errorCode,
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
|
-
};
|
|
753
462
|
export const de_ListJobRunsCommand = async (output, context) => {
|
|
754
463
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
755
|
-
return
|
|
464
|
+
return de_CommandError(output, context);
|
|
756
465
|
}
|
|
757
466
|
const contents = map({
|
|
758
467
|
$metadata: deserializeMetadata(output),
|
|
@@ -765,31 +474,9 @@ export const de_ListJobRunsCommand = async (output, context) => {
|
|
|
765
474
|
Object.assign(contents, doc);
|
|
766
475
|
return contents;
|
|
767
476
|
};
|
|
768
|
-
const de_ListJobRunsCommandError = async (output, context) => {
|
|
769
|
-
const parsedOutput = {
|
|
770
|
-
...output,
|
|
771
|
-
body: await parseErrorBody(output.body, context),
|
|
772
|
-
};
|
|
773
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
774
|
-
switch (errorCode) {
|
|
775
|
-
case "InternalServerException":
|
|
776
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
777
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
778
|
-
case "ValidationException":
|
|
779
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
780
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
781
|
-
default:
|
|
782
|
-
const parsedBody = parsedOutput.body;
|
|
783
|
-
return throwDefaultError({
|
|
784
|
-
output,
|
|
785
|
-
parsedBody,
|
|
786
|
-
errorCode,
|
|
787
|
-
});
|
|
788
|
-
}
|
|
789
|
-
};
|
|
790
477
|
export const de_ListJobTemplatesCommand = async (output, context) => {
|
|
791
478
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
792
|
-
return
|
|
479
|
+
return de_CommandError(output, context);
|
|
793
480
|
}
|
|
794
481
|
const contents = map({
|
|
795
482
|
$metadata: deserializeMetadata(output),
|
|
@@ -802,31 +489,9 @@ export const de_ListJobTemplatesCommand = async (output, context) => {
|
|
|
802
489
|
Object.assign(contents, doc);
|
|
803
490
|
return contents;
|
|
804
491
|
};
|
|
805
|
-
const de_ListJobTemplatesCommandError = async (output, context) => {
|
|
806
|
-
const parsedOutput = {
|
|
807
|
-
...output,
|
|
808
|
-
body: await parseErrorBody(output.body, context),
|
|
809
|
-
};
|
|
810
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
811
|
-
switch (errorCode) {
|
|
812
|
-
case "InternalServerException":
|
|
813
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
814
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
815
|
-
case "ValidationException":
|
|
816
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
817
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
818
|
-
default:
|
|
819
|
-
const parsedBody = parsedOutput.body;
|
|
820
|
-
return throwDefaultError({
|
|
821
|
-
output,
|
|
822
|
-
parsedBody,
|
|
823
|
-
errorCode,
|
|
824
|
-
});
|
|
825
|
-
}
|
|
826
|
-
};
|
|
827
492
|
export const de_ListManagedEndpointsCommand = async (output, context) => {
|
|
828
493
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
829
|
-
return
|
|
494
|
+
return de_CommandError(output, context);
|
|
830
495
|
}
|
|
831
496
|
const contents = map({
|
|
832
497
|
$metadata: deserializeMetadata(output),
|
|
@@ -839,31 +504,9 @@ export const de_ListManagedEndpointsCommand = async (output, context) => {
|
|
|
839
504
|
Object.assign(contents, doc);
|
|
840
505
|
return contents;
|
|
841
506
|
};
|
|
842
|
-
const de_ListManagedEndpointsCommandError = async (output, context) => {
|
|
843
|
-
const parsedOutput = {
|
|
844
|
-
...output,
|
|
845
|
-
body: await parseErrorBody(output.body, context),
|
|
846
|
-
};
|
|
847
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
|
-
switch (errorCode) {
|
|
849
|
-
case "InternalServerException":
|
|
850
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
851
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
852
|
-
case "ValidationException":
|
|
853
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
854
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
855
|
-
default:
|
|
856
|
-
const parsedBody = parsedOutput.body;
|
|
857
|
-
return throwDefaultError({
|
|
858
|
-
output,
|
|
859
|
-
parsedBody,
|
|
860
|
-
errorCode,
|
|
861
|
-
});
|
|
862
|
-
}
|
|
863
|
-
};
|
|
864
507
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
865
508
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
866
|
-
return
|
|
509
|
+
return de_CommandError(output, context);
|
|
867
510
|
}
|
|
868
511
|
const contents = map({
|
|
869
512
|
$metadata: deserializeMetadata(output),
|
|
@@ -875,34 +518,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
875
518
|
Object.assign(contents, doc);
|
|
876
519
|
return contents;
|
|
877
520
|
};
|
|
878
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
879
|
-
const parsedOutput = {
|
|
880
|
-
...output,
|
|
881
|
-
body: await parseErrorBody(output.body, context),
|
|
882
|
-
};
|
|
883
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
884
|
-
switch (errorCode) {
|
|
885
|
-
case "InternalServerException":
|
|
886
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
887
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
888
|
-
case "ResourceNotFoundException":
|
|
889
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
890
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
891
|
-
case "ValidationException":
|
|
892
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
893
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
894
|
-
default:
|
|
895
|
-
const parsedBody = parsedOutput.body;
|
|
896
|
-
return throwDefaultError({
|
|
897
|
-
output,
|
|
898
|
-
parsedBody,
|
|
899
|
-
errorCode,
|
|
900
|
-
});
|
|
901
|
-
}
|
|
902
|
-
};
|
|
903
521
|
export const de_ListVirtualClustersCommand = async (output, context) => {
|
|
904
522
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
905
|
-
return
|
|
523
|
+
return de_CommandError(output, context);
|
|
906
524
|
}
|
|
907
525
|
const contents = map({
|
|
908
526
|
$metadata: deserializeMetadata(output),
|
|
@@ -915,31 +533,9 @@ export const de_ListVirtualClustersCommand = async (output, context) => {
|
|
|
915
533
|
Object.assign(contents, doc);
|
|
916
534
|
return contents;
|
|
917
535
|
};
|
|
918
|
-
const de_ListVirtualClustersCommandError = async (output, context) => {
|
|
919
|
-
const parsedOutput = {
|
|
920
|
-
...output,
|
|
921
|
-
body: await parseErrorBody(output.body, context),
|
|
922
|
-
};
|
|
923
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
924
|
-
switch (errorCode) {
|
|
925
|
-
case "InternalServerException":
|
|
926
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
927
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
928
|
-
case "ValidationException":
|
|
929
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
930
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
931
|
-
default:
|
|
932
|
-
const parsedBody = parsedOutput.body;
|
|
933
|
-
return throwDefaultError({
|
|
934
|
-
output,
|
|
935
|
-
parsedBody,
|
|
936
|
-
errorCode,
|
|
937
|
-
});
|
|
938
|
-
}
|
|
939
|
-
};
|
|
940
536
|
export const de_StartJobRunCommand = async (output, context) => {
|
|
941
537
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
942
|
-
return
|
|
538
|
+
return de_CommandError(output, context);
|
|
943
539
|
}
|
|
944
540
|
const contents = map({
|
|
945
541
|
$metadata: deserializeMetadata(output),
|
|
@@ -954,34 +550,9 @@ export const de_StartJobRunCommand = async (output, context) => {
|
|
|
954
550
|
Object.assign(contents, doc);
|
|
955
551
|
return contents;
|
|
956
552
|
};
|
|
957
|
-
const de_StartJobRunCommandError = async (output, context) => {
|
|
958
|
-
const parsedOutput = {
|
|
959
|
-
...output,
|
|
960
|
-
body: await parseErrorBody(output.body, context),
|
|
961
|
-
};
|
|
962
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
963
|
-
switch (errorCode) {
|
|
964
|
-
case "InternalServerException":
|
|
965
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
966
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
967
|
-
case "ResourceNotFoundException":
|
|
968
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
969
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
970
|
-
case "ValidationException":
|
|
971
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
972
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
973
|
-
default:
|
|
974
|
-
const parsedBody = parsedOutput.body;
|
|
975
|
-
return throwDefaultError({
|
|
976
|
-
output,
|
|
977
|
-
parsedBody,
|
|
978
|
-
errorCode,
|
|
979
|
-
});
|
|
980
|
-
}
|
|
981
|
-
};
|
|
982
553
|
export const de_TagResourceCommand = async (output, context) => {
|
|
983
554
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
984
|
-
return
|
|
555
|
+
return de_CommandError(output, context);
|
|
985
556
|
}
|
|
986
557
|
const contents = map({
|
|
987
558
|
$metadata: deserializeMetadata(output),
|
|
@@ -989,34 +560,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
989
560
|
await collectBody(output.body, context);
|
|
990
561
|
return contents;
|
|
991
562
|
};
|
|
992
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
993
|
-
const parsedOutput = {
|
|
994
|
-
...output,
|
|
995
|
-
body: await parseErrorBody(output.body, context),
|
|
996
|
-
};
|
|
997
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
998
|
-
switch (errorCode) {
|
|
999
|
-
case "InternalServerException":
|
|
1000
|
-
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1001
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1002
|
-
case "ResourceNotFoundException":
|
|
1003
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
1004
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1005
|
-
case "ValidationException":
|
|
1006
|
-
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1007
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1008
|
-
default:
|
|
1009
|
-
const parsedBody = parsedOutput.body;
|
|
1010
|
-
return throwDefaultError({
|
|
1011
|
-
output,
|
|
1012
|
-
parsedBody,
|
|
1013
|
-
errorCode,
|
|
1014
|
-
});
|
|
1015
|
-
}
|
|
1016
|
-
};
|
|
1017
563
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1018
564
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1019
|
-
return
|
|
565
|
+
return de_CommandError(output, context);
|
|
1020
566
|
}
|
|
1021
567
|
const contents = map({
|
|
1022
568
|
$metadata: deserializeMetadata(output),
|
|
@@ -1024,7 +570,7 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1024
570
|
await collectBody(output.body, context);
|
|
1025
571
|
return contents;
|
|
1026
572
|
};
|
|
1027
|
-
const
|
|
573
|
+
const de_CommandError = async (output, context) => {
|
|
1028
574
|
const parsedOutput = {
|
|
1029
575
|
...output,
|
|
1030
576
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1034,12 +580,15 @@ const de_UntagResourceCommandError = async (output, context) => {
|
|
|
1034
580
|
case "InternalServerException":
|
|
1035
581
|
case "com.amazonaws.emrcontainers#InternalServerException":
|
|
1036
582
|
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1037
|
-
case "ResourceNotFoundException":
|
|
1038
|
-
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
1039
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1040
583
|
case "ValidationException":
|
|
1041
584
|
case "com.amazonaws.emrcontainers#ValidationException":
|
|
1042
585
|
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
586
|
+
case "ResourceNotFoundException":
|
|
587
|
+
case "com.amazonaws.emrcontainers#ResourceNotFoundException":
|
|
588
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
589
|
+
case "RequestThrottledException":
|
|
590
|
+
case "com.amazonaws.emrcontainers#RequestThrottledException":
|
|
591
|
+
throw await de_RequestThrottledExceptionRes(parsedOutput, context);
|
|
1043
592
|
default:
|
|
1044
593
|
const parsedBody = parsedOutput.body;
|
|
1045
594
|
return throwDefaultError({
|