@aws-sdk/client-cloud9 3.504.0 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -499,7 +499,7 @@ var se_UpdateEnvironmentMembershipCommand = /* @__PURE__ */ __name(async (input,
499
499
  }, "se_UpdateEnvironmentMembershipCommand");
500
500
  var de_CreateEnvironmentEC2Command = /* @__PURE__ */ __name(async (output, context) => {
501
501
  if (output.statusCode >= 300) {
502
- return de_CreateEnvironmentEC2CommandError(output, context);
502
+ return de_CommandError(output, context);
503
503
  }
504
504
  const data = await parseBody(output.body, context);
505
505
  let contents = {};
@@ -510,46 +510,9 @@ var de_CreateEnvironmentEC2Command = /* @__PURE__ */ __name(async (output, conte
510
510
  };
511
511
  return response;
512
512
  }, "de_CreateEnvironmentEC2Command");
513
- var de_CreateEnvironmentEC2CommandError = /* @__PURE__ */ __name(async (output, context) => {
514
- const parsedOutput = {
515
- ...output,
516
- body: await parseErrorBody(output.body, context)
517
- };
518
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
519
- switch (errorCode) {
520
- case "BadRequestException":
521
- case "com.amazonaws.cloud9#BadRequestException":
522
- throw await de_BadRequestExceptionRes(parsedOutput, context);
523
- case "ConflictException":
524
- case "com.amazonaws.cloud9#ConflictException":
525
- throw await de_ConflictExceptionRes(parsedOutput, context);
526
- case "ForbiddenException":
527
- case "com.amazonaws.cloud9#ForbiddenException":
528
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
529
- case "InternalServerErrorException":
530
- case "com.amazonaws.cloud9#InternalServerErrorException":
531
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
532
- case "LimitExceededException":
533
- case "com.amazonaws.cloud9#LimitExceededException":
534
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
535
- case "NotFoundException":
536
- case "com.amazonaws.cloud9#NotFoundException":
537
- throw await de_NotFoundExceptionRes(parsedOutput, context);
538
- case "TooManyRequestsException":
539
- case "com.amazonaws.cloud9#TooManyRequestsException":
540
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
541
- default:
542
- const parsedBody = parsedOutput.body;
543
- return throwDefaultError({
544
- output,
545
- parsedBody,
546
- errorCode
547
- });
548
- }
549
- }, "de_CreateEnvironmentEC2CommandError");
550
513
  var de_CreateEnvironmentMembershipCommand = /* @__PURE__ */ __name(async (output, context) => {
551
514
  if (output.statusCode >= 300) {
552
- return de_CreateEnvironmentMembershipCommandError(output, context);
515
+ return de_CommandError(output, context);
553
516
  }
554
517
  const data = await parseBody(output.body, context);
555
518
  let contents = {};
@@ -560,46 +523,9 @@ var de_CreateEnvironmentMembershipCommand = /* @__PURE__ */ __name(async (output
560
523
  };
561
524
  return response;
562
525
  }, "de_CreateEnvironmentMembershipCommand");
563
- var de_CreateEnvironmentMembershipCommandError = /* @__PURE__ */ __name(async (output, context) => {
564
- const parsedOutput = {
565
- ...output,
566
- body: await parseErrorBody(output.body, context)
567
- };
568
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
569
- switch (errorCode) {
570
- case "BadRequestException":
571
- case "com.amazonaws.cloud9#BadRequestException":
572
- throw await de_BadRequestExceptionRes(parsedOutput, context);
573
- case "ConflictException":
574
- case "com.amazonaws.cloud9#ConflictException":
575
- throw await de_ConflictExceptionRes(parsedOutput, context);
576
- case "ForbiddenException":
577
- case "com.amazonaws.cloud9#ForbiddenException":
578
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
579
- case "InternalServerErrorException":
580
- case "com.amazonaws.cloud9#InternalServerErrorException":
581
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
582
- case "LimitExceededException":
583
- case "com.amazonaws.cloud9#LimitExceededException":
584
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
585
- case "NotFoundException":
586
- case "com.amazonaws.cloud9#NotFoundException":
587
- throw await de_NotFoundExceptionRes(parsedOutput, context);
588
- case "TooManyRequestsException":
589
- case "com.amazonaws.cloud9#TooManyRequestsException":
590
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
591
- default:
592
- const parsedBody = parsedOutput.body;
593
- return throwDefaultError({
594
- output,
595
- parsedBody,
596
- errorCode
597
- });
598
- }
599
- }, "de_CreateEnvironmentMembershipCommandError");
600
526
  var de_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
601
527
  if (output.statusCode >= 300) {
602
- return de_DeleteEnvironmentCommandError(output, context);
528
+ return de_CommandError(output, context);
603
529
  }
604
530
  const data = await parseBody(output.body, context);
605
531
  let contents = {};
@@ -610,46 +536,9 @@ var de_DeleteEnvironmentCommand = /* @__PURE__ */ __name(async (output, context)
610
536
  };
611
537
  return response;
612
538
  }, "de_DeleteEnvironmentCommand");
613
- var de_DeleteEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
614
- const parsedOutput = {
615
- ...output,
616
- body: await parseErrorBody(output.body, context)
617
- };
618
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
619
- switch (errorCode) {
620
- case "BadRequestException":
621
- case "com.amazonaws.cloud9#BadRequestException":
622
- throw await de_BadRequestExceptionRes(parsedOutput, context);
623
- case "ConflictException":
624
- case "com.amazonaws.cloud9#ConflictException":
625
- throw await de_ConflictExceptionRes(parsedOutput, context);
626
- case "ForbiddenException":
627
- case "com.amazonaws.cloud9#ForbiddenException":
628
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
629
- case "InternalServerErrorException":
630
- case "com.amazonaws.cloud9#InternalServerErrorException":
631
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
632
- case "LimitExceededException":
633
- case "com.amazonaws.cloud9#LimitExceededException":
634
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
635
- case "NotFoundException":
636
- case "com.amazonaws.cloud9#NotFoundException":
637
- throw await de_NotFoundExceptionRes(parsedOutput, context);
638
- case "TooManyRequestsException":
639
- case "com.amazonaws.cloud9#TooManyRequestsException":
640
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
641
- default:
642
- const parsedBody = parsedOutput.body;
643
- return throwDefaultError({
644
- output,
645
- parsedBody,
646
- errorCode
647
- });
648
- }
649
- }, "de_DeleteEnvironmentCommandError");
650
539
  var de_DeleteEnvironmentMembershipCommand = /* @__PURE__ */ __name(async (output, context) => {
651
540
  if (output.statusCode >= 300) {
652
- return de_DeleteEnvironmentMembershipCommandError(output, context);
541
+ return de_CommandError(output, context);
653
542
  }
654
543
  const data = await parseBody(output.body, context);
655
544
  let contents = {};
@@ -660,46 +549,9 @@ var de_DeleteEnvironmentMembershipCommand = /* @__PURE__ */ __name(async (output
660
549
  };
661
550
  return response;
662
551
  }, "de_DeleteEnvironmentMembershipCommand");
663
- var de_DeleteEnvironmentMembershipCommandError = /* @__PURE__ */ __name(async (output, context) => {
664
- const parsedOutput = {
665
- ...output,
666
- body: await parseErrorBody(output.body, context)
667
- };
668
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
669
- switch (errorCode) {
670
- case "BadRequestException":
671
- case "com.amazonaws.cloud9#BadRequestException":
672
- throw await de_BadRequestExceptionRes(parsedOutput, context);
673
- case "ConflictException":
674
- case "com.amazonaws.cloud9#ConflictException":
675
- throw await de_ConflictExceptionRes(parsedOutput, context);
676
- case "ForbiddenException":
677
- case "com.amazonaws.cloud9#ForbiddenException":
678
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
679
- case "InternalServerErrorException":
680
- case "com.amazonaws.cloud9#InternalServerErrorException":
681
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
682
- case "LimitExceededException":
683
- case "com.amazonaws.cloud9#LimitExceededException":
684
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
685
- case "NotFoundException":
686
- case "com.amazonaws.cloud9#NotFoundException":
687
- throw await de_NotFoundExceptionRes(parsedOutput, context);
688
- case "TooManyRequestsException":
689
- case "com.amazonaws.cloud9#TooManyRequestsException":
690
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
691
- default:
692
- const parsedBody = parsedOutput.body;
693
- return throwDefaultError({
694
- output,
695
- parsedBody,
696
- errorCode
697
- });
698
- }
699
- }, "de_DeleteEnvironmentMembershipCommandError");
700
552
  var de_DescribeEnvironmentMembershipsCommand = /* @__PURE__ */ __name(async (output, context) => {
701
553
  if (output.statusCode >= 300) {
702
- return de_DescribeEnvironmentMembershipsCommandError(output, context);
554
+ return de_CommandError(output, context);
703
555
  }
704
556
  const data = await parseBody(output.body, context);
705
557
  let contents = {};
@@ -710,46 +562,9 @@ var de_DescribeEnvironmentMembershipsCommand = /* @__PURE__ */ __name(async (out
710
562
  };
711
563
  return response;
712
564
  }, "de_DescribeEnvironmentMembershipsCommand");
713
- var de_DescribeEnvironmentMembershipsCommandError = /* @__PURE__ */ __name(async (output, context) => {
714
- const parsedOutput = {
715
- ...output,
716
- body: await parseErrorBody(output.body, context)
717
- };
718
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
719
- switch (errorCode) {
720
- case "BadRequestException":
721
- case "com.amazonaws.cloud9#BadRequestException":
722
- throw await de_BadRequestExceptionRes(parsedOutput, context);
723
- case "ConflictException":
724
- case "com.amazonaws.cloud9#ConflictException":
725
- throw await de_ConflictExceptionRes(parsedOutput, context);
726
- case "ForbiddenException":
727
- case "com.amazonaws.cloud9#ForbiddenException":
728
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
729
- case "InternalServerErrorException":
730
- case "com.amazonaws.cloud9#InternalServerErrorException":
731
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
732
- case "LimitExceededException":
733
- case "com.amazonaws.cloud9#LimitExceededException":
734
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
735
- case "NotFoundException":
736
- case "com.amazonaws.cloud9#NotFoundException":
737
- throw await de_NotFoundExceptionRes(parsedOutput, context);
738
- case "TooManyRequestsException":
739
- case "com.amazonaws.cloud9#TooManyRequestsException":
740
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
741
- default:
742
- const parsedBody = parsedOutput.body;
743
- return throwDefaultError({
744
- output,
745
- parsedBody,
746
- errorCode
747
- });
748
- }
749
- }, "de_DescribeEnvironmentMembershipsCommandError");
750
565
  var de_DescribeEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
751
566
  if (output.statusCode >= 300) {
752
- return de_DescribeEnvironmentsCommandError(output, context);
567
+ return de_CommandError(output, context);
753
568
  }
754
569
  const data = await parseBody(output.body, context);
755
570
  let contents = {};
@@ -760,46 +575,9 @@ var de_DescribeEnvironmentsCommand = /* @__PURE__ */ __name(async (output, conte
760
575
  };
761
576
  return response;
762
577
  }, "de_DescribeEnvironmentsCommand");
763
- var de_DescribeEnvironmentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
764
- const parsedOutput = {
765
- ...output,
766
- body: await parseErrorBody(output.body, context)
767
- };
768
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
769
- switch (errorCode) {
770
- case "BadRequestException":
771
- case "com.amazonaws.cloud9#BadRequestException":
772
- throw await de_BadRequestExceptionRes(parsedOutput, context);
773
- case "ConflictException":
774
- case "com.amazonaws.cloud9#ConflictException":
775
- throw await de_ConflictExceptionRes(parsedOutput, context);
776
- case "ForbiddenException":
777
- case "com.amazonaws.cloud9#ForbiddenException":
778
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
779
- case "InternalServerErrorException":
780
- case "com.amazonaws.cloud9#InternalServerErrorException":
781
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
782
- case "LimitExceededException":
783
- case "com.amazonaws.cloud9#LimitExceededException":
784
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
785
- case "NotFoundException":
786
- case "com.amazonaws.cloud9#NotFoundException":
787
- throw await de_NotFoundExceptionRes(parsedOutput, context);
788
- case "TooManyRequestsException":
789
- case "com.amazonaws.cloud9#TooManyRequestsException":
790
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
791
- default:
792
- const parsedBody = parsedOutput.body;
793
- return throwDefaultError({
794
- output,
795
- parsedBody,
796
- errorCode
797
- });
798
- }
799
- }, "de_DescribeEnvironmentsCommandError");
800
578
  var de_DescribeEnvironmentStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
801
579
  if (output.statusCode >= 300) {
802
- return de_DescribeEnvironmentStatusCommandError(output, context);
580
+ return de_CommandError(output, context);
803
581
  }
804
582
  const data = await parseBody(output.body, context);
805
583
  let contents = {};
@@ -810,46 +588,9 @@ var de_DescribeEnvironmentStatusCommand = /* @__PURE__ */ __name(async (output,
810
588
  };
811
589
  return response;
812
590
  }, "de_DescribeEnvironmentStatusCommand");
813
- var de_DescribeEnvironmentStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
814
- const parsedOutput = {
815
- ...output,
816
- body: await parseErrorBody(output.body, context)
817
- };
818
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
819
- switch (errorCode) {
820
- case "BadRequestException":
821
- case "com.amazonaws.cloud9#BadRequestException":
822
- throw await de_BadRequestExceptionRes(parsedOutput, context);
823
- case "ConflictException":
824
- case "com.amazonaws.cloud9#ConflictException":
825
- throw await de_ConflictExceptionRes(parsedOutput, context);
826
- case "ForbiddenException":
827
- case "com.amazonaws.cloud9#ForbiddenException":
828
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
829
- case "InternalServerErrorException":
830
- case "com.amazonaws.cloud9#InternalServerErrorException":
831
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
832
- case "LimitExceededException":
833
- case "com.amazonaws.cloud9#LimitExceededException":
834
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
835
- case "NotFoundException":
836
- case "com.amazonaws.cloud9#NotFoundException":
837
- throw await de_NotFoundExceptionRes(parsedOutput, context);
838
- case "TooManyRequestsException":
839
- case "com.amazonaws.cloud9#TooManyRequestsException":
840
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
841
- default:
842
- const parsedBody = parsedOutput.body;
843
- return throwDefaultError({
844
- output,
845
- parsedBody,
846
- errorCode
847
- });
848
- }
849
- }, "de_DescribeEnvironmentStatusCommandError");
850
591
  var de_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
851
592
  if (output.statusCode >= 300) {
852
- return de_ListEnvironmentsCommandError(output, context);
593
+ return de_CommandError(output, context);
853
594
  }
854
595
  const data = await parseBody(output.body, context);
855
596
  let contents = {};
@@ -860,46 +601,9 @@ var de_ListEnvironmentsCommand = /* @__PURE__ */ __name(async (output, context)
860
601
  };
861
602
  return response;
862
603
  }, "de_ListEnvironmentsCommand");
863
- var de_ListEnvironmentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
864
- const parsedOutput = {
865
- ...output,
866
- body: await parseErrorBody(output.body, context)
867
- };
868
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
869
- switch (errorCode) {
870
- case "BadRequestException":
871
- case "com.amazonaws.cloud9#BadRequestException":
872
- throw await de_BadRequestExceptionRes(parsedOutput, context);
873
- case "ConflictException":
874
- case "com.amazonaws.cloud9#ConflictException":
875
- throw await de_ConflictExceptionRes(parsedOutput, context);
876
- case "ForbiddenException":
877
- case "com.amazonaws.cloud9#ForbiddenException":
878
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
879
- case "InternalServerErrorException":
880
- case "com.amazonaws.cloud9#InternalServerErrorException":
881
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
882
- case "LimitExceededException":
883
- case "com.amazonaws.cloud9#LimitExceededException":
884
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
885
- case "NotFoundException":
886
- case "com.amazonaws.cloud9#NotFoundException":
887
- throw await de_NotFoundExceptionRes(parsedOutput, context);
888
- case "TooManyRequestsException":
889
- case "com.amazonaws.cloud9#TooManyRequestsException":
890
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
891
- default:
892
- const parsedBody = parsedOutput.body;
893
- return throwDefaultError({
894
- output,
895
- parsedBody,
896
- errorCode
897
- });
898
- }
899
- }, "de_ListEnvironmentsCommandError");
900
604
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
901
605
  if (output.statusCode >= 300) {
902
- return de_ListTagsForResourceCommandError(output, context);
606
+ return de_CommandError(output, context);
903
607
  }
904
608
  const data = await parseBody(output.body, context);
905
609
  let contents = {};
@@ -910,34 +614,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
910
614
  };
911
615
  return response;
912
616
  }, "de_ListTagsForResourceCommand");
913
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
914
- const parsedOutput = {
915
- ...output,
916
- body: await parseErrorBody(output.body, context)
917
- };
918
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
919
- switch (errorCode) {
920
- case "BadRequestException":
921
- case "com.amazonaws.cloud9#BadRequestException":
922
- throw await de_BadRequestExceptionRes(parsedOutput, context);
923
- case "InternalServerErrorException":
924
- case "com.amazonaws.cloud9#InternalServerErrorException":
925
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
926
- case "NotFoundException":
927
- case "com.amazonaws.cloud9#NotFoundException":
928
- throw await de_NotFoundExceptionRes(parsedOutput, context);
929
- default:
930
- const parsedBody = parsedOutput.body;
931
- return throwDefaultError({
932
- output,
933
- parsedBody,
934
- errorCode
935
- });
936
- }
937
- }, "de_ListTagsForResourceCommandError");
938
617
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
939
618
  if (output.statusCode >= 300) {
940
- return de_TagResourceCommandError(output, context);
619
+ return de_CommandError(output, context);
941
620
  }
942
621
  const data = await parseBody(output.body, context);
943
622
  let contents = {};
@@ -948,37 +627,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
948
627
  };
949
628
  return response;
950
629
  }, "de_TagResourceCommand");
951
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
952
- const parsedOutput = {
953
- ...output,
954
- body: await parseErrorBody(output.body, context)
955
- };
956
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
957
- switch (errorCode) {
958
- case "BadRequestException":
959
- case "com.amazonaws.cloud9#BadRequestException":
960
- throw await de_BadRequestExceptionRes(parsedOutput, context);
961
- case "ConcurrentAccessException":
962
- case "com.amazonaws.cloud9#ConcurrentAccessException":
963
- throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
964
- case "InternalServerErrorException":
965
- case "com.amazonaws.cloud9#InternalServerErrorException":
966
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
967
- case "NotFoundException":
968
- case "com.amazonaws.cloud9#NotFoundException":
969
- throw await de_NotFoundExceptionRes(parsedOutput, context);
970
- default:
971
- const parsedBody = parsedOutput.body;
972
- return throwDefaultError({
973
- output,
974
- parsedBody,
975
- errorCode
976
- });
977
- }
978
- }, "de_TagResourceCommandError");
979
630
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
980
631
  if (output.statusCode >= 300) {
981
- return de_UntagResourceCommandError(output, context);
632
+ return de_CommandError(output, context);
982
633
  }
983
634
  const data = await parseBody(output.body, context);
984
635
  let contents = {};
@@ -989,37 +640,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
989
640
  };
990
641
  return response;
991
642
  }, "de_UntagResourceCommand");
992
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
993
- const parsedOutput = {
994
- ...output,
995
- body: await parseErrorBody(output.body, context)
996
- };
997
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
998
- switch (errorCode) {
999
- case "BadRequestException":
1000
- case "com.amazonaws.cloud9#BadRequestException":
1001
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1002
- case "ConcurrentAccessException":
1003
- case "com.amazonaws.cloud9#ConcurrentAccessException":
1004
- throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
1005
- case "InternalServerErrorException":
1006
- case "com.amazonaws.cloud9#InternalServerErrorException":
1007
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1008
- case "NotFoundException":
1009
- case "com.amazonaws.cloud9#NotFoundException":
1010
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1011
- default:
1012
- const parsedBody = parsedOutput.body;
1013
- return throwDefaultError({
1014
- output,
1015
- parsedBody,
1016
- errorCode
1017
- });
1018
- }
1019
- }, "de_UntagResourceCommandError");
1020
643
  var de_UpdateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1021
644
  if (output.statusCode >= 300) {
1022
- return de_UpdateEnvironmentCommandError(output, context);
645
+ return de_CommandError(output, context);
1023
646
  }
1024
647
  const data = await parseBody(output.body, context);
1025
648
  let contents = {};
@@ -1030,46 +653,9 @@ var de_UpdateEnvironmentCommand = /* @__PURE__ */ __name(async (output, context)
1030
653
  };
1031
654
  return response;
1032
655
  }, "de_UpdateEnvironmentCommand");
1033
- var de_UpdateEnvironmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1034
- const parsedOutput = {
1035
- ...output,
1036
- body: await parseErrorBody(output.body, context)
1037
- };
1038
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1039
- switch (errorCode) {
1040
- case "BadRequestException":
1041
- case "com.amazonaws.cloud9#BadRequestException":
1042
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1043
- case "ConflictException":
1044
- case "com.amazonaws.cloud9#ConflictException":
1045
- throw await de_ConflictExceptionRes(parsedOutput, context);
1046
- case "ForbiddenException":
1047
- case "com.amazonaws.cloud9#ForbiddenException":
1048
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1049
- case "InternalServerErrorException":
1050
- case "com.amazonaws.cloud9#InternalServerErrorException":
1051
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1052
- case "LimitExceededException":
1053
- case "com.amazonaws.cloud9#LimitExceededException":
1054
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1055
- case "NotFoundException":
1056
- case "com.amazonaws.cloud9#NotFoundException":
1057
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1058
- case "TooManyRequestsException":
1059
- case "com.amazonaws.cloud9#TooManyRequestsException":
1060
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1061
- default:
1062
- const parsedBody = parsedOutput.body;
1063
- return throwDefaultError({
1064
- output,
1065
- parsedBody,
1066
- errorCode
1067
- });
1068
- }
1069
- }, "de_UpdateEnvironmentCommandError");
1070
656
  var de_UpdateEnvironmentMembershipCommand = /* @__PURE__ */ __name(async (output, context) => {
1071
657
  if (output.statusCode >= 300) {
1072
- return de_UpdateEnvironmentMembershipCommandError(output, context);
658
+ return de_CommandError(output, context);
1073
659
  }
1074
660
  const data = await parseBody(output.body, context);
1075
661
  let contents = {};
@@ -1080,7 +666,7 @@ var de_UpdateEnvironmentMembershipCommand = /* @__PURE__ */ __name(async (output
1080
666
  };
1081
667
  return response;
1082
668
  }, "de_UpdateEnvironmentMembershipCommand");
1083
- var de_UpdateEnvironmentMembershipCommandError = /* @__PURE__ */ __name(async (output, context) => {
669
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1084
670
  const parsedOutput = {
1085
671
  ...output,
1086
672
  body: await parseErrorBody(output.body, context)
@@ -1108,6 +694,9 @@ var de_UpdateEnvironmentMembershipCommandError = /* @__PURE__ */ __name(async (o
1108
694
  case "TooManyRequestsException":
1109
695
  case "com.amazonaws.cloud9#TooManyRequestsException":
1110
696
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
697
+ case "ConcurrentAccessException":
698
+ case "com.amazonaws.cloud9#ConcurrentAccessException":
699
+ throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
1111
700
  default:
1112
701
  const parsedBody = parsedOutput.body;
1113
702
  return throwDefaultError({
@@ -1116,7 +705,7 @@ var de_UpdateEnvironmentMembershipCommandError = /* @__PURE__ */ __name(async (o
1116
705
  errorCode
1117
706
  });
1118
707
  }
1119
- }, "de_UpdateEnvironmentMembershipCommandError");
708
+ }, "de_CommandError");
1120
709
  var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1121
710
  const body = parsedOutput.body;
1122
711
  const deserialized = (0, import_smithy_client._json)(body);
@@ -82,7 +82,7 @@ export const se_UpdateEnvironmentMembershipCommand = async (input, context) => {
82
82
  };
83
83
  export const de_CreateEnvironmentEC2Command = async (output, context) => {
84
84
  if (output.statusCode >= 300) {
85
- return de_CreateEnvironmentEC2CommandError(output, context);
85
+ return de_CommandError(output, context);
86
86
  }
87
87
  const data = await parseBody(output.body, context);
88
88
  let contents = {};
@@ -93,46 +93,9 @@ export const de_CreateEnvironmentEC2Command = async (output, context) => {
93
93
  };
94
94
  return response;
95
95
  };
96
- const de_CreateEnvironmentEC2CommandError = async (output, context) => {
97
- const parsedOutput = {
98
- ...output,
99
- body: await parseErrorBody(output.body, context),
100
- };
101
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
102
- switch (errorCode) {
103
- case "BadRequestException":
104
- case "com.amazonaws.cloud9#BadRequestException":
105
- throw await de_BadRequestExceptionRes(parsedOutput, context);
106
- case "ConflictException":
107
- case "com.amazonaws.cloud9#ConflictException":
108
- throw await de_ConflictExceptionRes(parsedOutput, context);
109
- case "ForbiddenException":
110
- case "com.amazonaws.cloud9#ForbiddenException":
111
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
112
- case "InternalServerErrorException":
113
- case "com.amazonaws.cloud9#InternalServerErrorException":
114
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
115
- case "LimitExceededException":
116
- case "com.amazonaws.cloud9#LimitExceededException":
117
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
118
- case "NotFoundException":
119
- case "com.amazonaws.cloud9#NotFoundException":
120
- throw await de_NotFoundExceptionRes(parsedOutput, context);
121
- case "TooManyRequestsException":
122
- case "com.amazonaws.cloud9#TooManyRequestsException":
123
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
124
- default:
125
- const parsedBody = parsedOutput.body;
126
- return throwDefaultError({
127
- output,
128
- parsedBody,
129
- errorCode,
130
- });
131
- }
132
- };
133
96
  export const de_CreateEnvironmentMembershipCommand = async (output, context) => {
134
97
  if (output.statusCode >= 300) {
135
- return de_CreateEnvironmentMembershipCommandError(output, context);
98
+ return de_CommandError(output, context);
136
99
  }
137
100
  const data = await parseBody(output.body, context);
138
101
  let contents = {};
@@ -143,46 +106,9 @@ export const de_CreateEnvironmentMembershipCommand = async (output, context) =>
143
106
  };
144
107
  return response;
145
108
  };
146
- const de_CreateEnvironmentMembershipCommandError = async (output, context) => {
147
- const parsedOutput = {
148
- ...output,
149
- body: await parseErrorBody(output.body, context),
150
- };
151
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
152
- switch (errorCode) {
153
- case "BadRequestException":
154
- case "com.amazonaws.cloud9#BadRequestException":
155
- throw await de_BadRequestExceptionRes(parsedOutput, context);
156
- case "ConflictException":
157
- case "com.amazonaws.cloud9#ConflictException":
158
- throw await de_ConflictExceptionRes(parsedOutput, context);
159
- case "ForbiddenException":
160
- case "com.amazonaws.cloud9#ForbiddenException":
161
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
162
- case "InternalServerErrorException":
163
- case "com.amazonaws.cloud9#InternalServerErrorException":
164
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
165
- case "LimitExceededException":
166
- case "com.amazonaws.cloud9#LimitExceededException":
167
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
168
- case "NotFoundException":
169
- case "com.amazonaws.cloud9#NotFoundException":
170
- throw await de_NotFoundExceptionRes(parsedOutput, context);
171
- case "TooManyRequestsException":
172
- case "com.amazonaws.cloud9#TooManyRequestsException":
173
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
174
- default:
175
- const parsedBody = parsedOutput.body;
176
- return throwDefaultError({
177
- output,
178
- parsedBody,
179
- errorCode,
180
- });
181
- }
182
- };
183
109
  export const de_DeleteEnvironmentCommand = async (output, context) => {
184
110
  if (output.statusCode >= 300) {
185
- return de_DeleteEnvironmentCommandError(output, context);
111
+ return de_CommandError(output, context);
186
112
  }
187
113
  const data = await parseBody(output.body, context);
188
114
  let contents = {};
@@ -193,46 +119,9 @@ export const de_DeleteEnvironmentCommand = async (output, context) => {
193
119
  };
194
120
  return response;
195
121
  };
196
- const de_DeleteEnvironmentCommandError = async (output, context) => {
197
- const parsedOutput = {
198
- ...output,
199
- body: await parseErrorBody(output.body, context),
200
- };
201
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
202
- switch (errorCode) {
203
- case "BadRequestException":
204
- case "com.amazonaws.cloud9#BadRequestException":
205
- throw await de_BadRequestExceptionRes(parsedOutput, context);
206
- case "ConflictException":
207
- case "com.amazonaws.cloud9#ConflictException":
208
- throw await de_ConflictExceptionRes(parsedOutput, context);
209
- case "ForbiddenException":
210
- case "com.amazonaws.cloud9#ForbiddenException":
211
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
212
- case "InternalServerErrorException":
213
- case "com.amazonaws.cloud9#InternalServerErrorException":
214
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
215
- case "LimitExceededException":
216
- case "com.amazonaws.cloud9#LimitExceededException":
217
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
218
- case "NotFoundException":
219
- case "com.amazonaws.cloud9#NotFoundException":
220
- throw await de_NotFoundExceptionRes(parsedOutput, context);
221
- case "TooManyRequestsException":
222
- case "com.amazonaws.cloud9#TooManyRequestsException":
223
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
224
- default:
225
- const parsedBody = parsedOutput.body;
226
- return throwDefaultError({
227
- output,
228
- parsedBody,
229
- errorCode,
230
- });
231
- }
232
- };
233
122
  export const de_DeleteEnvironmentMembershipCommand = async (output, context) => {
234
123
  if (output.statusCode >= 300) {
235
- return de_DeleteEnvironmentMembershipCommandError(output, context);
124
+ return de_CommandError(output, context);
236
125
  }
237
126
  const data = await parseBody(output.body, context);
238
127
  let contents = {};
@@ -243,46 +132,9 @@ export const de_DeleteEnvironmentMembershipCommand = async (output, context) =>
243
132
  };
244
133
  return response;
245
134
  };
246
- const de_DeleteEnvironmentMembershipCommandError = async (output, context) => {
247
- const parsedOutput = {
248
- ...output,
249
- body: await parseErrorBody(output.body, context),
250
- };
251
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
252
- switch (errorCode) {
253
- case "BadRequestException":
254
- case "com.amazonaws.cloud9#BadRequestException":
255
- throw await de_BadRequestExceptionRes(parsedOutput, context);
256
- case "ConflictException":
257
- case "com.amazonaws.cloud9#ConflictException":
258
- throw await de_ConflictExceptionRes(parsedOutput, context);
259
- case "ForbiddenException":
260
- case "com.amazonaws.cloud9#ForbiddenException":
261
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
262
- case "InternalServerErrorException":
263
- case "com.amazonaws.cloud9#InternalServerErrorException":
264
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
265
- case "LimitExceededException":
266
- case "com.amazonaws.cloud9#LimitExceededException":
267
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
268
- case "NotFoundException":
269
- case "com.amazonaws.cloud9#NotFoundException":
270
- throw await de_NotFoundExceptionRes(parsedOutput, context);
271
- case "TooManyRequestsException":
272
- case "com.amazonaws.cloud9#TooManyRequestsException":
273
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
274
- default:
275
- const parsedBody = parsedOutput.body;
276
- return throwDefaultError({
277
- output,
278
- parsedBody,
279
- errorCode,
280
- });
281
- }
282
- };
283
135
  export const de_DescribeEnvironmentMembershipsCommand = async (output, context) => {
284
136
  if (output.statusCode >= 300) {
285
- return de_DescribeEnvironmentMembershipsCommandError(output, context);
137
+ return de_CommandError(output, context);
286
138
  }
287
139
  const data = await parseBody(output.body, context);
288
140
  let contents = {};
@@ -293,46 +145,9 @@ export const de_DescribeEnvironmentMembershipsCommand = async (output, context)
293
145
  };
294
146
  return response;
295
147
  };
296
- const de_DescribeEnvironmentMembershipsCommandError = async (output, context) => {
297
- const parsedOutput = {
298
- ...output,
299
- body: await parseErrorBody(output.body, context),
300
- };
301
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
302
- switch (errorCode) {
303
- case "BadRequestException":
304
- case "com.amazonaws.cloud9#BadRequestException":
305
- throw await de_BadRequestExceptionRes(parsedOutput, context);
306
- case "ConflictException":
307
- case "com.amazonaws.cloud9#ConflictException":
308
- throw await de_ConflictExceptionRes(parsedOutput, context);
309
- case "ForbiddenException":
310
- case "com.amazonaws.cloud9#ForbiddenException":
311
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
312
- case "InternalServerErrorException":
313
- case "com.amazonaws.cloud9#InternalServerErrorException":
314
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
315
- case "LimitExceededException":
316
- case "com.amazonaws.cloud9#LimitExceededException":
317
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
318
- case "NotFoundException":
319
- case "com.amazonaws.cloud9#NotFoundException":
320
- throw await de_NotFoundExceptionRes(parsedOutput, context);
321
- case "TooManyRequestsException":
322
- case "com.amazonaws.cloud9#TooManyRequestsException":
323
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
324
- default:
325
- const parsedBody = parsedOutput.body;
326
- return throwDefaultError({
327
- output,
328
- parsedBody,
329
- errorCode,
330
- });
331
- }
332
- };
333
148
  export const de_DescribeEnvironmentsCommand = async (output, context) => {
334
149
  if (output.statusCode >= 300) {
335
- return de_DescribeEnvironmentsCommandError(output, context);
150
+ return de_CommandError(output, context);
336
151
  }
337
152
  const data = await parseBody(output.body, context);
338
153
  let contents = {};
@@ -343,46 +158,9 @@ export const de_DescribeEnvironmentsCommand = async (output, context) => {
343
158
  };
344
159
  return response;
345
160
  };
346
- const de_DescribeEnvironmentsCommandError = async (output, context) => {
347
- const parsedOutput = {
348
- ...output,
349
- body: await parseErrorBody(output.body, context),
350
- };
351
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
352
- switch (errorCode) {
353
- case "BadRequestException":
354
- case "com.amazonaws.cloud9#BadRequestException":
355
- throw await de_BadRequestExceptionRes(parsedOutput, context);
356
- case "ConflictException":
357
- case "com.amazonaws.cloud9#ConflictException":
358
- throw await de_ConflictExceptionRes(parsedOutput, context);
359
- case "ForbiddenException":
360
- case "com.amazonaws.cloud9#ForbiddenException":
361
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
362
- case "InternalServerErrorException":
363
- case "com.amazonaws.cloud9#InternalServerErrorException":
364
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
365
- case "LimitExceededException":
366
- case "com.amazonaws.cloud9#LimitExceededException":
367
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
368
- case "NotFoundException":
369
- case "com.amazonaws.cloud9#NotFoundException":
370
- throw await de_NotFoundExceptionRes(parsedOutput, context);
371
- case "TooManyRequestsException":
372
- case "com.amazonaws.cloud9#TooManyRequestsException":
373
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
374
- default:
375
- const parsedBody = parsedOutput.body;
376
- return throwDefaultError({
377
- output,
378
- parsedBody,
379
- errorCode,
380
- });
381
- }
382
- };
383
161
  export const de_DescribeEnvironmentStatusCommand = async (output, context) => {
384
162
  if (output.statusCode >= 300) {
385
- return de_DescribeEnvironmentStatusCommandError(output, context);
163
+ return de_CommandError(output, context);
386
164
  }
387
165
  const data = await parseBody(output.body, context);
388
166
  let contents = {};
@@ -393,46 +171,9 @@ export const de_DescribeEnvironmentStatusCommand = async (output, context) => {
393
171
  };
394
172
  return response;
395
173
  };
396
- const de_DescribeEnvironmentStatusCommandError = async (output, context) => {
397
- const parsedOutput = {
398
- ...output,
399
- body: await parseErrorBody(output.body, context),
400
- };
401
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
402
- switch (errorCode) {
403
- case "BadRequestException":
404
- case "com.amazonaws.cloud9#BadRequestException":
405
- throw await de_BadRequestExceptionRes(parsedOutput, context);
406
- case "ConflictException":
407
- case "com.amazonaws.cloud9#ConflictException":
408
- throw await de_ConflictExceptionRes(parsedOutput, context);
409
- case "ForbiddenException":
410
- case "com.amazonaws.cloud9#ForbiddenException":
411
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
412
- case "InternalServerErrorException":
413
- case "com.amazonaws.cloud9#InternalServerErrorException":
414
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
415
- case "LimitExceededException":
416
- case "com.amazonaws.cloud9#LimitExceededException":
417
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
418
- case "NotFoundException":
419
- case "com.amazonaws.cloud9#NotFoundException":
420
- throw await de_NotFoundExceptionRes(parsedOutput, context);
421
- case "TooManyRequestsException":
422
- case "com.amazonaws.cloud9#TooManyRequestsException":
423
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
424
- default:
425
- const parsedBody = parsedOutput.body;
426
- return throwDefaultError({
427
- output,
428
- parsedBody,
429
- errorCode,
430
- });
431
- }
432
- };
433
174
  export const de_ListEnvironmentsCommand = async (output, context) => {
434
175
  if (output.statusCode >= 300) {
435
- return de_ListEnvironmentsCommandError(output, context);
176
+ return de_CommandError(output, context);
436
177
  }
437
178
  const data = await parseBody(output.body, context);
438
179
  let contents = {};
@@ -443,46 +184,9 @@ export const de_ListEnvironmentsCommand = async (output, context) => {
443
184
  };
444
185
  return response;
445
186
  };
446
- const de_ListEnvironmentsCommandError = async (output, context) => {
447
- const parsedOutput = {
448
- ...output,
449
- body: await parseErrorBody(output.body, context),
450
- };
451
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
452
- switch (errorCode) {
453
- case "BadRequestException":
454
- case "com.amazonaws.cloud9#BadRequestException":
455
- throw await de_BadRequestExceptionRes(parsedOutput, context);
456
- case "ConflictException":
457
- case "com.amazonaws.cloud9#ConflictException":
458
- throw await de_ConflictExceptionRes(parsedOutput, context);
459
- case "ForbiddenException":
460
- case "com.amazonaws.cloud9#ForbiddenException":
461
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
462
- case "InternalServerErrorException":
463
- case "com.amazonaws.cloud9#InternalServerErrorException":
464
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
465
- case "LimitExceededException":
466
- case "com.amazonaws.cloud9#LimitExceededException":
467
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
468
- case "NotFoundException":
469
- case "com.amazonaws.cloud9#NotFoundException":
470
- throw await de_NotFoundExceptionRes(parsedOutput, context);
471
- case "TooManyRequestsException":
472
- case "com.amazonaws.cloud9#TooManyRequestsException":
473
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
474
- default:
475
- const parsedBody = parsedOutput.body;
476
- return throwDefaultError({
477
- output,
478
- parsedBody,
479
- errorCode,
480
- });
481
- }
482
- };
483
187
  export const de_ListTagsForResourceCommand = async (output, context) => {
484
188
  if (output.statusCode >= 300) {
485
- return de_ListTagsForResourceCommandError(output, context);
189
+ return de_CommandError(output, context);
486
190
  }
487
191
  const data = await parseBody(output.body, context);
488
192
  let contents = {};
@@ -493,34 +197,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
493
197
  };
494
198
  return response;
495
199
  };
496
- const de_ListTagsForResourceCommandError = async (output, context) => {
497
- const parsedOutput = {
498
- ...output,
499
- body: await parseErrorBody(output.body, context),
500
- };
501
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
502
- switch (errorCode) {
503
- case "BadRequestException":
504
- case "com.amazonaws.cloud9#BadRequestException":
505
- throw await de_BadRequestExceptionRes(parsedOutput, context);
506
- case "InternalServerErrorException":
507
- case "com.amazonaws.cloud9#InternalServerErrorException":
508
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
509
- case "NotFoundException":
510
- case "com.amazonaws.cloud9#NotFoundException":
511
- throw await de_NotFoundExceptionRes(parsedOutput, context);
512
- default:
513
- const parsedBody = parsedOutput.body;
514
- return throwDefaultError({
515
- output,
516
- parsedBody,
517
- errorCode,
518
- });
519
- }
520
- };
521
200
  export const de_TagResourceCommand = async (output, context) => {
522
201
  if (output.statusCode >= 300) {
523
- return de_TagResourceCommandError(output, context);
202
+ return de_CommandError(output, context);
524
203
  }
525
204
  const data = await parseBody(output.body, context);
526
205
  let contents = {};
@@ -531,37 +210,9 @@ export const de_TagResourceCommand = async (output, context) => {
531
210
  };
532
211
  return response;
533
212
  };
534
- const de_TagResourceCommandError = async (output, context) => {
535
- const parsedOutput = {
536
- ...output,
537
- body: await parseErrorBody(output.body, context),
538
- };
539
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
540
- switch (errorCode) {
541
- case "BadRequestException":
542
- case "com.amazonaws.cloud9#BadRequestException":
543
- throw await de_BadRequestExceptionRes(parsedOutput, context);
544
- case "ConcurrentAccessException":
545
- case "com.amazonaws.cloud9#ConcurrentAccessException":
546
- throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
547
- case "InternalServerErrorException":
548
- case "com.amazonaws.cloud9#InternalServerErrorException":
549
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
550
- case "NotFoundException":
551
- case "com.amazonaws.cloud9#NotFoundException":
552
- throw await de_NotFoundExceptionRes(parsedOutput, context);
553
- default:
554
- const parsedBody = parsedOutput.body;
555
- return throwDefaultError({
556
- output,
557
- parsedBody,
558
- errorCode,
559
- });
560
- }
561
- };
562
213
  export const de_UntagResourceCommand = async (output, context) => {
563
214
  if (output.statusCode >= 300) {
564
- return de_UntagResourceCommandError(output, context);
215
+ return de_CommandError(output, context);
565
216
  }
566
217
  const data = await parseBody(output.body, context);
567
218
  let contents = {};
@@ -572,37 +223,9 @@ export const de_UntagResourceCommand = async (output, context) => {
572
223
  };
573
224
  return response;
574
225
  };
575
- const de_UntagResourceCommandError = async (output, context) => {
576
- const parsedOutput = {
577
- ...output,
578
- body: await parseErrorBody(output.body, context),
579
- };
580
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
581
- switch (errorCode) {
582
- case "BadRequestException":
583
- case "com.amazonaws.cloud9#BadRequestException":
584
- throw await de_BadRequestExceptionRes(parsedOutput, context);
585
- case "ConcurrentAccessException":
586
- case "com.amazonaws.cloud9#ConcurrentAccessException":
587
- throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
588
- case "InternalServerErrorException":
589
- case "com.amazonaws.cloud9#InternalServerErrorException":
590
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
591
- case "NotFoundException":
592
- case "com.amazonaws.cloud9#NotFoundException":
593
- throw await de_NotFoundExceptionRes(parsedOutput, context);
594
- default:
595
- const parsedBody = parsedOutput.body;
596
- return throwDefaultError({
597
- output,
598
- parsedBody,
599
- errorCode,
600
- });
601
- }
602
- };
603
226
  export const de_UpdateEnvironmentCommand = async (output, context) => {
604
227
  if (output.statusCode >= 300) {
605
- return de_UpdateEnvironmentCommandError(output, context);
228
+ return de_CommandError(output, context);
606
229
  }
607
230
  const data = await parseBody(output.body, context);
608
231
  let contents = {};
@@ -613,46 +236,9 @@ export const de_UpdateEnvironmentCommand = async (output, context) => {
613
236
  };
614
237
  return response;
615
238
  };
616
- const de_UpdateEnvironmentCommandError = async (output, context) => {
617
- const parsedOutput = {
618
- ...output,
619
- body: await parseErrorBody(output.body, context),
620
- };
621
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
622
- switch (errorCode) {
623
- case "BadRequestException":
624
- case "com.amazonaws.cloud9#BadRequestException":
625
- throw await de_BadRequestExceptionRes(parsedOutput, context);
626
- case "ConflictException":
627
- case "com.amazonaws.cloud9#ConflictException":
628
- throw await de_ConflictExceptionRes(parsedOutput, context);
629
- case "ForbiddenException":
630
- case "com.amazonaws.cloud9#ForbiddenException":
631
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
632
- case "InternalServerErrorException":
633
- case "com.amazonaws.cloud9#InternalServerErrorException":
634
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
635
- case "LimitExceededException":
636
- case "com.amazonaws.cloud9#LimitExceededException":
637
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
638
- case "NotFoundException":
639
- case "com.amazonaws.cloud9#NotFoundException":
640
- throw await de_NotFoundExceptionRes(parsedOutput, context);
641
- case "TooManyRequestsException":
642
- case "com.amazonaws.cloud9#TooManyRequestsException":
643
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
644
- default:
645
- const parsedBody = parsedOutput.body;
646
- return throwDefaultError({
647
- output,
648
- parsedBody,
649
- errorCode,
650
- });
651
- }
652
- };
653
239
  export const de_UpdateEnvironmentMembershipCommand = async (output, context) => {
654
240
  if (output.statusCode >= 300) {
655
- return de_UpdateEnvironmentMembershipCommandError(output, context);
241
+ return de_CommandError(output, context);
656
242
  }
657
243
  const data = await parseBody(output.body, context);
658
244
  let contents = {};
@@ -663,7 +249,7 @@ export const de_UpdateEnvironmentMembershipCommand = async (output, context) =>
663
249
  };
664
250
  return response;
665
251
  };
666
- const de_UpdateEnvironmentMembershipCommandError = async (output, context) => {
252
+ const de_CommandError = async (output, context) => {
667
253
  const parsedOutput = {
668
254
  ...output,
669
255
  body: await parseErrorBody(output.body, context),
@@ -691,6 +277,9 @@ const de_UpdateEnvironmentMembershipCommandError = async (output, context) => {
691
277
  case "TooManyRequestsException":
692
278
  case "com.amazonaws.cloud9#TooManyRequestsException":
693
279
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
280
+ case "ConcurrentAccessException":
281
+ case "com.amazonaws.cloud9#ConcurrentAccessException":
282
+ throw await de_ConcurrentAccessExceptionRes(parsedOutput, context);
694
283
  default:
695
284
  const parsedBody = parsedOutput.body;
696
285
  return throwDefaultError({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-cloud9",
3
3
  "description": "AWS SDK for JavaScript Cloud9 Client for Node.js, Browser and React Native",
4
- "version": "3.504.0",
4
+ "version": "3.507.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-cloud9",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.504.0",
23
+ "@aws-sdk/client-sts": "3.507.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.504.0",
25
+ "@aws-sdk/credential-provider-node": "3.507.0",
26
26
  "@aws-sdk/middleware-host-header": "3.502.0",
27
27
  "@aws-sdk/middleware-logger": "3.502.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.502.0",