@aws-sdk/client-service-quotas 3.504.0 → 3.509.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -650,7 +650,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
650
650
  }, "se_UntagResourceCommand");
651
651
  var de_AssociateServiceQuotaTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
652
652
  if (output.statusCode >= 300) {
653
- return de_AssociateServiceQuotaTemplateCommandError(output, context);
653
+ return de_CommandError(output, context);
654
654
  }
655
655
  const data = await parseBody(output.body, context);
656
656
  let contents = {};
@@ -661,49 +661,9 @@ var de_AssociateServiceQuotaTemplateCommand = /* @__PURE__ */ __name(async (outp
661
661
  };
662
662
  return response;
663
663
  }, "de_AssociateServiceQuotaTemplateCommand");
664
- var de_AssociateServiceQuotaTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
665
- const parsedOutput = {
666
- ...output,
667
- body: await parseErrorBody(output.body, context)
668
- };
669
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
670
- switch (errorCode) {
671
- case "AWSServiceAccessNotEnabledException":
672
- case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
673
- throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
674
- case "AccessDeniedException":
675
- case "com.amazonaws.servicequotas#AccessDeniedException":
676
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
677
- case "DependencyAccessDeniedException":
678
- case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
679
- throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
680
- case "NoAvailableOrganizationException":
681
- case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
682
- throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
683
- case "OrganizationNotInAllFeaturesModeException":
684
- case "com.amazonaws.servicequotas#OrganizationNotInAllFeaturesModeException":
685
- throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
686
- case "ServiceException":
687
- case "com.amazonaws.servicequotas#ServiceException":
688
- throw await de_ServiceExceptionRes(parsedOutput, context);
689
- case "TemplatesNotAvailableInRegionException":
690
- case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
691
- throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
692
- case "TooManyRequestsException":
693
- case "com.amazonaws.servicequotas#TooManyRequestsException":
694
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
695
- default:
696
- const parsedBody = parsedOutput.body;
697
- return throwDefaultError({
698
- output,
699
- parsedBody,
700
- errorCode
701
- });
702
- }
703
- }, "de_AssociateServiceQuotaTemplateCommandError");
704
664
  var de_DeleteServiceQuotaIncreaseRequestFromTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
705
665
  if (output.statusCode >= 300) {
706
- return de_DeleteServiceQuotaIncreaseRequestFromTemplateCommandError(output, context);
666
+ return de_CommandError(output, context);
707
667
  }
708
668
  const data = await parseBody(output.body, context);
709
669
  let contents = {};
@@ -714,52 +674,9 @@ var de_DeleteServiceQuotaIncreaseRequestFromTemplateCommand = /* @__PURE__ */ __
714
674
  };
715
675
  return response;
716
676
  }, "de_DeleteServiceQuotaIncreaseRequestFromTemplateCommand");
717
- var de_DeleteServiceQuotaIncreaseRequestFromTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
718
- const parsedOutput = {
719
- ...output,
720
- body: await parseErrorBody(output.body, context)
721
- };
722
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
723
- switch (errorCode) {
724
- case "AWSServiceAccessNotEnabledException":
725
- case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
726
- throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
727
- case "AccessDeniedException":
728
- case "com.amazonaws.servicequotas#AccessDeniedException":
729
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
730
- case "DependencyAccessDeniedException":
731
- case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
732
- throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
733
- case "IllegalArgumentException":
734
- case "com.amazonaws.servicequotas#IllegalArgumentException":
735
- throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
736
- case "NoAvailableOrganizationException":
737
- case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
738
- throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
739
- case "NoSuchResourceException":
740
- case "com.amazonaws.servicequotas#NoSuchResourceException":
741
- throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
742
- case "ServiceException":
743
- case "com.amazonaws.servicequotas#ServiceException":
744
- throw await de_ServiceExceptionRes(parsedOutput, context);
745
- case "TemplatesNotAvailableInRegionException":
746
- case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
747
- throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
748
- case "TooManyRequestsException":
749
- case "com.amazonaws.servicequotas#TooManyRequestsException":
750
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
751
- default:
752
- const parsedBody = parsedOutput.body;
753
- return throwDefaultError({
754
- output,
755
- parsedBody,
756
- errorCode
757
- });
758
- }
759
- }, "de_DeleteServiceQuotaIncreaseRequestFromTemplateCommandError");
760
677
  var de_DisassociateServiceQuotaTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
761
678
  if (output.statusCode >= 300) {
762
- return de_DisassociateServiceQuotaTemplateCommandError(output, context);
679
+ return de_CommandError(output, context);
763
680
  }
764
681
  const data = await parseBody(output.body, context);
765
682
  let contents = {};
@@ -770,49 +687,9 @@ var de_DisassociateServiceQuotaTemplateCommand = /* @__PURE__ */ __name(async (o
770
687
  };
771
688
  return response;
772
689
  }, "de_DisassociateServiceQuotaTemplateCommand");
773
- var de_DisassociateServiceQuotaTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
774
- const parsedOutput = {
775
- ...output,
776
- body: await parseErrorBody(output.body, context)
777
- };
778
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
779
- switch (errorCode) {
780
- case "AWSServiceAccessNotEnabledException":
781
- case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
782
- throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
783
- case "AccessDeniedException":
784
- case "com.amazonaws.servicequotas#AccessDeniedException":
785
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
786
- case "DependencyAccessDeniedException":
787
- case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
788
- throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
789
- case "NoAvailableOrganizationException":
790
- case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
791
- throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
792
- case "ServiceException":
793
- case "com.amazonaws.servicequotas#ServiceException":
794
- throw await de_ServiceExceptionRes(parsedOutput, context);
795
- case "ServiceQuotaTemplateNotInUseException":
796
- case "com.amazonaws.servicequotas#ServiceQuotaTemplateNotInUseException":
797
- throw await de_ServiceQuotaTemplateNotInUseExceptionRes(parsedOutput, context);
798
- case "TemplatesNotAvailableInRegionException":
799
- case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
800
- throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
801
- case "TooManyRequestsException":
802
- case "com.amazonaws.servicequotas#TooManyRequestsException":
803
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
804
- default:
805
- const parsedBody = parsedOutput.body;
806
- return throwDefaultError({
807
- output,
808
- parsedBody,
809
- errorCode
810
- });
811
- }
812
- }, "de_DisassociateServiceQuotaTemplateCommandError");
813
690
  var de_GetAssociationForServiceQuotaTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
814
691
  if (output.statusCode >= 300) {
815
- return de_GetAssociationForServiceQuotaTemplateCommandError(output, context);
692
+ return de_CommandError(output, context);
816
693
  }
817
694
  const data = await parseBody(output.body, context);
818
695
  let contents = {};
@@ -823,49 +700,9 @@ var de_GetAssociationForServiceQuotaTemplateCommand = /* @__PURE__ */ __name(asy
823
700
  };
824
701
  return response;
825
702
  }, "de_GetAssociationForServiceQuotaTemplateCommand");
826
- var de_GetAssociationForServiceQuotaTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
827
- const parsedOutput = {
828
- ...output,
829
- body: await parseErrorBody(output.body, context)
830
- };
831
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
832
- switch (errorCode) {
833
- case "AWSServiceAccessNotEnabledException":
834
- case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
835
- throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
836
- case "AccessDeniedException":
837
- case "com.amazonaws.servicequotas#AccessDeniedException":
838
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
839
- case "DependencyAccessDeniedException":
840
- case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
841
- throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
842
- case "NoAvailableOrganizationException":
843
- case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
844
- throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
845
- case "ServiceException":
846
- case "com.amazonaws.servicequotas#ServiceException":
847
- throw await de_ServiceExceptionRes(parsedOutput, context);
848
- case "ServiceQuotaTemplateNotInUseException":
849
- case "com.amazonaws.servicequotas#ServiceQuotaTemplateNotInUseException":
850
- throw await de_ServiceQuotaTemplateNotInUseExceptionRes(parsedOutput, context);
851
- case "TemplatesNotAvailableInRegionException":
852
- case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
853
- throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
854
- case "TooManyRequestsException":
855
- case "com.amazonaws.servicequotas#TooManyRequestsException":
856
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
857
- default:
858
- const parsedBody = parsedOutput.body;
859
- return throwDefaultError({
860
- output,
861
- parsedBody,
862
- errorCode
863
- });
864
- }
865
- }, "de_GetAssociationForServiceQuotaTemplateCommandError");
866
703
  var de_GetAWSDefaultServiceQuotaCommand = /* @__PURE__ */ __name(async (output, context) => {
867
704
  if (output.statusCode >= 300) {
868
- return de_GetAWSDefaultServiceQuotaCommandError(output, context);
705
+ return de_CommandError(output, context);
869
706
  }
870
707
  const data = await parseBody(output.body, context);
871
708
  let contents = {};
@@ -876,40 +713,9 @@ var de_GetAWSDefaultServiceQuotaCommand = /* @__PURE__ */ __name(async (output,
876
713
  };
877
714
  return response;
878
715
  }, "de_GetAWSDefaultServiceQuotaCommand");
879
- var de_GetAWSDefaultServiceQuotaCommandError = /* @__PURE__ */ __name(async (output, context) => {
880
- const parsedOutput = {
881
- ...output,
882
- body: await parseErrorBody(output.body, context)
883
- };
884
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
885
- switch (errorCode) {
886
- case "AccessDeniedException":
887
- case "com.amazonaws.servicequotas#AccessDeniedException":
888
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
889
- case "IllegalArgumentException":
890
- case "com.amazonaws.servicequotas#IllegalArgumentException":
891
- throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
892
- case "NoSuchResourceException":
893
- case "com.amazonaws.servicequotas#NoSuchResourceException":
894
- throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
895
- case "ServiceException":
896
- case "com.amazonaws.servicequotas#ServiceException":
897
- throw await de_ServiceExceptionRes(parsedOutput, context);
898
- case "TooManyRequestsException":
899
- case "com.amazonaws.servicequotas#TooManyRequestsException":
900
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
901
- default:
902
- const parsedBody = parsedOutput.body;
903
- return throwDefaultError({
904
- output,
905
- parsedBody,
906
- errorCode
907
- });
908
- }
909
- }, "de_GetAWSDefaultServiceQuotaCommandError");
910
716
  var de_GetRequestedServiceQuotaChangeCommand = /* @__PURE__ */ __name(async (output, context) => {
911
717
  if (output.statusCode >= 300) {
912
- return de_GetRequestedServiceQuotaChangeCommandError(output, context);
718
+ return de_CommandError(output, context);
913
719
  }
914
720
  const data = await parseBody(output.body, context);
915
721
  let contents = {};
@@ -920,40 +726,9 @@ var de_GetRequestedServiceQuotaChangeCommand = /* @__PURE__ */ __name(async (out
920
726
  };
921
727
  return response;
922
728
  }, "de_GetRequestedServiceQuotaChangeCommand");
923
- var de_GetRequestedServiceQuotaChangeCommandError = /* @__PURE__ */ __name(async (output, context) => {
924
- const parsedOutput = {
925
- ...output,
926
- body: await parseErrorBody(output.body, context)
927
- };
928
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
929
- switch (errorCode) {
930
- case "AccessDeniedException":
931
- case "com.amazonaws.servicequotas#AccessDeniedException":
932
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
933
- case "IllegalArgumentException":
934
- case "com.amazonaws.servicequotas#IllegalArgumentException":
935
- throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
936
- case "NoSuchResourceException":
937
- case "com.amazonaws.servicequotas#NoSuchResourceException":
938
- throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
939
- case "ServiceException":
940
- case "com.amazonaws.servicequotas#ServiceException":
941
- throw await de_ServiceExceptionRes(parsedOutput, context);
942
- case "TooManyRequestsException":
943
- case "com.amazonaws.servicequotas#TooManyRequestsException":
944
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
945
- default:
946
- const parsedBody = parsedOutput.body;
947
- return throwDefaultError({
948
- output,
949
- parsedBody,
950
- errorCode
951
- });
952
- }
953
- }, "de_GetRequestedServiceQuotaChangeCommandError");
954
729
  var de_GetServiceQuotaCommand = /* @__PURE__ */ __name(async (output, context) => {
955
730
  if (output.statusCode >= 300) {
956
- return de_GetServiceQuotaCommandError(output, context);
731
+ return de_CommandError(output, context);
957
732
  }
958
733
  const data = await parseBody(output.body, context);
959
734
  let contents = {};
@@ -964,40 +739,9 @@ var de_GetServiceQuotaCommand = /* @__PURE__ */ __name(async (output, context) =
964
739
  };
965
740
  return response;
966
741
  }, "de_GetServiceQuotaCommand");
967
- var de_GetServiceQuotaCommandError = /* @__PURE__ */ __name(async (output, context) => {
968
- const parsedOutput = {
969
- ...output,
970
- body: await parseErrorBody(output.body, context)
971
- };
972
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
973
- switch (errorCode) {
974
- case "AccessDeniedException":
975
- case "com.amazonaws.servicequotas#AccessDeniedException":
976
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
977
- case "IllegalArgumentException":
978
- case "com.amazonaws.servicequotas#IllegalArgumentException":
979
- throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
980
- case "NoSuchResourceException":
981
- case "com.amazonaws.servicequotas#NoSuchResourceException":
982
- throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
983
- case "ServiceException":
984
- case "com.amazonaws.servicequotas#ServiceException":
985
- throw await de_ServiceExceptionRes(parsedOutput, context);
986
- case "TooManyRequestsException":
987
- case "com.amazonaws.servicequotas#TooManyRequestsException":
988
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
989
- default:
990
- const parsedBody = parsedOutput.body;
991
- return throwDefaultError({
992
- output,
993
- parsedBody,
994
- errorCode
995
- });
996
- }
997
- }, "de_GetServiceQuotaCommandError");
998
742
  var de_GetServiceQuotaIncreaseRequestFromTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
999
743
  if (output.statusCode >= 300) {
1000
- return de_GetServiceQuotaIncreaseRequestFromTemplateCommandError(output, context);
744
+ return de_CommandError(output, context);
1001
745
  }
1002
746
  const data = await parseBody(output.body, context);
1003
747
  let contents = {};
@@ -1008,52 +752,9 @@ var de_GetServiceQuotaIncreaseRequestFromTemplateCommand = /* @__PURE__ */ __nam
1008
752
  };
1009
753
  return response;
1010
754
  }, "de_GetServiceQuotaIncreaseRequestFromTemplateCommand");
1011
- var de_GetServiceQuotaIncreaseRequestFromTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1012
- const parsedOutput = {
1013
- ...output,
1014
- body: await parseErrorBody(output.body, context)
1015
- };
1016
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1017
- switch (errorCode) {
1018
- case "AWSServiceAccessNotEnabledException":
1019
- case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
1020
- throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
1021
- case "AccessDeniedException":
1022
- case "com.amazonaws.servicequotas#AccessDeniedException":
1023
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1024
- case "DependencyAccessDeniedException":
1025
- case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
1026
- throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
1027
- case "IllegalArgumentException":
1028
- case "com.amazonaws.servicequotas#IllegalArgumentException":
1029
- throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1030
- case "NoAvailableOrganizationException":
1031
- case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
1032
- throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
1033
- case "NoSuchResourceException":
1034
- case "com.amazonaws.servicequotas#NoSuchResourceException":
1035
- throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
1036
- case "ServiceException":
1037
- case "com.amazonaws.servicequotas#ServiceException":
1038
- throw await de_ServiceExceptionRes(parsedOutput, context);
1039
- case "TemplatesNotAvailableInRegionException":
1040
- case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
1041
- throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
1042
- case "TooManyRequestsException":
1043
- case "com.amazonaws.servicequotas#TooManyRequestsException":
1044
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1045
- default:
1046
- const parsedBody = parsedOutput.body;
1047
- return throwDefaultError({
1048
- output,
1049
- parsedBody,
1050
- errorCode
1051
- });
1052
- }
1053
- }, "de_GetServiceQuotaIncreaseRequestFromTemplateCommandError");
1054
755
  var de_ListAWSDefaultServiceQuotasCommand = /* @__PURE__ */ __name(async (output, context) => {
1055
756
  if (output.statusCode >= 300) {
1056
- return de_ListAWSDefaultServiceQuotasCommandError(output, context);
757
+ return de_CommandError(output, context);
1057
758
  }
1058
759
  const data = await parseBody(output.body, context);
1059
760
  let contents = {};
@@ -1064,43 +765,9 @@ var de_ListAWSDefaultServiceQuotasCommand = /* @__PURE__ */ __name(async (output
1064
765
  };
1065
766
  return response;
1066
767
  }, "de_ListAWSDefaultServiceQuotasCommand");
1067
- var de_ListAWSDefaultServiceQuotasCommandError = /* @__PURE__ */ __name(async (output, context) => {
1068
- const parsedOutput = {
1069
- ...output,
1070
- body: await parseErrorBody(output.body, context)
1071
- };
1072
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1073
- switch (errorCode) {
1074
- case "AccessDeniedException":
1075
- case "com.amazonaws.servicequotas#AccessDeniedException":
1076
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1077
- case "IllegalArgumentException":
1078
- case "com.amazonaws.servicequotas#IllegalArgumentException":
1079
- throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1080
- case "InvalidPaginationTokenException":
1081
- case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
1082
- throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
1083
- case "NoSuchResourceException":
1084
- case "com.amazonaws.servicequotas#NoSuchResourceException":
1085
- throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
1086
- case "ServiceException":
1087
- case "com.amazonaws.servicequotas#ServiceException":
1088
- throw await de_ServiceExceptionRes(parsedOutput, context);
1089
- case "TooManyRequestsException":
1090
- case "com.amazonaws.servicequotas#TooManyRequestsException":
1091
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1092
- default:
1093
- const parsedBody = parsedOutput.body;
1094
- return throwDefaultError({
1095
- output,
1096
- parsedBody,
1097
- errorCode
1098
- });
1099
- }
1100
- }, "de_ListAWSDefaultServiceQuotasCommandError");
1101
768
  var de_ListRequestedServiceQuotaChangeHistoryCommand = /* @__PURE__ */ __name(async (output, context) => {
1102
769
  if (output.statusCode >= 300) {
1103
- return de_ListRequestedServiceQuotaChangeHistoryCommandError(output, context);
770
+ return de_CommandError(output, context);
1104
771
  }
1105
772
  const data = await parseBody(output.body, context);
1106
773
  let contents = {};
@@ -1111,190 +778,48 @@ var de_ListRequestedServiceQuotaChangeHistoryCommand = /* @__PURE__ */ __name(as
1111
778
  };
1112
779
  return response;
1113
780
  }, "de_ListRequestedServiceQuotaChangeHistoryCommand");
1114
- var de_ListRequestedServiceQuotaChangeHistoryCommandError = /* @__PURE__ */ __name(async (output, context) => {
1115
- const parsedOutput = {
1116
- ...output,
1117
- body: await parseErrorBody(output.body, context)
1118
- };
1119
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1120
- switch (errorCode) {
1121
- case "AccessDeniedException":
1122
- case "com.amazonaws.servicequotas#AccessDeniedException":
1123
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1124
- case "IllegalArgumentException":
1125
- case "com.amazonaws.servicequotas#IllegalArgumentException":
1126
- throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1127
- case "InvalidPaginationTokenException":
1128
- case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
1129
- throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
1130
- case "NoSuchResourceException":
1131
- case "com.amazonaws.servicequotas#NoSuchResourceException":
1132
- throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
1133
- case "ServiceException":
1134
- case "com.amazonaws.servicequotas#ServiceException":
1135
- throw await de_ServiceExceptionRes(parsedOutput, context);
1136
- case "TooManyRequestsException":
1137
- case "com.amazonaws.servicequotas#TooManyRequestsException":
1138
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1139
- default:
1140
- const parsedBody = parsedOutput.body;
1141
- return throwDefaultError({
1142
- output,
1143
- parsedBody,
1144
- errorCode
1145
- });
1146
- }
1147
- }, "de_ListRequestedServiceQuotaChangeHistoryCommandError");
1148
781
  var de_ListRequestedServiceQuotaChangeHistoryByQuotaCommand = /* @__PURE__ */ __name(async (output, context) => {
1149
782
  if (output.statusCode >= 300) {
1150
- return de_ListRequestedServiceQuotaChangeHistoryByQuotaCommandError(output, context);
783
+ return de_CommandError(output, context);
1151
784
  }
1152
785
  const data = await parseBody(output.body, context);
1153
786
  let contents = {};
1154
- contents = de_ListRequestedServiceQuotaChangeHistoryByQuotaResponse(data, context);
1155
- const response = {
1156
- $metadata: deserializeMetadata(output),
1157
- ...contents
1158
- };
1159
- return response;
1160
- }, "de_ListRequestedServiceQuotaChangeHistoryByQuotaCommand");
1161
- var de_ListRequestedServiceQuotaChangeHistoryByQuotaCommandError = /* @__PURE__ */ __name(async (output, context) => {
1162
- const parsedOutput = {
1163
- ...output,
1164
- body: await parseErrorBody(output.body, context)
1165
- };
1166
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1167
- switch (errorCode) {
1168
- case "AccessDeniedException":
1169
- case "com.amazonaws.servicequotas#AccessDeniedException":
1170
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1171
- case "IllegalArgumentException":
1172
- case "com.amazonaws.servicequotas#IllegalArgumentException":
1173
- throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1174
- case "InvalidPaginationTokenException":
1175
- case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
1176
- throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
1177
- case "NoSuchResourceException":
1178
- case "com.amazonaws.servicequotas#NoSuchResourceException":
1179
- throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
1180
- case "ServiceException":
1181
- case "com.amazonaws.servicequotas#ServiceException":
1182
- throw await de_ServiceExceptionRes(parsedOutput, context);
1183
- case "TooManyRequestsException":
1184
- case "com.amazonaws.servicequotas#TooManyRequestsException":
1185
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1186
- default:
1187
- const parsedBody = parsedOutput.body;
1188
- return throwDefaultError({
1189
- output,
1190
- parsedBody,
1191
- errorCode
1192
- });
1193
- }
1194
- }, "de_ListRequestedServiceQuotaChangeHistoryByQuotaCommandError");
1195
- var de_ListServiceQuotaIncreaseRequestsInTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1196
- if (output.statusCode >= 300) {
1197
- return de_ListServiceQuotaIncreaseRequestsInTemplateCommandError(output, context);
1198
- }
1199
- const data = await parseBody(output.body, context);
1200
- let contents = {};
1201
- contents = de_ListServiceQuotaIncreaseRequestsInTemplateResponse(data, context);
1202
- const response = {
1203
- $metadata: deserializeMetadata(output),
1204
- ...contents
1205
- };
1206
- return response;
1207
- }, "de_ListServiceQuotaIncreaseRequestsInTemplateCommand");
1208
- var de_ListServiceQuotaIncreaseRequestsInTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1209
- const parsedOutput = {
1210
- ...output,
1211
- body: await parseErrorBody(output.body, context)
1212
- };
1213
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1214
- switch (errorCode) {
1215
- case "AWSServiceAccessNotEnabledException":
1216
- case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
1217
- throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
1218
- case "AccessDeniedException":
1219
- case "com.amazonaws.servicequotas#AccessDeniedException":
1220
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1221
- case "DependencyAccessDeniedException":
1222
- case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
1223
- throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
1224
- case "IllegalArgumentException":
1225
- case "com.amazonaws.servicequotas#IllegalArgumentException":
1226
- throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1227
- case "NoAvailableOrganizationException":
1228
- case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
1229
- throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
1230
- case "ServiceException":
1231
- case "com.amazonaws.servicequotas#ServiceException":
1232
- throw await de_ServiceExceptionRes(parsedOutput, context);
1233
- case "TemplatesNotAvailableInRegionException":
1234
- case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
1235
- throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
1236
- case "TooManyRequestsException":
1237
- case "com.amazonaws.servicequotas#TooManyRequestsException":
1238
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1239
- default:
1240
- const parsedBody = parsedOutput.body;
1241
- return throwDefaultError({
1242
- output,
1243
- parsedBody,
1244
- errorCode
1245
- });
1246
- }
1247
- }, "de_ListServiceQuotaIncreaseRequestsInTemplateCommandError");
1248
- var de_ListServiceQuotasCommand = /* @__PURE__ */ __name(async (output, context) => {
1249
- if (output.statusCode >= 300) {
1250
- return de_ListServiceQuotasCommandError(output, context);
1251
- }
1252
- const data = await parseBody(output.body, context);
1253
- let contents = {};
1254
- contents = de_ListServiceQuotasResponse(data, context);
1255
- const response = {
1256
- $metadata: deserializeMetadata(output),
1257
- ...contents
1258
- };
1259
- return response;
1260
- }, "de_ListServiceQuotasCommand");
1261
- var de_ListServiceQuotasCommandError = /* @__PURE__ */ __name(async (output, context) => {
1262
- const parsedOutput = {
1263
- ...output,
1264
- body: await parseErrorBody(output.body, context)
1265
- };
1266
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1267
- switch (errorCode) {
1268
- case "AccessDeniedException":
1269
- case "com.amazonaws.servicequotas#AccessDeniedException":
1270
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1271
- case "IllegalArgumentException":
1272
- case "com.amazonaws.servicequotas#IllegalArgumentException":
1273
- throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1274
- case "InvalidPaginationTokenException":
1275
- case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
1276
- throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
1277
- case "NoSuchResourceException":
1278
- case "com.amazonaws.servicequotas#NoSuchResourceException":
1279
- throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
1280
- case "ServiceException":
1281
- case "com.amazonaws.servicequotas#ServiceException":
1282
- throw await de_ServiceExceptionRes(parsedOutput, context);
1283
- case "TooManyRequestsException":
1284
- case "com.amazonaws.servicequotas#TooManyRequestsException":
1285
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1286
- default:
1287
- const parsedBody = parsedOutput.body;
1288
- return throwDefaultError({
1289
- output,
1290
- parsedBody,
1291
- errorCode
1292
- });
787
+ contents = de_ListRequestedServiceQuotaChangeHistoryByQuotaResponse(data, context);
788
+ const response = {
789
+ $metadata: deserializeMetadata(output),
790
+ ...contents
791
+ };
792
+ return response;
793
+ }, "de_ListRequestedServiceQuotaChangeHistoryByQuotaCommand");
794
+ var de_ListServiceQuotaIncreaseRequestsInTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
795
+ if (output.statusCode >= 300) {
796
+ return de_CommandError(output, context);
797
+ }
798
+ const data = await parseBody(output.body, context);
799
+ let contents = {};
800
+ contents = de_ListServiceQuotaIncreaseRequestsInTemplateResponse(data, context);
801
+ const response = {
802
+ $metadata: deserializeMetadata(output),
803
+ ...contents
804
+ };
805
+ return response;
806
+ }, "de_ListServiceQuotaIncreaseRequestsInTemplateCommand");
807
+ var de_ListServiceQuotasCommand = /* @__PURE__ */ __name(async (output, context) => {
808
+ if (output.statusCode >= 300) {
809
+ return de_CommandError(output, context);
1293
810
  }
1294
- }, "de_ListServiceQuotasCommandError");
811
+ const data = await parseBody(output.body, context);
812
+ let contents = {};
813
+ contents = de_ListServiceQuotasResponse(data, context);
814
+ const response = {
815
+ $metadata: deserializeMetadata(output),
816
+ ...contents
817
+ };
818
+ return response;
819
+ }, "de_ListServiceQuotasCommand");
1295
820
  var de_ListServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
1296
821
  if (output.statusCode >= 300) {
1297
- return de_ListServicesCommandError(output, context);
822
+ return de_CommandError(output, context);
1298
823
  }
1299
824
  const data = await parseBody(output.body, context);
1300
825
  let contents = {};
@@ -1305,40 +830,9 @@ var de_ListServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
1305
830
  };
1306
831
  return response;
1307
832
  }, "de_ListServicesCommand");
1308
- var de_ListServicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1309
- const parsedOutput = {
1310
- ...output,
1311
- body: await parseErrorBody(output.body, context)
1312
- };
1313
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1314
- switch (errorCode) {
1315
- case "AccessDeniedException":
1316
- case "com.amazonaws.servicequotas#AccessDeniedException":
1317
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1318
- case "IllegalArgumentException":
1319
- case "com.amazonaws.servicequotas#IllegalArgumentException":
1320
- throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1321
- case "InvalidPaginationTokenException":
1322
- case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
1323
- throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
1324
- case "ServiceException":
1325
- case "com.amazonaws.servicequotas#ServiceException":
1326
- throw await de_ServiceExceptionRes(parsedOutput, context);
1327
- case "TooManyRequestsException":
1328
- case "com.amazonaws.servicequotas#TooManyRequestsException":
1329
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1330
- default:
1331
- const parsedBody = parsedOutput.body;
1332
- return throwDefaultError({
1333
- output,
1334
- parsedBody,
1335
- errorCode
1336
- });
1337
- }
1338
- }, "de_ListServicesCommandError");
1339
833
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1340
834
  if (output.statusCode >= 300) {
1341
- return de_ListTagsForResourceCommandError(output, context);
835
+ return de_CommandError(output, context);
1342
836
  }
1343
837
  const data = await parseBody(output.body, context);
1344
838
  let contents = {};
@@ -1349,40 +843,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1349
843
  };
1350
844
  return response;
1351
845
  }, "de_ListTagsForResourceCommand");
1352
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1353
- const parsedOutput = {
1354
- ...output,
1355
- body: await parseErrorBody(output.body, context)
1356
- };
1357
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1358
- switch (errorCode) {
1359
- case "AccessDeniedException":
1360
- case "com.amazonaws.servicequotas#AccessDeniedException":
1361
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1362
- case "IllegalArgumentException":
1363
- case "com.amazonaws.servicequotas#IllegalArgumentException":
1364
- throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1365
- case "NoSuchResourceException":
1366
- case "com.amazonaws.servicequotas#NoSuchResourceException":
1367
- throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
1368
- case "ServiceException":
1369
- case "com.amazonaws.servicequotas#ServiceException":
1370
- throw await de_ServiceExceptionRes(parsedOutput, context);
1371
- case "TooManyRequestsException":
1372
- case "com.amazonaws.servicequotas#TooManyRequestsException":
1373
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1374
- default:
1375
- const parsedBody = parsedOutput.body;
1376
- return throwDefaultError({
1377
- output,
1378
- parsedBody,
1379
- errorCode
1380
- });
1381
- }
1382
- }, "de_ListTagsForResourceCommandError");
1383
846
  var de_PutServiceQuotaIncreaseRequestIntoTemplateCommand = /* @__PURE__ */ __name(async (output, context) => {
1384
847
  if (output.statusCode >= 300) {
1385
- return de_PutServiceQuotaIncreaseRequestIntoTemplateCommandError(output, context);
848
+ return de_CommandError(output, context);
1386
849
  }
1387
850
  const data = await parseBody(output.body, context);
1388
851
  let contents = {};
@@ -1393,55 +856,9 @@ var de_PutServiceQuotaIncreaseRequestIntoTemplateCommand = /* @__PURE__ */ __nam
1393
856
  };
1394
857
  return response;
1395
858
  }, "de_PutServiceQuotaIncreaseRequestIntoTemplateCommand");
1396
- var de_PutServiceQuotaIncreaseRequestIntoTemplateCommandError = /* @__PURE__ */ __name(async (output, context) => {
1397
- const parsedOutput = {
1398
- ...output,
1399
- body: await parseErrorBody(output.body, context)
1400
- };
1401
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1402
- switch (errorCode) {
1403
- case "AWSServiceAccessNotEnabledException":
1404
- case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
1405
- throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
1406
- case "AccessDeniedException":
1407
- case "com.amazonaws.servicequotas#AccessDeniedException":
1408
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1409
- case "DependencyAccessDeniedException":
1410
- case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
1411
- throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
1412
- case "IllegalArgumentException":
1413
- case "com.amazonaws.servicequotas#IllegalArgumentException":
1414
- throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1415
- case "NoAvailableOrganizationException":
1416
- case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
1417
- throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
1418
- case "NoSuchResourceException":
1419
- case "com.amazonaws.servicequotas#NoSuchResourceException":
1420
- throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
1421
- case "QuotaExceededException":
1422
- case "com.amazonaws.servicequotas#QuotaExceededException":
1423
- throw await de_QuotaExceededExceptionRes(parsedOutput, context);
1424
- case "ServiceException":
1425
- case "com.amazonaws.servicequotas#ServiceException":
1426
- throw await de_ServiceExceptionRes(parsedOutput, context);
1427
- case "TemplatesNotAvailableInRegionException":
1428
- case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
1429
- throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
1430
- case "TooManyRequestsException":
1431
- case "com.amazonaws.servicequotas#TooManyRequestsException":
1432
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1433
- default:
1434
- const parsedBody = parsedOutput.body;
1435
- return throwDefaultError({
1436
- output,
1437
- parsedBody,
1438
- errorCode
1439
- });
1440
- }
1441
- }, "de_PutServiceQuotaIncreaseRequestIntoTemplateCommandError");
1442
859
  var de_RequestServiceQuotaIncreaseCommand = /* @__PURE__ */ __name(async (output, context) => {
1443
860
  if (output.statusCode >= 300) {
1444
- return de_RequestServiceQuotaIncreaseCommandError(output, context);
861
+ return de_CommandError(output, context);
1445
862
  }
1446
863
  const data = await parseBody(output.body, context);
1447
864
  let contents = {};
@@ -1452,52 +869,9 @@ var de_RequestServiceQuotaIncreaseCommand = /* @__PURE__ */ __name(async (output
1452
869
  };
1453
870
  return response;
1454
871
  }, "de_RequestServiceQuotaIncreaseCommand");
1455
- var de_RequestServiceQuotaIncreaseCommandError = /* @__PURE__ */ __name(async (output, context) => {
1456
- const parsedOutput = {
1457
- ...output,
1458
- body: await parseErrorBody(output.body, context)
1459
- };
1460
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1461
- switch (errorCode) {
1462
- case "AccessDeniedException":
1463
- case "com.amazonaws.servicequotas#AccessDeniedException":
1464
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1465
- case "DependencyAccessDeniedException":
1466
- case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
1467
- throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
1468
- case "IllegalArgumentException":
1469
- case "com.amazonaws.servicequotas#IllegalArgumentException":
1470
- throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1471
- case "InvalidResourceStateException":
1472
- case "com.amazonaws.servicequotas#InvalidResourceStateException":
1473
- throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
1474
- case "NoSuchResourceException":
1475
- case "com.amazonaws.servicequotas#NoSuchResourceException":
1476
- throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
1477
- case "QuotaExceededException":
1478
- case "com.amazonaws.servicequotas#QuotaExceededException":
1479
- throw await de_QuotaExceededExceptionRes(parsedOutput, context);
1480
- case "ResourceAlreadyExistsException":
1481
- case "com.amazonaws.servicequotas#ResourceAlreadyExistsException":
1482
- throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
1483
- case "ServiceException":
1484
- case "com.amazonaws.servicequotas#ServiceException":
1485
- throw await de_ServiceExceptionRes(parsedOutput, context);
1486
- case "TooManyRequestsException":
1487
- case "com.amazonaws.servicequotas#TooManyRequestsException":
1488
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1489
- default:
1490
- const parsedBody = parsedOutput.body;
1491
- return throwDefaultError({
1492
- output,
1493
- parsedBody,
1494
- errorCode
1495
- });
1496
- }
1497
- }, "de_RequestServiceQuotaIncreaseCommandError");
1498
872
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1499
873
  if (output.statusCode >= 300) {
1500
- return de_TagResourceCommandError(output, context);
874
+ return de_CommandError(output, context);
1501
875
  }
1502
876
  const data = await parseBody(output.body, context);
1503
877
  let contents = {};
@@ -1508,46 +882,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1508
882
  };
1509
883
  return response;
1510
884
  }, "de_TagResourceCommand");
1511
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1512
- const parsedOutput = {
1513
- ...output,
1514
- body: await parseErrorBody(output.body, context)
1515
- };
1516
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1517
- switch (errorCode) {
1518
- case "AccessDeniedException":
1519
- case "com.amazonaws.servicequotas#AccessDeniedException":
1520
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1521
- case "IllegalArgumentException":
1522
- case "com.amazonaws.servicequotas#IllegalArgumentException":
1523
- throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1524
- case "NoSuchResourceException":
1525
- case "com.amazonaws.servicequotas#NoSuchResourceException":
1526
- throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
1527
- case "ServiceException":
1528
- case "com.amazonaws.servicequotas#ServiceException":
1529
- throw await de_ServiceExceptionRes(parsedOutput, context);
1530
- case "TagPolicyViolationException":
1531
- case "com.amazonaws.servicequotas#TagPolicyViolationException":
1532
- throw await de_TagPolicyViolationExceptionRes(parsedOutput, context);
1533
- case "TooManyRequestsException":
1534
- case "com.amazonaws.servicequotas#TooManyRequestsException":
1535
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1536
- case "TooManyTagsException":
1537
- case "com.amazonaws.servicequotas#TooManyTagsException":
1538
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1539
- default:
1540
- const parsedBody = parsedOutput.body;
1541
- return throwDefaultError({
1542
- output,
1543
- parsedBody,
1544
- errorCode
1545
- });
1546
- }
1547
- }, "de_TagResourceCommandError");
1548
885
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1549
886
  if (output.statusCode >= 300) {
1550
- return de_UntagResourceCommandError(output, context);
887
+ return de_CommandError(output, context);
1551
888
  }
1552
889
  const data = await parseBody(output.body, context);
1553
890
  let contents = {};
@@ -1558,28 +895,64 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
1558
895
  };
1559
896
  return response;
1560
897
  }, "de_UntagResourceCommand");
1561
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
898
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1562
899
  const parsedOutput = {
1563
900
  ...output,
1564
901
  body: await parseErrorBody(output.body, context)
1565
902
  };
1566
903
  const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1567
904
  switch (errorCode) {
905
+ case "AWSServiceAccessNotEnabledException":
906
+ case "com.amazonaws.servicequotas#AWSServiceAccessNotEnabledException":
907
+ throw await de_AWSServiceAccessNotEnabledExceptionRes(parsedOutput, context);
1568
908
  case "AccessDeniedException":
1569
909
  case "com.amazonaws.servicequotas#AccessDeniedException":
1570
910
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1571
- case "IllegalArgumentException":
1572
- case "com.amazonaws.servicequotas#IllegalArgumentException":
1573
- throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
1574
- case "NoSuchResourceException":
1575
- case "com.amazonaws.servicequotas#NoSuchResourceException":
1576
- throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
911
+ case "DependencyAccessDeniedException":
912
+ case "com.amazonaws.servicequotas#DependencyAccessDeniedException":
913
+ throw await de_DependencyAccessDeniedExceptionRes(parsedOutput, context);
914
+ case "NoAvailableOrganizationException":
915
+ case "com.amazonaws.servicequotas#NoAvailableOrganizationException":
916
+ throw await de_NoAvailableOrganizationExceptionRes(parsedOutput, context);
917
+ case "OrganizationNotInAllFeaturesModeException":
918
+ case "com.amazonaws.servicequotas#OrganizationNotInAllFeaturesModeException":
919
+ throw await de_OrganizationNotInAllFeaturesModeExceptionRes(parsedOutput, context);
1577
920
  case "ServiceException":
1578
921
  case "com.amazonaws.servicequotas#ServiceException":
1579
922
  throw await de_ServiceExceptionRes(parsedOutput, context);
923
+ case "TemplatesNotAvailableInRegionException":
924
+ case "com.amazonaws.servicequotas#TemplatesNotAvailableInRegionException":
925
+ throw await de_TemplatesNotAvailableInRegionExceptionRes(parsedOutput, context);
1580
926
  case "TooManyRequestsException":
1581
927
  case "com.amazonaws.servicequotas#TooManyRequestsException":
1582
928
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
929
+ case "IllegalArgumentException":
930
+ case "com.amazonaws.servicequotas#IllegalArgumentException":
931
+ throw await de_IllegalArgumentExceptionRes(parsedOutput, context);
932
+ case "NoSuchResourceException":
933
+ case "com.amazonaws.servicequotas#NoSuchResourceException":
934
+ throw await de_NoSuchResourceExceptionRes(parsedOutput, context);
935
+ case "ServiceQuotaTemplateNotInUseException":
936
+ case "com.amazonaws.servicequotas#ServiceQuotaTemplateNotInUseException":
937
+ throw await de_ServiceQuotaTemplateNotInUseExceptionRes(parsedOutput, context);
938
+ case "InvalidPaginationTokenException":
939
+ case "com.amazonaws.servicequotas#InvalidPaginationTokenException":
940
+ throw await de_InvalidPaginationTokenExceptionRes(parsedOutput, context);
941
+ case "QuotaExceededException":
942
+ case "com.amazonaws.servicequotas#QuotaExceededException":
943
+ throw await de_QuotaExceededExceptionRes(parsedOutput, context);
944
+ case "InvalidResourceStateException":
945
+ case "com.amazonaws.servicequotas#InvalidResourceStateException":
946
+ throw await de_InvalidResourceStateExceptionRes(parsedOutput, context);
947
+ case "ResourceAlreadyExistsException":
948
+ case "com.amazonaws.servicequotas#ResourceAlreadyExistsException":
949
+ throw await de_ResourceAlreadyExistsExceptionRes(parsedOutput, context);
950
+ case "TagPolicyViolationException":
951
+ case "com.amazonaws.servicequotas#TagPolicyViolationException":
952
+ throw await de_TagPolicyViolationExceptionRes(parsedOutput, context);
953
+ case "TooManyTagsException":
954
+ case "com.amazonaws.servicequotas#TooManyTagsException":
955
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
1583
956
  default:
1584
957
  const parsedBody = parsedOutput.body;
1585
958
  return throwDefaultError({
@@ -1588,7 +961,7 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
1588
961
  errorCode
1589
962
  });
1590
963
  }
1591
- }, "de_UntagResourceCommandError");
964
+ }, "de_CommandError");
1592
965
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1593
966
  const body = parsedOutput.body;
1594
967
  const deserialized = (0, import_smithy_client._json)(body);