@aws-sdk/client-device-farm 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 +163 -2249
- package/dist-es/protocols/Aws_json1_1.js +137 -2223
- package/package.json +3 -3
|
@@ -466,7 +466,7 @@ export const se_UpdateVPCEConfigurationCommand = async (input, context) => {
|
|
|
466
466
|
};
|
|
467
467
|
export const de_CreateDevicePoolCommand = async (output, context) => {
|
|
468
468
|
if (output.statusCode >= 300) {
|
|
469
|
-
return
|
|
469
|
+
return de_CommandError(output, context);
|
|
470
470
|
}
|
|
471
471
|
const data = await parseBody(output.body, context);
|
|
472
472
|
let contents = {};
|
|
@@ -477,37 +477,9 @@ export const de_CreateDevicePoolCommand = async (output, context) => {
|
|
|
477
477
|
};
|
|
478
478
|
return response;
|
|
479
479
|
};
|
|
480
|
-
const de_CreateDevicePoolCommandError = async (output, context) => {
|
|
481
|
-
const parsedOutput = {
|
|
482
|
-
...output,
|
|
483
|
-
body: await parseErrorBody(output.body, context),
|
|
484
|
-
};
|
|
485
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
486
|
-
switch (errorCode) {
|
|
487
|
-
case "ArgumentException":
|
|
488
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
489
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
490
|
-
case "LimitExceededException":
|
|
491
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
492
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
493
|
-
case "NotFoundException":
|
|
494
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
495
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
496
|
-
case "ServiceAccountException":
|
|
497
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
498
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
499
|
-
default:
|
|
500
|
-
const parsedBody = parsedOutput.body;
|
|
501
|
-
return throwDefaultError({
|
|
502
|
-
output,
|
|
503
|
-
parsedBody,
|
|
504
|
-
errorCode,
|
|
505
|
-
});
|
|
506
|
-
}
|
|
507
|
-
};
|
|
508
480
|
export const de_CreateInstanceProfileCommand = async (output, context) => {
|
|
509
481
|
if (output.statusCode >= 300) {
|
|
510
|
-
return
|
|
482
|
+
return de_CommandError(output, context);
|
|
511
483
|
}
|
|
512
484
|
const data = await parseBody(output.body, context);
|
|
513
485
|
let contents = {};
|
|
@@ -518,37 +490,9 @@ export const de_CreateInstanceProfileCommand = async (output, context) => {
|
|
|
518
490
|
};
|
|
519
491
|
return response;
|
|
520
492
|
};
|
|
521
|
-
const de_CreateInstanceProfileCommandError = async (output, context) => {
|
|
522
|
-
const parsedOutput = {
|
|
523
|
-
...output,
|
|
524
|
-
body: await parseErrorBody(output.body, context),
|
|
525
|
-
};
|
|
526
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
527
|
-
switch (errorCode) {
|
|
528
|
-
case "ArgumentException":
|
|
529
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
530
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
531
|
-
case "LimitExceededException":
|
|
532
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
533
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
534
|
-
case "NotFoundException":
|
|
535
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
536
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
537
|
-
case "ServiceAccountException":
|
|
538
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
539
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
540
|
-
default:
|
|
541
|
-
const parsedBody = parsedOutput.body;
|
|
542
|
-
return throwDefaultError({
|
|
543
|
-
output,
|
|
544
|
-
parsedBody,
|
|
545
|
-
errorCode,
|
|
546
|
-
});
|
|
547
|
-
}
|
|
548
|
-
};
|
|
549
493
|
export const de_CreateNetworkProfileCommand = async (output, context) => {
|
|
550
494
|
if (output.statusCode >= 300) {
|
|
551
|
-
return
|
|
495
|
+
return de_CommandError(output, context);
|
|
552
496
|
}
|
|
553
497
|
const data = await parseBody(output.body, context);
|
|
554
498
|
let contents = {};
|
|
@@ -559,37 +503,9 @@ export const de_CreateNetworkProfileCommand = async (output, context) => {
|
|
|
559
503
|
};
|
|
560
504
|
return response;
|
|
561
505
|
};
|
|
562
|
-
const de_CreateNetworkProfileCommandError = async (output, context) => {
|
|
563
|
-
const parsedOutput = {
|
|
564
|
-
...output,
|
|
565
|
-
body: await parseErrorBody(output.body, context),
|
|
566
|
-
};
|
|
567
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
568
|
-
switch (errorCode) {
|
|
569
|
-
case "ArgumentException":
|
|
570
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
571
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
572
|
-
case "LimitExceededException":
|
|
573
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
574
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
575
|
-
case "NotFoundException":
|
|
576
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
577
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
578
|
-
case "ServiceAccountException":
|
|
579
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
580
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
581
|
-
default:
|
|
582
|
-
const parsedBody = parsedOutput.body;
|
|
583
|
-
return throwDefaultError({
|
|
584
|
-
output,
|
|
585
|
-
parsedBody,
|
|
586
|
-
errorCode,
|
|
587
|
-
});
|
|
588
|
-
}
|
|
589
|
-
};
|
|
590
506
|
export const de_CreateProjectCommand = async (output, context) => {
|
|
591
507
|
if (output.statusCode >= 300) {
|
|
592
|
-
return
|
|
508
|
+
return de_CommandError(output, context);
|
|
593
509
|
}
|
|
594
510
|
const data = await parseBody(output.body, context);
|
|
595
511
|
let contents = {};
|
|
@@ -600,40 +516,9 @@ export const de_CreateProjectCommand = async (output, context) => {
|
|
|
600
516
|
};
|
|
601
517
|
return response;
|
|
602
518
|
};
|
|
603
|
-
const de_CreateProjectCommandError = async (output, context) => {
|
|
604
|
-
const parsedOutput = {
|
|
605
|
-
...output,
|
|
606
|
-
body: await parseErrorBody(output.body, context),
|
|
607
|
-
};
|
|
608
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
609
|
-
switch (errorCode) {
|
|
610
|
-
case "ArgumentException":
|
|
611
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
612
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
613
|
-
case "LimitExceededException":
|
|
614
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
615
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
616
|
-
case "NotFoundException":
|
|
617
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
618
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
619
|
-
case "ServiceAccountException":
|
|
620
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
621
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
622
|
-
case "TagOperationException":
|
|
623
|
-
case "com.amazonaws.devicefarm#TagOperationException":
|
|
624
|
-
throw await de_TagOperationExceptionRes(parsedOutput, context);
|
|
625
|
-
default:
|
|
626
|
-
const parsedBody = parsedOutput.body;
|
|
627
|
-
return throwDefaultError({
|
|
628
|
-
output,
|
|
629
|
-
parsedBody,
|
|
630
|
-
errorCode,
|
|
631
|
-
});
|
|
632
|
-
}
|
|
633
|
-
};
|
|
634
519
|
export const de_CreateRemoteAccessSessionCommand = async (output, context) => {
|
|
635
520
|
if (output.statusCode >= 300) {
|
|
636
|
-
return
|
|
521
|
+
return de_CommandError(output, context);
|
|
637
522
|
}
|
|
638
523
|
const data = await parseBody(output.body, context);
|
|
639
524
|
let contents = {};
|
|
@@ -644,37 +529,9 @@ export const de_CreateRemoteAccessSessionCommand = async (output, context) => {
|
|
|
644
529
|
};
|
|
645
530
|
return response;
|
|
646
531
|
};
|
|
647
|
-
const de_CreateRemoteAccessSessionCommandError = async (output, context) => {
|
|
648
|
-
const parsedOutput = {
|
|
649
|
-
...output,
|
|
650
|
-
body: await parseErrorBody(output.body, context),
|
|
651
|
-
};
|
|
652
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
653
|
-
switch (errorCode) {
|
|
654
|
-
case "ArgumentException":
|
|
655
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
656
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
657
|
-
case "LimitExceededException":
|
|
658
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
659
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
660
|
-
case "NotFoundException":
|
|
661
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
662
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
663
|
-
case "ServiceAccountException":
|
|
664
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
665
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
666
|
-
default:
|
|
667
|
-
const parsedBody = parsedOutput.body;
|
|
668
|
-
return throwDefaultError({
|
|
669
|
-
output,
|
|
670
|
-
parsedBody,
|
|
671
|
-
errorCode,
|
|
672
|
-
});
|
|
673
|
-
}
|
|
674
|
-
};
|
|
675
532
|
export const de_CreateTestGridProjectCommand = async (output, context) => {
|
|
676
533
|
if (output.statusCode >= 300) {
|
|
677
|
-
return
|
|
534
|
+
return de_CommandError(output, context);
|
|
678
535
|
}
|
|
679
536
|
const data = await parseBody(output.body, context);
|
|
680
537
|
let contents = {};
|
|
@@ -685,34 +542,9 @@ export const de_CreateTestGridProjectCommand = async (output, context) => {
|
|
|
685
542
|
};
|
|
686
543
|
return response;
|
|
687
544
|
};
|
|
688
|
-
const de_CreateTestGridProjectCommandError = async (output, context) => {
|
|
689
|
-
const parsedOutput = {
|
|
690
|
-
...output,
|
|
691
|
-
body: await parseErrorBody(output.body, context),
|
|
692
|
-
};
|
|
693
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
694
|
-
switch (errorCode) {
|
|
695
|
-
case "ArgumentException":
|
|
696
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
697
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
698
|
-
case "InternalServiceException":
|
|
699
|
-
case "com.amazonaws.devicefarm#InternalServiceException":
|
|
700
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
701
|
-
case "LimitExceededException":
|
|
702
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
703
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
704
|
-
default:
|
|
705
|
-
const parsedBody = parsedOutput.body;
|
|
706
|
-
return throwDefaultError({
|
|
707
|
-
output,
|
|
708
|
-
parsedBody,
|
|
709
|
-
errorCode,
|
|
710
|
-
});
|
|
711
|
-
}
|
|
712
|
-
};
|
|
713
545
|
export const de_CreateTestGridUrlCommand = async (output, context) => {
|
|
714
546
|
if (output.statusCode >= 300) {
|
|
715
|
-
return
|
|
547
|
+
return de_CommandError(output, context);
|
|
716
548
|
}
|
|
717
549
|
const data = await parseBody(output.body, context);
|
|
718
550
|
let contents = {};
|
|
@@ -723,34 +555,9 @@ export const de_CreateTestGridUrlCommand = async (output, context) => {
|
|
|
723
555
|
};
|
|
724
556
|
return response;
|
|
725
557
|
};
|
|
726
|
-
const de_CreateTestGridUrlCommandError = async (output, context) => {
|
|
727
|
-
const parsedOutput = {
|
|
728
|
-
...output,
|
|
729
|
-
body: await parseErrorBody(output.body, context),
|
|
730
|
-
};
|
|
731
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
732
|
-
switch (errorCode) {
|
|
733
|
-
case "ArgumentException":
|
|
734
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
735
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
736
|
-
case "InternalServiceException":
|
|
737
|
-
case "com.amazonaws.devicefarm#InternalServiceException":
|
|
738
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
739
|
-
case "NotFoundException":
|
|
740
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
741
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
742
|
-
default:
|
|
743
|
-
const parsedBody = parsedOutput.body;
|
|
744
|
-
return throwDefaultError({
|
|
745
|
-
output,
|
|
746
|
-
parsedBody,
|
|
747
|
-
errorCode,
|
|
748
|
-
});
|
|
749
|
-
}
|
|
750
|
-
};
|
|
751
558
|
export const de_CreateUploadCommand = async (output, context) => {
|
|
752
559
|
if (output.statusCode >= 300) {
|
|
753
|
-
return
|
|
560
|
+
return de_CommandError(output, context);
|
|
754
561
|
}
|
|
755
562
|
const data = await parseBody(output.body, context);
|
|
756
563
|
let contents = {};
|
|
@@ -761,37 +568,9 @@ export const de_CreateUploadCommand = async (output, context) => {
|
|
|
761
568
|
};
|
|
762
569
|
return response;
|
|
763
570
|
};
|
|
764
|
-
const de_CreateUploadCommandError = async (output, context) => {
|
|
765
|
-
const parsedOutput = {
|
|
766
|
-
...output,
|
|
767
|
-
body: await parseErrorBody(output.body, context),
|
|
768
|
-
};
|
|
769
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
770
|
-
switch (errorCode) {
|
|
771
|
-
case "ArgumentException":
|
|
772
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
773
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
774
|
-
case "LimitExceededException":
|
|
775
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
776
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
777
|
-
case "NotFoundException":
|
|
778
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
779
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
780
|
-
case "ServiceAccountException":
|
|
781
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
782
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
783
|
-
default:
|
|
784
|
-
const parsedBody = parsedOutput.body;
|
|
785
|
-
return throwDefaultError({
|
|
786
|
-
output,
|
|
787
|
-
parsedBody,
|
|
788
|
-
errorCode,
|
|
789
|
-
});
|
|
790
|
-
}
|
|
791
|
-
};
|
|
792
571
|
export const de_CreateVPCEConfigurationCommand = async (output, context) => {
|
|
793
572
|
if (output.statusCode >= 300) {
|
|
794
|
-
return
|
|
573
|
+
return de_CommandError(output, context);
|
|
795
574
|
}
|
|
796
575
|
const data = await parseBody(output.body, context);
|
|
797
576
|
let contents = {};
|
|
@@ -802,34 +581,9 @@ export const de_CreateVPCEConfigurationCommand = async (output, context) => {
|
|
|
802
581
|
};
|
|
803
582
|
return response;
|
|
804
583
|
};
|
|
805
|
-
const de_CreateVPCEConfigurationCommandError = 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 "ArgumentException":
|
|
813
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
814
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
815
|
-
case "LimitExceededException":
|
|
816
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
817
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
818
|
-
case "ServiceAccountException":
|
|
819
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
820
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
821
|
-
default:
|
|
822
|
-
const parsedBody = parsedOutput.body;
|
|
823
|
-
return throwDefaultError({
|
|
824
|
-
output,
|
|
825
|
-
parsedBody,
|
|
826
|
-
errorCode,
|
|
827
|
-
});
|
|
828
|
-
}
|
|
829
|
-
};
|
|
830
584
|
export const de_DeleteDevicePoolCommand = async (output, context) => {
|
|
831
585
|
if (output.statusCode >= 300) {
|
|
832
|
-
return
|
|
586
|
+
return de_CommandError(output, context);
|
|
833
587
|
}
|
|
834
588
|
const data = await parseBody(output.body, context);
|
|
835
589
|
let contents = {};
|
|
@@ -840,78 +594,22 @@ export const de_DeleteDevicePoolCommand = async (output, context) => {
|
|
|
840
594
|
};
|
|
841
595
|
return response;
|
|
842
596
|
};
|
|
843
|
-
const
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
case "LimitExceededException":
|
|
854
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
855
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
856
|
-
case "NotFoundException":
|
|
857
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
858
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
859
|
-
case "ServiceAccountException":
|
|
860
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
861
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
862
|
-
default:
|
|
863
|
-
const parsedBody = parsedOutput.body;
|
|
864
|
-
return throwDefaultError({
|
|
865
|
-
output,
|
|
866
|
-
parsedBody,
|
|
867
|
-
errorCode,
|
|
868
|
-
});
|
|
869
|
-
}
|
|
870
|
-
};
|
|
871
|
-
export const de_DeleteInstanceProfileCommand = async (output, context) => {
|
|
872
|
-
if (output.statusCode >= 300) {
|
|
873
|
-
return de_DeleteInstanceProfileCommandError(output, context);
|
|
874
|
-
}
|
|
875
|
-
const data = await parseBody(output.body, context);
|
|
876
|
-
let contents = {};
|
|
877
|
-
contents = _json(data);
|
|
878
|
-
const response = {
|
|
879
|
-
$metadata: deserializeMetadata(output),
|
|
880
|
-
...contents,
|
|
597
|
+
export const de_DeleteInstanceProfileCommand = async (output, context) => {
|
|
598
|
+
if (output.statusCode >= 300) {
|
|
599
|
+
return de_CommandError(output, context);
|
|
600
|
+
}
|
|
601
|
+
const data = await parseBody(output.body, context);
|
|
602
|
+
let contents = {};
|
|
603
|
+
contents = _json(data);
|
|
604
|
+
const response = {
|
|
605
|
+
$metadata: deserializeMetadata(output),
|
|
606
|
+
...contents,
|
|
881
607
|
};
|
|
882
608
|
return response;
|
|
883
609
|
};
|
|
884
|
-
const de_DeleteInstanceProfileCommandError = async (output, context) => {
|
|
885
|
-
const parsedOutput = {
|
|
886
|
-
...output,
|
|
887
|
-
body: await parseErrorBody(output.body, context),
|
|
888
|
-
};
|
|
889
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
890
|
-
switch (errorCode) {
|
|
891
|
-
case "ArgumentException":
|
|
892
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
893
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
894
|
-
case "LimitExceededException":
|
|
895
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
896
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
897
|
-
case "NotFoundException":
|
|
898
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
899
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
900
|
-
case "ServiceAccountException":
|
|
901
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
902
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
903
|
-
default:
|
|
904
|
-
const parsedBody = parsedOutput.body;
|
|
905
|
-
return throwDefaultError({
|
|
906
|
-
output,
|
|
907
|
-
parsedBody,
|
|
908
|
-
errorCode,
|
|
909
|
-
});
|
|
910
|
-
}
|
|
911
|
-
};
|
|
912
610
|
export const de_DeleteNetworkProfileCommand = async (output, context) => {
|
|
913
611
|
if (output.statusCode >= 300) {
|
|
914
|
-
return
|
|
612
|
+
return de_CommandError(output, context);
|
|
915
613
|
}
|
|
916
614
|
const data = await parseBody(output.body, context);
|
|
917
615
|
let contents = {};
|
|
@@ -922,37 +620,9 @@ export const de_DeleteNetworkProfileCommand = async (output, context) => {
|
|
|
922
620
|
};
|
|
923
621
|
return response;
|
|
924
622
|
};
|
|
925
|
-
const de_DeleteNetworkProfileCommandError = async (output, context) => {
|
|
926
|
-
const parsedOutput = {
|
|
927
|
-
...output,
|
|
928
|
-
body: await parseErrorBody(output.body, context),
|
|
929
|
-
};
|
|
930
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
931
|
-
switch (errorCode) {
|
|
932
|
-
case "ArgumentException":
|
|
933
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
934
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
935
|
-
case "LimitExceededException":
|
|
936
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
937
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
938
|
-
case "NotFoundException":
|
|
939
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
940
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
941
|
-
case "ServiceAccountException":
|
|
942
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
943
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
944
|
-
default:
|
|
945
|
-
const parsedBody = parsedOutput.body;
|
|
946
|
-
return throwDefaultError({
|
|
947
|
-
output,
|
|
948
|
-
parsedBody,
|
|
949
|
-
errorCode,
|
|
950
|
-
});
|
|
951
|
-
}
|
|
952
|
-
};
|
|
953
623
|
export const de_DeleteProjectCommand = async (output, context) => {
|
|
954
624
|
if (output.statusCode >= 300) {
|
|
955
|
-
return
|
|
625
|
+
return de_CommandError(output, context);
|
|
956
626
|
}
|
|
957
627
|
const data = await parseBody(output.body, context);
|
|
958
628
|
let contents = {};
|
|
@@ -963,37 +633,9 @@ export const de_DeleteProjectCommand = async (output, context) => {
|
|
|
963
633
|
};
|
|
964
634
|
return response;
|
|
965
635
|
};
|
|
966
|
-
const de_DeleteProjectCommandError = async (output, context) => {
|
|
967
|
-
const parsedOutput = {
|
|
968
|
-
...output,
|
|
969
|
-
body: await parseErrorBody(output.body, context),
|
|
970
|
-
};
|
|
971
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
972
|
-
switch (errorCode) {
|
|
973
|
-
case "ArgumentException":
|
|
974
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
975
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
976
|
-
case "LimitExceededException":
|
|
977
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
978
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
979
|
-
case "NotFoundException":
|
|
980
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
981
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
982
|
-
case "ServiceAccountException":
|
|
983
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
984
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
985
|
-
default:
|
|
986
|
-
const parsedBody = parsedOutput.body;
|
|
987
|
-
return throwDefaultError({
|
|
988
|
-
output,
|
|
989
|
-
parsedBody,
|
|
990
|
-
errorCode,
|
|
991
|
-
});
|
|
992
|
-
}
|
|
993
|
-
};
|
|
994
636
|
export const de_DeleteRemoteAccessSessionCommand = async (output, context) => {
|
|
995
637
|
if (output.statusCode >= 300) {
|
|
996
|
-
return
|
|
638
|
+
return de_CommandError(output, context);
|
|
997
639
|
}
|
|
998
640
|
const data = await parseBody(output.body, context);
|
|
999
641
|
let contents = {};
|
|
@@ -1004,37 +646,9 @@ export const de_DeleteRemoteAccessSessionCommand = async (output, context) => {
|
|
|
1004
646
|
};
|
|
1005
647
|
return response;
|
|
1006
648
|
};
|
|
1007
|
-
const de_DeleteRemoteAccessSessionCommandError = async (output, context) => {
|
|
1008
|
-
const parsedOutput = {
|
|
1009
|
-
...output,
|
|
1010
|
-
body: await parseErrorBody(output.body, context),
|
|
1011
|
-
};
|
|
1012
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1013
|
-
switch (errorCode) {
|
|
1014
|
-
case "ArgumentException":
|
|
1015
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1016
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1017
|
-
case "LimitExceededException":
|
|
1018
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1019
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1020
|
-
case "NotFoundException":
|
|
1021
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1022
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1023
|
-
case "ServiceAccountException":
|
|
1024
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1025
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1026
|
-
default:
|
|
1027
|
-
const parsedBody = parsedOutput.body;
|
|
1028
|
-
return throwDefaultError({
|
|
1029
|
-
output,
|
|
1030
|
-
parsedBody,
|
|
1031
|
-
errorCode,
|
|
1032
|
-
});
|
|
1033
|
-
}
|
|
1034
|
-
};
|
|
1035
649
|
export const de_DeleteRunCommand = async (output, context) => {
|
|
1036
650
|
if (output.statusCode >= 300) {
|
|
1037
|
-
return
|
|
651
|
+
return de_CommandError(output, context);
|
|
1038
652
|
}
|
|
1039
653
|
const data = await parseBody(output.body, context);
|
|
1040
654
|
let contents = {};
|
|
@@ -1045,37 +659,9 @@ export const de_DeleteRunCommand = async (output, context) => {
|
|
|
1045
659
|
};
|
|
1046
660
|
return response;
|
|
1047
661
|
};
|
|
1048
|
-
const de_DeleteRunCommandError = async (output, context) => {
|
|
1049
|
-
const parsedOutput = {
|
|
1050
|
-
...output,
|
|
1051
|
-
body: await parseErrorBody(output.body, context),
|
|
1052
|
-
};
|
|
1053
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1054
|
-
switch (errorCode) {
|
|
1055
|
-
case "ArgumentException":
|
|
1056
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1057
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1058
|
-
case "LimitExceededException":
|
|
1059
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1060
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1061
|
-
case "NotFoundException":
|
|
1062
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1063
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1064
|
-
case "ServiceAccountException":
|
|
1065
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1066
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1067
|
-
default:
|
|
1068
|
-
const parsedBody = parsedOutput.body;
|
|
1069
|
-
return throwDefaultError({
|
|
1070
|
-
output,
|
|
1071
|
-
parsedBody,
|
|
1072
|
-
errorCode,
|
|
1073
|
-
});
|
|
1074
|
-
}
|
|
1075
|
-
};
|
|
1076
662
|
export const de_DeleteTestGridProjectCommand = async (output, context) => {
|
|
1077
663
|
if (output.statusCode >= 300) {
|
|
1078
|
-
return
|
|
664
|
+
return de_CommandError(output, context);
|
|
1079
665
|
}
|
|
1080
666
|
const data = await parseBody(output.body, context);
|
|
1081
667
|
let contents = {};
|
|
@@ -1086,37 +672,9 @@ export const de_DeleteTestGridProjectCommand = async (output, context) => {
|
|
|
1086
672
|
};
|
|
1087
673
|
return response;
|
|
1088
674
|
};
|
|
1089
|
-
const de_DeleteTestGridProjectCommandError = async (output, context) => {
|
|
1090
|
-
const parsedOutput = {
|
|
1091
|
-
...output,
|
|
1092
|
-
body: await parseErrorBody(output.body, context),
|
|
1093
|
-
};
|
|
1094
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1095
|
-
switch (errorCode) {
|
|
1096
|
-
case "ArgumentException":
|
|
1097
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1098
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1099
|
-
case "CannotDeleteException":
|
|
1100
|
-
case "com.amazonaws.devicefarm#CannotDeleteException":
|
|
1101
|
-
throw await de_CannotDeleteExceptionRes(parsedOutput, context);
|
|
1102
|
-
case "InternalServiceException":
|
|
1103
|
-
case "com.amazonaws.devicefarm#InternalServiceException":
|
|
1104
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1105
|
-
case "NotFoundException":
|
|
1106
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1107
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1108
|
-
default:
|
|
1109
|
-
const parsedBody = parsedOutput.body;
|
|
1110
|
-
return throwDefaultError({
|
|
1111
|
-
output,
|
|
1112
|
-
parsedBody,
|
|
1113
|
-
errorCode,
|
|
1114
|
-
});
|
|
1115
|
-
}
|
|
1116
|
-
};
|
|
1117
675
|
export const de_DeleteUploadCommand = async (output, context) => {
|
|
1118
676
|
if (output.statusCode >= 300) {
|
|
1119
|
-
return
|
|
677
|
+
return de_CommandError(output, context);
|
|
1120
678
|
}
|
|
1121
679
|
const data = await parseBody(output.body, context);
|
|
1122
680
|
let contents = {};
|
|
@@ -1127,37 +685,9 @@ export const de_DeleteUploadCommand = async (output, context) => {
|
|
|
1127
685
|
};
|
|
1128
686
|
return response;
|
|
1129
687
|
};
|
|
1130
|
-
const de_DeleteUploadCommandError = async (output, context) => {
|
|
1131
|
-
const parsedOutput = {
|
|
1132
|
-
...output,
|
|
1133
|
-
body: await parseErrorBody(output.body, context),
|
|
1134
|
-
};
|
|
1135
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1136
|
-
switch (errorCode) {
|
|
1137
|
-
case "ArgumentException":
|
|
1138
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1139
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1140
|
-
case "LimitExceededException":
|
|
1141
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1142
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1143
|
-
case "NotFoundException":
|
|
1144
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1145
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1146
|
-
case "ServiceAccountException":
|
|
1147
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1148
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1149
|
-
default:
|
|
1150
|
-
const parsedBody = parsedOutput.body;
|
|
1151
|
-
return throwDefaultError({
|
|
1152
|
-
output,
|
|
1153
|
-
parsedBody,
|
|
1154
|
-
errorCode,
|
|
1155
|
-
});
|
|
1156
|
-
}
|
|
1157
|
-
};
|
|
1158
688
|
export const de_DeleteVPCEConfigurationCommand = async (output, context) => {
|
|
1159
689
|
if (output.statusCode >= 300) {
|
|
1160
|
-
return
|
|
690
|
+
return de_CommandError(output, context);
|
|
1161
691
|
}
|
|
1162
692
|
const data = await parseBody(output.body, context);
|
|
1163
693
|
let contents = {};
|
|
@@ -1168,37 +698,9 @@ export const de_DeleteVPCEConfigurationCommand = async (output, context) => {
|
|
|
1168
698
|
};
|
|
1169
699
|
return response;
|
|
1170
700
|
};
|
|
1171
|
-
const de_DeleteVPCEConfigurationCommandError = async (output, context) => {
|
|
1172
|
-
const parsedOutput = {
|
|
1173
|
-
...output,
|
|
1174
|
-
body: await parseErrorBody(output.body, context),
|
|
1175
|
-
};
|
|
1176
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1177
|
-
switch (errorCode) {
|
|
1178
|
-
case "ArgumentException":
|
|
1179
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1180
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1181
|
-
case "InvalidOperationException":
|
|
1182
|
-
case "com.amazonaws.devicefarm#InvalidOperationException":
|
|
1183
|
-
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1184
|
-
case "NotFoundException":
|
|
1185
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1186
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1187
|
-
case "ServiceAccountException":
|
|
1188
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1189
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1190
|
-
default:
|
|
1191
|
-
const parsedBody = parsedOutput.body;
|
|
1192
|
-
return throwDefaultError({
|
|
1193
|
-
output,
|
|
1194
|
-
parsedBody,
|
|
1195
|
-
errorCode,
|
|
1196
|
-
});
|
|
1197
|
-
}
|
|
1198
|
-
};
|
|
1199
701
|
export const de_GetAccountSettingsCommand = async (output, context) => {
|
|
1200
702
|
if (output.statusCode >= 300) {
|
|
1201
|
-
return
|
|
703
|
+
return de_CommandError(output, context);
|
|
1202
704
|
}
|
|
1203
705
|
const data = await parseBody(output.body, context);
|
|
1204
706
|
let contents = {};
|
|
@@ -1209,78 +711,22 @@ export const de_GetAccountSettingsCommand = async (output, context) => {
|
|
|
1209
711
|
};
|
|
1210
712
|
return response;
|
|
1211
713
|
};
|
|
1212
|
-
const
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
case "LimitExceededException":
|
|
1223
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1224
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1225
|
-
case "NotFoundException":
|
|
1226
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1227
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1228
|
-
case "ServiceAccountException":
|
|
1229
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1230
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1231
|
-
default:
|
|
1232
|
-
const parsedBody = parsedOutput.body;
|
|
1233
|
-
return throwDefaultError({
|
|
1234
|
-
output,
|
|
1235
|
-
parsedBody,
|
|
1236
|
-
errorCode,
|
|
1237
|
-
});
|
|
1238
|
-
}
|
|
1239
|
-
};
|
|
1240
|
-
export const de_GetDeviceCommand = async (output, context) => {
|
|
1241
|
-
if (output.statusCode >= 300) {
|
|
1242
|
-
return de_GetDeviceCommandError(output, context);
|
|
1243
|
-
}
|
|
1244
|
-
const data = await parseBody(output.body, context);
|
|
1245
|
-
let contents = {};
|
|
1246
|
-
contents = de_GetDeviceResult(data, context);
|
|
1247
|
-
const response = {
|
|
1248
|
-
$metadata: deserializeMetadata(output),
|
|
1249
|
-
...contents,
|
|
714
|
+
export const de_GetDeviceCommand = async (output, context) => {
|
|
715
|
+
if (output.statusCode >= 300) {
|
|
716
|
+
return de_CommandError(output, context);
|
|
717
|
+
}
|
|
718
|
+
const data = await parseBody(output.body, context);
|
|
719
|
+
let contents = {};
|
|
720
|
+
contents = de_GetDeviceResult(data, context);
|
|
721
|
+
const response = {
|
|
722
|
+
$metadata: deserializeMetadata(output),
|
|
723
|
+
...contents,
|
|
1250
724
|
};
|
|
1251
725
|
return response;
|
|
1252
726
|
};
|
|
1253
|
-
const de_GetDeviceCommandError = async (output, context) => {
|
|
1254
|
-
const parsedOutput = {
|
|
1255
|
-
...output,
|
|
1256
|
-
body: await parseErrorBody(output.body, context),
|
|
1257
|
-
};
|
|
1258
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1259
|
-
switch (errorCode) {
|
|
1260
|
-
case "ArgumentException":
|
|
1261
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1262
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1263
|
-
case "LimitExceededException":
|
|
1264
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1265
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1266
|
-
case "NotFoundException":
|
|
1267
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1268
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1269
|
-
case "ServiceAccountException":
|
|
1270
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1271
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1272
|
-
default:
|
|
1273
|
-
const parsedBody = parsedOutput.body;
|
|
1274
|
-
return throwDefaultError({
|
|
1275
|
-
output,
|
|
1276
|
-
parsedBody,
|
|
1277
|
-
errorCode,
|
|
1278
|
-
});
|
|
1279
|
-
}
|
|
1280
|
-
};
|
|
1281
727
|
export const de_GetDeviceInstanceCommand = async (output, context) => {
|
|
1282
728
|
if (output.statusCode >= 300) {
|
|
1283
|
-
return
|
|
729
|
+
return de_CommandError(output, context);
|
|
1284
730
|
}
|
|
1285
731
|
const data = await parseBody(output.body, context);
|
|
1286
732
|
let contents = {};
|
|
@@ -1291,37 +737,9 @@ export const de_GetDeviceInstanceCommand = async (output, context) => {
|
|
|
1291
737
|
};
|
|
1292
738
|
return response;
|
|
1293
739
|
};
|
|
1294
|
-
const de_GetDeviceInstanceCommandError = async (output, context) => {
|
|
1295
|
-
const parsedOutput = {
|
|
1296
|
-
...output,
|
|
1297
|
-
body: await parseErrorBody(output.body, context),
|
|
1298
|
-
};
|
|
1299
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1300
|
-
switch (errorCode) {
|
|
1301
|
-
case "ArgumentException":
|
|
1302
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1303
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1304
|
-
case "LimitExceededException":
|
|
1305
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1306
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1307
|
-
case "NotFoundException":
|
|
1308
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1309
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1310
|
-
case "ServiceAccountException":
|
|
1311
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1312
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1313
|
-
default:
|
|
1314
|
-
const parsedBody = parsedOutput.body;
|
|
1315
|
-
return throwDefaultError({
|
|
1316
|
-
output,
|
|
1317
|
-
parsedBody,
|
|
1318
|
-
errorCode,
|
|
1319
|
-
});
|
|
1320
|
-
}
|
|
1321
|
-
};
|
|
1322
740
|
export const de_GetDevicePoolCommand = async (output, context) => {
|
|
1323
741
|
if (output.statusCode >= 300) {
|
|
1324
|
-
return
|
|
742
|
+
return de_CommandError(output, context);
|
|
1325
743
|
}
|
|
1326
744
|
const data = await parseBody(output.body, context);
|
|
1327
745
|
let contents = {};
|
|
@@ -1332,37 +750,9 @@ export const de_GetDevicePoolCommand = async (output, context) => {
|
|
|
1332
750
|
};
|
|
1333
751
|
return response;
|
|
1334
752
|
};
|
|
1335
|
-
const de_GetDevicePoolCommandError = async (output, context) => {
|
|
1336
|
-
const parsedOutput = {
|
|
1337
|
-
...output,
|
|
1338
|
-
body: await parseErrorBody(output.body, context),
|
|
1339
|
-
};
|
|
1340
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1341
|
-
switch (errorCode) {
|
|
1342
|
-
case "ArgumentException":
|
|
1343
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1344
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1345
|
-
case "LimitExceededException":
|
|
1346
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1347
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1348
|
-
case "NotFoundException":
|
|
1349
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1350
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1351
|
-
case "ServiceAccountException":
|
|
1352
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1353
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1354
|
-
default:
|
|
1355
|
-
const parsedBody = parsedOutput.body;
|
|
1356
|
-
return throwDefaultError({
|
|
1357
|
-
output,
|
|
1358
|
-
parsedBody,
|
|
1359
|
-
errorCode,
|
|
1360
|
-
});
|
|
1361
|
-
}
|
|
1362
|
-
};
|
|
1363
753
|
export const de_GetDevicePoolCompatibilityCommand = async (output, context) => {
|
|
1364
754
|
if (output.statusCode >= 300) {
|
|
1365
|
-
return
|
|
755
|
+
return de_CommandError(output, context);
|
|
1366
756
|
}
|
|
1367
757
|
const data = await parseBody(output.body, context);
|
|
1368
758
|
let contents = {};
|
|
@@ -1373,37 +763,9 @@ export const de_GetDevicePoolCompatibilityCommand = async (output, context) => {
|
|
|
1373
763
|
};
|
|
1374
764
|
return response;
|
|
1375
765
|
};
|
|
1376
|
-
const de_GetDevicePoolCompatibilityCommandError = async (output, context) => {
|
|
1377
|
-
const parsedOutput = {
|
|
1378
|
-
...output,
|
|
1379
|
-
body: await parseErrorBody(output.body, context),
|
|
1380
|
-
};
|
|
1381
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1382
|
-
switch (errorCode) {
|
|
1383
|
-
case "ArgumentException":
|
|
1384
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1385
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1386
|
-
case "LimitExceededException":
|
|
1387
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1388
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1389
|
-
case "NotFoundException":
|
|
1390
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1391
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1392
|
-
case "ServiceAccountException":
|
|
1393
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1394
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1395
|
-
default:
|
|
1396
|
-
const parsedBody = parsedOutput.body;
|
|
1397
|
-
return throwDefaultError({
|
|
1398
|
-
output,
|
|
1399
|
-
parsedBody,
|
|
1400
|
-
errorCode,
|
|
1401
|
-
});
|
|
1402
|
-
}
|
|
1403
|
-
};
|
|
1404
766
|
export const de_GetInstanceProfileCommand = async (output, context) => {
|
|
1405
767
|
if (output.statusCode >= 300) {
|
|
1406
|
-
return
|
|
768
|
+
return de_CommandError(output, context);
|
|
1407
769
|
}
|
|
1408
770
|
const data = await parseBody(output.body, context);
|
|
1409
771
|
let contents = {};
|
|
@@ -1414,37 +776,9 @@ export const de_GetInstanceProfileCommand = async (output, context) => {
|
|
|
1414
776
|
};
|
|
1415
777
|
return response;
|
|
1416
778
|
};
|
|
1417
|
-
const de_GetInstanceProfileCommandError = async (output, context) => {
|
|
1418
|
-
const parsedOutput = {
|
|
1419
|
-
...output,
|
|
1420
|
-
body: await parseErrorBody(output.body, context),
|
|
1421
|
-
};
|
|
1422
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1423
|
-
switch (errorCode) {
|
|
1424
|
-
case "ArgumentException":
|
|
1425
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1426
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1427
|
-
case "LimitExceededException":
|
|
1428
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1429
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1430
|
-
case "NotFoundException":
|
|
1431
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1432
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1433
|
-
case "ServiceAccountException":
|
|
1434
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1435
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1436
|
-
default:
|
|
1437
|
-
const parsedBody = parsedOutput.body;
|
|
1438
|
-
return throwDefaultError({
|
|
1439
|
-
output,
|
|
1440
|
-
parsedBody,
|
|
1441
|
-
errorCode,
|
|
1442
|
-
});
|
|
1443
|
-
}
|
|
1444
|
-
};
|
|
1445
779
|
export const de_GetJobCommand = async (output, context) => {
|
|
1446
780
|
if (output.statusCode >= 300) {
|
|
1447
|
-
return
|
|
781
|
+
return de_CommandError(output, context);
|
|
1448
782
|
}
|
|
1449
783
|
const data = await parseBody(output.body, context);
|
|
1450
784
|
let contents = {};
|
|
@@ -1455,37 +789,9 @@ export const de_GetJobCommand = async (output, context) => {
|
|
|
1455
789
|
};
|
|
1456
790
|
return response;
|
|
1457
791
|
};
|
|
1458
|
-
const de_GetJobCommandError = async (output, context) => {
|
|
1459
|
-
const parsedOutput = {
|
|
1460
|
-
...output,
|
|
1461
|
-
body: await parseErrorBody(output.body, context),
|
|
1462
|
-
};
|
|
1463
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1464
|
-
switch (errorCode) {
|
|
1465
|
-
case "ArgumentException":
|
|
1466
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1467
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1468
|
-
case "LimitExceededException":
|
|
1469
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1470
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1471
|
-
case "NotFoundException":
|
|
1472
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1473
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1474
|
-
case "ServiceAccountException":
|
|
1475
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1476
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1477
|
-
default:
|
|
1478
|
-
const parsedBody = parsedOutput.body;
|
|
1479
|
-
return throwDefaultError({
|
|
1480
|
-
output,
|
|
1481
|
-
parsedBody,
|
|
1482
|
-
errorCode,
|
|
1483
|
-
});
|
|
1484
|
-
}
|
|
1485
|
-
};
|
|
1486
792
|
export const de_GetNetworkProfileCommand = async (output, context) => {
|
|
1487
793
|
if (output.statusCode >= 300) {
|
|
1488
|
-
return
|
|
794
|
+
return de_CommandError(output, context);
|
|
1489
795
|
}
|
|
1490
796
|
const data = await parseBody(output.body, context);
|
|
1491
797
|
let contents = {};
|
|
@@ -1496,37 +802,9 @@ export const de_GetNetworkProfileCommand = async (output, context) => {
|
|
|
1496
802
|
};
|
|
1497
803
|
return response;
|
|
1498
804
|
};
|
|
1499
|
-
const de_GetNetworkProfileCommandError = async (output, context) => {
|
|
1500
|
-
const parsedOutput = {
|
|
1501
|
-
...output,
|
|
1502
|
-
body: await parseErrorBody(output.body, context),
|
|
1503
|
-
};
|
|
1504
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1505
|
-
switch (errorCode) {
|
|
1506
|
-
case "ArgumentException":
|
|
1507
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1508
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1509
|
-
case "LimitExceededException":
|
|
1510
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1511
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1512
|
-
case "NotFoundException":
|
|
1513
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1514
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1515
|
-
case "ServiceAccountException":
|
|
1516
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1517
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1518
|
-
default:
|
|
1519
|
-
const parsedBody = parsedOutput.body;
|
|
1520
|
-
return throwDefaultError({
|
|
1521
|
-
output,
|
|
1522
|
-
parsedBody,
|
|
1523
|
-
errorCode,
|
|
1524
|
-
});
|
|
1525
|
-
}
|
|
1526
|
-
};
|
|
1527
805
|
export const de_GetOfferingStatusCommand = async (output, context) => {
|
|
1528
806
|
if (output.statusCode >= 300) {
|
|
1529
|
-
return
|
|
807
|
+
return de_CommandError(output, context);
|
|
1530
808
|
}
|
|
1531
809
|
const data = await parseBody(output.body, context);
|
|
1532
810
|
let contents = {};
|
|
@@ -1537,40 +815,9 @@ export const de_GetOfferingStatusCommand = async (output, context) => {
|
|
|
1537
815
|
};
|
|
1538
816
|
return response;
|
|
1539
817
|
};
|
|
1540
|
-
const de_GetOfferingStatusCommandError = async (output, context) => {
|
|
1541
|
-
const parsedOutput = {
|
|
1542
|
-
...output,
|
|
1543
|
-
body: await parseErrorBody(output.body, context),
|
|
1544
|
-
};
|
|
1545
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1546
|
-
switch (errorCode) {
|
|
1547
|
-
case "ArgumentException":
|
|
1548
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1549
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1550
|
-
case "LimitExceededException":
|
|
1551
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1552
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1553
|
-
case "NotEligibleException":
|
|
1554
|
-
case "com.amazonaws.devicefarm#NotEligibleException":
|
|
1555
|
-
throw await de_NotEligibleExceptionRes(parsedOutput, context);
|
|
1556
|
-
case "NotFoundException":
|
|
1557
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1558
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1559
|
-
case "ServiceAccountException":
|
|
1560
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1561
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1562
|
-
default:
|
|
1563
|
-
const parsedBody = parsedOutput.body;
|
|
1564
|
-
return throwDefaultError({
|
|
1565
|
-
output,
|
|
1566
|
-
parsedBody,
|
|
1567
|
-
errorCode,
|
|
1568
|
-
});
|
|
1569
|
-
}
|
|
1570
|
-
};
|
|
1571
818
|
export const de_GetProjectCommand = async (output, context) => {
|
|
1572
819
|
if (output.statusCode >= 300) {
|
|
1573
|
-
return
|
|
820
|
+
return de_CommandError(output, context);
|
|
1574
821
|
}
|
|
1575
822
|
const data = await parseBody(output.body, context);
|
|
1576
823
|
let contents = {};
|
|
@@ -1581,37 +828,9 @@ export const de_GetProjectCommand = async (output, context) => {
|
|
|
1581
828
|
};
|
|
1582
829
|
return response;
|
|
1583
830
|
};
|
|
1584
|
-
const de_GetProjectCommandError = async (output, context) => {
|
|
1585
|
-
const parsedOutput = {
|
|
1586
|
-
...output,
|
|
1587
|
-
body: await parseErrorBody(output.body, context),
|
|
1588
|
-
};
|
|
1589
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1590
|
-
switch (errorCode) {
|
|
1591
|
-
case "ArgumentException":
|
|
1592
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1593
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1594
|
-
case "LimitExceededException":
|
|
1595
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1596
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1597
|
-
case "NotFoundException":
|
|
1598
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1599
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1600
|
-
case "ServiceAccountException":
|
|
1601
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1602
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1603
|
-
default:
|
|
1604
|
-
const parsedBody = parsedOutput.body;
|
|
1605
|
-
return throwDefaultError({
|
|
1606
|
-
output,
|
|
1607
|
-
parsedBody,
|
|
1608
|
-
errorCode,
|
|
1609
|
-
});
|
|
1610
|
-
}
|
|
1611
|
-
};
|
|
1612
831
|
export const de_GetRemoteAccessSessionCommand = async (output, context) => {
|
|
1613
832
|
if (output.statusCode >= 300) {
|
|
1614
|
-
return
|
|
833
|
+
return de_CommandError(output, context);
|
|
1615
834
|
}
|
|
1616
835
|
const data = await parseBody(output.body, context);
|
|
1617
836
|
let contents = {};
|
|
@@ -1622,37 +841,9 @@ export const de_GetRemoteAccessSessionCommand = async (output, context) => {
|
|
|
1622
841
|
};
|
|
1623
842
|
return response;
|
|
1624
843
|
};
|
|
1625
|
-
const de_GetRemoteAccessSessionCommandError = async (output, context) => {
|
|
1626
|
-
const parsedOutput = {
|
|
1627
|
-
...output,
|
|
1628
|
-
body: await parseErrorBody(output.body, context),
|
|
1629
|
-
};
|
|
1630
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1631
|
-
switch (errorCode) {
|
|
1632
|
-
case "ArgumentException":
|
|
1633
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1634
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1635
|
-
case "LimitExceededException":
|
|
1636
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1637
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1638
|
-
case "NotFoundException":
|
|
1639
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1640
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1641
|
-
case "ServiceAccountException":
|
|
1642
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1643
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1644
|
-
default:
|
|
1645
|
-
const parsedBody = parsedOutput.body;
|
|
1646
|
-
return throwDefaultError({
|
|
1647
|
-
output,
|
|
1648
|
-
parsedBody,
|
|
1649
|
-
errorCode,
|
|
1650
|
-
});
|
|
1651
|
-
}
|
|
1652
|
-
};
|
|
1653
844
|
export const de_GetRunCommand = async (output, context) => {
|
|
1654
845
|
if (output.statusCode >= 300) {
|
|
1655
|
-
return
|
|
846
|
+
return de_CommandError(output, context);
|
|
1656
847
|
}
|
|
1657
848
|
const data = await parseBody(output.body, context);
|
|
1658
849
|
let contents = {};
|
|
@@ -1663,37 +854,9 @@ export const de_GetRunCommand = async (output, context) => {
|
|
|
1663
854
|
};
|
|
1664
855
|
return response;
|
|
1665
856
|
};
|
|
1666
|
-
const de_GetRunCommandError = async (output, context) => {
|
|
1667
|
-
const parsedOutput = {
|
|
1668
|
-
...output,
|
|
1669
|
-
body: await parseErrorBody(output.body, context),
|
|
1670
|
-
};
|
|
1671
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1672
|
-
switch (errorCode) {
|
|
1673
|
-
case "ArgumentException":
|
|
1674
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1675
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1676
|
-
case "LimitExceededException":
|
|
1677
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1678
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1679
|
-
case "NotFoundException":
|
|
1680
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1681
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1682
|
-
case "ServiceAccountException":
|
|
1683
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1684
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1685
|
-
default:
|
|
1686
|
-
const parsedBody = parsedOutput.body;
|
|
1687
|
-
return throwDefaultError({
|
|
1688
|
-
output,
|
|
1689
|
-
parsedBody,
|
|
1690
|
-
errorCode,
|
|
1691
|
-
});
|
|
1692
|
-
}
|
|
1693
|
-
};
|
|
1694
857
|
export const de_GetSuiteCommand = async (output, context) => {
|
|
1695
858
|
if (output.statusCode >= 300) {
|
|
1696
|
-
return
|
|
859
|
+
return de_CommandError(output, context);
|
|
1697
860
|
}
|
|
1698
861
|
const data = await parseBody(output.body, context);
|
|
1699
862
|
let contents = {};
|
|
@@ -1704,37 +867,9 @@ export const de_GetSuiteCommand = async (output, context) => {
|
|
|
1704
867
|
};
|
|
1705
868
|
return response;
|
|
1706
869
|
};
|
|
1707
|
-
const de_GetSuiteCommandError = async (output, context) => {
|
|
1708
|
-
const parsedOutput = {
|
|
1709
|
-
...output,
|
|
1710
|
-
body: await parseErrorBody(output.body, context),
|
|
1711
|
-
};
|
|
1712
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1713
|
-
switch (errorCode) {
|
|
1714
|
-
case "ArgumentException":
|
|
1715
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1716
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1717
|
-
case "LimitExceededException":
|
|
1718
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1719
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1720
|
-
case "NotFoundException":
|
|
1721
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1722
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1723
|
-
case "ServiceAccountException":
|
|
1724
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1725
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1726
|
-
default:
|
|
1727
|
-
const parsedBody = parsedOutput.body;
|
|
1728
|
-
return throwDefaultError({
|
|
1729
|
-
output,
|
|
1730
|
-
parsedBody,
|
|
1731
|
-
errorCode,
|
|
1732
|
-
});
|
|
1733
|
-
}
|
|
1734
|
-
};
|
|
1735
870
|
export const de_GetTestCommand = async (output, context) => {
|
|
1736
871
|
if (output.statusCode >= 300) {
|
|
1737
|
-
return
|
|
872
|
+
return de_CommandError(output, context);
|
|
1738
873
|
}
|
|
1739
874
|
const data = await parseBody(output.body, context);
|
|
1740
875
|
let contents = {};
|
|
@@ -1745,37 +880,9 @@ export const de_GetTestCommand = async (output, context) => {
|
|
|
1745
880
|
};
|
|
1746
881
|
return response;
|
|
1747
882
|
};
|
|
1748
|
-
const de_GetTestCommandError = async (output, context) => {
|
|
1749
|
-
const parsedOutput = {
|
|
1750
|
-
...output,
|
|
1751
|
-
body: await parseErrorBody(output.body, context),
|
|
1752
|
-
};
|
|
1753
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1754
|
-
switch (errorCode) {
|
|
1755
|
-
case "ArgumentException":
|
|
1756
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1757
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1758
|
-
case "LimitExceededException":
|
|
1759
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1760
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1761
|
-
case "NotFoundException":
|
|
1762
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1763
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1764
|
-
case "ServiceAccountException":
|
|
1765
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1766
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1767
|
-
default:
|
|
1768
|
-
const parsedBody = parsedOutput.body;
|
|
1769
|
-
return throwDefaultError({
|
|
1770
|
-
output,
|
|
1771
|
-
parsedBody,
|
|
1772
|
-
errorCode,
|
|
1773
|
-
});
|
|
1774
|
-
}
|
|
1775
|
-
};
|
|
1776
883
|
export const de_GetTestGridProjectCommand = async (output, context) => {
|
|
1777
884
|
if (output.statusCode >= 300) {
|
|
1778
|
-
return
|
|
885
|
+
return de_CommandError(output, context);
|
|
1779
886
|
}
|
|
1780
887
|
const data = await parseBody(output.body, context);
|
|
1781
888
|
let contents = {};
|
|
@@ -1786,34 +893,9 @@ export const de_GetTestGridProjectCommand = async (output, context) => {
|
|
|
1786
893
|
};
|
|
1787
894
|
return response;
|
|
1788
895
|
};
|
|
1789
|
-
const de_GetTestGridProjectCommandError = async (output, context) => {
|
|
1790
|
-
const parsedOutput = {
|
|
1791
|
-
...output,
|
|
1792
|
-
body: await parseErrorBody(output.body, context),
|
|
1793
|
-
};
|
|
1794
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1795
|
-
switch (errorCode) {
|
|
1796
|
-
case "ArgumentException":
|
|
1797
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1798
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1799
|
-
case "InternalServiceException":
|
|
1800
|
-
case "com.amazonaws.devicefarm#InternalServiceException":
|
|
1801
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1802
|
-
case "NotFoundException":
|
|
1803
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1804
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1805
|
-
default:
|
|
1806
|
-
const parsedBody = parsedOutput.body;
|
|
1807
|
-
return throwDefaultError({
|
|
1808
|
-
output,
|
|
1809
|
-
parsedBody,
|
|
1810
|
-
errorCode,
|
|
1811
|
-
});
|
|
1812
|
-
}
|
|
1813
|
-
};
|
|
1814
896
|
export const de_GetTestGridSessionCommand = async (output, context) => {
|
|
1815
897
|
if (output.statusCode >= 300) {
|
|
1816
|
-
return
|
|
898
|
+
return de_CommandError(output, context);
|
|
1817
899
|
}
|
|
1818
900
|
const data = await parseBody(output.body, context);
|
|
1819
901
|
let contents = {};
|
|
@@ -1824,34 +906,9 @@ export const de_GetTestGridSessionCommand = async (output, context) => {
|
|
|
1824
906
|
};
|
|
1825
907
|
return response;
|
|
1826
908
|
};
|
|
1827
|
-
const de_GetTestGridSessionCommandError = async (output, context) => {
|
|
1828
|
-
const parsedOutput = {
|
|
1829
|
-
...output,
|
|
1830
|
-
body: await parseErrorBody(output.body, context),
|
|
1831
|
-
};
|
|
1832
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1833
|
-
switch (errorCode) {
|
|
1834
|
-
case "ArgumentException":
|
|
1835
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1836
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1837
|
-
case "InternalServiceException":
|
|
1838
|
-
case "com.amazonaws.devicefarm#InternalServiceException":
|
|
1839
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1840
|
-
case "NotFoundException":
|
|
1841
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1842
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1843
|
-
default:
|
|
1844
|
-
const parsedBody = parsedOutput.body;
|
|
1845
|
-
return throwDefaultError({
|
|
1846
|
-
output,
|
|
1847
|
-
parsedBody,
|
|
1848
|
-
errorCode,
|
|
1849
|
-
});
|
|
1850
|
-
}
|
|
1851
|
-
};
|
|
1852
909
|
export const de_GetUploadCommand = async (output, context) => {
|
|
1853
910
|
if (output.statusCode >= 300) {
|
|
1854
|
-
return
|
|
911
|
+
return de_CommandError(output, context);
|
|
1855
912
|
}
|
|
1856
913
|
const data = await parseBody(output.body, context);
|
|
1857
914
|
let contents = {};
|
|
@@ -1862,37 +919,9 @@ export const de_GetUploadCommand = async (output, context) => {
|
|
|
1862
919
|
};
|
|
1863
920
|
return response;
|
|
1864
921
|
};
|
|
1865
|
-
const de_GetUploadCommandError = async (output, context) => {
|
|
1866
|
-
const parsedOutput = {
|
|
1867
|
-
...output,
|
|
1868
|
-
body: await parseErrorBody(output.body, context),
|
|
1869
|
-
};
|
|
1870
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1871
|
-
switch (errorCode) {
|
|
1872
|
-
case "ArgumentException":
|
|
1873
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1874
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1875
|
-
case "LimitExceededException":
|
|
1876
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1877
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1878
|
-
case "NotFoundException":
|
|
1879
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1880
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1881
|
-
case "ServiceAccountException":
|
|
1882
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1883
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1884
|
-
default:
|
|
1885
|
-
const parsedBody = parsedOutput.body;
|
|
1886
|
-
return throwDefaultError({
|
|
1887
|
-
output,
|
|
1888
|
-
parsedBody,
|
|
1889
|
-
errorCode,
|
|
1890
|
-
});
|
|
1891
|
-
}
|
|
1892
|
-
};
|
|
1893
922
|
export const de_GetVPCEConfigurationCommand = async (output, context) => {
|
|
1894
923
|
if (output.statusCode >= 300) {
|
|
1895
|
-
return
|
|
924
|
+
return de_CommandError(output, context);
|
|
1896
925
|
}
|
|
1897
926
|
const data = await parseBody(output.body, context);
|
|
1898
927
|
let contents = {};
|
|
@@ -1903,34 +932,9 @@ export const de_GetVPCEConfigurationCommand = async (output, context) => {
|
|
|
1903
932
|
};
|
|
1904
933
|
return response;
|
|
1905
934
|
};
|
|
1906
|
-
const de_GetVPCEConfigurationCommandError = async (output, context) => {
|
|
1907
|
-
const parsedOutput = {
|
|
1908
|
-
...output,
|
|
1909
|
-
body: await parseErrorBody(output.body, context),
|
|
1910
|
-
};
|
|
1911
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1912
|
-
switch (errorCode) {
|
|
1913
|
-
case "ArgumentException":
|
|
1914
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1915
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1916
|
-
case "NotFoundException":
|
|
1917
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1918
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1919
|
-
case "ServiceAccountException":
|
|
1920
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1921
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1922
|
-
default:
|
|
1923
|
-
const parsedBody = parsedOutput.body;
|
|
1924
|
-
return throwDefaultError({
|
|
1925
|
-
output,
|
|
1926
|
-
parsedBody,
|
|
1927
|
-
errorCode,
|
|
1928
|
-
});
|
|
1929
|
-
}
|
|
1930
|
-
};
|
|
1931
935
|
export const de_InstallToRemoteAccessSessionCommand = async (output, context) => {
|
|
1932
936
|
if (output.statusCode >= 300) {
|
|
1933
|
-
return
|
|
937
|
+
return de_CommandError(output, context);
|
|
1934
938
|
}
|
|
1935
939
|
const data = await parseBody(output.body, context);
|
|
1936
940
|
let contents = {};
|
|
@@ -1941,37 +945,9 @@ export const de_InstallToRemoteAccessSessionCommand = async (output, context) =>
|
|
|
1941
945
|
};
|
|
1942
946
|
return response;
|
|
1943
947
|
};
|
|
1944
|
-
const de_InstallToRemoteAccessSessionCommandError = async (output, context) => {
|
|
1945
|
-
const parsedOutput = {
|
|
1946
|
-
...output,
|
|
1947
|
-
body: await parseErrorBody(output.body, context),
|
|
1948
|
-
};
|
|
1949
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1950
|
-
switch (errorCode) {
|
|
1951
|
-
case "ArgumentException":
|
|
1952
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1953
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1954
|
-
case "LimitExceededException":
|
|
1955
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1956
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1957
|
-
case "NotFoundException":
|
|
1958
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
1959
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
1960
|
-
case "ServiceAccountException":
|
|
1961
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
1962
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1963
|
-
default:
|
|
1964
|
-
const parsedBody = parsedOutput.body;
|
|
1965
|
-
return throwDefaultError({
|
|
1966
|
-
output,
|
|
1967
|
-
parsedBody,
|
|
1968
|
-
errorCode,
|
|
1969
|
-
});
|
|
1970
|
-
}
|
|
1971
|
-
};
|
|
1972
948
|
export const de_ListArtifactsCommand = async (output, context) => {
|
|
1973
949
|
if (output.statusCode >= 300) {
|
|
1974
|
-
return
|
|
950
|
+
return de_CommandError(output, context);
|
|
1975
951
|
}
|
|
1976
952
|
const data = await parseBody(output.body, context);
|
|
1977
953
|
let contents = {};
|
|
@@ -1982,37 +958,9 @@ export const de_ListArtifactsCommand = async (output, context) => {
|
|
|
1982
958
|
};
|
|
1983
959
|
return response;
|
|
1984
960
|
};
|
|
1985
|
-
const de_ListArtifactsCommandError = async (output, context) => {
|
|
1986
|
-
const parsedOutput = {
|
|
1987
|
-
...output,
|
|
1988
|
-
body: await parseErrorBody(output.body, context),
|
|
1989
|
-
};
|
|
1990
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1991
|
-
switch (errorCode) {
|
|
1992
|
-
case "ArgumentException":
|
|
1993
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
1994
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
1995
|
-
case "LimitExceededException":
|
|
1996
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1997
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
1998
|
-
case "NotFoundException":
|
|
1999
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2000
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2001
|
-
case "ServiceAccountException":
|
|
2002
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2003
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2004
|
-
default:
|
|
2005
|
-
const parsedBody = parsedOutput.body;
|
|
2006
|
-
return throwDefaultError({
|
|
2007
|
-
output,
|
|
2008
|
-
parsedBody,
|
|
2009
|
-
errorCode,
|
|
2010
|
-
});
|
|
2011
|
-
}
|
|
2012
|
-
};
|
|
2013
961
|
export const de_ListDeviceInstancesCommand = async (output, context) => {
|
|
2014
962
|
if (output.statusCode >= 300) {
|
|
2015
|
-
return
|
|
963
|
+
return de_CommandError(output, context);
|
|
2016
964
|
}
|
|
2017
965
|
const data = await parseBody(output.body, context);
|
|
2018
966
|
let contents = {};
|
|
@@ -2023,37 +971,9 @@ export const de_ListDeviceInstancesCommand = async (output, context) => {
|
|
|
2023
971
|
};
|
|
2024
972
|
return response;
|
|
2025
973
|
};
|
|
2026
|
-
const de_ListDeviceInstancesCommandError = async (output, context) => {
|
|
2027
|
-
const parsedOutput = {
|
|
2028
|
-
...output,
|
|
2029
|
-
body: await parseErrorBody(output.body, context),
|
|
2030
|
-
};
|
|
2031
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2032
|
-
switch (errorCode) {
|
|
2033
|
-
case "ArgumentException":
|
|
2034
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2035
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2036
|
-
case "LimitExceededException":
|
|
2037
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2038
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2039
|
-
case "NotFoundException":
|
|
2040
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2041
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2042
|
-
case "ServiceAccountException":
|
|
2043
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2044
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2045
|
-
default:
|
|
2046
|
-
const parsedBody = parsedOutput.body;
|
|
2047
|
-
return throwDefaultError({
|
|
2048
|
-
output,
|
|
2049
|
-
parsedBody,
|
|
2050
|
-
errorCode,
|
|
2051
|
-
});
|
|
2052
|
-
}
|
|
2053
|
-
};
|
|
2054
974
|
export const de_ListDevicePoolsCommand = async (output, context) => {
|
|
2055
975
|
if (output.statusCode >= 300) {
|
|
2056
|
-
return
|
|
976
|
+
return de_CommandError(output, context);
|
|
2057
977
|
}
|
|
2058
978
|
const data = await parseBody(output.body, context);
|
|
2059
979
|
let contents = {};
|
|
@@ -2064,37 +984,9 @@ export const de_ListDevicePoolsCommand = async (output, context) => {
|
|
|
2064
984
|
};
|
|
2065
985
|
return response;
|
|
2066
986
|
};
|
|
2067
|
-
const de_ListDevicePoolsCommandError = async (output, context) => {
|
|
2068
|
-
const parsedOutput = {
|
|
2069
|
-
...output,
|
|
2070
|
-
body: await parseErrorBody(output.body, context),
|
|
2071
|
-
};
|
|
2072
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2073
|
-
switch (errorCode) {
|
|
2074
|
-
case "ArgumentException":
|
|
2075
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2076
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2077
|
-
case "LimitExceededException":
|
|
2078
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2079
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2080
|
-
case "NotFoundException":
|
|
2081
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2082
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2083
|
-
case "ServiceAccountException":
|
|
2084
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2085
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2086
|
-
default:
|
|
2087
|
-
const parsedBody = parsedOutput.body;
|
|
2088
|
-
return throwDefaultError({
|
|
2089
|
-
output,
|
|
2090
|
-
parsedBody,
|
|
2091
|
-
errorCode,
|
|
2092
|
-
});
|
|
2093
|
-
}
|
|
2094
|
-
};
|
|
2095
987
|
export const de_ListDevicesCommand = async (output, context) => {
|
|
2096
988
|
if (output.statusCode >= 300) {
|
|
2097
|
-
return
|
|
989
|
+
return de_CommandError(output, context);
|
|
2098
990
|
}
|
|
2099
991
|
const data = await parseBody(output.body, context);
|
|
2100
992
|
let contents = {};
|
|
@@ -2105,37 +997,9 @@ export const de_ListDevicesCommand = async (output, context) => {
|
|
|
2105
997
|
};
|
|
2106
998
|
return response;
|
|
2107
999
|
};
|
|
2108
|
-
const de_ListDevicesCommandError = async (output, context) => {
|
|
2109
|
-
const parsedOutput = {
|
|
2110
|
-
...output,
|
|
2111
|
-
body: await parseErrorBody(output.body, context),
|
|
2112
|
-
};
|
|
2113
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2114
|
-
switch (errorCode) {
|
|
2115
|
-
case "ArgumentException":
|
|
2116
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2117
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2118
|
-
case "LimitExceededException":
|
|
2119
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2120
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2121
|
-
case "NotFoundException":
|
|
2122
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2123
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2124
|
-
case "ServiceAccountException":
|
|
2125
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2126
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2127
|
-
default:
|
|
2128
|
-
const parsedBody = parsedOutput.body;
|
|
2129
|
-
return throwDefaultError({
|
|
2130
|
-
output,
|
|
2131
|
-
parsedBody,
|
|
2132
|
-
errorCode,
|
|
2133
|
-
});
|
|
2134
|
-
}
|
|
2135
|
-
};
|
|
2136
1000
|
export const de_ListInstanceProfilesCommand = async (output, context) => {
|
|
2137
1001
|
if (output.statusCode >= 300) {
|
|
2138
|
-
return
|
|
1002
|
+
return de_CommandError(output, context);
|
|
2139
1003
|
}
|
|
2140
1004
|
const data = await parseBody(output.body, context);
|
|
2141
1005
|
let contents = {};
|
|
@@ -2146,37 +1010,9 @@ export const de_ListInstanceProfilesCommand = async (output, context) => {
|
|
|
2146
1010
|
};
|
|
2147
1011
|
return response;
|
|
2148
1012
|
};
|
|
2149
|
-
const de_ListInstanceProfilesCommandError = async (output, context) => {
|
|
2150
|
-
const parsedOutput = {
|
|
2151
|
-
...output,
|
|
2152
|
-
body: await parseErrorBody(output.body, context),
|
|
2153
|
-
};
|
|
2154
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2155
|
-
switch (errorCode) {
|
|
2156
|
-
case "ArgumentException":
|
|
2157
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2158
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2159
|
-
case "LimitExceededException":
|
|
2160
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2161
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2162
|
-
case "NotFoundException":
|
|
2163
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2164
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2165
|
-
case "ServiceAccountException":
|
|
2166
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2167
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2168
|
-
default:
|
|
2169
|
-
const parsedBody = parsedOutput.body;
|
|
2170
|
-
return throwDefaultError({
|
|
2171
|
-
output,
|
|
2172
|
-
parsedBody,
|
|
2173
|
-
errorCode,
|
|
2174
|
-
});
|
|
2175
|
-
}
|
|
2176
|
-
};
|
|
2177
1013
|
export const de_ListJobsCommand = async (output, context) => {
|
|
2178
1014
|
if (output.statusCode >= 300) {
|
|
2179
|
-
return
|
|
1015
|
+
return de_CommandError(output, context);
|
|
2180
1016
|
}
|
|
2181
1017
|
const data = await parseBody(output.body, context);
|
|
2182
1018
|
let contents = {};
|
|
@@ -2187,37 +1023,9 @@ export const de_ListJobsCommand = async (output, context) => {
|
|
|
2187
1023
|
};
|
|
2188
1024
|
return response;
|
|
2189
1025
|
};
|
|
2190
|
-
const de_ListJobsCommandError = async (output, context) => {
|
|
2191
|
-
const parsedOutput = {
|
|
2192
|
-
...output,
|
|
2193
|
-
body: await parseErrorBody(output.body, context),
|
|
2194
|
-
};
|
|
2195
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2196
|
-
switch (errorCode) {
|
|
2197
|
-
case "ArgumentException":
|
|
2198
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2199
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2200
|
-
case "LimitExceededException":
|
|
2201
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2202
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2203
|
-
case "NotFoundException":
|
|
2204
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2205
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2206
|
-
case "ServiceAccountException":
|
|
2207
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2208
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2209
|
-
default:
|
|
2210
|
-
const parsedBody = parsedOutput.body;
|
|
2211
|
-
return throwDefaultError({
|
|
2212
|
-
output,
|
|
2213
|
-
parsedBody,
|
|
2214
|
-
errorCode,
|
|
2215
|
-
});
|
|
2216
|
-
}
|
|
2217
|
-
};
|
|
2218
1026
|
export const de_ListNetworkProfilesCommand = async (output, context) => {
|
|
2219
1027
|
if (output.statusCode >= 300) {
|
|
2220
|
-
return
|
|
1028
|
+
return de_CommandError(output, context);
|
|
2221
1029
|
}
|
|
2222
1030
|
const data = await parseBody(output.body, context);
|
|
2223
1031
|
let contents = {};
|
|
@@ -2228,37 +1036,9 @@ export const de_ListNetworkProfilesCommand = async (output, context) => {
|
|
|
2228
1036
|
};
|
|
2229
1037
|
return response;
|
|
2230
1038
|
};
|
|
2231
|
-
const de_ListNetworkProfilesCommandError = async (output, context) => {
|
|
2232
|
-
const parsedOutput = {
|
|
2233
|
-
...output,
|
|
2234
|
-
body: await parseErrorBody(output.body, context),
|
|
2235
|
-
};
|
|
2236
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2237
|
-
switch (errorCode) {
|
|
2238
|
-
case "ArgumentException":
|
|
2239
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2240
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2241
|
-
case "LimitExceededException":
|
|
2242
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2243
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2244
|
-
case "NotFoundException":
|
|
2245
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2246
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2247
|
-
case "ServiceAccountException":
|
|
2248
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2249
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2250
|
-
default:
|
|
2251
|
-
const parsedBody = parsedOutput.body;
|
|
2252
|
-
return throwDefaultError({
|
|
2253
|
-
output,
|
|
2254
|
-
parsedBody,
|
|
2255
|
-
errorCode,
|
|
2256
|
-
});
|
|
2257
|
-
}
|
|
2258
|
-
};
|
|
2259
1039
|
export const de_ListOfferingPromotionsCommand = async (output, context) => {
|
|
2260
1040
|
if (output.statusCode >= 300) {
|
|
2261
|
-
return
|
|
1041
|
+
return de_CommandError(output, context);
|
|
2262
1042
|
}
|
|
2263
1043
|
const data = await parseBody(output.body, context);
|
|
2264
1044
|
let contents = {};
|
|
@@ -2269,40 +1049,9 @@ export const de_ListOfferingPromotionsCommand = async (output, context) => {
|
|
|
2269
1049
|
};
|
|
2270
1050
|
return response;
|
|
2271
1051
|
};
|
|
2272
|
-
const de_ListOfferingPromotionsCommandError = async (output, context) => {
|
|
2273
|
-
const parsedOutput = {
|
|
2274
|
-
...output,
|
|
2275
|
-
body: await parseErrorBody(output.body, context),
|
|
2276
|
-
};
|
|
2277
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2278
|
-
switch (errorCode) {
|
|
2279
|
-
case "ArgumentException":
|
|
2280
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2281
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2282
|
-
case "LimitExceededException":
|
|
2283
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2284
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2285
|
-
case "NotEligibleException":
|
|
2286
|
-
case "com.amazonaws.devicefarm#NotEligibleException":
|
|
2287
|
-
throw await de_NotEligibleExceptionRes(parsedOutput, context);
|
|
2288
|
-
case "NotFoundException":
|
|
2289
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2290
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2291
|
-
case "ServiceAccountException":
|
|
2292
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2293
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2294
|
-
default:
|
|
2295
|
-
const parsedBody = parsedOutput.body;
|
|
2296
|
-
return throwDefaultError({
|
|
2297
|
-
output,
|
|
2298
|
-
parsedBody,
|
|
2299
|
-
errorCode,
|
|
2300
|
-
});
|
|
2301
|
-
}
|
|
2302
|
-
};
|
|
2303
1052
|
export const de_ListOfferingsCommand = async (output, context) => {
|
|
2304
1053
|
if (output.statusCode >= 300) {
|
|
2305
|
-
return
|
|
1054
|
+
return de_CommandError(output, context);
|
|
2306
1055
|
}
|
|
2307
1056
|
const data = await parseBody(output.body, context);
|
|
2308
1057
|
let contents = {};
|
|
@@ -2313,40 +1062,9 @@ export const de_ListOfferingsCommand = async (output, context) => {
|
|
|
2313
1062
|
};
|
|
2314
1063
|
return response;
|
|
2315
1064
|
};
|
|
2316
|
-
const de_ListOfferingsCommandError = async (output, context) => {
|
|
2317
|
-
const parsedOutput = {
|
|
2318
|
-
...output,
|
|
2319
|
-
body: await parseErrorBody(output.body, context),
|
|
2320
|
-
};
|
|
2321
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2322
|
-
switch (errorCode) {
|
|
2323
|
-
case "ArgumentException":
|
|
2324
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2325
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2326
|
-
case "LimitExceededException":
|
|
2327
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2328
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2329
|
-
case "NotEligibleException":
|
|
2330
|
-
case "com.amazonaws.devicefarm#NotEligibleException":
|
|
2331
|
-
throw await de_NotEligibleExceptionRes(parsedOutput, context);
|
|
2332
|
-
case "NotFoundException":
|
|
2333
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2334
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2335
|
-
case "ServiceAccountException":
|
|
2336
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2337
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2338
|
-
default:
|
|
2339
|
-
const parsedBody = parsedOutput.body;
|
|
2340
|
-
return throwDefaultError({
|
|
2341
|
-
output,
|
|
2342
|
-
parsedBody,
|
|
2343
|
-
errorCode,
|
|
2344
|
-
});
|
|
2345
|
-
}
|
|
2346
|
-
};
|
|
2347
1065
|
export const de_ListOfferingTransactionsCommand = async (output, context) => {
|
|
2348
1066
|
if (output.statusCode >= 300) {
|
|
2349
|
-
return
|
|
1067
|
+
return de_CommandError(output, context);
|
|
2350
1068
|
}
|
|
2351
1069
|
const data = await parseBody(output.body, context);
|
|
2352
1070
|
let contents = {};
|
|
@@ -2357,40 +1075,9 @@ export const de_ListOfferingTransactionsCommand = async (output, context) => {
|
|
|
2357
1075
|
};
|
|
2358
1076
|
return response;
|
|
2359
1077
|
};
|
|
2360
|
-
const de_ListOfferingTransactionsCommandError = async (output, context) => {
|
|
2361
|
-
const parsedOutput = {
|
|
2362
|
-
...output,
|
|
2363
|
-
body: await parseErrorBody(output.body, context),
|
|
2364
|
-
};
|
|
2365
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2366
|
-
switch (errorCode) {
|
|
2367
|
-
case "ArgumentException":
|
|
2368
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2369
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2370
|
-
case "LimitExceededException":
|
|
2371
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2372
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2373
|
-
case "NotEligibleException":
|
|
2374
|
-
case "com.amazonaws.devicefarm#NotEligibleException":
|
|
2375
|
-
throw await de_NotEligibleExceptionRes(parsedOutput, context);
|
|
2376
|
-
case "NotFoundException":
|
|
2377
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2378
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2379
|
-
case "ServiceAccountException":
|
|
2380
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2381
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2382
|
-
default:
|
|
2383
|
-
const parsedBody = parsedOutput.body;
|
|
2384
|
-
return throwDefaultError({
|
|
2385
|
-
output,
|
|
2386
|
-
parsedBody,
|
|
2387
|
-
errorCode,
|
|
2388
|
-
});
|
|
2389
|
-
}
|
|
2390
|
-
};
|
|
2391
1078
|
export const de_ListProjectsCommand = async (output, context) => {
|
|
2392
1079
|
if (output.statusCode >= 300) {
|
|
2393
|
-
return
|
|
1080
|
+
return de_CommandError(output, context);
|
|
2394
1081
|
}
|
|
2395
1082
|
const data = await parseBody(output.body, context);
|
|
2396
1083
|
let contents = {};
|
|
@@ -2401,37 +1088,9 @@ export const de_ListProjectsCommand = async (output, context) => {
|
|
|
2401
1088
|
};
|
|
2402
1089
|
return response;
|
|
2403
1090
|
};
|
|
2404
|
-
const de_ListProjectsCommandError = async (output, context) => {
|
|
2405
|
-
const parsedOutput = {
|
|
2406
|
-
...output,
|
|
2407
|
-
body: await parseErrorBody(output.body, context),
|
|
2408
|
-
};
|
|
2409
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2410
|
-
switch (errorCode) {
|
|
2411
|
-
case "ArgumentException":
|
|
2412
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2413
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2414
|
-
case "LimitExceededException":
|
|
2415
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2416
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2417
|
-
case "NotFoundException":
|
|
2418
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2419
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2420
|
-
case "ServiceAccountException":
|
|
2421
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2422
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2423
|
-
default:
|
|
2424
|
-
const parsedBody = parsedOutput.body;
|
|
2425
|
-
return throwDefaultError({
|
|
2426
|
-
output,
|
|
2427
|
-
parsedBody,
|
|
2428
|
-
errorCode,
|
|
2429
|
-
});
|
|
2430
|
-
}
|
|
2431
|
-
};
|
|
2432
1091
|
export const de_ListRemoteAccessSessionsCommand = async (output, context) => {
|
|
2433
1092
|
if (output.statusCode >= 300) {
|
|
2434
|
-
return
|
|
1093
|
+
return de_CommandError(output, context);
|
|
2435
1094
|
}
|
|
2436
1095
|
const data = await parseBody(output.body, context);
|
|
2437
1096
|
let contents = {};
|
|
@@ -2442,37 +1101,9 @@ export const de_ListRemoteAccessSessionsCommand = async (output, context) => {
|
|
|
2442
1101
|
};
|
|
2443
1102
|
return response;
|
|
2444
1103
|
};
|
|
2445
|
-
const de_ListRemoteAccessSessionsCommandError = async (output, context) => {
|
|
2446
|
-
const parsedOutput = {
|
|
2447
|
-
...output,
|
|
2448
|
-
body: await parseErrorBody(output.body, context),
|
|
2449
|
-
};
|
|
2450
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2451
|
-
switch (errorCode) {
|
|
2452
|
-
case "ArgumentException":
|
|
2453
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2454
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2455
|
-
case "LimitExceededException":
|
|
2456
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2457
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2458
|
-
case "NotFoundException":
|
|
2459
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2460
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2461
|
-
case "ServiceAccountException":
|
|
2462
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2463
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2464
|
-
default:
|
|
2465
|
-
const parsedBody = parsedOutput.body;
|
|
2466
|
-
return throwDefaultError({
|
|
2467
|
-
output,
|
|
2468
|
-
parsedBody,
|
|
2469
|
-
errorCode,
|
|
2470
|
-
});
|
|
2471
|
-
}
|
|
2472
|
-
};
|
|
2473
1104
|
export const de_ListRunsCommand = async (output, context) => {
|
|
2474
1105
|
if (output.statusCode >= 300) {
|
|
2475
|
-
return
|
|
1106
|
+
return de_CommandError(output, context);
|
|
2476
1107
|
}
|
|
2477
1108
|
const data = await parseBody(output.body, context);
|
|
2478
1109
|
let contents = {};
|
|
@@ -2483,37 +1114,9 @@ export const de_ListRunsCommand = async (output, context) => {
|
|
|
2483
1114
|
};
|
|
2484
1115
|
return response;
|
|
2485
1116
|
};
|
|
2486
|
-
const de_ListRunsCommandError = async (output, context) => {
|
|
2487
|
-
const parsedOutput = {
|
|
2488
|
-
...output,
|
|
2489
|
-
body: await parseErrorBody(output.body, context),
|
|
2490
|
-
};
|
|
2491
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2492
|
-
switch (errorCode) {
|
|
2493
|
-
case "ArgumentException":
|
|
2494
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2495
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2496
|
-
case "LimitExceededException":
|
|
2497
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2498
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2499
|
-
case "NotFoundException":
|
|
2500
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2501
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2502
|
-
case "ServiceAccountException":
|
|
2503
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2504
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2505
|
-
default:
|
|
2506
|
-
const parsedBody = parsedOutput.body;
|
|
2507
|
-
return throwDefaultError({
|
|
2508
|
-
output,
|
|
2509
|
-
parsedBody,
|
|
2510
|
-
errorCode,
|
|
2511
|
-
});
|
|
2512
|
-
}
|
|
2513
|
-
};
|
|
2514
1117
|
export const de_ListSamplesCommand = async (output, context) => {
|
|
2515
1118
|
if (output.statusCode >= 300) {
|
|
2516
|
-
return
|
|
1119
|
+
return de_CommandError(output, context);
|
|
2517
1120
|
}
|
|
2518
1121
|
const data = await parseBody(output.body, context);
|
|
2519
1122
|
let contents = {};
|
|
@@ -2524,37 +1127,9 @@ export const de_ListSamplesCommand = async (output, context) => {
|
|
|
2524
1127
|
};
|
|
2525
1128
|
return response;
|
|
2526
1129
|
};
|
|
2527
|
-
const de_ListSamplesCommandError = async (output, context) => {
|
|
2528
|
-
const parsedOutput = {
|
|
2529
|
-
...output,
|
|
2530
|
-
body: await parseErrorBody(output.body, context),
|
|
2531
|
-
};
|
|
2532
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2533
|
-
switch (errorCode) {
|
|
2534
|
-
case "ArgumentException":
|
|
2535
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2536
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2537
|
-
case "LimitExceededException":
|
|
2538
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2539
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2540
|
-
case "NotFoundException":
|
|
2541
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2542
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2543
|
-
case "ServiceAccountException":
|
|
2544
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2545
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2546
|
-
default:
|
|
2547
|
-
const parsedBody = parsedOutput.body;
|
|
2548
|
-
return throwDefaultError({
|
|
2549
|
-
output,
|
|
2550
|
-
parsedBody,
|
|
2551
|
-
errorCode,
|
|
2552
|
-
});
|
|
2553
|
-
}
|
|
2554
|
-
};
|
|
2555
1130
|
export const de_ListSuitesCommand = async (output, context) => {
|
|
2556
1131
|
if (output.statusCode >= 300) {
|
|
2557
|
-
return
|
|
1132
|
+
return de_CommandError(output, context);
|
|
2558
1133
|
}
|
|
2559
1134
|
const data = await parseBody(output.body, context);
|
|
2560
1135
|
let contents = {};
|
|
@@ -2565,37 +1140,9 @@ export const de_ListSuitesCommand = async (output, context) => {
|
|
|
2565
1140
|
};
|
|
2566
1141
|
return response;
|
|
2567
1142
|
};
|
|
2568
|
-
const de_ListSuitesCommandError = async (output, context) => {
|
|
2569
|
-
const parsedOutput = {
|
|
2570
|
-
...output,
|
|
2571
|
-
body: await parseErrorBody(output.body, context),
|
|
2572
|
-
};
|
|
2573
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2574
|
-
switch (errorCode) {
|
|
2575
|
-
case "ArgumentException":
|
|
2576
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2577
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2578
|
-
case "LimitExceededException":
|
|
2579
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2580
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2581
|
-
case "NotFoundException":
|
|
2582
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2583
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2584
|
-
case "ServiceAccountException":
|
|
2585
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2586
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2587
|
-
default:
|
|
2588
|
-
const parsedBody = parsedOutput.body;
|
|
2589
|
-
return throwDefaultError({
|
|
2590
|
-
output,
|
|
2591
|
-
parsedBody,
|
|
2592
|
-
errorCode,
|
|
2593
|
-
});
|
|
2594
|
-
}
|
|
2595
|
-
};
|
|
2596
1143
|
export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2597
1144
|
if (output.statusCode >= 300) {
|
|
2598
|
-
return
|
|
1145
|
+
return de_CommandError(output, context);
|
|
2599
1146
|
}
|
|
2600
1147
|
const data = await parseBody(output.body, context);
|
|
2601
1148
|
let contents = {};
|
|
@@ -2606,34 +1153,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
|
|
|
2606
1153
|
};
|
|
2607
1154
|
return response;
|
|
2608
1155
|
};
|
|
2609
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2610
|
-
const parsedOutput = {
|
|
2611
|
-
...output,
|
|
2612
|
-
body: await parseErrorBody(output.body, context),
|
|
2613
|
-
};
|
|
2614
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2615
|
-
switch (errorCode) {
|
|
2616
|
-
case "ArgumentException":
|
|
2617
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2618
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2619
|
-
case "NotFoundException":
|
|
2620
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2621
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2622
|
-
case "TagOperationException":
|
|
2623
|
-
case "com.amazonaws.devicefarm#TagOperationException":
|
|
2624
|
-
throw await de_TagOperationExceptionRes(parsedOutput, context);
|
|
2625
|
-
default:
|
|
2626
|
-
const parsedBody = parsedOutput.body;
|
|
2627
|
-
return throwDefaultError({
|
|
2628
|
-
output,
|
|
2629
|
-
parsedBody,
|
|
2630
|
-
errorCode,
|
|
2631
|
-
});
|
|
2632
|
-
}
|
|
2633
|
-
};
|
|
2634
1156
|
export const de_ListTestGridProjectsCommand = async (output, context) => {
|
|
2635
1157
|
if (output.statusCode >= 300) {
|
|
2636
|
-
return
|
|
1158
|
+
return de_CommandError(output, context);
|
|
2637
1159
|
}
|
|
2638
1160
|
const data = await parseBody(output.body, context);
|
|
2639
1161
|
let contents = {};
|
|
@@ -2644,31 +1166,9 @@ export const de_ListTestGridProjectsCommand = async (output, context) => {
|
|
|
2644
1166
|
};
|
|
2645
1167
|
return response;
|
|
2646
1168
|
};
|
|
2647
|
-
const de_ListTestGridProjectsCommandError = async (output, context) => {
|
|
2648
|
-
const parsedOutput = {
|
|
2649
|
-
...output,
|
|
2650
|
-
body: await parseErrorBody(output.body, context),
|
|
2651
|
-
};
|
|
2652
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2653
|
-
switch (errorCode) {
|
|
2654
|
-
case "ArgumentException":
|
|
2655
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2656
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2657
|
-
case "InternalServiceException":
|
|
2658
|
-
case "com.amazonaws.devicefarm#InternalServiceException":
|
|
2659
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2660
|
-
default:
|
|
2661
|
-
const parsedBody = parsedOutput.body;
|
|
2662
|
-
return throwDefaultError({
|
|
2663
|
-
output,
|
|
2664
|
-
parsedBody,
|
|
2665
|
-
errorCode,
|
|
2666
|
-
});
|
|
2667
|
-
}
|
|
2668
|
-
};
|
|
2669
1169
|
export const de_ListTestGridSessionActionsCommand = async (output, context) => {
|
|
2670
1170
|
if (output.statusCode >= 300) {
|
|
2671
|
-
return
|
|
1171
|
+
return de_CommandError(output, context);
|
|
2672
1172
|
}
|
|
2673
1173
|
const data = await parseBody(output.body, context);
|
|
2674
1174
|
let contents = {};
|
|
@@ -2679,34 +1179,9 @@ export const de_ListTestGridSessionActionsCommand = async (output, context) => {
|
|
|
2679
1179
|
};
|
|
2680
1180
|
return response;
|
|
2681
1181
|
};
|
|
2682
|
-
const de_ListTestGridSessionActionsCommandError = async (output, context) => {
|
|
2683
|
-
const parsedOutput = {
|
|
2684
|
-
...output,
|
|
2685
|
-
body: await parseErrorBody(output.body, context),
|
|
2686
|
-
};
|
|
2687
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2688
|
-
switch (errorCode) {
|
|
2689
|
-
case "ArgumentException":
|
|
2690
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2691
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2692
|
-
case "InternalServiceException":
|
|
2693
|
-
case "com.amazonaws.devicefarm#InternalServiceException":
|
|
2694
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2695
|
-
case "NotFoundException":
|
|
2696
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2697
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2698
|
-
default:
|
|
2699
|
-
const parsedBody = parsedOutput.body;
|
|
2700
|
-
return throwDefaultError({
|
|
2701
|
-
output,
|
|
2702
|
-
parsedBody,
|
|
2703
|
-
errorCode,
|
|
2704
|
-
});
|
|
2705
|
-
}
|
|
2706
|
-
};
|
|
2707
1182
|
export const de_ListTestGridSessionArtifactsCommand = async (output, context) => {
|
|
2708
1183
|
if (output.statusCode >= 300) {
|
|
2709
|
-
return
|
|
1184
|
+
return de_CommandError(output, context);
|
|
2710
1185
|
}
|
|
2711
1186
|
const data = await parseBody(output.body, context);
|
|
2712
1187
|
let contents = {};
|
|
@@ -2717,34 +1192,9 @@ export const de_ListTestGridSessionArtifactsCommand = async (output, context) =>
|
|
|
2717
1192
|
};
|
|
2718
1193
|
return response;
|
|
2719
1194
|
};
|
|
2720
|
-
const de_ListTestGridSessionArtifactsCommandError = async (output, context) => {
|
|
2721
|
-
const parsedOutput = {
|
|
2722
|
-
...output,
|
|
2723
|
-
body: await parseErrorBody(output.body, context),
|
|
2724
|
-
};
|
|
2725
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2726
|
-
switch (errorCode) {
|
|
2727
|
-
case "ArgumentException":
|
|
2728
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2729
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2730
|
-
case "InternalServiceException":
|
|
2731
|
-
case "com.amazonaws.devicefarm#InternalServiceException":
|
|
2732
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2733
|
-
case "NotFoundException":
|
|
2734
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2735
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2736
|
-
default:
|
|
2737
|
-
const parsedBody = parsedOutput.body;
|
|
2738
|
-
return throwDefaultError({
|
|
2739
|
-
output,
|
|
2740
|
-
parsedBody,
|
|
2741
|
-
errorCode,
|
|
2742
|
-
});
|
|
2743
|
-
}
|
|
2744
|
-
};
|
|
2745
1195
|
export const de_ListTestGridSessionsCommand = async (output, context) => {
|
|
2746
1196
|
if (output.statusCode >= 300) {
|
|
2747
|
-
return
|
|
1197
|
+
return de_CommandError(output, context);
|
|
2748
1198
|
}
|
|
2749
1199
|
const data = await parseBody(output.body, context);
|
|
2750
1200
|
let contents = {};
|
|
@@ -2755,34 +1205,9 @@ export const de_ListTestGridSessionsCommand = async (output, context) => {
|
|
|
2755
1205
|
};
|
|
2756
1206
|
return response;
|
|
2757
1207
|
};
|
|
2758
|
-
const de_ListTestGridSessionsCommandError = async (output, context) => {
|
|
2759
|
-
const parsedOutput = {
|
|
2760
|
-
...output,
|
|
2761
|
-
body: await parseErrorBody(output.body, context),
|
|
2762
|
-
};
|
|
2763
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2764
|
-
switch (errorCode) {
|
|
2765
|
-
case "ArgumentException":
|
|
2766
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2767
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2768
|
-
case "InternalServiceException":
|
|
2769
|
-
case "com.amazonaws.devicefarm#InternalServiceException":
|
|
2770
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
2771
|
-
case "NotFoundException":
|
|
2772
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2773
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2774
|
-
default:
|
|
2775
|
-
const parsedBody = parsedOutput.body;
|
|
2776
|
-
return throwDefaultError({
|
|
2777
|
-
output,
|
|
2778
|
-
parsedBody,
|
|
2779
|
-
errorCode,
|
|
2780
|
-
});
|
|
2781
|
-
}
|
|
2782
|
-
};
|
|
2783
1208
|
export const de_ListTestsCommand = async (output, context) => {
|
|
2784
1209
|
if (output.statusCode >= 300) {
|
|
2785
|
-
return
|
|
1210
|
+
return de_CommandError(output, context);
|
|
2786
1211
|
}
|
|
2787
1212
|
const data = await parseBody(output.body, context);
|
|
2788
1213
|
let contents = {};
|
|
@@ -2793,37 +1218,9 @@ export const de_ListTestsCommand = async (output, context) => {
|
|
|
2793
1218
|
};
|
|
2794
1219
|
return response;
|
|
2795
1220
|
};
|
|
2796
|
-
const de_ListTestsCommandError = async (output, context) => {
|
|
2797
|
-
const parsedOutput = {
|
|
2798
|
-
...output,
|
|
2799
|
-
body: await parseErrorBody(output.body, context),
|
|
2800
|
-
};
|
|
2801
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2802
|
-
switch (errorCode) {
|
|
2803
|
-
case "ArgumentException":
|
|
2804
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2805
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2806
|
-
case "LimitExceededException":
|
|
2807
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2808
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2809
|
-
case "NotFoundException":
|
|
2810
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2811
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2812
|
-
case "ServiceAccountException":
|
|
2813
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2814
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2815
|
-
default:
|
|
2816
|
-
const parsedBody = parsedOutput.body;
|
|
2817
|
-
return throwDefaultError({
|
|
2818
|
-
output,
|
|
2819
|
-
parsedBody,
|
|
2820
|
-
errorCode,
|
|
2821
|
-
});
|
|
2822
|
-
}
|
|
2823
|
-
};
|
|
2824
1221
|
export const de_ListUniqueProblemsCommand = async (output, context) => {
|
|
2825
1222
|
if (output.statusCode >= 300) {
|
|
2826
|
-
return
|
|
1223
|
+
return de_CommandError(output, context);
|
|
2827
1224
|
}
|
|
2828
1225
|
const data = await parseBody(output.body, context);
|
|
2829
1226
|
let contents = {};
|
|
@@ -2834,37 +1231,9 @@ export const de_ListUniqueProblemsCommand = async (output, context) => {
|
|
|
2834
1231
|
};
|
|
2835
1232
|
return response;
|
|
2836
1233
|
};
|
|
2837
|
-
const de_ListUniqueProblemsCommandError = async (output, context) => {
|
|
2838
|
-
const parsedOutput = {
|
|
2839
|
-
...output,
|
|
2840
|
-
body: await parseErrorBody(output.body, context),
|
|
2841
|
-
};
|
|
2842
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2843
|
-
switch (errorCode) {
|
|
2844
|
-
case "ArgumentException":
|
|
2845
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2846
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2847
|
-
case "LimitExceededException":
|
|
2848
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2849
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2850
|
-
case "NotFoundException":
|
|
2851
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2852
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2853
|
-
case "ServiceAccountException":
|
|
2854
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2855
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2856
|
-
default:
|
|
2857
|
-
const parsedBody = parsedOutput.body;
|
|
2858
|
-
return throwDefaultError({
|
|
2859
|
-
output,
|
|
2860
|
-
parsedBody,
|
|
2861
|
-
errorCode,
|
|
2862
|
-
});
|
|
2863
|
-
}
|
|
2864
|
-
};
|
|
2865
1234
|
export const de_ListUploadsCommand = async (output, context) => {
|
|
2866
1235
|
if (output.statusCode >= 300) {
|
|
2867
|
-
return
|
|
1236
|
+
return de_CommandError(output, context);
|
|
2868
1237
|
}
|
|
2869
1238
|
const data = await parseBody(output.body, context);
|
|
2870
1239
|
let contents = {};
|
|
@@ -2875,37 +1244,9 @@ export const de_ListUploadsCommand = async (output, context) => {
|
|
|
2875
1244
|
};
|
|
2876
1245
|
return response;
|
|
2877
1246
|
};
|
|
2878
|
-
const de_ListUploadsCommandError = async (output, context) => {
|
|
2879
|
-
const parsedOutput = {
|
|
2880
|
-
...output,
|
|
2881
|
-
body: await parseErrorBody(output.body, context),
|
|
2882
|
-
};
|
|
2883
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2884
|
-
switch (errorCode) {
|
|
2885
|
-
case "ArgumentException":
|
|
2886
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2887
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2888
|
-
case "LimitExceededException":
|
|
2889
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2890
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2891
|
-
case "NotFoundException":
|
|
2892
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2893
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2894
|
-
case "ServiceAccountException":
|
|
2895
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2896
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2897
|
-
default:
|
|
2898
|
-
const parsedBody = parsedOutput.body;
|
|
2899
|
-
return throwDefaultError({
|
|
2900
|
-
output,
|
|
2901
|
-
parsedBody,
|
|
2902
|
-
errorCode,
|
|
2903
|
-
});
|
|
2904
|
-
}
|
|
2905
|
-
};
|
|
2906
1247
|
export const de_ListVPCEConfigurationsCommand = async (output, context) => {
|
|
2907
1248
|
if (output.statusCode >= 300) {
|
|
2908
|
-
return
|
|
1249
|
+
return de_CommandError(output, context);
|
|
2909
1250
|
}
|
|
2910
1251
|
const data = await parseBody(output.body, context);
|
|
2911
1252
|
let contents = {};
|
|
@@ -2916,31 +1257,9 @@ export const de_ListVPCEConfigurationsCommand = async (output, context) => {
|
|
|
2916
1257
|
};
|
|
2917
1258
|
return response;
|
|
2918
1259
|
};
|
|
2919
|
-
const de_ListVPCEConfigurationsCommandError = async (output, context) => {
|
|
2920
|
-
const parsedOutput = {
|
|
2921
|
-
...output,
|
|
2922
|
-
body: await parseErrorBody(output.body, context),
|
|
2923
|
-
};
|
|
2924
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2925
|
-
switch (errorCode) {
|
|
2926
|
-
case "ArgumentException":
|
|
2927
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2928
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2929
|
-
case "ServiceAccountException":
|
|
2930
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2931
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2932
|
-
default:
|
|
2933
|
-
const parsedBody = parsedOutput.body;
|
|
2934
|
-
return throwDefaultError({
|
|
2935
|
-
output,
|
|
2936
|
-
parsedBody,
|
|
2937
|
-
errorCode,
|
|
2938
|
-
});
|
|
2939
|
-
}
|
|
2940
|
-
};
|
|
2941
1260
|
export const de_PurchaseOfferingCommand = async (output, context) => {
|
|
2942
1261
|
if (output.statusCode >= 300) {
|
|
2943
|
-
return
|
|
1262
|
+
return de_CommandError(output, context);
|
|
2944
1263
|
}
|
|
2945
1264
|
const data = await parseBody(output.body, context);
|
|
2946
1265
|
let contents = {};
|
|
@@ -2951,40 +1270,9 @@ export const de_PurchaseOfferingCommand = async (output, context) => {
|
|
|
2951
1270
|
};
|
|
2952
1271
|
return response;
|
|
2953
1272
|
};
|
|
2954
|
-
const de_PurchaseOfferingCommandError = async (output, context) => {
|
|
2955
|
-
const parsedOutput = {
|
|
2956
|
-
...output,
|
|
2957
|
-
body: await parseErrorBody(output.body, context),
|
|
2958
|
-
};
|
|
2959
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2960
|
-
switch (errorCode) {
|
|
2961
|
-
case "ArgumentException":
|
|
2962
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
2963
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
2964
|
-
case "LimitExceededException":
|
|
2965
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
2966
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
2967
|
-
case "NotEligibleException":
|
|
2968
|
-
case "com.amazonaws.devicefarm#NotEligibleException":
|
|
2969
|
-
throw await de_NotEligibleExceptionRes(parsedOutput, context);
|
|
2970
|
-
case "NotFoundException":
|
|
2971
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
2972
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
2973
|
-
case "ServiceAccountException":
|
|
2974
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
2975
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
2976
|
-
default:
|
|
2977
|
-
const parsedBody = parsedOutput.body;
|
|
2978
|
-
return throwDefaultError({
|
|
2979
|
-
output,
|
|
2980
|
-
parsedBody,
|
|
2981
|
-
errorCode,
|
|
2982
|
-
});
|
|
2983
|
-
}
|
|
2984
|
-
};
|
|
2985
1273
|
export const de_RenewOfferingCommand = async (output, context) => {
|
|
2986
1274
|
if (output.statusCode >= 300) {
|
|
2987
|
-
return
|
|
1275
|
+
return de_CommandError(output, context);
|
|
2988
1276
|
}
|
|
2989
1277
|
const data = await parseBody(output.body, context);
|
|
2990
1278
|
let contents = {};
|
|
@@ -2995,40 +1283,9 @@ export const de_RenewOfferingCommand = async (output, context) => {
|
|
|
2995
1283
|
};
|
|
2996
1284
|
return response;
|
|
2997
1285
|
};
|
|
2998
|
-
const de_RenewOfferingCommandError = async (output, context) => {
|
|
2999
|
-
const parsedOutput = {
|
|
3000
|
-
...output,
|
|
3001
|
-
body: await parseErrorBody(output.body, context),
|
|
3002
|
-
};
|
|
3003
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3004
|
-
switch (errorCode) {
|
|
3005
|
-
case "ArgumentException":
|
|
3006
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3007
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3008
|
-
case "LimitExceededException":
|
|
3009
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3010
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3011
|
-
case "NotEligibleException":
|
|
3012
|
-
case "com.amazonaws.devicefarm#NotEligibleException":
|
|
3013
|
-
throw await de_NotEligibleExceptionRes(parsedOutput, context);
|
|
3014
|
-
case "NotFoundException":
|
|
3015
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3016
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3017
|
-
case "ServiceAccountException":
|
|
3018
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3019
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3020
|
-
default:
|
|
3021
|
-
const parsedBody = parsedOutput.body;
|
|
3022
|
-
return throwDefaultError({
|
|
3023
|
-
output,
|
|
3024
|
-
parsedBody,
|
|
3025
|
-
errorCode,
|
|
3026
|
-
});
|
|
3027
|
-
}
|
|
3028
|
-
};
|
|
3029
1286
|
export const de_ScheduleRunCommand = async (output, context) => {
|
|
3030
1287
|
if (output.statusCode >= 300) {
|
|
3031
|
-
return
|
|
1288
|
+
return de_CommandError(output, context);
|
|
3032
1289
|
}
|
|
3033
1290
|
const data = await parseBody(output.body, context);
|
|
3034
1291
|
let contents = {};
|
|
@@ -3039,40 +1296,9 @@ export const de_ScheduleRunCommand = async (output, context) => {
|
|
|
3039
1296
|
};
|
|
3040
1297
|
return response;
|
|
3041
1298
|
};
|
|
3042
|
-
const de_ScheduleRunCommandError = async (output, context) => {
|
|
3043
|
-
const parsedOutput = {
|
|
3044
|
-
...output,
|
|
3045
|
-
body: await parseErrorBody(output.body, context),
|
|
3046
|
-
};
|
|
3047
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3048
|
-
switch (errorCode) {
|
|
3049
|
-
case "ArgumentException":
|
|
3050
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3051
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3052
|
-
case "IdempotencyException":
|
|
3053
|
-
case "com.amazonaws.devicefarm#IdempotencyException":
|
|
3054
|
-
throw await de_IdempotencyExceptionRes(parsedOutput, context);
|
|
3055
|
-
case "LimitExceededException":
|
|
3056
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3057
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3058
|
-
case "NotFoundException":
|
|
3059
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3060
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3061
|
-
case "ServiceAccountException":
|
|
3062
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3063
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3064
|
-
default:
|
|
3065
|
-
const parsedBody = parsedOutput.body;
|
|
3066
|
-
return throwDefaultError({
|
|
3067
|
-
output,
|
|
3068
|
-
parsedBody,
|
|
3069
|
-
errorCode,
|
|
3070
|
-
});
|
|
3071
|
-
}
|
|
3072
|
-
};
|
|
3073
1299
|
export const de_StopJobCommand = async (output, context) => {
|
|
3074
1300
|
if (output.statusCode >= 300) {
|
|
3075
|
-
return
|
|
1301
|
+
return de_CommandError(output, context);
|
|
3076
1302
|
}
|
|
3077
1303
|
const data = await parseBody(output.body, context);
|
|
3078
1304
|
let contents = {};
|
|
@@ -3083,37 +1309,9 @@ export const de_StopJobCommand = async (output, context) => {
|
|
|
3083
1309
|
};
|
|
3084
1310
|
return response;
|
|
3085
1311
|
};
|
|
3086
|
-
const de_StopJobCommandError = async (output, context) => {
|
|
3087
|
-
const parsedOutput = {
|
|
3088
|
-
...output,
|
|
3089
|
-
body: await parseErrorBody(output.body, context),
|
|
3090
|
-
};
|
|
3091
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3092
|
-
switch (errorCode) {
|
|
3093
|
-
case "ArgumentException":
|
|
3094
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3095
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3096
|
-
case "LimitExceededException":
|
|
3097
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3098
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3099
|
-
case "NotFoundException":
|
|
3100
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3101
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3102
|
-
case "ServiceAccountException":
|
|
3103
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3104
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3105
|
-
default:
|
|
3106
|
-
const parsedBody = parsedOutput.body;
|
|
3107
|
-
return throwDefaultError({
|
|
3108
|
-
output,
|
|
3109
|
-
parsedBody,
|
|
3110
|
-
errorCode,
|
|
3111
|
-
});
|
|
3112
|
-
}
|
|
3113
|
-
};
|
|
3114
1312
|
export const de_StopRemoteAccessSessionCommand = async (output, context) => {
|
|
3115
1313
|
if (output.statusCode >= 300) {
|
|
3116
|
-
return
|
|
1314
|
+
return de_CommandError(output, context);
|
|
3117
1315
|
}
|
|
3118
1316
|
const data = await parseBody(output.body, context);
|
|
3119
1317
|
let contents = {};
|
|
@@ -3124,122 +1322,22 @@ export const de_StopRemoteAccessSessionCommand = async (output, context) => {
|
|
|
3124
1322
|
};
|
|
3125
1323
|
return response;
|
|
3126
1324
|
};
|
|
3127
|
-
const de_StopRemoteAccessSessionCommandError = async (output, context) => {
|
|
3128
|
-
const parsedOutput = {
|
|
3129
|
-
...output,
|
|
3130
|
-
body: await parseErrorBody(output.body, context),
|
|
3131
|
-
};
|
|
3132
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3133
|
-
switch (errorCode) {
|
|
3134
|
-
case "ArgumentException":
|
|
3135
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3136
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3137
|
-
case "LimitExceededException":
|
|
3138
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3139
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3140
|
-
case "NotFoundException":
|
|
3141
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3142
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3143
|
-
case "ServiceAccountException":
|
|
3144
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3145
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3146
|
-
default:
|
|
3147
|
-
const parsedBody = parsedOutput.body;
|
|
3148
|
-
return throwDefaultError({
|
|
3149
|
-
output,
|
|
3150
|
-
parsedBody,
|
|
3151
|
-
errorCode,
|
|
3152
|
-
});
|
|
3153
|
-
}
|
|
3154
|
-
};
|
|
3155
1325
|
export const de_StopRunCommand = async (output, context) => {
|
|
3156
1326
|
if (output.statusCode >= 300) {
|
|
3157
|
-
return
|
|
1327
|
+
return de_CommandError(output, context);
|
|
3158
1328
|
}
|
|
3159
1329
|
const data = await parseBody(output.body, context);
|
|
3160
1330
|
let contents = {};
|
|
3161
1331
|
contents = de_StopRunResult(data, context);
|
|
3162
1332
|
const response = {
|
|
3163
1333
|
$metadata: deserializeMetadata(output),
|
|
3164
|
-
...contents,
|
|
3165
|
-
};
|
|
3166
|
-
return response;
|
|
3167
|
-
};
|
|
3168
|
-
const de_StopRunCommandError = async (output, context) => {
|
|
3169
|
-
const parsedOutput = {
|
|
3170
|
-
...output,
|
|
3171
|
-
body: await parseErrorBody(output.body, context),
|
|
3172
|
-
};
|
|
3173
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3174
|
-
switch (errorCode) {
|
|
3175
|
-
case "ArgumentException":
|
|
3176
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3177
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3178
|
-
case "LimitExceededException":
|
|
3179
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3180
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3181
|
-
case "NotFoundException":
|
|
3182
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3183
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3184
|
-
case "ServiceAccountException":
|
|
3185
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3186
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3187
|
-
default:
|
|
3188
|
-
const parsedBody = parsedOutput.body;
|
|
3189
|
-
return throwDefaultError({
|
|
3190
|
-
output,
|
|
3191
|
-
parsedBody,
|
|
3192
|
-
errorCode,
|
|
3193
|
-
});
|
|
3194
|
-
}
|
|
3195
|
-
};
|
|
3196
|
-
export const de_TagResourceCommand = async (output, context) => {
|
|
3197
|
-
if (output.statusCode >= 300) {
|
|
3198
|
-
return de_TagResourceCommandError(output, context);
|
|
3199
|
-
}
|
|
3200
|
-
const data = await parseBody(output.body, context);
|
|
3201
|
-
let contents = {};
|
|
3202
|
-
contents = _json(data);
|
|
3203
|
-
const response = {
|
|
3204
|
-
$metadata: deserializeMetadata(output),
|
|
3205
|
-
...contents,
|
|
3206
|
-
};
|
|
3207
|
-
return response;
|
|
3208
|
-
};
|
|
3209
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3210
|
-
const parsedOutput = {
|
|
3211
|
-
...output,
|
|
3212
|
-
body: await parseErrorBody(output.body, context),
|
|
3213
|
-
};
|
|
3214
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3215
|
-
switch (errorCode) {
|
|
3216
|
-
case "ArgumentException":
|
|
3217
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3218
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3219
|
-
case "NotFoundException":
|
|
3220
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3221
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3222
|
-
case "TagOperationException":
|
|
3223
|
-
case "com.amazonaws.devicefarm#TagOperationException":
|
|
3224
|
-
throw await de_TagOperationExceptionRes(parsedOutput, context);
|
|
3225
|
-
case "TagPolicyException":
|
|
3226
|
-
case "com.amazonaws.devicefarm#TagPolicyException":
|
|
3227
|
-
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
3228
|
-
case "TooManyTagsException":
|
|
3229
|
-
case "com.amazonaws.devicefarm#TooManyTagsException":
|
|
3230
|
-
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
3231
|
-
default:
|
|
3232
|
-
const parsedBody = parsedOutput.body;
|
|
3233
|
-
return throwDefaultError({
|
|
3234
|
-
output,
|
|
3235
|
-
parsedBody,
|
|
3236
|
-
errorCode,
|
|
3237
|
-
});
|
|
3238
|
-
}
|
|
1334
|
+
...contents,
|
|
1335
|
+
};
|
|
1336
|
+
return response;
|
|
3239
1337
|
};
|
|
3240
|
-
export const
|
|
1338
|
+
export const de_TagResourceCommand = async (output, context) => {
|
|
3241
1339
|
if (output.statusCode >= 300) {
|
|
3242
|
-
return
|
|
1340
|
+
return de_CommandError(output, context);
|
|
3243
1341
|
}
|
|
3244
1342
|
const data = await parseBody(output.body, context);
|
|
3245
1343
|
let contents = {};
|
|
@@ -3250,34 +1348,22 @@ export const de_UntagResourceCommand = async (output, context) => {
|
|
|
3250
1348
|
};
|
|
3251
1349
|
return response;
|
|
3252
1350
|
};
|
|
3253
|
-
const
|
|
3254
|
-
|
|
3255
|
-
|
|
3256
|
-
body: await parseErrorBody(output.body, context),
|
|
3257
|
-
};
|
|
3258
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3259
|
-
switch (errorCode) {
|
|
3260
|
-
case "ArgumentException":
|
|
3261
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3262
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3263
|
-
case "NotFoundException":
|
|
3264
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3265
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3266
|
-
case "TagOperationException":
|
|
3267
|
-
case "com.amazonaws.devicefarm#TagOperationException":
|
|
3268
|
-
throw await de_TagOperationExceptionRes(parsedOutput, context);
|
|
3269
|
-
default:
|
|
3270
|
-
const parsedBody = parsedOutput.body;
|
|
3271
|
-
return throwDefaultError({
|
|
3272
|
-
output,
|
|
3273
|
-
parsedBody,
|
|
3274
|
-
errorCode,
|
|
3275
|
-
});
|
|
1351
|
+
export const de_UntagResourceCommand = async (output, context) => {
|
|
1352
|
+
if (output.statusCode >= 300) {
|
|
1353
|
+
return de_CommandError(output, context);
|
|
3276
1354
|
}
|
|
1355
|
+
const data = await parseBody(output.body, context);
|
|
1356
|
+
let contents = {};
|
|
1357
|
+
contents = _json(data);
|
|
1358
|
+
const response = {
|
|
1359
|
+
$metadata: deserializeMetadata(output),
|
|
1360
|
+
...contents,
|
|
1361
|
+
};
|
|
1362
|
+
return response;
|
|
3277
1363
|
};
|
|
3278
1364
|
export const de_UpdateDeviceInstanceCommand = async (output, context) => {
|
|
3279
1365
|
if (output.statusCode >= 300) {
|
|
3280
|
-
return
|
|
1366
|
+
return de_CommandError(output, context);
|
|
3281
1367
|
}
|
|
3282
1368
|
const data = await parseBody(output.body, context);
|
|
3283
1369
|
let contents = {};
|
|
@@ -3288,37 +1374,9 @@ export const de_UpdateDeviceInstanceCommand = async (output, context) => {
|
|
|
3288
1374
|
};
|
|
3289
1375
|
return response;
|
|
3290
1376
|
};
|
|
3291
|
-
const de_UpdateDeviceInstanceCommandError = async (output, context) => {
|
|
3292
|
-
const parsedOutput = {
|
|
3293
|
-
...output,
|
|
3294
|
-
body: await parseErrorBody(output.body, context),
|
|
3295
|
-
};
|
|
3296
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3297
|
-
switch (errorCode) {
|
|
3298
|
-
case "ArgumentException":
|
|
3299
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3300
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3301
|
-
case "LimitExceededException":
|
|
3302
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3303
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3304
|
-
case "NotFoundException":
|
|
3305
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3306
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3307
|
-
case "ServiceAccountException":
|
|
3308
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3309
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3310
|
-
default:
|
|
3311
|
-
const parsedBody = parsedOutput.body;
|
|
3312
|
-
return throwDefaultError({
|
|
3313
|
-
output,
|
|
3314
|
-
parsedBody,
|
|
3315
|
-
errorCode,
|
|
3316
|
-
});
|
|
3317
|
-
}
|
|
3318
|
-
};
|
|
3319
1377
|
export const de_UpdateDevicePoolCommand = async (output, context) => {
|
|
3320
1378
|
if (output.statusCode >= 300) {
|
|
3321
|
-
return
|
|
1379
|
+
return de_CommandError(output, context);
|
|
3322
1380
|
}
|
|
3323
1381
|
const data = await parseBody(output.body, context);
|
|
3324
1382
|
let contents = {};
|
|
@@ -3329,37 +1387,9 @@ export const de_UpdateDevicePoolCommand = async (output, context) => {
|
|
|
3329
1387
|
};
|
|
3330
1388
|
return response;
|
|
3331
1389
|
};
|
|
3332
|
-
const de_UpdateDevicePoolCommandError = async (output, context) => {
|
|
3333
|
-
const parsedOutput = {
|
|
3334
|
-
...output,
|
|
3335
|
-
body: await parseErrorBody(output.body, context),
|
|
3336
|
-
};
|
|
3337
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3338
|
-
switch (errorCode) {
|
|
3339
|
-
case "ArgumentException":
|
|
3340
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3341
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3342
|
-
case "LimitExceededException":
|
|
3343
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3344
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3345
|
-
case "NotFoundException":
|
|
3346
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3347
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3348
|
-
case "ServiceAccountException":
|
|
3349
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3350
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3351
|
-
default:
|
|
3352
|
-
const parsedBody = parsedOutput.body;
|
|
3353
|
-
return throwDefaultError({
|
|
3354
|
-
output,
|
|
3355
|
-
parsedBody,
|
|
3356
|
-
errorCode,
|
|
3357
|
-
});
|
|
3358
|
-
}
|
|
3359
|
-
};
|
|
3360
1390
|
export const de_UpdateInstanceProfileCommand = async (output, context) => {
|
|
3361
1391
|
if (output.statusCode >= 300) {
|
|
3362
|
-
return
|
|
1392
|
+
return de_CommandError(output, context);
|
|
3363
1393
|
}
|
|
3364
1394
|
const data = await parseBody(output.body, context);
|
|
3365
1395
|
let contents = {};
|
|
@@ -3370,37 +1400,9 @@ export const de_UpdateInstanceProfileCommand = async (output, context) => {
|
|
|
3370
1400
|
};
|
|
3371
1401
|
return response;
|
|
3372
1402
|
};
|
|
3373
|
-
const de_UpdateInstanceProfileCommandError = async (output, context) => {
|
|
3374
|
-
const parsedOutput = {
|
|
3375
|
-
...output,
|
|
3376
|
-
body: await parseErrorBody(output.body, context),
|
|
3377
|
-
};
|
|
3378
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3379
|
-
switch (errorCode) {
|
|
3380
|
-
case "ArgumentException":
|
|
3381
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3382
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3383
|
-
case "LimitExceededException":
|
|
3384
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3385
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3386
|
-
case "NotFoundException":
|
|
3387
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3388
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3389
|
-
case "ServiceAccountException":
|
|
3390
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3391
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3392
|
-
default:
|
|
3393
|
-
const parsedBody = parsedOutput.body;
|
|
3394
|
-
return throwDefaultError({
|
|
3395
|
-
output,
|
|
3396
|
-
parsedBody,
|
|
3397
|
-
errorCode,
|
|
3398
|
-
});
|
|
3399
|
-
}
|
|
3400
|
-
};
|
|
3401
1403
|
export const de_UpdateNetworkProfileCommand = async (output, context) => {
|
|
3402
1404
|
if (output.statusCode >= 300) {
|
|
3403
|
-
return
|
|
1405
|
+
return de_CommandError(output, context);
|
|
3404
1406
|
}
|
|
3405
1407
|
const data = await parseBody(output.body, context);
|
|
3406
1408
|
let contents = {};
|
|
@@ -3411,37 +1413,9 @@ export const de_UpdateNetworkProfileCommand = async (output, context) => {
|
|
|
3411
1413
|
};
|
|
3412
1414
|
return response;
|
|
3413
1415
|
};
|
|
3414
|
-
const de_UpdateNetworkProfileCommandError = async (output, context) => {
|
|
3415
|
-
const parsedOutput = {
|
|
3416
|
-
...output,
|
|
3417
|
-
body: await parseErrorBody(output.body, context),
|
|
3418
|
-
};
|
|
3419
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3420
|
-
switch (errorCode) {
|
|
3421
|
-
case "ArgumentException":
|
|
3422
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3423
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3424
|
-
case "LimitExceededException":
|
|
3425
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3426
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3427
|
-
case "NotFoundException":
|
|
3428
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3429
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3430
|
-
case "ServiceAccountException":
|
|
3431
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3432
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3433
|
-
default:
|
|
3434
|
-
const parsedBody = parsedOutput.body;
|
|
3435
|
-
return throwDefaultError({
|
|
3436
|
-
output,
|
|
3437
|
-
parsedBody,
|
|
3438
|
-
errorCode,
|
|
3439
|
-
});
|
|
3440
|
-
}
|
|
3441
|
-
};
|
|
3442
1416
|
export const de_UpdateProjectCommand = async (output, context) => {
|
|
3443
1417
|
if (output.statusCode >= 300) {
|
|
3444
|
-
return
|
|
1418
|
+
return de_CommandError(output, context);
|
|
3445
1419
|
}
|
|
3446
1420
|
const data = await parseBody(output.body, context);
|
|
3447
1421
|
let contents = {};
|
|
@@ -3452,37 +1426,9 @@ export const de_UpdateProjectCommand = async (output, context) => {
|
|
|
3452
1426
|
};
|
|
3453
1427
|
return response;
|
|
3454
1428
|
};
|
|
3455
|
-
const de_UpdateProjectCommandError = async (output, context) => {
|
|
3456
|
-
const parsedOutput = {
|
|
3457
|
-
...output,
|
|
3458
|
-
body: await parseErrorBody(output.body, context),
|
|
3459
|
-
};
|
|
3460
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3461
|
-
switch (errorCode) {
|
|
3462
|
-
case "ArgumentException":
|
|
3463
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3464
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3465
|
-
case "LimitExceededException":
|
|
3466
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3467
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3468
|
-
case "NotFoundException":
|
|
3469
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3470
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3471
|
-
case "ServiceAccountException":
|
|
3472
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3473
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3474
|
-
default:
|
|
3475
|
-
const parsedBody = parsedOutput.body;
|
|
3476
|
-
return throwDefaultError({
|
|
3477
|
-
output,
|
|
3478
|
-
parsedBody,
|
|
3479
|
-
errorCode,
|
|
3480
|
-
});
|
|
3481
|
-
}
|
|
3482
|
-
};
|
|
3483
1429
|
export const de_UpdateTestGridProjectCommand = async (output, context) => {
|
|
3484
1430
|
if (output.statusCode >= 300) {
|
|
3485
|
-
return
|
|
1431
|
+
return de_CommandError(output, context);
|
|
3486
1432
|
}
|
|
3487
1433
|
const data = await parseBody(output.body, context);
|
|
3488
1434
|
let contents = {};
|
|
@@ -3493,37 +1439,9 @@ export const de_UpdateTestGridProjectCommand = async (output, context) => {
|
|
|
3493
1439
|
};
|
|
3494
1440
|
return response;
|
|
3495
1441
|
};
|
|
3496
|
-
const de_UpdateTestGridProjectCommandError = async (output, context) => {
|
|
3497
|
-
const parsedOutput = {
|
|
3498
|
-
...output,
|
|
3499
|
-
body: await parseErrorBody(output.body, context),
|
|
3500
|
-
};
|
|
3501
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3502
|
-
switch (errorCode) {
|
|
3503
|
-
case "ArgumentException":
|
|
3504
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3505
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3506
|
-
case "InternalServiceException":
|
|
3507
|
-
case "com.amazonaws.devicefarm#InternalServiceException":
|
|
3508
|
-
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
3509
|
-
case "LimitExceededException":
|
|
3510
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3511
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3512
|
-
case "NotFoundException":
|
|
3513
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3514
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3515
|
-
default:
|
|
3516
|
-
const parsedBody = parsedOutput.body;
|
|
3517
|
-
return throwDefaultError({
|
|
3518
|
-
output,
|
|
3519
|
-
parsedBody,
|
|
3520
|
-
errorCode,
|
|
3521
|
-
});
|
|
3522
|
-
}
|
|
3523
|
-
};
|
|
3524
1442
|
export const de_UpdateUploadCommand = async (output, context) => {
|
|
3525
1443
|
if (output.statusCode >= 300) {
|
|
3526
|
-
return
|
|
1444
|
+
return de_CommandError(output, context);
|
|
3527
1445
|
}
|
|
3528
1446
|
const data = await parseBody(output.body, context);
|
|
3529
1447
|
let contents = {};
|
|
@@ -3534,37 +1452,9 @@ export const de_UpdateUploadCommand = async (output, context) => {
|
|
|
3534
1452
|
};
|
|
3535
1453
|
return response;
|
|
3536
1454
|
};
|
|
3537
|
-
const de_UpdateUploadCommandError = async (output, context) => {
|
|
3538
|
-
const parsedOutput = {
|
|
3539
|
-
...output,
|
|
3540
|
-
body: await parseErrorBody(output.body, context),
|
|
3541
|
-
};
|
|
3542
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3543
|
-
switch (errorCode) {
|
|
3544
|
-
case "ArgumentException":
|
|
3545
|
-
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3546
|
-
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3547
|
-
case "LimitExceededException":
|
|
3548
|
-
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
3549
|
-
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3550
|
-
case "NotFoundException":
|
|
3551
|
-
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3552
|
-
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3553
|
-
case "ServiceAccountException":
|
|
3554
|
-
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3555
|
-
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
3556
|
-
default:
|
|
3557
|
-
const parsedBody = parsedOutput.body;
|
|
3558
|
-
return throwDefaultError({
|
|
3559
|
-
output,
|
|
3560
|
-
parsedBody,
|
|
3561
|
-
errorCode,
|
|
3562
|
-
});
|
|
3563
|
-
}
|
|
3564
|
-
};
|
|
3565
1455
|
export const de_UpdateVPCEConfigurationCommand = async (output, context) => {
|
|
3566
1456
|
if (output.statusCode >= 300) {
|
|
3567
|
-
return
|
|
1457
|
+
return de_CommandError(output, context);
|
|
3568
1458
|
}
|
|
3569
1459
|
const data = await parseBody(output.body, context);
|
|
3570
1460
|
let contents = {};
|
|
@@ -3575,7 +1465,7 @@ export const de_UpdateVPCEConfigurationCommand = async (output, context) => {
|
|
|
3575
1465
|
};
|
|
3576
1466
|
return response;
|
|
3577
1467
|
};
|
|
3578
|
-
const
|
|
1468
|
+
const de_CommandError = async (output, context) => {
|
|
3579
1469
|
const parsedOutput = {
|
|
3580
1470
|
...output,
|
|
3581
1471
|
body: await parseErrorBody(output.body, context),
|
|
@@ -3585,15 +1475,39 @@ const de_UpdateVPCEConfigurationCommandError = async (output, context) => {
|
|
|
3585
1475
|
case "ArgumentException":
|
|
3586
1476
|
case "com.amazonaws.devicefarm#ArgumentException":
|
|
3587
1477
|
throw await de_ArgumentExceptionRes(parsedOutput, context);
|
|
3588
|
-
case "
|
|
3589
|
-
case "com.amazonaws.devicefarm#
|
|
3590
|
-
throw await
|
|
1478
|
+
case "LimitExceededException":
|
|
1479
|
+
case "com.amazonaws.devicefarm#LimitExceededException":
|
|
1480
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
3591
1481
|
case "NotFoundException":
|
|
3592
1482
|
case "com.amazonaws.devicefarm#NotFoundException":
|
|
3593
1483
|
throw await de_NotFoundExceptionRes(parsedOutput, context);
|
|
3594
1484
|
case "ServiceAccountException":
|
|
3595
1485
|
case "com.amazonaws.devicefarm#ServiceAccountException":
|
|
3596
1486
|
throw await de_ServiceAccountExceptionRes(parsedOutput, context);
|
|
1487
|
+
case "TagOperationException":
|
|
1488
|
+
case "com.amazonaws.devicefarm#TagOperationException":
|
|
1489
|
+
throw await de_TagOperationExceptionRes(parsedOutput, context);
|
|
1490
|
+
case "InternalServiceException":
|
|
1491
|
+
case "com.amazonaws.devicefarm#InternalServiceException":
|
|
1492
|
+
throw await de_InternalServiceExceptionRes(parsedOutput, context);
|
|
1493
|
+
case "CannotDeleteException":
|
|
1494
|
+
case "com.amazonaws.devicefarm#CannotDeleteException":
|
|
1495
|
+
throw await de_CannotDeleteExceptionRes(parsedOutput, context);
|
|
1496
|
+
case "InvalidOperationException":
|
|
1497
|
+
case "com.amazonaws.devicefarm#InvalidOperationException":
|
|
1498
|
+
throw await de_InvalidOperationExceptionRes(parsedOutput, context);
|
|
1499
|
+
case "NotEligibleException":
|
|
1500
|
+
case "com.amazonaws.devicefarm#NotEligibleException":
|
|
1501
|
+
throw await de_NotEligibleExceptionRes(parsedOutput, context);
|
|
1502
|
+
case "IdempotencyException":
|
|
1503
|
+
case "com.amazonaws.devicefarm#IdempotencyException":
|
|
1504
|
+
throw await de_IdempotencyExceptionRes(parsedOutput, context);
|
|
1505
|
+
case "TagPolicyException":
|
|
1506
|
+
case "com.amazonaws.devicefarm#TagPolicyException":
|
|
1507
|
+
throw await de_TagPolicyExceptionRes(parsedOutput, context);
|
|
1508
|
+
case "TooManyTagsException":
|
|
1509
|
+
case "com.amazonaws.devicefarm#TooManyTagsException":
|
|
1510
|
+
throw await de_TooManyTagsExceptionRes(parsedOutput, context);
|
|
3597
1511
|
default:
|
|
3598
1512
|
const parsedBody = parsedOutput.body;
|
|
3599
1513
|
return throwDefaultError({
|