@aws-sdk/client-marketplace-catalog 3.504.0 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -674,7 +674,7 @@ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
674
674
  }, "se_UntagResourceCommand");
675
675
  var de_BatchDescribeEntitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
676
676
  if (output.statusCode !== 200 && output.statusCode >= 300) {
677
- return de_BatchDescribeEntitiesCommandError(output, context);
677
+ return de_CommandError(output, context);
678
678
  }
679
679
  const contents = (0, import_smithy_client.map)({
680
680
  $metadata: deserializeMetadata(output)
@@ -687,37 +687,9 @@ var de_BatchDescribeEntitiesCommand = /* @__PURE__ */ __name(async (output, cont
687
687
  Object.assign(contents, doc);
688
688
  return contents;
689
689
  }, "de_BatchDescribeEntitiesCommand");
690
- var de_BatchDescribeEntitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
691
- const parsedOutput = {
692
- ...output,
693
- body: await parseErrorBody(output.body, context)
694
- };
695
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
696
- switch (errorCode) {
697
- case "AccessDeniedException":
698
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
699
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
700
- case "InternalServiceException":
701
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
702
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
703
- case "ThrottlingException":
704
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
705
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
706
- case "ValidationException":
707
- case "com.amazonaws.marketplacecatalog#ValidationException":
708
- throw await de_ValidationExceptionRes(parsedOutput, context);
709
- default:
710
- const parsedBody = parsedOutput.body;
711
- return throwDefaultError({
712
- output,
713
- parsedBody,
714
- errorCode
715
- });
716
- }
717
- }, "de_BatchDescribeEntitiesCommandError");
718
690
  var de_CancelChangeSetCommand = /* @__PURE__ */ __name(async (output, context) => {
719
691
  if (output.statusCode !== 200 && output.statusCode >= 300) {
720
- return de_CancelChangeSetCommandError(output, context);
692
+ return de_CommandError(output, context);
721
693
  }
722
694
  const contents = (0, import_smithy_client.map)({
723
695
  $metadata: deserializeMetadata(output)
@@ -730,43 +702,9 @@ var de_CancelChangeSetCommand = /* @__PURE__ */ __name(async (output, context) =
730
702
  Object.assign(contents, doc);
731
703
  return contents;
732
704
  }, "de_CancelChangeSetCommand");
733
- var de_CancelChangeSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
734
- const parsedOutput = {
735
- ...output,
736
- body: await parseErrorBody(output.body, context)
737
- };
738
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
739
- switch (errorCode) {
740
- case "AccessDeniedException":
741
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
742
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
743
- case "InternalServiceException":
744
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
745
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
746
- case "ResourceInUseException":
747
- case "com.amazonaws.marketplacecatalog#ResourceInUseException":
748
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
749
- case "ResourceNotFoundException":
750
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
751
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
752
- case "ThrottlingException":
753
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
754
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
755
- case "ValidationException":
756
- case "com.amazonaws.marketplacecatalog#ValidationException":
757
- throw await de_ValidationExceptionRes(parsedOutput, context);
758
- default:
759
- const parsedBody = parsedOutput.body;
760
- return throwDefaultError({
761
- output,
762
- parsedBody,
763
- errorCode
764
- });
765
- }
766
- }, "de_CancelChangeSetCommandError");
767
705
  var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
768
706
  if (output.statusCode !== 200 && output.statusCode >= 300) {
769
- return de_DeleteResourcePolicyCommandError(output, context);
707
+ return de_CommandError(output, context);
770
708
  }
771
709
  const contents = (0, import_smithy_client.map)({
772
710
  $metadata: deserializeMetadata(output)
@@ -774,40 +712,9 @@ var de_DeleteResourcePolicyCommand = /* @__PURE__ */ __name(async (output, conte
774
712
  await (0, import_smithy_client.collectBody)(output.body, context);
775
713
  return contents;
776
714
  }, "de_DeleteResourcePolicyCommand");
777
- var de_DeleteResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
778
- const parsedOutput = {
779
- ...output,
780
- body: await parseErrorBody(output.body, context)
781
- };
782
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
783
- switch (errorCode) {
784
- case "AccessDeniedException":
785
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
786
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
787
- case "InternalServiceException":
788
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
789
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
790
- case "ResourceNotFoundException":
791
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
792
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
793
- case "ThrottlingException":
794
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
795
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
796
- case "ValidationException":
797
- case "com.amazonaws.marketplacecatalog#ValidationException":
798
- throw await de_ValidationExceptionRes(parsedOutput, context);
799
- default:
800
- const parsedBody = parsedOutput.body;
801
- return throwDefaultError({
802
- output,
803
- parsedBody,
804
- errorCode
805
- });
806
- }
807
- }, "de_DeleteResourcePolicyCommandError");
808
715
  var de_DescribeChangeSetCommand = /* @__PURE__ */ __name(async (output, context) => {
809
716
  if (output.statusCode !== 200 && output.statusCode >= 300) {
810
- return de_DescribeChangeSetCommandError(output, context);
717
+ return de_CommandError(output, context);
811
718
  }
812
719
  const contents = (0, import_smithy_client.map)({
813
720
  $metadata: deserializeMetadata(output)
@@ -827,40 +734,9 @@ var de_DescribeChangeSetCommand = /* @__PURE__ */ __name(async (output, context)
827
734
  Object.assign(contents, doc);
828
735
  return contents;
829
736
  }, "de_DescribeChangeSetCommand");
830
- var de_DescribeChangeSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
831
- const parsedOutput = {
832
- ...output,
833
- body: await parseErrorBody(output.body, context)
834
- };
835
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
836
- switch (errorCode) {
837
- case "AccessDeniedException":
838
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
839
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
840
- case "InternalServiceException":
841
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
842
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
843
- case "ResourceNotFoundException":
844
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
845
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
846
- case "ThrottlingException":
847
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
848
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
849
- case "ValidationException":
850
- case "com.amazonaws.marketplacecatalog#ValidationException":
851
- throw await de_ValidationExceptionRes(parsedOutput, context);
852
- default:
853
- const parsedBody = parsedOutput.body;
854
- return throwDefaultError({
855
- output,
856
- parsedBody,
857
- errorCode
858
- });
859
- }
860
- }, "de_DescribeChangeSetCommandError");
861
737
  var de_DescribeEntityCommand = /* @__PURE__ */ __name(async (output, context) => {
862
738
  if (output.statusCode !== 200 && output.statusCode >= 300) {
863
- return de_DescribeEntityCommandError(output, context);
739
+ return de_CommandError(output, context);
864
740
  }
865
741
  const contents = (0, import_smithy_client.map)({
866
742
  $metadata: deserializeMetadata(output)
@@ -877,43 +753,9 @@ var de_DescribeEntityCommand = /* @__PURE__ */ __name(async (output, context) =>
877
753
  Object.assign(contents, doc);
878
754
  return contents;
879
755
  }, "de_DescribeEntityCommand");
880
- var de_DescribeEntityCommandError = /* @__PURE__ */ __name(async (output, context) => {
881
- const parsedOutput = {
882
- ...output,
883
- body: await parseErrorBody(output.body, context)
884
- };
885
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
886
- switch (errorCode) {
887
- case "AccessDeniedException":
888
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
889
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
890
- case "InternalServiceException":
891
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
892
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
893
- case "ResourceNotFoundException":
894
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
895
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
896
- case "ResourceNotSupportedException":
897
- case "com.amazonaws.marketplacecatalog#ResourceNotSupportedException":
898
- throw await de_ResourceNotSupportedExceptionRes(parsedOutput, context);
899
- case "ThrottlingException":
900
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
901
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
902
- case "ValidationException":
903
- case "com.amazonaws.marketplacecatalog#ValidationException":
904
- throw await de_ValidationExceptionRes(parsedOutput, context);
905
- default:
906
- const parsedBody = parsedOutput.body;
907
- return throwDefaultError({
908
- output,
909
- parsedBody,
910
- errorCode
911
- });
912
- }
913
- }, "de_DescribeEntityCommandError");
914
756
  var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
915
757
  if (output.statusCode !== 200 && output.statusCode >= 300) {
916
- return de_GetResourcePolicyCommandError(output, context);
758
+ return de_CommandError(output, context);
917
759
  }
918
760
  const contents = (0, import_smithy_client.map)({
919
761
  $metadata: deserializeMetadata(output)
@@ -925,40 +767,9 @@ var de_GetResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
925
767
  Object.assign(contents, doc);
926
768
  return contents;
927
769
  }, "de_GetResourcePolicyCommand");
928
- var de_GetResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
929
- const parsedOutput = {
930
- ...output,
931
- body: await parseErrorBody(output.body, context)
932
- };
933
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
934
- switch (errorCode) {
935
- case "AccessDeniedException":
936
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
937
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
938
- case "InternalServiceException":
939
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
940
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
941
- case "ResourceNotFoundException":
942
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
943
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
944
- case "ThrottlingException":
945
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
946
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
947
- case "ValidationException":
948
- case "com.amazonaws.marketplacecatalog#ValidationException":
949
- throw await de_ValidationExceptionRes(parsedOutput, context);
950
- default:
951
- const parsedBody = parsedOutput.body;
952
- return throwDefaultError({
953
- output,
954
- parsedBody,
955
- errorCode
956
- });
957
- }
958
- }, "de_GetResourcePolicyCommandError");
959
770
  var de_ListChangeSetsCommand = /* @__PURE__ */ __name(async (output, context) => {
960
771
  if (output.statusCode !== 200 && output.statusCode >= 300) {
961
- return de_ListChangeSetsCommandError(output, context);
772
+ return de_CommandError(output, context);
962
773
  }
963
774
  const contents = (0, import_smithy_client.map)({
964
775
  $metadata: deserializeMetadata(output)
@@ -971,37 +782,9 @@ var de_ListChangeSetsCommand = /* @__PURE__ */ __name(async (output, context) =>
971
782
  Object.assign(contents, doc);
972
783
  return contents;
973
784
  }, "de_ListChangeSetsCommand");
974
- var de_ListChangeSetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
975
- const parsedOutput = {
976
- ...output,
977
- body: await parseErrorBody(output.body, context)
978
- };
979
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
980
- switch (errorCode) {
981
- case "AccessDeniedException":
982
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
983
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
984
- case "InternalServiceException":
985
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
986
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
987
- case "ThrottlingException":
988
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
989
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
990
- case "ValidationException":
991
- case "com.amazonaws.marketplacecatalog#ValidationException":
992
- throw await de_ValidationExceptionRes(parsedOutput, context);
993
- default:
994
- const parsedBody = parsedOutput.body;
995
- return throwDefaultError({
996
- output,
997
- parsedBody,
998
- errorCode
999
- });
1000
- }
1001
- }, "de_ListChangeSetsCommandError");
1002
785
  var de_ListEntitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
1003
786
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1004
- return de_ListEntitiesCommandError(output, context);
787
+ return de_CommandError(output, context);
1005
788
  }
1006
789
  const contents = (0, import_smithy_client.map)({
1007
790
  $metadata: deserializeMetadata(output)
@@ -1014,40 +797,9 @@ var de_ListEntitiesCommand = /* @__PURE__ */ __name(async (output, context) => {
1014
797
  Object.assign(contents, doc);
1015
798
  return contents;
1016
799
  }, "de_ListEntitiesCommand");
1017
- var de_ListEntitiesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1018
- const parsedOutput = {
1019
- ...output,
1020
- body: await parseErrorBody(output.body, context)
1021
- };
1022
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1023
- switch (errorCode) {
1024
- case "AccessDeniedException":
1025
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
1026
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1027
- case "InternalServiceException":
1028
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
1029
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1030
- case "ResourceNotFoundException":
1031
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
1032
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1033
- case "ThrottlingException":
1034
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
1035
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1036
- case "ValidationException":
1037
- case "com.amazonaws.marketplacecatalog#ValidationException":
1038
- throw await de_ValidationExceptionRes(parsedOutput, context);
1039
- default:
1040
- const parsedBody = parsedOutput.body;
1041
- return throwDefaultError({
1042
- output,
1043
- parsedBody,
1044
- errorCode
1045
- });
1046
- }
1047
- }, "de_ListEntitiesCommandError");
1048
800
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1049
801
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1050
- return de_ListTagsForResourceCommandError(output, context);
802
+ return de_CommandError(output, context);
1051
803
  }
1052
804
  const contents = (0, import_smithy_client.map)({
1053
805
  $metadata: deserializeMetadata(output)
@@ -1060,40 +812,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1060
812
  Object.assign(contents, doc);
1061
813
  return contents;
1062
814
  }, "de_ListTagsForResourceCommand");
1063
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1064
- const parsedOutput = {
1065
- ...output,
1066
- body: await parseErrorBody(output.body, context)
1067
- };
1068
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1069
- switch (errorCode) {
1070
- case "AccessDeniedException":
1071
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
1072
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1073
- case "InternalServiceException":
1074
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
1075
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1076
- case "ResourceNotFoundException":
1077
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
1078
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1079
- case "ThrottlingException":
1080
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
1081
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1082
- case "ValidationException":
1083
- case "com.amazonaws.marketplacecatalog#ValidationException":
1084
- throw await de_ValidationExceptionRes(parsedOutput, context);
1085
- default:
1086
- const parsedBody = parsedOutput.body;
1087
- return throwDefaultError({
1088
- output,
1089
- parsedBody,
1090
- errorCode
1091
- });
1092
- }
1093
- }, "de_ListTagsForResourceCommandError");
1094
815
  var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context) => {
1095
816
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1096
- return de_PutResourcePolicyCommandError(output, context);
817
+ return de_CommandError(output, context);
1097
818
  }
1098
819
  const contents = (0, import_smithy_client.map)({
1099
820
  $metadata: deserializeMetadata(output)
@@ -1101,40 +822,9 @@ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
1101
822
  await (0, import_smithy_client.collectBody)(output.body, context);
1102
823
  return contents;
1103
824
  }, "de_PutResourcePolicyCommand");
1104
- var de_PutResourcePolicyCommandError = /* @__PURE__ */ __name(async (output, context) => {
1105
- const parsedOutput = {
1106
- ...output,
1107
- body: await parseErrorBody(output.body, context)
1108
- };
1109
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1110
- switch (errorCode) {
1111
- case "AccessDeniedException":
1112
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
1113
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1114
- case "InternalServiceException":
1115
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
1116
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1117
- case "ResourceNotFoundException":
1118
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
1119
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1120
- case "ThrottlingException":
1121
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
1122
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1123
- case "ValidationException":
1124
- case "com.amazonaws.marketplacecatalog#ValidationException":
1125
- throw await de_ValidationExceptionRes(parsedOutput, context);
1126
- default:
1127
- const parsedBody = parsedOutput.body;
1128
- return throwDefaultError({
1129
- output,
1130
- parsedBody,
1131
- errorCode
1132
- });
1133
- }
1134
- }, "de_PutResourcePolicyCommandError");
1135
825
  var de_StartChangeSetCommand = /* @__PURE__ */ __name(async (output, context) => {
1136
826
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1137
- return de_StartChangeSetCommandError(output, context);
827
+ return de_CommandError(output, context);
1138
828
  }
1139
829
  const contents = (0, import_smithy_client.map)({
1140
830
  $metadata: deserializeMetadata(output)
@@ -1147,46 +837,9 @@ var de_StartChangeSetCommand = /* @__PURE__ */ __name(async (output, context) =>
1147
837
  Object.assign(contents, doc);
1148
838
  return contents;
1149
839
  }, "de_StartChangeSetCommand");
1150
- var de_StartChangeSetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1151
- const parsedOutput = {
1152
- ...output,
1153
- body: await parseErrorBody(output.body, context)
1154
- };
1155
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1156
- switch (errorCode) {
1157
- case "AccessDeniedException":
1158
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
1159
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1160
- case "InternalServiceException":
1161
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
1162
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1163
- case "ResourceInUseException":
1164
- case "com.amazonaws.marketplacecatalog#ResourceInUseException":
1165
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1166
- case "ResourceNotFoundException":
1167
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
1168
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1169
- case "ServiceQuotaExceededException":
1170
- case "com.amazonaws.marketplacecatalog#ServiceQuotaExceededException":
1171
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1172
- case "ThrottlingException":
1173
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
1174
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1175
- case "ValidationException":
1176
- case "com.amazonaws.marketplacecatalog#ValidationException":
1177
- throw await de_ValidationExceptionRes(parsedOutput, context);
1178
- default:
1179
- const parsedBody = parsedOutput.body;
1180
- return throwDefaultError({
1181
- output,
1182
- parsedBody,
1183
- errorCode
1184
- });
1185
- }
1186
- }, "de_StartChangeSetCommandError");
1187
840
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1188
841
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1189
- return de_TagResourceCommandError(output, context);
842
+ return de_CommandError(output, context);
1190
843
  }
1191
844
  const contents = (0, import_smithy_client.map)({
1192
845
  $metadata: deserializeMetadata(output)
@@ -1194,40 +847,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1194
847
  await (0, import_smithy_client.collectBody)(output.body, context);
1195
848
  return contents;
1196
849
  }, "de_TagResourceCommand");
1197
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1198
- const parsedOutput = {
1199
- ...output,
1200
- body: await parseErrorBody(output.body, context)
1201
- };
1202
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1203
- switch (errorCode) {
1204
- case "AccessDeniedException":
1205
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
1206
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1207
- case "InternalServiceException":
1208
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
1209
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
1210
- case "ResourceNotFoundException":
1211
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
1212
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1213
- case "ThrottlingException":
1214
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
1215
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1216
- case "ValidationException":
1217
- case "com.amazonaws.marketplacecatalog#ValidationException":
1218
- throw await de_ValidationExceptionRes(parsedOutput, context);
1219
- default:
1220
- const parsedBody = parsedOutput.body;
1221
- return throwDefaultError({
1222
- output,
1223
- parsedBody,
1224
- errorCode
1225
- });
1226
- }
1227
- }, "de_TagResourceCommandError");
1228
850
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1229
851
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1230
- return de_UntagResourceCommandError(output, context);
852
+ return de_CommandError(output, context);
1231
853
  }
1232
854
  const contents = (0, import_smithy_client.map)({
1233
855
  $metadata: deserializeMetadata(output)
@@ -1235,7 +857,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
1235
857
  await (0, import_smithy_client.collectBody)(output.body, context);
1236
858
  return contents;
1237
859
  }, "de_UntagResourceCommand");
1238
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
860
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1239
861
  const parsedOutput = {
1240
862
  ...output,
1241
863
  body: await parseErrorBody(output.body, context)
@@ -1248,15 +870,24 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
1248
870
  case "InternalServiceException":
1249
871
  case "com.amazonaws.marketplacecatalog#InternalServiceException":
1250
872
  throw await de_InternalServiceExceptionRes(parsedOutput, context);
1251
- case "ResourceNotFoundException":
1252
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
1253
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1254
873
  case "ThrottlingException":
1255
874
  case "com.amazonaws.marketplacecatalog#ThrottlingException":
1256
875
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
1257
876
  case "ValidationException":
1258
877
  case "com.amazonaws.marketplacecatalog#ValidationException":
1259
878
  throw await de_ValidationExceptionRes(parsedOutput, context);
879
+ case "ResourceInUseException":
880
+ case "com.amazonaws.marketplacecatalog#ResourceInUseException":
881
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
882
+ case "ResourceNotFoundException":
883
+ case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
884
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
885
+ case "ResourceNotSupportedException":
886
+ case "com.amazonaws.marketplacecatalog#ResourceNotSupportedException":
887
+ throw await de_ResourceNotSupportedExceptionRes(parsedOutput, context);
888
+ case "ServiceQuotaExceededException":
889
+ case "com.amazonaws.marketplacecatalog#ServiceQuotaExceededException":
890
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1260
891
  default:
1261
892
  const parsedBody = parsedOutput.body;
1262
893
  return throwDefaultError({
@@ -1265,7 +896,7 @@ var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context
1265
896
  errorCode
1266
897
  });
1267
898
  }
1268
- }, "de_UntagResourceCommandError");
899
+ }, "de_CommandError");
1269
900
  var throwDefaultError = (0, import_smithy_client.withBaseException)(MarketplaceCatalogServiceException);
1270
901
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1271
902
  const contents = (0, import_smithy_client.map)({});
@@ -186,7 +186,7 @@ export const se_UntagResourceCommand = async (input, context) => {
186
186
  };
187
187
  export const de_BatchDescribeEntitiesCommand = async (output, context) => {
188
188
  if (output.statusCode !== 200 && output.statusCode >= 300) {
189
- return de_BatchDescribeEntitiesCommandError(output, context);
189
+ return de_CommandError(output, context);
190
190
  }
191
191
  const contents = map({
192
192
  $metadata: deserializeMetadata(output),
@@ -199,37 +199,9 @@ export const de_BatchDescribeEntitiesCommand = async (output, context) => {
199
199
  Object.assign(contents, doc);
200
200
  return contents;
201
201
  };
202
- const de_BatchDescribeEntitiesCommandError = async (output, context) => {
203
- const parsedOutput = {
204
- ...output,
205
- body: await parseErrorBody(output.body, context),
206
- };
207
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
208
- switch (errorCode) {
209
- case "AccessDeniedException":
210
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
211
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
212
- case "InternalServiceException":
213
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
214
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
215
- case "ThrottlingException":
216
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
217
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
218
- case "ValidationException":
219
- case "com.amazonaws.marketplacecatalog#ValidationException":
220
- throw await de_ValidationExceptionRes(parsedOutput, context);
221
- default:
222
- const parsedBody = parsedOutput.body;
223
- return throwDefaultError({
224
- output,
225
- parsedBody,
226
- errorCode,
227
- });
228
- }
229
- };
230
202
  export const de_CancelChangeSetCommand = async (output, context) => {
231
203
  if (output.statusCode !== 200 && output.statusCode >= 300) {
232
- return de_CancelChangeSetCommandError(output, context);
204
+ return de_CommandError(output, context);
233
205
  }
234
206
  const contents = map({
235
207
  $metadata: deserializeMetadata(output),
@@ -242,43 +214,9 @@ export const de_CancelChangeSetCommand = async (output, context) => {
242
214
  Object.assign(contents, doc);
243
215
  return contents;
244
216
  };
245
- const de_CancelChangeSetCommandError = async (output, context) => {
246
- const parsedOutput = {
247
- ...output,
248
- body: await parseErrorBody(output.body, context),
249
- };
250
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
251
- switch (errorCode) {
252
- case "AccessDeniedException":
253
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
254
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
255
- case "InternalServiceException":
256
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
257
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
258
- case "ResourceInUseException":
259
- case "com.amazonaws.marketplacecatalog#ResourceInUseException":
260
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
261
- case "ResourceNotFoundException":
262
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
263
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
264
- case "ThrottlingException":
265
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
266
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
267
- case "ValidationException":
268
- case "com.amazonaws.marketplacecatalog#ValidationException":
269
- throw await de_ValidationExceptionRes(parsedOutput, context);
270
- default:
271
- const parsedBody = parsedOutput.body;
272
- return throwDefaultError({
273
- output,
274
- parsedBody,
275
- errorCode,
276
- });
277
- }
278
- };
279
217
  export const de_DeleteResourcePolicyCommand = async (output, context) => {
280
218
  if (output.statusCode !== 200 && output.statusCode >= 300) {
281
- return de_DeleteResourcePolicyCommandError(output, context);
219
+ return de_CommandError(output, context);
282
220
  }
283
221
  const contents = map({
284
222
  $metadata: deserializeMetadata(output),
@@ -286,40 +224,9 @@ export const de_DeleteResourcePolicyCommand = async (output, context) => {
286
224
  await collectBody(output.body, context);
287
225
  return contents;
288
226
  };
289
- const de_DeleteResourcePolicyCommandError = async (output, context) => {
290
- const parsedOutput = {
291
- ...output,
292
- body: await parseErrorBody(output.body, context),
293
- };
294
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
295
- switch (errorCode) {
296
- case "AccessDeniedException":
297
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
298
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
299
- case "InternalServiceException":
300
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
301
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
302
- case "ResourceNotFoundException":
303
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
304
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
305
- case "ThrottlingException":
306
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
307
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
308
- case "ValidationException":
309
- case "com.amazonaws.marketplacecatalog#ValidationException":
310
- throw await de_ValidationExceptionRes(parsedOutput, context);
311
- default:
312
- const parsedBody = parsedOutput.body;
313
- return throwDefaultError({
314
- output,
315
- parsedBody,
316
- errorCode,
317
- });
318
- }
319
- };
320
227
  export const de_DescribeChangeSetCommand = async (output, context) => {
321
228
  if (output.statusCode !== 200 && output.statusCode >= 300) {
322
- return de_DescribeChangeSetCommandError(output, context);
229
+ return de_CommandError(output, context);
323
230
  }
324
231
  const contents = map({
325
232
  $metadata: deserializeMetadata(output),
@@ -339,40 +246,9 @@ export const de_DescribeChangeSetCommand = async (output, context) => {
339
246
  Object.assign(contents, doc);
340
247
  return contents;
341
248
  };
342
- const de_DescribeChangeSetCommandError = async (output, context) => {
343
- const parsedOutput = {
344
- ...output,
345
- body: await parseErrorBody(output.body, context),
346
- };
347
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
348
- switch (errorCode) {
349
- case "AccessDeniedException":
350
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
351
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
352
- case "InternalServiceException":
353
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
354
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
355
- case "ResourceNotFoundException":
356
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
357
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
358
- case "ThrottlingException":
359
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
360
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
361
- case "ValidationException":
362
- case "com.amazonaws.marketplacecatalog#ValidationException":
363
- throw await de_ValidationExceptionRes(parsedOutput, context);
364
- default:
365
- const parsedBody = parsedOutput.body;
366
- return throwDefaultError({
367
- output,
368
- parsedBody,
369
- errorCode,
370
- });
371
- }
372
- };
373
249
  export const de_DescribeEntityCommand = async (output, context) => {
374
250
  if (output.statusCode !== 200 && output.statusCode >= 300) {
375
- return de_DescribeEntityCommandError(output, context);
251
+ return de_CommandError(output, context);
376
252
  }
377
253
  const contents = map({
378
254
  $metadata: deserializeMetadata(output),
@@ -389,43 +265,9 @@ export const de_DescribeEntityCommand = async (output, context) => {
389
265
  Object.assign(contents, doc);
390
266
  return contents;
391
267
  };
392
- const de_DescribeEntityCommandError = async (output, context) => {
393
- const parsedOutput = {
394
- ...output,
395
- body: await parseErrorBody(output.body, context),
396
- };
397
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
398
- switch (errorCode) {
399
- case "AccessDeniedException":
400
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
401
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
402
- case "InternalServiceException":
403
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
404
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
405
- case "ResourceNotFoundException":
406
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
407
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
408
- case "ResourceNotSupportedException":
409
- case "com.amazonaws.marketplacecatalog#ResourceNotSupportedException":
410
- throw await de_ResourceNotSupportedExceptionRes(parsedOutput, context);
411
- case "ThrottlingException":
412
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
413
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
414
- case "ValidationException":
415
- case "com.amazonaws.marketplacecatalog#ValidationException":
416
- throw await de_ValidationExceptionRes(parsedOutput, context);
417
- default:
418
- const parsedBody = parsedOutput.body;
419
- return throwDefaultError({
420
- output,
421
- parsedBody,
422
- errorCode,
423
- });
424
- }
425
- };
426
268
  export const de_GetResourcePolicyCommand = async (output, context) => {
427
269
  if (output.statusCode !== 200 && output.statusCode >= 300) {
428
- return de_GetResourcePolicyCommandError(output, context);
270
+ return de_CommandError(output, context);
429
271
  }
430
272
  const contents = map({
431
273
  $metadata: deserializeMetadata(output),
@@ -437,40 +279,9 @@ export const de_GetResourcePolicyCommand = async (output, context) => {
437
279
  Object.assign(contents, doc);
438
280
  return contents;
439
281
  };
440
- const de_GetResourcePolicyCommandError = async (output, context) => {
441
- const parsedOutput = {
442
- ...output,
443
- body: await parseErrorBody(output.body, context),
444
- };
445
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
446
- switch (errorCode) {
447
- case "AccessDeniedException":
448
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
449
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
450
- case "InternalServiceException":
451
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
452
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
453
- case "ResourceNotFoundException":
454
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
455
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
456
- case "ThrottlingException":
457
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
458
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
459
- case "ValidationException":
460
- case "com.amazonaws.marketplacecatalog#ValidationException":
461
- throw await de_ValidationExceptionRes(parsedOutput, context);
462
- default:
463
- const parsedBody = parsedOutput.body;
464
- return throwDefaultError({
465
- output,
466
- parsedBody,
467
- errorCode,
468
- });
469
- }
470
- };
471
282
  export const de_ListChangeSetsCommand = async (output, context) => {
472
283
  if (output.statusCode !== 200 && output.statusCode >= 300) {
473
- return de_ListChangeSetsCommandError(output, context);
284
+ return de_CommandError(output, context);
474
285
  }
475
286
  const contents = map({
476
287
  $metadata: deserializeMetadata(output),
@@ -483,37 +294,9 @@ export const de_ListChangeSetsCommand = async (output, context) => {
483
294
  Object.assign(contents, doc);
484
295
  return contents;
485
296
  };
486
- const de_ListChangeSetsCommandError = async (output, context) => {
487
- const parsedOutput = {
488
- ...output,
489
- body: await parseErrorBody(output.body, context),
490
- };
491
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
492
- switch (errorCode) {
493
- case "AccessDeniedException":
494
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
495
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
496
- case "InternalServiceException":
497
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
498
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
499
- case "ThrottlingException":
500
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
501
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
502
- case "ValidationException":
503
- case "com.amazonaws.marketplacecatalog#ValidationException":
504
- throw await de_ValidationExceptionRes(parsedOutput, context);
505
- default:
506
- const parsedBody = parsedOutput.body;
507
- return throwDefaultError({
508
- output,
509
- parsedBody,
510
- errorCode,
511
- });
512
- }
513
- };
514
297
  export const de_ListEntitiesCommand = async (output, context) => {
515
298
  if (output.statusCode !== 200 && output.statusCode >= 300) {
516
- return de_ListEntitiesCommandError(output, context);
299
+ return de_CommandError(output, context);
517
300
  }
518
301
  const contents = map({
519
302
  $metadata: deserializeMetadata(output),
@@ -526,40 +309,9 @@ export const de_ListEntitiesCommand = async (output, context) => {
526
309
  Object.assign(contents, doc);
527
310
  return contents;
528
311
  };
529
- const de_ListEntitiesCommandError = async (output, context) => {
530
- const parsedOutput = {
531
- ...output,
532
- body: await parseErrorBody(output.body, context),
533
- };
534
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
535
- switch (errorCode) {
536
- case "AccessDeniedException":
537
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
538
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
539
- case "InternalServiceException":
540
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
541
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
542
- case "ResourceNotFoundException":
543
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
544
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
545
- case "ThrottlingException":
546
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
547
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
548
- case "ValidationException":
549
- case "com.amazonaws.marketplacecatalog#ValidationException":
550
- throw await de_ValidationExceptionRes(parsedOutput, context);
551
- default:
552
- const parsedBody = parsedOutput.body;
553
- return throwDefaultError({
554
- output,
555
- parsedBody,
556
- errorCode,
557
- });
558
- }
559
- };
560
312
  export const de_ListTagsForResourceCommand = async (output, context) => {
561
313
  if (output.statusCode !== 200 && output.statusCode >= 300) {
562
- return de_ListTagsForResourceCommandError(output, context);
314
+ return de_CommandError(output, context);
563
315
  }
564
316
  const contents = map({
565
317
  $metadata: deserializeMetadata(output),
@@ -572,40 +324,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
572
324
  Object.assign(contents, doc);
573
325
  return contents;
574
326
  };
575
- const de_ListTagsForResourceCommandError = async (output, context) => {
576
- const parsedOutput = {
577
- ...output,
578
- body: await parseErrorBody(output.body, context),
579
- };
580
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
581
- switch (errorCode) {
582
- case "AccessDeniedException":
583
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
584
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
585
- case "InternalServiceException":
586
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
587
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
588
- case "ResourceNotFoundException":
589
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
590
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
591
- case "ThrottlingException":
592
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
593
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
594
- case "ValidationException":
595
- case "com.amazonaws.marketplacecatalog#ValidationException":
596
- throw await de_ValidationExceptionRes(parsedOutput, context);
597
- default:
598
- const parsedBody = parsedOutput.body;
599
- return throwDefaultError({
600
- output,
601
- parsedBody,
602
- errorCode,
603
- });
604
- }
605
- };
606
327
  export const de_PutResourcePolicyCommand = async (output, context) => {
607
328
  if (output.statusCode !== 200 && output.statusCode >= 300) {
608
- return de_PutResourcePolicyCommandError(output, context);
329
+ return de_CommandError(output, context);
609
330
  }
610
331
  const contents = map({
611
332
  $metadata: deserializeMetadata(output),
@@ -613,40 +334,9 @@ export const de_PutResourcePolicyCommand = async (output, context) => {
613
334
  await collectBody(output.body, context);
614
335
  return contents;
615
336
  };
616
- const de_PutResourcePolicyCommandError = async (output, context) => {
617
- const parsedOutput = {
618
- ...output,
619
- body: await parseErrorBody(output.body, context),
620
- };
621
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
622
- switch (errorCode) {
623
- case "AccessDeniedException":
624
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
625
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
626
- case "InternalServiceException":
627
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
628
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
629
- case "ResourceNotFoundException":
630
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
631
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
632
- case "ThrottlingException":
633
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
634
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
635
- case "ValidationException":
636
- case "com.amazonaws.marketplacecatalog#ValidationException":
637
- throw await de_ValidationExceptionRes(parsedOutput, context);
638
- default:
639
- const parsedBody = parsedOutput.body;
640
- return throwDefaultError({
641
- output,
642
- parsedBody,
643
- errorCode,
644
- });
645
- }
646
- };
647
337
  export const de_StartChangeSetCommand = async (output, context) => {
648
338
  if (output.statusCode !== 200 && output.statusCode >= 300) {
649
- return de_StartChangeSetCommandError(output, context);
339
+ return de_CommandError(output, context);
650
340
  }
651
341
  const contents = map({
652
342
  $metadata: deserializeMetadata(output),
@@ -659,46 +349,9 @@ export const de_StartChangeSetCommand = async (output, context) => {
659
349
  Object.assign(contents, doc);
660
350
  return contents;
661
351
  };
662
- const de_StartChangeSetCommandError = async (output, context) => {
663
- const parsedOutput = {
664
- ...output,
665
- body: await parseErrorBody(output.body, context),
666
- };
667
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
668
- switch (errorCode) {
669
- case "AccessDeniedException":
670
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
671
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
672
- case "InternalServiceException":
673
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
674
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
675
- case "ResourceInUseException":
676
- case "com.amazonaws.marketplacecatalog#ResourceInUseException":
677
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
678
- case "ResourceNotFoundException":
679
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
680
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
681
- case "ServiceQuotaExceededException":
682
- case "com.amazonaws.marketplacecatalog#ServiceQuotaExceededException":
683
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
684
- case "ThrottlingException":
685
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
686
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
687
- case "ValidationException":
688
- case "com.amazonaws.marketplacecatalog#ValidationException":
689
- throw await de_ValidationExceptionRes(parsedOutput, context);
690
- default:
691
- const parsedBody = parsedOutput.body;
692
- return throwDefaultError({
693
- output,
694
- parsedBody,
695
- errorCode,
696
- });
697
- }
698
- };
699
352
  export const de_TagResourceCommand = async (output, context) => {
700
353
  if (output.statusCode !== 200 && output.statusCode >= 300) {
701
- return de_TagResourceCommandError(output, context);
354
+ return de_CommandError(output, context);
702
355
  }
703
356
  const contents = map({
704
357
  $metadata: deserializeMetadata(output),
@@ -706,40 +359,9 @@ export const de_TagResourceCommand = async (output, context) => {
706
359
  await collectBody(output.body, context);
707
360
  return contents;
708
361
  };
709
- const de_TagResourceCommandError = async (output, context) => {
710
- const parsedOutput = {
711
- ...output,
712
- body: await parseErrorBody(output.body, context),
713
- };
714
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
715
- switch (errorCode) {
716
- case "AccessDeniedException":
717
- case "com.amazonaws.marketplacecatalog#AccessDeniedException":
718
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
719
- case "InternalServiceException":
720
- case "com.amazonaws.marketplacecatalog#InternalServiceException":
721
- throw await de_InternalServiceExceptionRes(parsedOutput, context);
722
- case "ResourceNotFoundException":
723
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
724
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
725
- case "ThrottlingException":
726
- case "com.amazonaws.marketplacecatalog#ThrottlingException":
727
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
728
- case "ValidationException":
729
- case "com.amazonaws.marketplacecatalog#ValidationException":
730
- throw await de_ValidationExceptionRes(parsedOutput, context);
731
- default:
732
- const parsedBody = parsedOutput.body;
733
- return throwDefaultError({
734
- output,
735
- parsedBody,
736
- errorCode,
737
- });
738
- }
739
- };
740
362
  export const de_UntagResourceCommand = async (output, context) => {
741
363
  if (output.statusCode !== 200 && output.statusCode >= 300) {
742
- return de_UntagResourceCommandError(output, context);
364
+ return de_CommandError(output, context);
743
365
  }
744
366
  const contents = map({
745
367
  $metadata: deserializeMetadata(output),
@@ -747,7 +369,7 @@ export const de_UntagResourceCommand = async (output, context) => {
747
369
  await collectBody(output.body, context);
748
370
  return contents;
749
371
  };
750
- const de_UntagResourceCommandError = async (output, context) => {
372
+ const de_CommandError = async (output, context) => {
751
373
  const parsedOutput = {
752
374
  ...output,
753
375
  body: await parseErrorBody(output.body, context),
@@ -760,15 +382,24 @@ const de_UntagResourceCommandError = async (output, context) => {
760
382
  case "InternalServiceException":
761
383
  case "com.amazonaws.marketplacecatalog#InternalServiceException":
762
384
  throw await de_InternalServiceExceptionRes(parsedOutput, context);
763
- case "ResourceNotFoundException":
764
- case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
765
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
766
385
  case "ThrottlingException":
767
386
  case "com.amazonaws.marketplacecatalog#ThrottlingException":
768
387
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
769
388
  case "ValidationException":
770
389
  case "com.amazonaws.marketplacecatalog#ValidationException":
771
390
  throw await de_ValidationExceptionRes(parsedOutput, context);
391
+ case "ResourceInUseException":
392
+ case "com.amazonaws.marketplacecatalog#ResourceInUseException":
393
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
394
+ case "ResourceNotFoundException":
395
+ case "com.amazonaws.marketplacecatalog#ResourceNotFoundException":
396
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
397
+ case "ResourceNotSupportedException":
398
+ case "com.amazonaws.marketplacecatalog#ResourceNotSupportedException":
399
+ throw await de_ResourceNotSupportedExceptionRes(parsedOutput, context);
400
+ case "ServiceQuotaExceededException":
401
+ case "com.amazonaws.marketplacecatalog#ServiceQuotaExceededException":
402
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
772
403
  default:
773
404
  const parsedBody = parsedOutput.body;
774
405
  return throwDefaultError({
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-marketplace-catalog",
3
3
  "description": "AWS SDK for JavaScript Marketplace Catalog Client for Node.js, Browser and React Native",
4
- "version": "3.504.0",
4
+ "version": "3.507.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-marketplace-catalog",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.504.0",
23
+ "@aws-sdk/client-sts": "3.507.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.504.0",
25
+ "@aws-sdk/credential-provider-node": "3.507.0",
26
26
  "@aws-sdk/middleware-host-header": "3.502.0",
27
27
  "@aws-sdk/middleware-logger": "3.502.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.502.0",