@aws-sdk/client-batch 3.504.0 → 3.509.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 +26 -532
- package/dist-es/protocols/Aws_restJson1.js +25 -531
- package/package.json +3 -3
|
@@ -381,7 +381,7 @@ export const se_UpdateSchedulingPolicyCommand = async (input, context) => {
|
|
|
381
381
|
};
|
|
382
382
|
export const de_CancelJobCommand = async (output, context) => {
|
|
383
383
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
384
|
-
return
|
|
384
|
+
return de_CommandError(output, context);
|
|
385
385
|
}
|
|
386
386
|
const contents = map({
|
|
387
387
|
$metadata: deserializeMetadata(output),
|
|
@@ -389,31 +389,9 @@ export const de_CancelJobCommand = async (output, context) => {
|
|
|
389
389
|
await collectBody(output.body, context);
|
|
390
390
|
return contents;
|
|
391
391
|
};
|
|
392
|
-
const de_CancelJobCommandError = async (output, context) => {
|
|
393
|
-
const parsedOutput = {
|
|
394
|
-
...output,
|
|
395
|
-
body: await parseErrorBody(output.body, context),
|
|
396
|
-
};
|
|
397
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
398
|
-
switch (errorCode) {
|
|
399
|
-
case "ClientException":
|
|
400
|
-
case "com.amazonaws.batch#ClientException":
|
|
401
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
402
|
-
case "ServerException":
|
|
403
|
-
case "com.amazonaws.batch#ServerException":
|
|
404
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
405
|
-
default:
|
|
406
|
-
const parsedBody = parsedOutput.body;
|
|
407
|
-
return throwDefaultError({
|
|
408
|
-
output,
|
|
409
|
-
parsedBody,
|
|
410
|
-
errorCode,
|
|
411
|
-
});
|
|
412
|
-
}
|
|
413
|
-
};
|
|
414
392
|
export const de_CreateComputeEnvironmentCommand = async (output, context) => {
|
|
415
393
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
416
|
-
return
|
|
394
|
+
return de_CommandError(output, context);
|
|
417
395
|
}
|
|
418
396
|
const contents = map({
|
|
419
397
|
$metadata: deserializeMetadata(output),
|
|
@@ -426,31 +404,9 @@ export const de_CreateComputeEnvironmentCommand = async (output, context) => {
|
|
|
426
404
|
Object.assign(contents, doc);
|
|
427
405
|
return contents;
|
|
428
406
|
};
|
|
429
|
-
const de_CreateComputeEnvironmentCommandError = async (output, context) => {
|
|
430
|
-
const parsedOutput = {
|
|
431
|
-
...output,
|
|
432
|
-
body: await parseErrorBody(output.body, context),
|
|
433
|
-
};
|
|
434
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
435
|
-
switch (errorCode) {
|
|
436
|
-
case "ClientException":
|
|
437
|
-
case "com.amazonaws.batch#ClientException":
|
|
438
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
439
|
-
case "ServerException":
|
|
440
|
-
case "com.amazonaws.batch#ServerException":
|
|
441
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
442
|
-
default:
|
|
443
|
-
const parsedBody = parsedOutput.body;
|
|
444
|
-
return throwDefaultError({
|
|
445
|
-
output,
|
|
446
|
-
parsedBody,
|
|
447
|
-
errorCode,
|
|
448
|
-
});
|
|
449
|
-
}
|
|
450
|
-
};
|
|
451
407
|
export const de_CreateJobQueueCommand = async (output, context) => {
|
|
452
408
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
453
|
-
return
|
|
409
|
+
return de_CommandError(output, context);
|
|
454
410
|
}
|
|
455
411
|
const contents = map({
|
|
456
412
|
$metadata: deserializeMetadata(output),
|
|
@@ -463,31 +419,9 @@ export const de_CreateJobQueueCommand = async (output, context) => {
|
|
|
463
419
|
Object.assign(contents, doc);
|
|
464
420
|
return contents;
|
|
465
421
|
};
|
|
466
|
-
const de_CreateJobQueueCommandError = async (output, context) => {
|
|
467
|
-
const parsedOutput = {
|
|
468
|
-
...output,
|
|
469
|
-
body: await parseErrorBody(output.body, context),
|
|
470
|
-
};
|
|
471
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
472
|
-
switch (errorCode) {
|
|
473
|
-
case "ClientException":
|
|
474
|
-
case "com.amazonaws.batch#ClientException":
|
|
475
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
476
|
-
case "ServerException":
|
|
477
|
-
case "com.amazonaws.batch#ServerException":
|
|
478
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
479
|
-
default:
|
|
480
|
-
const parsedBody = parsedOutput.body;
|
|
481
|
-
return throwDefaultError({
|
|
482
|
-
output,
|
|
483
|
-
parsedBody,
|
|
484
|
-
errorCode,
|
|
485
|
-
});
|
|
486
|
-
}
|
|
487
|
-
};
|
|
488
422
|
export const de_CreateSchedulingPolicyCommand = async (output, context) => {
|
|
489
423
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
490
|
-
return
|
|
424
|
+
return de_CommandError(output, context);
|
|
491
425
|
}
|
|
492
426
|
const contents = map({
|
|
493
427
|
$metadata: deserializeMetadata(output),
|
|
@@ -500,31 +434,9 @@ export const de_CreateSchedulingPolicyCommand = async (output, context) => {
|
|
|
500
434
|
Object.assign(contents, doc);
|
|
501
435
|
return contents;
|
|
502
436
|
};
|
|
503
|
-
const de_CreateSchedulingPolicyCommandError = async (output, context) => {
|
|
504
|
-
const parsedOutput = {
|
|
505
|
-
...output,
|
|
506
|
-
body: await parseErrorBody(output.body, context),
|
|
507
|
-
};
|
|
508
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
509
|
-
switch (errorCode) {
|
|
510
|
-
case "ClientException":
|
|
511
|
-
case "com.amazonaws.batch#ClientException":
|
|
512
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
513
|
-
case "ServerException":
|
|
514
|
-
case "com.amazonaws.batch#ServerException":
|
|
515
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
516
|
-
default:
|
|
517
|
-
const parsedBody = parsedOutput.body;
|
|
518
|
-
return throwDefaultError({
|
|
519
|
-
output,
|
|
520
|
-
parsedBody,
|
|
521
|
-
errorCode,
|
|
522
|
-
});
|
|
523
|
-
}
|
|
524
|
-
};
|
|
525
437
|
export const de_DeleteComputeEnvironmentCommand = async (output, context) => {
|
|
526
438
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
527
|
-
return
|
|
439
|
+
return de_CommandError(output, context);
|
|
528
440
|
}
|
|
529
441
|
const contents = map({
|
|
530
442
|
$metadata: deserializeMetadata(output),
|
|
@@ -532,31 +444,9 @@ export const de_DeleteComputeEnvironmentCommand = async (output, context) => {
|
|
|
532
444
|
await collectBody(output.body, context);
|
|
533
445
|
return contents;
|
|
534
446
|
};
|
|
535
|
-
const de_DeleteComputeEnvironmentCommandError = async (output, context) => {
|
|
536
|
-
const parsedOutput = {
|
|
537
|
-
...output,
|
|
538
|
-
body: await parseErrorBody(output.body, context),
|
|
539
|
-
};
|
|
540
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
541
|
-
switch (errorCode) {
|
|
542
|
-
case "ClientException":
|
|
543
|
-
case "com.amazonaws.batch#ClientException":
|
|
544
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
545
|
-
case "ServerException":
|
|
546
|
-
case "com.amazonaws.batch#ServerException":
|
|
547
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
548
|
-
default:
|
|
549
|
-
const parsedBody = parsedOutput.body;
|
|
550
|
-
return throwDefaultError({
|
|
551
|
-
output,
|
|
552
|
-
parsedBody,
|
|
553
|
-
errorCode,
|
|
554
|
-
});
|
|
555
|
-
}
|
|
556
|
-
};
|
|
557
447
|
export const de_DeleteJobQueueCommand = async (output, context) => {
|
|
558
448
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
559
|
-
return
|
|
449
|
+
return de_CommandError(output, context);
|
|
560
450
|
}
|
|
561
451
|
const contents = map({
|
|
562
452
|
$metadata: deserializeMetadata(output),
|
|
@@ -564,31 +454,9 @@ export const de_DeleteJobQueueCommand = async (output, context) => {
|
|
|
564
454
|
await collectBody(output.body, context);
|
|
565
455
|
return contents;
|
|
566
456
|
};
|
|
567
|
-
const de_DeleteJobQueueCommandError = 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 "ClientException":
|
|
575
|
-
case "com.amazonaws.batch#ClientException":
|
|
576
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
577
|
-
case "ServerException":
|
|
578
|
-
case "com.amazonaws.batch#ServerException":
|
|
579
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
580
|
-
default:
|
|
581
|
-
const parsedBody = parsedOutput.body;
|
|
582
|
-
return throwDefaultError({
|
|
583
|
-
output,
|
|
584
|
-
parsedBody,
|
|
585
|
-
errorCode,
|
|
586
|
-
});
|
|
587
|
-
}
|
|
588
|
-
};
|
|
589
457
|
export const de_DeleteSchedulingPolicyCommand = async (output, context) => {
|
|
590
458
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
591
|
-
return
|
|
459
|
+
return de_CommandError(output, context);
|
|
592
460
|
}
|
|
593
461
|
const contents = map({
|
|
594
462
|
$metadata: deserializeMetadata(output),
|
|
@@ -596,31 +464,9 @@ export const de_DeleteSchedulingPolicyCommand = async (output, context) => {
|
|
|
596
464
|
await collectBody(output.body, context);
|
|
597
465
|
return contents;
|
|
598
466
|
};
|
|
599
|
-
const de_DeleteSchedulingPolicyCommandError = async (output, context) => {
|
|
600
|
-
const parsedOutput = {
|
|
601
|
-
...output,
|
|
602
|
-
body: await parseErrorBody(output.body, context),
|
|
603
|
-
};
|
|
604
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
605
|
-
switch (errorCode) {
|
|
606
|
-
case "ClientException":
|
|
607
|
-
case "com.amazonaws.batch#ClientException":
|
|
608
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
609
|
-
case "ServerException":
|
|
610
|
-
case "com.amazonaws.batch#ServerException":
|
|
611
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
612
|
-
default:
|
|
613
|
-
const parsedBody = parsedOutput.body;
|
|
614
|
-
return throwDefaultError({
|
|
615
|
-
output,
|
|
616
|
-
parsedBody,
|
|
617
|
-
errorCode,
|
|
618
|
-
});
|
|
619
|
-
}
|
|
620
|
-
};
|
|
621
467
|
export const de_DeregisterJobDefinitionCommand = async (output, context) => {
|
|
622
468
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
623
|
-
return
|
|
469
|
+
return de_CommandError(output, context);
|
|
624
470
|
}
|
|
625
471
|
const contents = map({
|
|
626
472
|
$metadata: deserializeMetadata(output),
|
|
@@ -628,31 +474,9 @@ export const de_DeregisterJobDefinitionCommand = async (output, context) => {
|
|
|
628
474
|
await collectBody(output.body, context);
|
|
629
475
|
return contents;
|
|
630
476
|
};
|
|
631
|
-
const de_DeregisterJobDefinitionCommandError = async (output, context) => {
|
|
632
|
-
const parsedOutput = {
|
|
633
|
-
...output,
|
|
634
|
-
body: await parseErrorBody(output.body, context),
|
|
635
|
-
};
|
|
636
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
637
|
-
switch (errorCode) {
|
|
638
|
-
case "ClientException":
|
|
639
|
-
case "com.amazonaws.batch#ClientException":
|
|
640
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
641
|
-
case "ServerException":
|
|
642
|
-
case "com.amazonaws.batch#ServerException":
|
|
643
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
644
|
-
default:
|
|
645
|
-
const parsedBody = parsedOutput.body;
|
|
646
|
-
return throwDefaultError({
|
|
647
|
-
output,
|
|
648
|
-
parsedBody,
|
|
649
|
-
errorCode,
|
|
650
|
-
});
|
|
651
|
-
}
|
|
652
|
-
};
|
|
653
477
|
export const de_DescribeComputeEnvironmentsCommand = async (output, context) => {
|
|
654
478
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
655
|
-
return
|
|
479
|
+
return de_CommandError(output, context);
|
|
656
480
|
}
|
|
657
481
|
const contents = map({
|
|
658
482
|
$metadata: deserializeMetadata(output),
|
|
@@ -665,31 +489,9 @@ export const de_DescribeComputeEnvironmentsCommand = async (output, context) =>
|
|
|
665
489
|
Object.assign(contents, doc);
|
|
666
490
|
return contents;
|
|
667
491
|
};
|
|
668
|
-
const de_DescribeComputeEnvironmentsCommandError = async (output, context) => {
|
|
669
|
-
const parsedOutput = {
|
|
670
|
-
...output,
|
|
671
|
-
body: await parseErrorBody(output.body, context),
|
|
672
|
-
};
|
|
673
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
674
|
-
switch (errorCode) {
|
|
675
|
-
case "ClientException":
|
|
676
|
-
case "com.amazonaws.batch#ClientException":
|
|
677
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
678
|
-
case "ServerException":
|
|
679
|
-
case "com.amazonaws.batch#ServerException":
|
|
680
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
681
|
-
default:
|
|
682
|
-
const parsedBody = parsedOutput.body;
|
|
683
|
-
return throwDefaultError({
|
|
684
|
-
output,
|
|
685
|
-
parsedBody,
|
|
686
|
-
errorCode,
|
|
687
|
-
});
|
|
688
|
-
}
|
|
689
|
-
};
|
|
690
492
|
export const de_DescribeJobDefinitionsCommand = async (output, context) => {
|
|
691
493
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
692
|
-
return
|
|
494
|
+
return de_CommandError(output, context);
|
|
693
495
|
}
|
|
694
496
|
const contents = map({
|
|
695
497
|
$metadata: deserializeMetadata(output),
|
|
@@ -702,31 +504,9 @@ export const de_DescribeJobDefinitionsCommand = async (output, context) => {
|
|
|
702
504
|
Object.assign(contents, doc);
|
|
703
505
|
return contents;
|
|
704
506
|
};
|
|
705
|
-
const de_DescribeJobDefinitionsCommandError = async (output, context) => {
|
|
706
|
-
const parsedOutput = {
|
|
707
|
-
...output,
|
|
708
|
-
body: await parseErrorBody(output.body, context),
|
|
709
|
-
};
|
|
710
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
711
|
-
switch (errorCode) {
|
|
712
|
-
case "ClientException":
|
|
713
|
-
case "com.amazonaws.batch#ClientException":
|
|
714
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
715
|
-
case "ServerException":
|
|
716
|
-
case "com.amazonaws.batch#ServerException":
|
|
717
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
718
|
-
default:
|
|
719
|
-
const parsedBody = parsedOutput.body;
|
|
720
|
-
return throwDefaultError({
|
|
721
|
-
output,
|
|
722
|
-
parsedBody,
|
|
723
|
-
errorCode,
|
|
724
|
-
});
|
|
725
|
-
}
|
|
726
|
-
};
|
|
727
507
|
export const de_DescribeJobQueuesCommand = async (output, context) => {
|
|
728
508
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
729
|
-
return
|
|
509
|
+
return de_CommandError(output, context);
|
|
730
510
|
}
|
|
731
511
|
const contents = map({
|
|
732
512
|
$metadata: deserializeMetadata(output),
|
|
@@ -739,31 +519,9 @@ export const de_DescribeJobQueuesCommand = async (output, context) => {
|
|
|
739
519
|
Object.assign(contents, doc);
|
|
740
520
|
return contents;
|
|
741
521
|
};
|
|
742
|
-
const de_DescribeJobQueuesCommandError = async (output, context) => {
|
|
743
|
-
const parsedOutput = {
|
|
744
|
-
...output,
|
|
745
|
-
body: await parseErrorBody(output.body, context),
|
|
746
|
-
};
|
|
747
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
748
|
-
switch (errorCode) {
|
|
749
|
-
case "ClientException":
|
|
750
|
-
case "com.amazonaws.batch#ClientException":
|
|
751
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
752
|
-
case "ServerException":
|
|
753
|
-
case "com.amazonaws.batch#ServerException":
|
|
754
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
755
|
-
default:
|
|
756
|
-
const parsedBody = parsedOutput.body;
|
|
757
|
-
return throwDefaultError({
|
|
758
|
-
output,
|
|
759
|
-
parsedBody,
|
|
760
|
-
errorCode,
|
|
761
|
-
});
|
|
762
|
-
}
|
|
763
|
-
};
|
|
764
522
|
export const de_DescribeJobsCommand = async (output, context) => {
|
|
765
523
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
766
|
-
return
|
|
524
|
+
return de_CommandError(output, context);
|
|
767
525
|
}
|
|
768
526
|
const contents = map({
|
|
769
527
|
$metadata: deserializeMetadata(output),
|
|
@@ -775,31 +533,9 @@ export const de_DescribeJobsCommand = async (output, context) => {
|
|
|
775
533
|
Object.assign(contents, doc);
|
|
776
534
|
return contents;
|
|
777
535
|
};
|
|
778
|
-
const de_DescribeJobsCommandError = async (output, context) => {
|
|
779
|
-
const parsedOutput = {
|
|
780
|
-
...output,
|
|
781
|
-
body: await parseErrorBody(output.body, context),
|
|
782
|
-
};
|
|
783
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
784
|
-
switch (errorCode) {
|
|
785
|
-
case "ClientException":
|
|
786
|
-
case "com.amazonaws.batch#ClientException":
|
|
787
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
788
|
-
case "ServerException":
|
|
789
|
-
case "com.amazonaws.batch#ServerException":
|
|
790
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
791
|
-
default:
|
|
792
|
-
const parsedBody = parsedOutput.body;
|
|
793
|
-
return throwDefaultError({
|
|
794
|
-
output,
|
|
795
|
-
parsedBody,
|
|
796
|
-
errorCode,
|
|
797
|
-
});
|
|
798
|
-
}
|
|
799
|
-
};
|
|
800
536
|
export const de_DescribeSchedulingPoliciesCommand = async (output, context) => {
|
|
801
537
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
802
|
-
return
|
|
538
|
+
return de_CommandError(output, context);
|
|
803
539
|
}
|
|
804
540
|
const contents = map({
|
|
805
541
|
$metadata: deserializeMetadata(output),
|
|
@@ -811,31 +547,9 @@ export const de_DescribeSchedulingPoliciesCommand = async (output, context) => {
|
|
|
811
547
|
Object.assign(contents, doc);
|
|
812
548
|
return contents;
|
|
813
549
|
};
|
|
814
|
-
const de_DescribeSchedulingPoliciesCommandError = async (output, context) => {
|
|
815
|
-
const parsedOutput = {
|
|
816
|
-
...output,
|
|
817
|
-
body: await parseErrorBody(output.body, context),
|
|
818
|
-
};
|
|
819
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
820
|
-
switch (errorCode) {
|
|
821
|
-
case "ClientException":
|
|
822
|
-
case "com.amazonaws.batch#ClientException":
|
|
823
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
824
|
-
case "ServerException":
|
|
825
|
-
case "com.amazonaws.batch#ServerException":
|
|
826
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
827
|
-
default:
|
|
828
|
-
const parsedBody = parsedOutput.body;
|
|
829
|
-
return throwDefaultError({
|
|
830
|
-
output,
|
|
831
|
-
parsedBody,
|
|
832
|
-
errorCode,
|
|
833
|
-
});
|
|
834
|
-
}
|
|
835
|
-
};
|
|
836
550
|
export const de_ListJobsCommand = async (output, context) => {
|
|
837
551
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
838
|
-
return
|
|
552
|
+
return de_CommandError(output, context);
|
|
839
553
|
}
|
|
840
554
|
const contents = map({
|
|
841
555
|
$metadata: deserializeMetadata(output),
|
|
@@ -848,31 +562,9 @@ export const de_ListJobsCommand = async (output, context) => {
|
|
|
848
562
|
Object.assign(contents, doc);
|
|
849
563
|
return contents;
|
|
850
564
|
};
|
|
851
|
-
const de_ListJobsCommandError = async (output, context) => {
|
|
852
|
-
const parsedOutput = {
|
|
853
|
-
...output,
|
|
854
|
-
body: await parseErrorBody(output.body, context),
|
|
855
|
-
};
|
|
856
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
857
|
-
switch (errorCode) {
|
|
858
|
-
case "ClientException":
|
|
859
|
-
case "com.amazonaws.batch#ClientException":
|
|
860
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
861
|
-
case "ServerException":
|
|
862
|
-
case "com.amazonaws.batch#ServerException":
|
|
863
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
864
|
-
default:
|
|
865
|
-
const parsedBody = parsedOutput.body;
|
|
866
|
-
return throwDefaultError({
|
|
867
|
-
output,
|
|
868
|
-
parsedBody,
|
|
869
|
-
errorCode,
|
|
870
|
-
});
|
|
871
|
-
}
|
|
872
|
-
};
|
|
873
565
|
export const de_ListSchedulingPoliciesCommand = async (output, context) => {
|
|
874
566
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
875
|
-
return
|
|
567
|
+
return de_CommandError(output, context);
|
|
876
568
|
}
|
|
877
569
|
const contents = map({
|
|
878
570
|
$metadata: deserializeMetadata(output),
|
|
@@ -885,31 +577,9 @@ export const de_ListSchedulingPoliciesCommand = async (output, context) => {
|
|
|
885
577
|
Object.assign(contents, doc);
|
|
886
578
|
return contents;
|
|
887
579
|
};
|
|
888
|
-
const de_ListSchedulingPoliciesCommandError = async (output, context) => {
|
|
889
|
-
const parsedOutput = {
|
|
890
|
-
...output,
|
|
891
|
-
body: await parseErrorBody(output.body, context),
|
|
892
|
-
};
|
|
893
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
894
|
-
switch (errorCode) {
|
|
895
|
-
case "ClientException":
|
|
896
|
-
case "com.amazonaws.batch#ClientException":
|
|
897
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
898
|
-
case "ServerException":
|
|
899
|
-
case "com.amazonaws.batch#ServerException":
|
|
900
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
901
|
-
default:
|
|
902
|
-
const parsedBody = parsedOutput.body;
|
|
903
|
-
return throwDefaultError({
|
|
904
|
-
output,
|
|
905
|
-
parsedBody,
|
|
906
|
-
errorCode,
|
|
907
|
-
});
|
|
908
|
-
}
|
|
909
|
-
};
|
|
910
580
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
911
581
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
912
|
-
return
|
|
582
|
+
return de_CommandError(output, context);
|
|
913
583
|
}
|
|
914
584
|
const contents = map({
|
|
915
585
|
$metadata: deserializeMetadata(output),
|
|
@@ -921,31 +591,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
921
591
|
Object.assign(contents, doc);
|
|
922
592
|
return contents;
|
|
923
593
|
};
|
|
924
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
925
|
-
const parsedOutput = {
|
|
926
|
-
...output,
|
|
927
|
-
body: await parseErrorBody(output.body, context),
|
|
928
|
-
};
|
|
929
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
930
|
-
switch (errorCode) {
|
|
931
|
-
case "ClientException":
|
|
932
|
-
case "com.amazonaws.batch#ClientException":
|
|
933
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
934
|
-
case "ServerException":
|
|
935
|
-
case "com.amazonaws.batch#ServerException":
|
|
936
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
937
|
-
default:
|
|
938
|
-
const parsedBody = parsedOutput.body;
|
|
939
|
-
return throwDefaultError({
|
|
940
|
-
output,
|
|
941
|
-
parsedBody,
|
|
942
|
-
errorCode,
|
|
943
|
-
});
|
|
944
|
-
}
|
|
945
|
-
};
|
|
946
594
|
export const de_RegisterJobDefinitionCommand = async (output, context) => {
|
|
947
595
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
948
|
-
return
|
|
596
|
+
return de_CommandError(output, context);
|
|
949
597
|
}
|
|
950
598
|
const contents = map({
|
|
951
599
|
$metadata: deserializeMetadata(output),
|
|
@@ -959,31 +607,9 @@ export const de_RegisterJobDefinitionCommand = async (output, context) => {
|
|
|
959
607
|
Object.assign(contents, doc);
|
|
960
608
|
return contents;
|
|
961
609
|
};
|
|
962
|
-
const de_RegisterJobDefinitionCommandError = async (output, context) => {
|
|
963
|
-
const parsedOutput = {
|
|
964
|
-
...output,
|
|
965
|
-
body: await parseErrorBody(output.body, context),
|
|
966
|
-
};
|
|
967
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
968
|
-
switch (errorCode) {
|
|
969
|
-
case "ClientException":
|
|
970
|
-
case "com.amazonaws.batch#ClientException":
|
|
971
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
972
|
-
case "ServerException":
|
|
973
|
-
case "com.amazonaws.batch#ServerException":
|
|
974
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
975
|
-
default:
|
|
976
|
-
const parsedBody = parsedOutput.body;
|
|
977
|
-
return throwDefaultError({
|
|
978
|
-
output,
|
|
979
|
-
parsedBody,
|
|
980
|
-
errorCode,
|
|
981
|
-
});
|
|
982
|
-
}
|
|
983
|
-
};
|
|
984
610
|
export const de_SubmitJobCommand = async (output, context) => {
|
|
985
611
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
986
|
-
return
|
|
612
|
+
return de_CommandError(output, context);
|
|
987
613
|
}
|
|
988
614
|
const contents = map({
|
|
989
615
|
$metadata: deserializeMetadata(output),
|
|
@@ -997,31 +623,9 @@ export const de_SubmitJobCommand = async (output, context) => {
|
|
|
997
623
|
Object.assign(contents, doc);
|
|
998
624
|
return contents;
|
|
999
625
|
};
|
|
1000
|
-
const de_SubmitJobCommandError = async (output, context) => {
|
|
1001
|
-
const parsedOutput = {
|
|
1002
|
-
...output,
|
|
1003
|
-
body: await parseErrorBody(output.body, context),
|
|
1004
|
-
};
|
|
1005
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1006
|
-
switch (errorCode) {
|
|
1007
|
-
case "ClientException":
|
|
1008
|
-
case "com.amazonaws.batch#ClientException":
|
|
1009
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1010
|
-
case "ServerException":
|
|
1011
|
-
case "com.amazonaws.batch#ServerException":
|
|
1012
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1013
|
-
default:
|
|
1014
|
-
const parsedBody = parsedOutput.body;
|
|
1015
|
-
return throwDefaultError({
|
|
1016
|
-
output,
|
|
1017
|
-
parsedBody,
|
|
1018
|
-
errorCode,
|
|
1019
|
-
});
|
|
1020
|
-
}
|
|
1021
|
-
};
|
|
1022
626
|
export const de_TagResourceCommand = async (output, context) => {
|
|
1023
627
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1024
|
-
return
|
|
628
|
+
return de_CommandError(output, context);
|
|
1025
629
|
}
|
|
1026
630
|
const contents = map({
|
|
1027
631
|
$metadata: deserializeMetadata(output),
|
|
@@ -1029,31 +633,9 @@ export const de_TagResourceCommand = async (output, context) => {
|
|
|
1029
633
|
await collectBody(output.body, context);
|
|
1030
634
|
return contents;
|
|
1031
635
|
};
|
|
1032
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
1033
|
-
const parsedOutput = {
|
|
1034
|
-
...output,
|
|
1035
|
-
body: await parseErrorBody(output.body, context),
|
|
1036
|
-
};
|
|
1037
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1038
|
-
switch (errorCode) {
|
|
1039
|
-
case "ClientException":
|
|
1040
|
-
case "com.amazonaws.batch#ClientException":
|
|
1041
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1042
|
-
case "ServerException":
|
|
1043
|
-
case "com.amazonaws.batch#ServerException":
|
|
1044
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1045
|
-
default:
|
|
1046
|
-
const parsedBody = parsedOutput.body;
|
|
1047
|
-
return throwDefaultError({
|
|
1048
|
-
output,
|
|
1049
|
-
parsedBody,
|
|
1050
|
-
errorCode,
|
|
1051
|
-
});
|
|
1052
|
-
}
|
|
1053
|
-
};
|
|
1054
636
|
export const de_TerminateJobCommand = async (output, context) => {
|
|
1055
637
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1056
|
-
return
|
|
638
|
+
return de_CommandError(output, context);
|
|
1057
639
|
}
|
|
1058
640
|
const contents = map({
|
|
1059
641
|
$metadata: deserializeMetadata(output),
|
|
@@ -1061,31 +643,9 @@ export const de_TerminateJobCommand = async (output, context) => {
|
|
|
1061
643
|
await collectBody(output.body, context);
|
|
1062
644
|
return contents;
|
|
1063
645
|
};
|
|
1064
|
-
const de_TerminateJobCommandError = async (output, context) => {
|
|
1065
|
-
const parsedOutput = {
|
|
1066
|
-
...output,
|
|
1067
|
-
body: await parseErrorBody(output.body, context),
|
|
1068
|
-
};
|
|
1069
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1070
|
-
switch (errorCode) {
|
|
1071
|
-
case "ClientException":
|
|
1072
|
-
case "com.amazonaws.batch#ClientException":
|
|
1073
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1074
|
-
case "ServerException":
|
|
1075
|
-
case "com.amazonaws.batch#ServerException":
|
|
1076
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1077
|
-
default:
|
|
1078
|
-
const parsedBody = parsedOutput.body;
|
|
1079
|
-
return throwDefaultError({
|
|
1080
|
-
output,
|
|
1081
|
-
parsedBody,
|
|
1082
|
-
errorCode,
|
|
1083
|
-
});
|
|
1084
|
-
}
|
|
1085
|
-
};
|
|
1086
646
|
export const de_UntagResourceCommand = async (output, context) => {
|
|
1087
647
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1088
|
-
return
|
|
648
|
+
return de_CommandError(output, context);
|
|
1089
649
|
}
|
|
1090
650
|
const contents = map({
|
|
1091
651
|
$metadata: deserializeMetadata(output),
|
|
@@ -1093,31 +653,9 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
1093
653
|
await collectBody(output.body, context);
|
|
1094
654
|
return contents;
|
|
1095
655
|
};
|
|
1096
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
1097
|
-
const parsedOutput = {
|
|
1098
|
-
...output,
|
|
1099
|
-
body: await parseErrorBody(output.body, context),
|
|
1100
|
-
};
|
|
1101
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1102
|
-
switch (errorCode) {
|
|
1103
|
-
case "ClientException":
|
|
1104
|
-
case "com.amazonaws.batch#ClientException":
|
|
1105
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1106
|
-
case "ServerException":
|
|
1107
|
-
case "com.amazonaws.batch#ServerException":
|
|
1108
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1109
|
-
default:
|
|
1110
|
-
const parsedBody = parsedOutput.body;
|
|
1111
|
-
return throwDefaultError({
|
|
1112
|
-
output,
|
|
1113
|
-
parsedBody,
|
|
1114
|
-
errorCode,
|
|
1115
|
-
});
|
|
1116
|
-
}
|
|
1117
|
-
};
|
|
1118
656
|
export const de_UpdateComputeEnvironmentCommand = async (output, context) => {
|
|
1119
657
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1120
|
-
return
|
|
658
|
+
return de_CommandError(output, context);
|
|
1121
659
|
}
|
|
1122
660
|
const contents = map({
|
|
1123
661
|
$metadata: deserializeMetadata(output),
|
|
@@ -1130,31 +668,9 @@ export const de_UpdateComputeEnvironmentCommand = async (output, context) => {
|
|
|
1130
668
|
Object.assign(contents, doc);
|
|
1131
669
|
return contents;
|
|
1132
670
|
};
|
|
1133
|
-
const de_UpdateComputeEnvironmentCommandError = async (output, context) => {
|
|
1134
|
-
const parsedOutput = {
|
|
1135
|
-
...output,
|
|
1136
|
-
body: await parseErrorBody(output.body, context),
|
|
1137
|
-
};
|
|
1138
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1139
|
-
switch (errorCode) {
|
|
1140
|
-
case "ClientException":
|
|
1141
|
-
case "com.amazonaws.batch#ClientException":
|
|
1142
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1143
|
-
case "ServerException":
|
|
1144
|
-
case "com.amazonaws.batch#ServerException":
|
|
1145
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1146
|
-
default:
|
|
1147
|
-
const parsedBody = parsedOutput.body;
|
|
1148
|
-
return throwDefaultError({
|
|
1149
|
-
output,
|
|
1150
|
-
parsedBody,
|
|
1151
|
-
errorCode,
|
|
1152
|
-
});
|
|
1153
|
-
}
|
|
1154
|
-
};
|
|
1155
671
|
export const de_UpdateJobQueueCommand = async (output, context) => {
|
|
1156
672
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1157
|
-
return
|
|
673
|
+
return de_CommandError(output, context);
|
|
1158
674
|
}
|
|
1159
675
|
const contents = map({
|
|
1160
676
|
$metadata: deserializeMetadata(output),
|
|
@@ -1167,31 +683,9 @@ export const de_UpdateJobQueueCommand = async (output, context) => {
|
|
|
1167
683
|
Object.assign(contents, doc);
|
|
1168
684
|
return contents;
|
|
1169
685
|
};
|
|
1170
|
-
const de_UpdateJobQueueCommandError = async (output, context) => {
|
|
1171
|
-
const parsedOutput = {
|
|
1172
|
-
...output,
|
|
1173
|
-
body: await parseErrorBody(output.body, context),
|
|
1174
|
-
};
|
|
1175
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1176
|
-
switch (errorCode) {
|
|
1177
|
-
case "ClientException":
|
|
1178
|
-
case "com.amazonaws.batch#ClientException":
|
|
1179
|
-
throw await de_ClientExceptionRes(parsedOutput, context);
|
|
1180
|
-
case "ServerException":
|
|
1181
|
-
case "com.amazonaws.batch#ServerException":
|
|
1182
|
-
throw await de_ServerExceptionRes(parsedOutput, context);
|
|
1183
|
-
default:
|
|
1184
|
-
const parsedBody = parsedOutput.body;
|
|
1185
|
-
return throwDefaultError({
|
|
1186
|
-
output,
|
|
1187
|
-
parsedBody,
|
|
1188
|
-
errorCode,
|
|
1189
|
-
});
|
|
1190
|
-
}
|
|
1191
|
-
};
|
|
1192
686
|
export const de_UpdateSchedulingPolicyCommand = async (output, context) => {
|
|
1193
687
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1194
|
-
return
|
|
688
|
+
return de_CommandError(output, context);
|
|
1195
689
|
}
|
|
1196
690
|
const contents = map({
|
|
1197
691
|
$metadata: deserializeMetadata(output),
|
|
@@ -1199,7 +693,7 @@ export const de_UpdateSchedulingPolicyCommand = async (output, context) => {
|
|
|
1199
693
|
await collectBody(output.body, context);
|
|
1200
694
|
return contents;
|
|
1201
695
|
};
|
|
1202
|
-
const
|
|
696
|
+
const de_CommandError = async (output, context) => {
|
|
1203
697
|
const parsedOutput = {
|
|
1204
698
|
...output,
|
|
1205
699
|
body: await parseErrorBody(output.body, context),
|