@aws-sdk/client-repostspace 3.503.1 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -517,7 +517,7 @@ var se_UpdateSpaceCommand = /* @__PURE__ */ __name(async (input, context) => {
517
517
  }, "se_UpdateSpaceCommand");
518
518
  var de_CreateSpaceCommand = /* @__PURE__ */ __name(async (output, context) => {
519
519
  if (output.statusCode !== 200 && output.statusCode >= 300) {
520
- return de_CreateSpaceCommandError(output, context);
520
+ return de_CommandError(output, context);
521
521
  }
522
522
  const contents = (0, import_smithy_client.map)({
523
523
  $metadata: deserializeMetadata(output)
@@ -529,46 +529,9 @@ var de_CreateSpaceCommand = /* @__PURE__ */ __name(async (output, context) => {
529
529
  Object.assign(contents, doc);
530
530
  return contents;
531
531
  }, "de_CreateSpaceCommand");
532
- var de_CreateSpaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
533
- const parsedOutput = {
534
- ...output,
535
- body: await parseErrorBody(output.body, context)
536
- };
537
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
538
- switch (errorCode) {
539
- case "AccessDeniedException":
540
- case "com.amazonaws.repostspace#AccessDeniedException":
541
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
542
- case "ConflictException":
543
- case "com.amazonaws.repostspace#ConflictException":
544
- throw await de_ConflictExceptionRes(parsedOutput, context);
545
- case "InternalServerException":
546
- case "com.amazonaws.repostspace#InternalServerException":
547
- throw await de_InternalServerExceptionRes(parsedOutput, context);
548
- case "ResourceNotFoundException":
549
- case "com.amazonaws.repostspace#ResourceNotFoundException":
550
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
551
- case "ServiceQuotaExceededException":
552
- case "com.amazonaws.repostspace#ServiceQuotaExceededException":
553
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
554
- case "ThrottlingException":
555
- case "com.amazonaws.repostspace#ThrottlingException":
556
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
557
- case "ValidationException":
558
- case "com.amazonaws.repostspace#ValidationException":
559
- throw await de_ValidationExceptionRes(parsedOutput, context);
560
- default:
561
- const parsedBody = parsedOutput.body;
562
- return throwDefaultError({
563
- output,
564
- parsedBody,
565
- errorCode
566
- });
567
- }
568
- }, "de_CreateSpaceCommandError");
569
532
  var de_DeleteSpaceCommand = /* @__PURE__ */ __name(async (output, context) => {
570
533
  if (output.statusCode !== 200 && output.statusCode >= 300) {
571
- return de_DeleteSpaceCommandError(output, context);
534
+ return de_CommandError(output, context);
572
535
  }
573
536
  const contents = (0, import_smithy_client.map)({
574
537
  $metadata: deserializeMetadata(output)
@@ -576,40 +539,9 @@ var de_DeleteSpaceCommand = /* @__PURE__ */ __name(async (output, context) => {
576
539
  await (0, import_smithy_client.collectBody)(output.body, context);
577
540
  return contents;
578
541
  }, "de_DeleteSpaceCommand");
579
- var de_DeleteSpaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
580
- const parsedOutput = {
581
- ...output,
582
- body: await parseErrorBody(output.body, context)
583
- };
584
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
585
- switch (errorCode) {
586
- case "AccessDeniedException":
587
- case "com.amazonaws.repostspace#AccessDeniedException":
588
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
589
- case "InternalServerException":
590
- case "com.amazonaws.repostspace#InternalServerException":
591
- throw await de_InternalServerExceptionRes(parsedOutput, context);
592
- case "ResourceNotFoundException":
593
- case "com.amazonaws.repostspace#ResourceNotFoundException":
594
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
595
- case "ThrottlingException":
596
- case "com.amazonaws.repostspace#ThrottlingException":
597
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
598
- case "ValidationException":
599
- case "com.amazonaws.repostspace#ValidationException":
600
- throw await de_ValidationExceptionRes(parsedOutput, context);
601
- default:
602
- const parsedBody = parsedOutput.body;
603
- return throwDefaultError({
604
- output,
605
- parsedBody,
606
- errorCode
607
- });
608
- }
609
- }, "de_DeleteSpaceCommandError");
610
542
  var de_DeregisterAdminCommand = /* @__PURE__ */ __name(async (output, context) => {
611
543
  if (output.statusCode !== 200 && output.statusCode >= 300) {
612
- return de_DeregisterAdminCommandError(output, context);
544
+ return de_CommandError(output, context);
613
545
  }
614
546
  const contents = (0, import_smithy_client.map)({
615
547
  $metadata: deserializeMetadata(output)
@@ -617,40 +549,9 @@ var de_DeregisterAdminCommand = /* @__PURE__ */ __name(async (output, context) =
617
549
  await (0, import_smithy_client.collectBody)(output.body, context);
618
550
  return contents;
619
551
  }, "de_DeregisterAdminCommand");
620
- var de_DeregisterAdminCommandError = /* @__PURE__ */ __name(async (output, context) => {
621
- const parsedOutput = {
622
- ...output,
623
- body: await parseErrorBody(output.body, context)
624
- };
625
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
626
- switch (errorCode) {
627
- case "AccessDeniedException":
628
- case "com.amazonaws.repostspace#AccessDeniedException":
629
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
630
- case "InternalServerException":
631
- case "com.amazonaws.repostspace#InternalServerException":
632
- throw await de_InternalServerExceptionRes(parsedOutput, context);
633
- case "ResourceNotFoundException":
634
- case "com.amazonaws.repostspace#ResourceNotFoundException":
635
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
636
- case "ThrottlingException":
637
- case "com.amazonaws.repostspace#ThrottlingException":
638
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
639
- case "ValidationException":
640
- case "com.amazonaws.repostspace#ValidationException":
641
- throw await de_ValidationExceptionRes(parsedOutput, context);
642
- default:
643
- const parsedBody = parsedOutput.body;
644
- return throwDefaultError({
645
- output,
646
- parsedBody,
647
- errorCode
648
- });
649
- }
650
- }, "de_DeregisterAdminCommandError");
651
552
  var de_GetSpaceCommand = /* @__PURE__ */ __name(async (output, context) => {
652
553
  if (output.statusCode !== 200 && output.statusCode >= 300) {
653
- return de_GetSpaceCommandError(output, context);
554
+ return de_CommandError(output, context);
654
555
  }
655
556
  const contents = (0, import_smithy_client.map)({
656
557
  $metadata: deserializeMetadata(output)
@@ -681,40 +582,9 @@ var de_GetSpaceCommand = /* @__PURE__ */ __name(async (output, context) => {
681
582
  Object.assign(contents, doc);
682
583
  return contents;
683
584
  }, "de_GetSpaceCommand");
684
- var de_GetSpaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
685
- const parsedOutput = {
686
- ...output,
687
- body: await parseErrorBody(output.body, context)
688
- };
689
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
690
- switch (errorCode) {
691
- case "AccessDeniedException":
692
- case "com.amazonaws.repostspace#AccessDeniedException":
693
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
694
- case "InternalServerException":
695
- case "com.amazonaws.repostspace#InternalServerException":
696
- throw await de_InternalServerExceptionRes(parsedOutput, context);
697
- case "ResourceNotFoundException":
698
- case "com.amazonaws.repostspace#ResourceNotFoundException":
699
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
700
- case "ThrottlingException":
701
- case "com.amazonaws.repostspace#ThrottlingException":
702
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
703
- case "ValidationException":
704
- case "com.amazonaws.repostspace#ValidationException":
705
- throw await de_ValidationExceptionRes(parsedOutput, context);
706
- default:
707
- const parsedBody = parsedOutput.body;
708
- return throwDefaultError({
709
- output,
710
- parsedBody,
711
- errorCode
712
- });
713
- }
714
- }, "de_GetSpaceCommandError");
715
585
  var de_ListSpacesCommand = /* @__PURE__ */ __name(async (output, context) => {
716
586
  if (output.statusCode !== 200 && output.statusCode >= 300) {
717
- return de_ListSpacesCommandError(output, context);
587
+ return de_CommandError(output, context);
718
588
  }
719
589
  const contents = (0, import_smithy_client.map)({
720
590
  $metadata: deserializeMetadata(output)
@@ -727,37 +597,9 @@ var de_ListSpacesCommand = /* @__PURE__ */ __name(async (output, context) => {
727
597
  Object.assign(contents, doc);
728
598
  return contents;
729
599
  }, "de_ListSpacesCommand");
730
- var de_ListSpacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
731
- const parsedOutput = {
732
- ...output,
733
- body: await parseErrorBody(output.body, context)
734
- };
735
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
736
- switch (errorCode) {
737
- case "AccessDeniedException":
738
- case "com.amazonaws.repostspace#AccessDeniedException":
739
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
740
- case "InternalServerException":
741
- case "com.amazonaws.repostspace#InternalServerException":
742
- throw await de_InternalServerExceptionRes(parsedOutput, context);
743
- case "ThrottlingException":
744
- case "com.amazonaws.repostspace#ThrottlingException":
745
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
746
- case "ValidationException":
747
- case "com.amazonaws.repostspace#ValidationException":
748
- throw await de_ValidationExceptionRes(parsedOutput, context);
749
- default:
750
- const parsedBody = parsedOutput.body;
751
- return throwDefaultError({
752
- output,
753
- parsedBody,
754
- errorCode
755
- });
756
- }
757
- }, "de_ListSpacesCommandError");
758
600
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
759
601
  if (output.statusCode !== 200 && output.statusCode >= 300) {
760
- return de_ListTagsForResourceCommandError(output, context);
602
+ return de_CommandError(output, context);
761
603
  }
762
604
  const contents = (0, import_smithy_client.map)({
763
605
  $metadata: deserializeMetadata(output)
@@ -769,40 +611,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
769
611
  Object.assign(contents, doc);
770
612
  return contents;
771
613
  }, "de_ListTagsForResourceCommand");
772
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
773
- const parsedOutput = {
774
- ...output,
775
- body: await parseErrorBody(output.body, context)
776
- };
777
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
778
- switch (errorCode) {
779
- case "AccessDeniedException":
780
- case "com.amazonaws.repostspace#AccessDeniedException":
781
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
782
- case "InternalServerException":
783
- case "com.amazonaws.repostspace#InternalServerException":
784
- throw await de_InternalServerExceptionRes(parsedOutput, context);
785
- case "ResourceNotFoundException":
786
- case "com.amazonaws.repostspace#ResourceNotFoundException":
787
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
788
- case "ThrottlingException":
789
- case "com.amazonaws.repostspace#ThrottlingException":
790
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
791
- case "ValidationException":
792
- case "com.amazonaws.repostspace#ValidationException":
793
- throw await de_ValidationExceptionRes(parsedOutput, context);
794
- default:
795
- const parsedBody = parsedOutput.body;
796
- return throwDefaultError({
797
- output,
798
- parsedBody,
799
- errorCode
800
- });
801
- }
802
- }, "de_ListTagsForResourceCommandError");
803
614
  var de_RegisterAdminCommand = /* @__PURE__ */ __name(async (output, context) => {
804
615
  if (output.statusCode !== 200 && output.statusCode >= 300) {
805
- return de_RegisterAdminCommandError(output, context);
616
+ return de_CommandError(output, context);
806
617
  }
807
618
  const contents = (0, import_smithy_client.map)({
808
619
  $metadata: deserializeMetadata(output)
@@ -810,40 +621,9 @@ var de_RegisterAdminCommand = /* @__PURE__ */ __name(async (output, context) =>
810
621
  await (0, import_smithy_client.collectBody)(output.body, context);
811
622
  return contents;
812
623
  }, "de_RegisterAdminCommand");
813
- var de_RegisterAdminCommandError = /* @__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 "AccessDeniedException":
821
- case "com.amazonaws.repostspace#AccessDeniedException":
822
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
823
- case "InternalServerException":
824
- case "com.amazonaws.repostspace#InternalServerException":
825
- throw await de_InternalServerExceptionRes(parsedOutput, context);
826
- case "ResourceNotFoundException":
827
- case "com.amazonaws.repostspace#ResourceNotFoundException":
828
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
829
- case "ThrottlingException":
830
- case "com.amazonaws.repostspace#ThrottlingException":
831
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
832
- case "ValidationException":
833
- case "com.amazonaws.repostspace#ValidationException":
834
- throw await de_ValidationExceptionRes(parsedOutput, context);
835
- default:
836
- const parsedBody = parsedOutput.body;
837
- return throwDefaultError({
838
- output,
839
- parsedBody,
840
- errorCode
841
- });
842
- }
843
- }, "de_RegisterAdminCommandError");
844
624
  var de_SendInvitesCommand = /* @__PURE__ */ __name(async (output, context) => {
845
625
  if (output.statusCode !== 200 && output.statusCode >= 300) {
846
- return de_SendInvitesCommandError(output, context);
626
+ return de_CommandError(output, context);
847
627
  }
848
628
  const contents = (0, import_smithy_client.map)({
849
629
  $metadata: deserializeMetadata(output)
@@ -851,40 +631,9 @@ var de_SendInvitesCommand = /* @__PURE__ */ __name(async (output, context) => {
851
631
  await (0, import_smithy_client.collectBody)(output.body, context);
852
632
  return contents;
853
633
  }, "de_SendInvitesCommand");
854
- var de_SendInvitesCommandError = /* @__PURE__ */ __name(async (output, context) => {
855
- const parsedOutput = {
856
- ...output,
857
- body: await parseErrorBody(output.body, context)
858
- };
859
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
860
- switch (errorCode) {
861
- case "AccessDeniedException":
862
- case "com.amazonaws.repostspace#AccessDeniedException":
863
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
864
- case "InternalServerException":
865
- case "com.amazonaws.repostspace#InternalServerException":
866
- throw await de_InternalServerExceptionRes(parsedOutput, context);
867
- case "ResourceNotFoundException":
868
- case "com.amazonaws.repostspace#ResourceNotFoundException":
869
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
870
- case "ThrottlingException":
871
- case "com.amazonaws.repostspace#ThrottlingException":
872
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
873
- case "ValidationException":
874
- case "com.amazonaws.repostspace#ValidationException":
875
- throw await de_ValidationExceptionRes(parsedOutput, context);
876
- default:
877
- const parsedBody = parsedOutput.body;
878
- return throwDefaultError({
879
- output,
880
- parsedBody,
881
- errorCode
882
- });
883
- }
884
- }, "de_SendInvitesCommandError");
885
634
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
886
635
  if (output.statusCode !== 200 && output.statusCode >= 300) {
887
- return de_TagResourceCommandError(output, context);
636
+ return de_CommandError(output, context);
888
637
  }
889
638
  const contents = (0, import_smithy_client.map)({
890
639
  $metadata: deserializeMetadata(output)
@@ -892,40 +641,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
892
641
  await (0, import_smithy_client.collectBody)(output.body, context);
893
642
  return contents;
894
643
  }, "de_TagResourceCommand");
895
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
896
- const parsedOutput = {
897
- ...output,
898
- body: await parseErrorBody(output.body, context)
899
- };
900
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
901
- switch (errorCode) {
902
- case "AccessDeniedException":
903
- case "com.amazonaws.repostspace#AccessDeniedException":
904
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
905
- case "InternalServerException":
906
- case "com.amazonaws.repostspace#InternalServerException":
907
- throw await de_InternalServerExceptionRes(parsedOutput, context);
908
- case "ResourceNotFoundException":
909
- case "com.amazonaws.repostspace#ResourceNotFoundException":
910
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
911
- case "ThrottlingException":
912
- case "com.amazonaws.repostspace#ThrottlingException":
913
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
914
- case "ValidationException":
915
- case "com.amazonaws.repostspace#ValidationException":
916
- throw await de_ValidationExceptionRes(parsedOutput, context);
917
- default:
918
- const parsedBody = parsedOutput.body;
919
- return throwDefaultError({
920
- output,
921
- parsedBody,
922
- errorCode
923
- });
924
- }
925
- }, "de_TagResourceCommandError");
926
644
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
927
645
  if (output.statusCode !== 200 && output.statusCode >= 300) {
928
- return de_UntagResourceCommandError(output, context);
646
+ return de_CommandError(output, context);
929
647
  }
930
648
  const contents = (0, import_smithy_client.map)({
931
649
  $metadata: deserializeMetadata(output)
@@ -933,40 +651,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
933
651
  await (0, import_smithy_client.collectBody)(output.body, context);
934
652
  return contents;
935
653
  }, "de_UntagResourceCommand");
936
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
937
- const parsedOutput = {
938
- ...output,
939
- body: await parseErrorBody(output.body, context)
940
- };
941
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
942
- switch (errorCode) {
943
- case "AccessDeniedException":
944
- case "com.amazonaws.repostspace#AccessDeniedException":
945
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
946
- case "InternalServerException":
947
- case "com.amazonaws.repostspace#InternalServerException":
948
- throw await de_InternalServerExceptionRes(parsedOutput, context);
949
- case "ResourceNotFoundException":
950
- case "com.amazonaws.repostspace#ResourceNotFoundException":
951
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
952
- case "ThrottlingException":
953
- case "com.amazonaws.repostspace#ThrottlingException":
954
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
955
- case "ValidationException":
956
- case "com.amazonaws.repostspace#ValidationException":
957
- throw await de_ValidationExceptionRes(parsedOutput, context);
958
- default:
959
- const parsedBody = parsedOutput.body;
960
- return throwDefaultError({
961
- output,
962
- parsedBody,
963
- errorCode
964
- });
965
- }
966
- }, "de_UntagResourceCommandError");
967
654
  var de_UpdateSpaceCommand = /* @__PURE__ */ __name(async (output, context) => {
968
655
  if (output.statusCode !== 200 && output.statusCode >= 300) {
969
- return de_UpdateSpaceCommandError(output, context);
656
+ return de_CommandError(output, context);
970
657
  }
971
658
  const contents = (0, import_smithy_client.map)({
972
659
  $metadata: deserializeMetadata(output)
@@ -974,7 +661,7 @@ var de_UpdateSpaceCommand = /* @__PURE__ */ __name(async (output, context) => {
974
661
  await (0, import_smithy_client.collectBody)(output.body, context);
975
662
  return contents;
976
663
  }, "de_UpdateSpaceCommand");
977
- var de_UpdateSpaceCommandError = /* @__PURE__ */ __name(async (output, context) => {
664
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
978
665
  const parsedOutput = {
979
666
  ...output,
980
667
  body: await parseErrorBody(output.body, context)
@@ -993,6 +680,9 @@ var de_UpdateSpaceCommandError = /* @__PURE__ */ __name(async (output, context)
993
680
  case "ResourceNotFoundException":
994
681
  case "com.amazonaws.repostspace#ResourceNotFoundException":
995
682
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
683
+ case "ServiceQuotaExceededException":
684
+ case "com.amazonaws.repostspace#ServiceQuotaExceededException":
685
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
996
686
  case "ThrottlingException":
997
687
  case "com.amazonaws.repostspace#ThrottlingException":
998
688
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -1007,7 +697,7 @@ var de_UpdateSpaceCommandError = /* @__PURE__ */ __name(async (output, context)
1007
697
  errorCode
1008
698
  });
1009
699
  }
1010
- }, "de_UpdateSpaceCommandError");
700
+ }, "de_CommandError");
1011
701
  var throwDefaultError = (0, import_smithy_client.withBaseException)(RepostspaceServiceException);
1012
702
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1013
703
  const contents = (0, import_smithy_client.map)({});
@@ -143,7 +143,7 @@ export const se_UpdateSpaceCommand = async (input, context) => {
143
143
  };
144
144
  export const de_CreateSpaceCommand = async (output, context) => {
145
145
  if (output.statusCode !== 200 && output.statusCode >= 300) {
146
- return de_CreateSpaceCommandError(output, context);
146
+ return de_CommandError(output, context);
147
147
  }
148
148
  const contents = map({
149
149
  $metadata: deserializeMetadata(output),
@@ -155,46 +155,9 @@ export const de_CreateSpaceCommand = async (output, context) => {
155
155
  Object.assign(contents, doc);
156
156
  return contents;
157
157
  };
158
- const de_CreateSpaceCommandError = async (output, context) => {
159
- const parsedOutput = {
160
- ...output,
161
- body: await parseErrorBody(output.body, context),
162
- };
163
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
164
- switch (errorCode) {
165
- case "AccessDeniedException":
166
- case "com.amazonaws.repostspace#AccessDeniedException":
167
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
168
- case "ConflictException":
169
- case "com.amazonaws.repostspace#ConflictException":
170
- throw await de_ConflictExceptionRes(parsedOutput, context);
171
- case "InternalServerException":
172
- case "com.amazonaws.repostspace#InternalServerException":
173
- throw await de_InternalServerExceptionRes(parsedOutput, context);
174
- case "ResourceNotFoundException":
175
- case "com.amazonaws.repostspace#ResourceNotFoundException":
176
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
177
- case "ServiceQuotaExceededException":
178
- case "com.amazonaws.repostspace#ServiceQuotaExceededException":
179
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
180
- case "ThrottlingException":
181
- case "com.amazonaws.repostspace#ThrottlingException":
182
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
183
- case "ValidationException":
184
- case "com.amazonaws.repostspace#ValidationException":
185
- throw await de_ValidationExceptionRes(parsedOutput, context);
186
- default:
187
- const parsedBody = parsedOutput.body;
188
- return throwDefaultError({
189
- output,
190
- parsedBody,
191
- errorCode,
192
- });
193
- }
194
- };
195
158
  export const de_DeleteSpaceCommand = async (output, context) => {
196
159
  if (output.statusCode !== 200 && output.statusCode >= 300) {
197
- return de_DeleteSpaceCommandError(output, context);
160
+ return de_CommandError(output, context);
198
161
  }
199
162
  const contents = map({
200
163
  $metadata: deserializeMetadata(output),
@@ -202,40 +165,9 @@ export const de_DeleteSpaceCommand = async (output, context) => {
202
165
  await collectBody(output.body, context);
203
166
  return contents;
204
167
  };
205
- const de_DeleteSpaceCommandError = async (output, context) => {
206
- const parsedOutput = {
207
- ...output,
208
- body: await parseErrorBody(output.body, context),
209
- };
210
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
211
- switch (errorCode) {
212
- case "AccessDeniedException":
213
- case "com.amazonaws.repostspace#AccessDeniedException":
214
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
215
- case "InternalServerException":
216
- case "com.amazonaws.repostspace#InternalServerException":
217
- throw await de_InternalServerExceptionRes(parsedOutput, context);
218
- case "ResourceNotFoundException":
219
- case "com.amazonaws.repostspace#ResourceNotFoundException":
220
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
221
- case "ThrottlingException":
222
- case "com.amazonaws.repostspace#ThrottlingException":
223
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
224
- case "ValidationException":
225
- case "com.amazonaws.repostspace#ValidationException":
226
- throw await de_ValidationExceptionRes(parsedOutput, context);
227
- default:
228
- const parsedBody = parsedOutput.body;
229
- return throwDefaultError({
230
- output,
231
- parsedBody,
232
- errorCode,
233
- });
234
- }
235
- };
236
168
  export const de_DeregisterAdminCommand = async (output, context) => {
237
169
  if (output.statusCode !== 200 && output.statusCode >= 300) {
238
- return de_DeregisterAdminCommandError(output, context);
170
+ return de_CommandError(output, context);
239
171
  }
240
172
  const contents = map({
241
173
  $metadata: deserializeMetadata(output),
@@ -243,40 +175,9 @@ export const de_DeregisterAdminCommand = async (output, context) => {
243
175
  await collectBody(output.body, context);
244
176
  return contents;
245
177
  };
246
- const de_DeregisterAdminCommandError = 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 "AccessDeniedException":
254
- case "com.amazonaws.repostspace#AccessDeniedException":
255
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
256
- case "InternalServerException":
257
- case "com.amazonaws.repostspace#InternalServerException":
258
- throw await de_InternalServerExceptionRes(parsedOutput, context);
259
- case "ResourceNotFoundException":
260
- case "com.amazonaws.repostspace#ResourceNotFoundException":
261
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
262
- case "ThrottlingException":
263
- case "com.amazonaws.repostspace#ThrottlingException":
264
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
265
- case "ValidationException":
266
- case "com.amazonaws.repostspace#ValidationException":
267
- throw await de_ValidationExceptionRes(parsedOutput, context);
268
- default:
269
- const parsedBody = parsedOutput.body;
270
- return throwDefaultError({
271
- output,
272
- parsedBody,
273
- errorCode,
274
- });
275
- }
276
- };
277
178
  export const de_GetSpaceCommand = async (output, context) => {
278
179
  if (output.statusCode !== 200 && output.statusCode >= 300) {
279
- return de_GetSpaceCommandError(output, context);
180
+ return de_CommandError(output, context);
280
181
  }
281
182
  const contents = map({
282
183
  $metadata: deserializeMetadata(output),
@@ -307,40 +208,9 @@ export const de_GetSpaceCommand = async (output, context) => {
307
208
  Object.assign(contents, doc);
308
209
  return contents;
309
210
  };
310
- const de_GetSpaceCommandError = async (output, context) => {
311
- const parsedOutput = {
312
- ...output,
313
- body: await parseErrorBody(output.body, context),
314
- };
315
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
316
- switch (errorCode) {
317
- case "AccessDeniedException":
318
- case "com.amazonaws.repostspace#AccessDeniedException":
319
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
320
- case "InternalServerException":
321
- case "com.amazonaws.repostspace#InternalServerException":
322
- throw await de_InternalServerExceptionRes(parsedOutput, context);
323
- case "ResourceNotFoundException":
324
- case "com.amazonaws.repostspace#ResourceNotFoundException":
325
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
326
- case "ThrottlingException":
327
- case "com.amazonaws.repostspace#ThrottlingException":
328
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
329
- case "ValidationException":
330
- case "com.amazonaws.repostspace#ValidationException":
331
- throw await de_ValidationExceptionRes(parsedOutput, context);
332
- default:
333
- const parsedBody = parsedOutput.body;
334
- return throwDefaultError({
335
- output,
336
- parsedBody,
337
- errorCode,
338
- });
339
- }
340
- };
341
211
  export const de_ListSpacesCommand = async (output, context) => {
342
212
  if (output.statusCode !== 200 && output.statusCode >= 300) {
343
- return de_ListSpacesCommandError(output, context);
213
+ return de_CommandError(output, context);
344
214
  }
345
215
  const contents = map({
346
216
  $metadata: deserializeMetadata(output),
@@ -353,37 +223,9 @@ export const de_ListSpacesCommand = async (output, context) => {
353
223
  Object.assign(contents, doc);
354
224
  return contents;
355
225
  };
356
- const de_ListSpacesCommandError = async (output, context) => {
357
- const parsedOutput = {
358
- ...output,
359
- body: await parseErrorBody(output.body, context),
360
- };
361
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
362
- switch (errorCode) {
363
- case "AccessDeniedException":
364
- case "com.amazonaws.repostspace#AccessDeniedException":
365
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
366
- case "InternalServerException":
367
- case "com.amazonaws.repostspace#InternalServerException":
368
- throw await de_InternalServerExceptionRes(parsedOutput, context);
369
- case "ThrottlingException":
370
- case "com.amazonaws.repostspace#ThrottlingException":
371
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
372
- case "ValidationException":
373
- case "com.amazonaws.repostspace#ValidationException":
374
- throw await de_ValidationExceptionRes(parsedOutput, context);
375
- default:
376
- const parsedBody = parsedOutput.body;
377
- return throwDefaultError({
378
- output,
379
- parsedBody,
380
- errorCode,
381
- });
382
- }
383
- };
384
226
  export const de_ListTagsForResourceCommand = async (output, context) => {
385
227
  if (output.statusCode !== 200 && output.statusCode >= 300) {
386
- return de_ListTagsForResourceCommandError(output, context);
228
+ return de_CommandError(output, context);
387
229
  }
388
230
  const contents = map({
389
231
  $metadata: deserializeMetadata(output),
@@ -395,40 +237,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
395
237
  Object.assign(contents, doc);
396
238
  return contents;
397
239
  };
398
- const de_ListTagsForResourceCommandError = async (output, context) => {
399
- const parsedOutput = {
400
- ...output,
401
- body: await parseErrorBody(output.body, context),
402
- };
403
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
404
- switch (errorCode) {
405
- case "AccessDeniedException":
406
- case "com.amazonaws.repostspace#AccessDeniedException":
407
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
408
- case "InternalServerException":
409
- case "com.amazonaws.repostspace#InternalServerException":
410
- throw await de_InternalServerExceptionRes(parsedOutput, context);
411
- case "ResourceNotFoundException":
412
- case "com.amazonaws.repostspace#ResourceNotFoundException":
413
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
414
- case "ThrottlingException":
415
- case "com.amazonaws.repostspace#ThrottlingException":
416
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
417
- case "ValidationException":
418
- case "com.amazonaws.repostspace#ValidationException":
419
- throw await de_ValidationExceptionRes(parsedOutput, context);
420
- default:
421
- const parsedBody = parsedOutput.body;
422
- return throwDefaultError({
423
- output,
424
- parsedBody,
425
- errorCode,
426
- });
427
- }
428
- };
429
240
  export const de_RegisterAdminCommand = async (output, context) => {
430
241
  if (output.statusCode !== 200 && output.statusCode >= 300) {
431
- return de_RegisterAdminCommandError(output, context);
242
+ return de_CommandError(output, context);
432
243
  }
433
244
  const contents = map({
434
245
  $metadata: deserializeMetadata(output),
@@ -436,40 +247,9 @@ export const de_RegisterAdminCommand = async (output, context) => {
436
247
  await collectBody(output.body, context);
437
248
  return contents;
438
249
  };
439
- const de_RegisterAdminCommandError = async (output, context) => {
440
- const parsedOutput = {
441
- ...output,
442
- body: await parseErrorBody(output.body, context),
443
- };
444
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
445
- switch (errorCode) {
446
- case "AccessDeniedException":
447
- case "com.amazonaws.repostspace#AccessDeniedException":
448
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
449
- case "InternalServerException":
450
- case "com.amazonaws.repostspace#InternalServerException":
451
- throw await de_InternalServerExceptionRes(parsedOutput, context);
452
- case "ResourceNotFoundException":
453
- case "com.amazonaws.repostspace#ResourceNotFoundException":
454
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
455
- case "ThrottlingException":
456
- case "com.amazonaws.repostspace#ThrottlingException":
457
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
458
- case "ValidationException":
459
- case "com.amazonaws.repostspace#ValidationException":
460
- throw await de_ValidationExceptionRes(parsedOutput, context);
461
- default:
462
- const parsedBody = parsedOutput.body;
463
- return throwDefaultError({
464
- output,
465
- parsedBody,
466
- errorCode,
467
- });
468
- }
469
- };
470
250
  export const de_SendInvitesCommand = async (output, context) => {
471
251
  if (output.statusCode !== 200 && output.statusCode >= 300) {
472
- return de_SendInvitesCommandError(output, context);
252
+ return de_CommandError(output, context);
473
253
  }
474
254
  const contents = map({
475
255
  $metadata: deserializeMetadata(output),
@@ -477,40 +257,9 @@ export const de_SendInvitesCommand = async (output, context) => {
477
257
  await collectBody(output.body, context);
478
258
  return contents;
479
259
  };
480
- const de_SendInvitesCommandError = 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 "AccessDeniedException":
488
- case "com.amazonaws.repostspace#AccessDeniedException":
489
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
490
- case "InternalServerException":
491
- case "com.amazonaws.repostspace#InternalServerException":
492
- throw await de_InternalServerExceptionRes(parsedOutput, context);
493
- case "ResourceNotFoundException":
494
- case "com.amazonaws.repostspace#ResourceNotFoundException":
495
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
496
- case "ThrottlingException":
497
- case "com.amazonaws.repostspace#ThrottlingException":
498
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
499
- case "ValidationException":
500
- case "com.amazonaws.repostspace#ValidationException":
501
- throw await de_ValidationExceptionRes(parsedOutput, context);
502
- default:
503
- const parsedBody = parsedOutput.body;
504
- return throwDefaultError({
505
- output,
506
- parsedBody,
507
- errorCode,
508
- });
509
- }
510
- };
511
260
  export const de_TagResourceCommand = async (output, context) => {
512
261
  if (output.statusCode !== 200 && output.statusCode >= 300) {
513
- return de_TagResourceCommandError(output, context);
262
+ return de_CommandError(output, context);
514
263
  }
515
264
  const contents = map({
516
265
  $metadata: deserializeMetadata(output),
@@ -518,40 +267,9 @@ export const de_TagResourceCommand = async (output, context) => {
518
267
  await collectBody(output.body, context);
519
268
  return contents;
520
269
  };
521
- const de_TagResourceCommandError = 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 "AccessDeniedException":
529
- case "com.amazonaws.repostspace#AccessDeniedException":
530
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
531
- case "InternalServerException":
532
- case "com.amazonaws.repostspace#InternalServerException":
533
- throw await de_InternalServerExceptionRes(parsedOutput, context);
534
- case "ResourceNotFoundException":
535
- case "com.amazonaws.repostspace#ResourceNotFoundException":
536
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
537
- case "ThrottlingException":
538
- case "com.amazonaws.repostspace#ThrottlingException":
539
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
540
- case "ValidationException":
541
- case "com.amazonaws.repostspace#ValidationException":
542
- throw await de_ValidationExceptionRes(parsedOutput, context);
543
- default:
544
- const parsedBody = parsedOutput.body;
545
- return throwDefaultError({
546
- output,
547
- parsedBody,
548
- errorCode,
549
- });
550
- }
551
- };
552
270
  export const de_UntagResourceCommand = async (output, context) => {
553
271
  if (output.statusCode !== 200 && output.statusCode >= 300) {
554
- return de_UntagResourceCommandError(output, context);
272
+ return de_CommandError(output, context);
555
273
  }
556
274
  const contents = map({
557
275
  $metadata: deserializeMetadata(output),
@@ -559,40 +277,9 @@ export const de_UntagResourceCommand = async (output, context) => {
559
277
  await collectBody(output.body, context);
560
278
  return contents;
561
279
  };
562
- const de_UntagResourceCommandError = 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 "AccessDeniedException":
570
- case "com.amazonaws.repostspace#AccessDeniedException":
571
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
572
- case "InternalServerException":
573
- case "com.amazonaws.repostspace#InternalServerException":
574
- throw await de_InternalServerExceptionRes(parsedOutput, context);
575
- case "ResourceNotFoundException":
576
- case "com.amazonaws.repostspace#ResourceNotFoundException":
577
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
578
- case "ThrottlingException":
579
- case "com.amazonaws.repostspace#ThrottlingException":
580
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
581
- case "ValidationException":
582
- case "com.amazonaws.repostspace#ValidationException":
583
- throw await de_ValidationExceptionRes(parsedOutput, context);
584
- default:
585
- const parsedBody = parsedOutput.body;
586
- return throwDefaultError({
587
- output,
588
- parsedBody,
589
- errorCode,
590
- });
591
- }
592
- };
593
280
  export const de_UpdateSpaceCommand = async (output, context) => {
594
281
  if (output.statusCode !== 200 && output.statusCode >= 300) {
595
- return de_UpdateSpaceCommandError(output, context);
282
+ return de_CommandError(output, context);
596
283
  }
597
284
  const contents = map({
598
285
  $metadata: deserializeMetadata(output),
@@ -600,7 +287,7 @@ export const de_UpdateSpaceCommand = async (output, context) => {
600
287
  await collectBody(output.body, context);
601
288
  return contents;
602
289
  };
603
- const de_UpdateSpaceCommandError = async (output, context) => {
290
+ const de_CommandError = async (output, context) => {
604
291
  const parsedOutput = {
605
292
  ...output,
606
293
  body: await parseErrorBody(output.body, context),
@@ -619,6 +306,9 @@ const de_UpdateSpaceCommandError = async (output, context) => {
619
306
  case "ResourceNotFoundException":
620
307
  case "com.amazonaws.repostspace#ResourceNotFoundException":
621
308
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
309
+ case "ServiceQuotaExceededException":
310
+ case "com.amazonaws.repostspace#ServiceQuotaExceededException":
311
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
622
312
  case "ThrottlingException":
623
313
  case "com.amazonaws.repostspace#ThrottlingException":
624
314
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-repostspace",
3
3
  "description": "AWS SDK for JavaScript Repostspace Client for Node.js, Browser and React Native",
4
- "version": "3.503.1",
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-repostspace",
@@ -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.502.0",
23
+ "@aws-sdk/client-sts": "3.507.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.503.1",
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",