@aws-sdk/client-pipes 3.503.1 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -851,7 +851,7 @@ var se_UpdatePipeCommand = /* @__PURE__ */ __name(async (input, context) => {
851
851
  }, "se_UpdatePipeCommand");
852
852
  var de_CreatePipeCommand = /* @__PURE__ */ __name(async (output, context) => {
853
853
  if (output.statusCode !== 200 && output.statusCode >= 300) {
854
- return de_CreatePipeCommandError(output, context);
854
+ return de_CommandError(output, context);
855
855
  }
856
856
  const contents = (0, import_smithy_client.map)({
857
857
  $metadata: deserializeMetadata(output)
@@ -868,43 +868,9 @@ var de_CreatePipeCommand = /* @__PURE__ */ __name(async (output, context) => {
868
868
  Object.assign(contents, doc);
869
869
  return contents;
870
870
  }, "de_CreatePipeCommand");
871
- var de_CreatePipeCommandError = /* @__PURE__ */ __name(async (output, context) => {
872
- const parsedOutput = {
873
- ...output,
874
- body: await parseErrorBody(output.body, context)
875
- };
876
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
877
- switch (errorCode) {
878
- case "ConflictException":
879
- case "com.amazonaws.pipes#ConflictException":
880
- throw await de_ConflictExceptionRes(parsedOutput, context);
881
- case "InternalException":
882
- case "com.amazonaws.pipes#InternalException":
883
- throw await de_InternalExceptionRes(parsedOutput, context);
884
- case "NotFoundException":
885
- case "com.amazonaws.pipes#NotFoundException":
886
- throw await de_NotFoundExceptionRes(parsedOutput, context);
887
- case "ServiceQuotaExceededException":
888
- case "com.amazonaws.pipes#ServiceQuotaExceededException":
889
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
890
- case "ThrottlingException":
891
- case "com.amazonaws.pipes#ThrottlingException":
892
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
893
- case "ValidationException":
894
- case "com.amazonaws.pipes#ValidationException":
895
- throw await de_ValidationExceptionRes(parsedOutput, context);
896
- default:
897
- const parsedBody = parsedOutput.body;
898
- return throwDefaultError({
899
- output,
900
- parsedBody,
901
- errorCode
902
- });
903
- }
904
- }, "de_CreatePipeCommandError");
905
871
  var de_DeletePipeCommand = /* @__PURE__ */ __name(async (output, context) => {
906
872
  if (output.statusCode !== 200 && output.statusCode >= 300) {
907
- return de_DeletePipeCommandError(output, context);
873
+ return de_CommandError(output, context);
908
874
  }
909
875
  const contents = (0, import_smithy_client.map)({
910
876
  $metadata: deserializeMetadata(output)
@@ -921,40 +887,9 @@ var de_DeletePipeCommand = /* @__PURE__ */ __name(async (output, context) => {
921
887
  Object.assign(contents, doc);
922
888
  return contents;
923
889
  }, "de_DeletePipeCommand");
924
- var de_DeletePipeCommandError = /* @__PURE__ */ __name(async (output, context) => {
925
- const parsedOutput = {
926
- ...output,
927
- body: await parseErrorBody(output.body, context)
928
- };
929
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
930
- switch (errorCode) {
931
- case "ConflictException":
932
- case "com.amazonaws.pipes#ConflictException":
933
- throw await de_ConflictExceptionRes(parsedOutput, context);
934
- case "InternalException":
935
- case "com.amazonaws.pipes#InternalException":
936
- throw await de_InternalExceptionRes(parsedOutput, context);
937
- case "NotFoundException":
938
- case "com.amazonaws.pipes#NotFoundException":
939
- throw await de_NotFoundExceptionRes(parsedOutput, context);
940
- case "ThrottlingException":
941
- case "com.amazonaws.pipes#ThrottlingException":
942
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
943
- case "ValidationException":
944
- case "com.amazonaws.pipes#ValidationException":
945
- throw await de_ValidationExceptionRes(parsedOutput, context);
946
- default:
947
- const parsedBody = parsedOutput.body;
948
- return throwDefaultError({
949
- output,
950
- parsedBody,
951
- errorCode
952
- });
953
- }
954
- }, "de_DeletePipeCommandError");
955
890
  var de_DescribePipeCommand = /* @__PURE__ */ __name(async (output, context) => {
956
891
  if (output.statusCode !== 200 && output.statusCode >= 300) {
957
- return de_DescribePipeCommandError(output, context);
892
+ return de_CommandError(output, context);
958
893
  }
959
894
  const contents = (0, import_smithy_client.map)({
960
895
  $metadata: deserializeMetadata(output)
@@ -982,37 +917,9 @@ var de_DescribePipeCommand = /* @__PURE__ */ __name(async (output, context) => {
982
917
  Object.assign(contents, doc);
983
918
  return contents;
984
919
  }, "de_DescribePipeCommand");
985
- var de_DescribePipeCommandError = /* @__PURE__ */ __name(async (output, context) => {
986
- const parsedOutput = {
987
- ...output,
988
- body: await parseErrorBody(output.body, context)
989
- };
990
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
991
- switch (errorCode) {
992
- case "InternalException":
993
- case "com.amazonaws.pipes#InternalException":
994
- throw await de_InternalExceptionRes(parsedOutput, context);
995
- case "NotFoundException":
996
- case "com.amazonaws.pipes#NotFoundException":
997
- throw await de_NotFoundExceptionRes(parsedOutput, context);
998
- case "ThrottlingException":
999
- case "com.amazonaws.pipes#ThrottlingException":
1000
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1001
- case "ValidationException":
1002
- case "com.amazonaws.pipes#ValidationException":
1003
- throw await de_ValidationExceptionRes(parsedOutput, context);
1004
- default:
1005
- const parsedBody = parsedOutput.body;
1006
- return throwDefaultError({
1007
- output,
1008
- parsedBody,
1009
- errorCode
1010
- });
1011
- }
1012
- }, "de_DescribePipeCommandError");
1013
920
  var de_ListPipesCommand = /* @__PURE__ */ __name(async (output, context) => {
1014
921
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1015
- return de_ListPipesCommandError(output, context);
922
+ return de_CommandError(output, context);
1016
923
  }
1017
924
  const contents = (0, import_smithy_client.map)({
1018
925
  $metadata: deserializeMetadata(output)
@@ -1025,34 +932,9 @@ var de_ListPipesCommand = /* @__PURE__ */ __name(async (output, context) => {
1025
932
  Object.assign(contents, doc);
1026
933
  return contents;
1027
934
  }, "de_ListPipesCommand");
1028
- var de_ListPipesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1029
- const parsedOutput = {
1030
- ...output,
1031
- body: await parseErrorBody(output.body, context)
1032
- };
1033
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1034
- switch (errorCode) {
1035
- case "InternalException":
1036
- case "com.amazonaws.pipes#InternalException":
1037
- throw await de_InternalExceptionRes(parsedOutput, context);
1038
- case "ThrottlingException":
1039
- case "com.amazonaws.pipes#ThrottlingException":
1040
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1041
- case "ValidationException":
1042
- case "com.amazonaws.pipes#ValidationException":
1043
- throw await de_ValidationExceptionRes(parsedOutput, context);
1044
- default:
1045
- const parsedBody = parsedOutput.body;
1046
- return throwDefaultError({
1047
- output,
1048
- parsedBody,
1049
- errorCode
1050
- });
1051
- }
1052
- }, "de_ListPipesCommandError");
1053
935
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1054
936
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1055
- return de_ListTagsForResourceCommandError(output, context);
937
+ return de_CommandError(output, context);
1056
938
  }
1057
939
  const contents = (0, import_smithy_client.map)({
1058
940
  $metadata: deserializeMetadata(output)
@@ -1064,34 +946,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
1064
946
  Object.assign(contents, doc);
1065
947
  return contents;
1066
948
  }, "de_ListTagsForResourceCommand");
1067
- var de_ListTagsForResourceCommandError = /* @__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 "InternalException":
1075
- case "com.amazonaws.pipes#InternalException":
1076
- throw await de_InternalExceptionRes(parsedOutput, context);
1077
- case "NotFoundException":
1078
- case "com.amazonaws.pipes#NotFoundException":
1079
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1080
- case "ValidationException":
1081
- case "com.amazonaws.pipes#ValidationException":
1082
- throw await de_ValidationExceptionRes(parsedOutput, context);
1083
- default:
1084
- const parsedBody = parsedOutput.body;
1085
- return throwDefaultError({
1086
- output,
1087
- parsedBody,
1088
- errorCode
1089
- });
1090
- }
1091
- }, "de_ListTagsForResourceCommandError");
1092
949
  var de_StartPipeCommand = /* @__PURE__ */ __name(async (output, context) => {
1093
950
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1094
- return de_StartPipeCommandError(output, context);
951
+ return de_CommandError(output, context);
1095
952
  }
1096
953
  const contents = (0, import_smithy_client.map)({
1097
954
  $metadata: deserializeMetadata(output)
@@ -1108,40 +965,9 @@ var de_StartPipeCommand = /* @__PURE__ */ __name(async (output, context) => {
1108
965
  Object.assign(contents, doc);
1109
966
  return contents;
1110
967
  }, "de_StartPipeCommand");
1111
- var de_StartPipeCommandError = /* @__PURE__ */ __name(async (output, context) => {
1112
- const parsedOutput = {
1113
- ...output,
1114
- body: await parseErrorBody(output.body, context)
1115
- };
1116
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1117
- switch (errorCode) {
1118
- case "ConflictException":
1119
- case "com.amazonaws.pipes#ConflictException":
1120
- throw await de_ConflictExceptionRes(parsedOutput, context);
1121
- case "InternalException":
1122
- case "com.amazonaws.pipes#InternalException":
1123
- throw await de_InternalExceptionRes(parsedOutput, context);
1124
- case "NotFoundException":
1125
- case "com.amazonaws.pipes#NotFoundException":
1126
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1127
- case "ThrottlingException":
1128
- case "com.amazonaws.pipes#ThrottlingException":
1129
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1130
- case "ValidationException":
1131
- case "com.amazonaws.pipes#ValidationException":
1132
- throw await de_ValidationExceptionRes(parsedOutput, context);
1133
- default:
1134
- const parsedBody = parsedOutput.body;
1135
- return throwDefaultError({
1136
- output,
1137
- parsedBody,
1138
- errorCode
1139
- });
1140
- }
1141
- }, "de_StartPipeCommandError");
1142
968
  var de_StopPipeCommand = /* @__PURE__ */ __name(async (output, context) => {
1143
969
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1144
- return de_StopPipeCommandError(output, context);
970
+ return de_CommandError(output, context);
1145
971
  }
1146
972
  const contents = (0, import_smithy_client.map)({
1147
973
  $metadata: deserializeMetadata(output)
@@ -1158,40 +984,9 @@ var de_StopPipeCommand = /* @__PURE__ */ __name(async (output, context) => {
1158
984
  Object.assign(contents, doc);
1159
985
  return contents;
1160
986
  }, "de_StopPipeCommand");
1161
- var de_StopPipeCommandError = /* @__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 "ConflictException":
1169
- case "com.amazonaws.pipes#ConflictException":
1170
- throw await de_ConflictExceptionRes(parsedOutput, context);
1171
- case "InternalException":
1172
- case "com.amazonaws.pipes#InternalException":
1173
- throw await de_InternalExceptionRes(parsedOutput, context);
1174
- case "NotFoundException":
1175
- case "com.amazonaws.pipes#NotFoundException":
1176
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1177
- case "ThrottlingException":
1178
- case "com.amazonaws.pipes#ThrottlingException":
1179
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1180
- case "ValidationException":
1181
- case "com.amazonaws.pipes#ValidationException":
1182
- throw await de_ValidationExceptionRes(parsedOutput, context);
1183
- default:
1184
- const parsedBody = parsedOutput.body;
1185
- return throwDefaultError({
1186
- output,
1187
- parsedBody,
1188
- errorCode
1189
- });
1190
- }
1191
- }, "de_StopPipeCommandError");
1192
987
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1193
988
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1194
- return de_TagResourceCommandError(output, context);
989
+ return de_CommandError(output, context);
1195
990
  }
1196
991
  const contents = (0, import_smithy_client.map)({
1197
992
  $metadata: deserializeMetadata(output)
@@ -1199,34 +994,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1199
994
  await (0, import_smithy_client.collectBody)(output.body, context);
1200
995
  return contents;
1201
996
  }, "de_TagResourceCommand");
1202
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1203
- const parsedOutput = {
1204
- ...output,
1205
- body: await parseErrorBody(output.body, context)
1206
- };
1207
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1208
- switch (errorCode) {
1209
- case "InternalException":
1210
- case "com.amazonaws.pipes#InternalException":
1211
- throw await de_InternalExceptionRes(parsedOutput, context);
1212
- case "NotFoundException":
1213
- case "com.amazonaws.pipes#NotFoundException":
1214
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1215
- case "ValidationException":
1216
- case "com.amazonaws.pipes#ValidationException":
1217
- throw await de_ValidationExceptionRes(parsedOutput, context);
1218
- default:
1219
- const parsedBody = parsedOutput.body;
1220
- return throwDefaultError({
1221
- output,
1222
- parsedBody,
1223
- errorCode
1224
- });
1225
- }
1226
- }, "de_TagResourceCommandError");
1227
997
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1228
998
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1229
- return de_UntagResourceCommandError(output, context);
999
+ return de_CommandError(output, context);
1230
1000
  }
1231
1001
  const contents = (0, import_smithy_client.map)({
1232
1002
  $metadata: deserializeMetadata(output)
@@ -1234,34 +1004,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
1234
1004
  await (0, import_smithy_client.collectBody)(output.body, context);
1235
1005
  return contents;
1236
1006
  }, "de_UntagResourceCommand");
1237
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1238
- const parsedOutput = {
1239
- ...output,
1240
- body: await parseErrorBody(output.body, context)
1241
- };
1242
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1243
- switch (errorCode) {
1244
- case "InternalException":
1245
- case "com.amazonaws.pipes#InternalException":
1246
- throw await de_InternalExceptionRes(parsedOutput, context);
1247
- case "NotFoundException":
1248
- case "com.amazonaws.pipes#NotFoundException":
1249
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1250
- case "ValidationException":
1251
- case "com.amazonaws.pipes#ValidationException":
1252
- throw await de_ValidationExceptionRes(parsedOutput, context);
1253
- default:
1254
- const parsedBody = parsedOutput.body;
1255
- return throwDefaultError({
1256
- output,
1257
- parsedBody,
1258
- errorCode
1259
- });
1260
- }
1261
- }, "de_UntagResourceCommandError");
1262
1007
  var de_UpdatePipeCommand = /* @__PURE__ */ __name(async (output, context) => {
1263
1008
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1264
- return de_UpdatePipeCommandError(output, context);
1009
+ return de_CommandError(output, context);
1265
1010
  }
1266
1011
  const contents = (0, import_smithy_client.map)({
1267
1012
  $metadata: deserializeMetadata(output)
@@ -1278,7 +1023,7 @@ var de_UpdatePipeCommand = /* @__PURE__ */ __name(async (output, context) => {
1278
1023
  Object.assign(contents, doc);
1279
1024
  return contents;
1280
1025
  }, "de_UpdatePipeCommand");
1281
- var de_UpdatePipeCommandError = /* @__PURE__ */ __name(async (output, context) => {
1026
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
1282
1027
  const parsedOutput = {
1283
1028
  ...output,
1284
1029
  body: await parseErrorBody(output.body, context)
@@ -1294,6 +1039,9 @@ var de_UpdatePipeCommandError = /* @__PURE__ */ __name(async (output, context) =
1294
1039
  case "NotFoundException":
1295
1040
  case "com.amazonaws.pipes#NotFoundException":
1296
1041
  throw await de_NotFoundExceptionRes(parsedOutput, context);
1042
+ case "ServiceQuotaExceededException":
1043
+ case "com.amazonaws.pipes#ServiceQuotaExceededException":
1044
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
1297
1045
  case "ThrottlingException":
1298
1046
  case "com.amazonaws.pipes#ThrottlingException":
1299
1047
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -1308,7 +1056,7 @@ var de_UpdatePipeCommandError = /* @__PURE__ */ __name(async (output, context) =
1308
1056
  errorCode
1309
1057
  });
1310
1058
  }
1311
- }, "de_UpdatePipeCommandError");
1059
+ }, "de_CommandError");
1312
1060
  var throwDefaultError = (0, import_smithy_client.withBaseException)(PipesServiceException);
1313
1061
  var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
1314
1062
  const contents = (0, import_smithy_client.map)({});
@@ -141,7 +141,7 @@ export const se_UpdatePipeCommand = async (input, context) => {
141
141
  };
142
142
  export const de_CreatePipeCommand = async (output, context) => {
143
143
  if (output.statusCode !== 200 && output.statusCode >= 300) {
144
- return de_CreatePipeCommandError(output, context);
144
+ return de_CommandError(output, context);
145
145
  }
146
146
  const contents = map({
147
147
  $metadata: deserializeMetadata(output),
@@ -158,43 +158,9 @@ export const de_CreatePipeCommand = async (output, context) => {
158
158
  Object.assign(contents, doc);
159
159
  return contents;
160
160
  };
161
- const de_CreatePipeCommandError = async (output, context) => {
162
- const parsedOutput = {
163
- ...output,
164
- body: await parseErrorBody(output.body, context),
165
- };
166
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
167
- switch (errorCode) {
168
- case "ConflictException":
169
- case "com.amazonaws.pipes#ConflictException":
170
- throw await de_ConflictExceptionRes(parsedOutput, context);
171
- case "InternalException":
172
- case "com.amazonaws.pipes#InternalException":
173
- throw await de_InternalExceptionRes(parsedOutput, context);
174
- case "NotFoundException":
175
- case "com.amazonaws.pipes#NotFoundException":
176
- throw await de_NotFoundExceptionRes(parsedOutput, context);
177
- case "ServiceQuotaExceededException":
178
- case "com.amazonaws.pipes#ServiceQuotaExceededException":
179
- throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
180
- case "ThrottlingException":
181
- case "com.amazonaws.pipes#ThrottlingException":
182
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
183
- case "ValidationException":
184
- case "com.amazonaws.pipes#ValidationException":
185
- throw await de_ValidationExceptionRes(parsedOutput, context);
186
- default:
187
- const parsedBody = parsedOutput.body;
188
- return throwDefaultError({
189
- output,
190
- parsedBody,
191
- errorCode,
192
- });
193
- }
194
- };
195
161
  export const de_DeletePipeCommand = async (output, context) => {
196
162
  if (output.statusCode !== 200 && output.statusCode >= 300) {
197
- return de_DeletePipeCommandError(output, context);
163
+ return de_CommandError(output, context);
198
164
  }
199
165
  const contents = map({
200
166
  $metadata: deserializeMetadata(output),
@@ -211,40 +177,9 @@ export const de_DeletePipeCommand = async (output, context) => {
211
177
  Object.assign(contents, doc);
212
178
  return contents;
213
179
  };
214
- const de_DeletePipeCommandError = async (output, context) => {
215
- const parsedOutput = {
216
- ...output,
217
- body: await parseErrorBody(output.body, context),
218
- };
219
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
220
- switch (errorCode) {
221
- case "ConflictException":
222
- case "com.amazonaws.pipes#ConflictException":
223
- throw await de_ConflictExceptionRes(parsedOutput, context);
224
- case "InternalException":
225
- case "com.amazonaws.pipes#InternalException":
226
- throw await de_InternalExceptionRes(parsedOutput, context);
227
- case "NotFoundException":
228
- case "com.amazonaws.pipes#NotFoundException":
229
- throw await de_NotFoundExceptionRes(parsedOutput, context);
230
- case "ThrottlingException":
231
- case "com.amazonaws.pipes#ThrottlingException":
232
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
233
- case "ValidationException":
234
- case "com.amazonaws.pipes#ValidationException":
235
- throw await de_ValidationExceptionRes(parsedOutput, context);
236
- default:
237
- const parsedBody = parsedOutput.body;
238
- return throwDefaultError({
239
- output,
240
- parsedBody,
241
- errorCode,
242
- });
243
- }
244
- };
245
180
  export const de_DescribePipeCommand = async (output, context) => {
246
181
  if (output.statusCode !== 200 && output.statusCode >= 300) {
247
- return de_DescribePipeCommandError(output, context);
182
+ return de_CommandError(output, context);
248
183
  }
249
184
  const contents = map({
250
185
  $metadata: deserializeMetadata(output),
@@ -272,37 +207,9 @@ export const de_DescribePipeCommand = async (output, context) => {
272
207
  Object.assign(contents, doc);
273
208
  return contents;
274
209
  };
275
- const de_DescribePipeCommandError = async (output, context) => {
276
- const parsedOutput = {
277
- ...output,
278
- body: await parseErrorBody(output.body, context),
279
- };
280
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
281
- switch (errorCode) {
282
- case "InternalException":
283
- case "com.amazonaws.pipes#InternalException":
284
- throw await de_InternalExceptionRes(parsedOutput, context);
285
- case "NotFoundException":
286
- case "com.amazonaws.pipes#NotFoundException":
287
- throw await de_NotFoundExceptionRes(parsedOutput, context);
288
- case "ThrottlingException":
289
- case "com.amazonaws.pipes#ThrottlingException":
290
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
291
- case "ValidationException":
292
- case "com.amazonaws.pipes#ValidationException":
293
- throw await de_ValidationExceptionRes(parsedOutput, context);
294
- default:
295
- const parsedBody = parsedOutput.body;
296
- return throwDefaultError({
297
- output,
298
- parsedBody,
299
- errorCode,
300
- });
301
- }
302
- };
303
210
  export const de_ListPipesCommand = async (output, context) => {
304
211
  if (output.statusCode !== 200 && output.statusCode >= 300) {
305
- return de_ListPipesCommandError(output, context);
212
+ return de_CommandError(output, context);
306
213
  }
307
214
  const contents = map({
308
215
  $metadata: deserializeMetadata(output),
@@ -315,34 +222,9 @@ export const de_ListPipesCommand = async (output, context) => {
315
222
  Object.assign(contents, doc);
316
223
  return contents;
317
224
  };
318
- const de_ListPipesCommandError = async (output, context) => {
319
- const parsedOutput = {
320
- ...output,
321
- body: await parseErrorBody(output.body, context),
322
- };
323
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
324
- switch (errorCode) {
325
- case "InternalException":
326
- case "com.amazonaws.pipes#InternalException":
327
- throw await de_InternalExceptionRes(parsedOutput, context);
328
- case "ThrottlingException":
329
- case "com.amazonaws.pipes#ThrottlingException":
330
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
331
- case "ValidationException":
332
- case "com.amazonaws.pipes#ValidationException":
333
- throw await de_ValidationExceptionRes(parsedOutput, context);
334
- default:
335
- const parsedBody = parsedOutput.body;
336
- return throwDefaultError({
337
- output,
338
- parsedBody,
339
- errorCode,
340
- });
341
- }
342
- };
343
225
  export const de_ListTagsForResourceCommand = async (output, context) => {
344
226
  if (output.statusCode !== 200 && output.statusCode >= 300) {
345
- return de_ListTagsForResourceCommandError(output, context);
227
+ return de_CommandError(output, context);
346
228
  }
347
229
  const contents = map({
348
230
  $metadata: deserializeMetadata(output),
@@ -354,34 +236,9 @@ export const de_ListTagsForResourceCommand = async (output, context) => {
354
236
  Object.assign(contents, doc);
355
237
  return contents;
356
238
  };
357
- const de_ListTagsForResourceCommandError = async (output, context) => {
358
- const parsedOutput = {
359
- ...output,
360
- body: await parseErrorBody(output.body, context),
361
- };
362
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
363
- switch (errorCode) {
364
- case "InternalException":
365
- case "com.amazonaws.pipes#InternalException":
366
- throw await de_InternalExceptionRes(parsedOutput, context);
367
- case "NotFoundException":
368
- case "com.amazonaws.pipes#NotFoundException":
369
- throw await de_NotFoundExceptionRes(parsedOutput, context);
370
- case "ValidationException":
371
- case "com.amazonaws.pipes#ValidationException":
372
- throw await de_ValidationExceptionRes(parsedOutput, context);
373
- default:
374
- const parsedBody = parsedOutput.body;
375
- return throwDefaultError({
376
- output,
377
- parsedBody,
378
- errorCode,
379
- });
380
- }
381
- };
382
239
  export const de_StartPipeCommand = async (output, context) => {
383
240
  if (output.statusCode !== 200 && output.statusCode >= 300) {
384
- return de_StartPipeCommandError(output, context);
241
+ return de_CommandError(output, context);
385
242
  }
386
243
  const contents = map({
387
244
  $metadata: deserializeMetadata(output),
@@ -398,40 +255,9 @@ export const de_StartPipeCommand = async (output, context) => {
398
255
  Object.assign(contents, doc);
399
256
  return contents;
400
257
  };
401
- const de_StartPipeCommandError = async (output, context) => {
402
- const parsedOutput = {
403
- ...output,
404
- body: await parseErrorBody(output.body, context),
405
- };
406
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
407
- switch (errorCode) {
408
- case "ConflictException":
409
- case "com.amazonaws.pipes#ConflictException":
410
- throw await de_ConflictExceptionRes(parsedOutput, context);
411
- case "InternalException":
412
- case "com.amazonaws.pipes#InternalException":
413
- throw await de_InternalExceptionRes(parsedOutput, context);
414
- case "NotFoundException":
415
- case "com.amazonaws.pipes#NotFoundException":
416
- throw await de_NotFoundExceptionRes(parsedOutput, context);
417
- case "ThrottlingException":
418
- case "com.amazonaws.pipes#ThrottlingException":
419
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
420
- case "ValidationException":
421
- case "com.amazonaws.pipes#ValidationException":
422
- throw await de_ValidationExceptionRes(parsedOutput, context);
423
- default:
424
- const parsedBody = parsedOutput.body;
425
- return throwDefaultError({
426
- output,
427
- parsedBody,
428
- errorCode,
429
- });
430
- }
431
- };
432
258
  export const de_StopPipeCommand = async (output, context) => {
433
259
  if (output.statusCode !== 200 && output.statusCode >= 300) {
434
- return de_StopPipeCommandError(output, context);
260
+ return de_CommandError(output, context);
435
261
  }
436
262
  const contents = map({
437
263
  $metadata: deserializeMetadata(output),
@@ -448,40 +274,9 @@ export const de_StopPipeCommand = async (output, context) => {
448
274
  Object.assign(contents, doc);
449
275
  return contents;
450
276
  };
451
- const de_StopPipeCommandError = async (output, context) => {
452
- const parsedOutput = {
453
- ...output,
454
- body: await parseErrorBody(output.body, context),
455
- };
456
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
457
- switch (errorCode) {
458
- case "ConflictException":
459
- case "com.amazonaws.pipes#ConflictException":
460
- throw await de_ConflictExceptionRes(parsedOutput, context);
461
- case "InternalException":
462
- case "com.amazonaws.pipes#InternalException":
463
- throw await de_InternalExceptionRes(parsedOutput, context);
464
- case "NotFoundException":
465
- case "com.amazonaws.pipes#NotFoundException":
466
- throw await de_NotFoundExceptionRes(parsedOutput, context);
467
- case "ThrottlingException":
468
- case "com.amazonaws.pipes#ThrottlingException":
469
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
470
- case "ValidationException":
471
- case "com.amazonaws.pipes#ValidationException":
472
- throw await de_ValidationExceptionRes(parsedOutput, context);
473
- default:
474
- const parsedBody = parsedOutput.body;
475
- return throwDefaultError({
476
- output,
477
- parsedBody,
478
- errorCode,
479
- });
480
- }
481
- };
482
277
  export const de_TagResourceCommand = async (output, context) => {
483
278
  if (output.statusCode !== 200 && output.statusCode >= 300) {
484
- return de_TagResourceCommandError(output, context);
279
+ return de_CommandError(output, context);
485
280
  }
486
281
  const contents = map({
487
282
  $metadata: deserializeMetadata(output),
@@ -489,34 +284,9 @@ export const de_TagResourceCommand = async (output, context) => {
489
284
  await collectBody(output.body, context);
490
285
  return contents;
491
286
  };
492
- const de_TagResourceCommandError = async (output, context) => {
493
- const parsedOutput = {
494
- ...output,
495
- body: await parseErrorBody(output.body, context),
496
- };
497
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
498
- switch (errorCode) {
499
- case "InternalException":
500
- case "com.amazonaws.pipes#InternalException":
501
- throw await de_InternalExceptionRes(parsedOutput, context);
502
- case "NotFoundException":
503
- case "com.amazonaws.pipes#NotFoundException":
504
- throw await de_NotFoundExceptionRes(parsedOutput, context);
505
- case "ValidationException":
506
- case "com.amazonaws.pipes#ValidationException":
507
- throw await de_ValidationExceptionRes(parsedOutput, context);
508
- default:
509
- const parsedBody = parsedOutput.body;
510
- return throwDefaultError({
511
- output,
512
- parsedBody,
513
- errorCode,
514
- });
515
- }
516
- };
517
287
  export const de_UntagResourceCommand = async (output, context) => {
518
288
  if (output.statusCode !== 200 && output.statusCode >= 300) {
519
- return de_UntagResourceCommandError(output, context);
289
+ return de_CommandError(output, context);
520
290
  }
521
291
  const contents = map({
522
292
  $metadata: deserializeMetadata(output),
@@ -524,34 +294,9 @@ export const de_UntagResourceCommand = async (output, context) => {
524
294
  await collectBody(output.body, context);
525
295
  return contents;
526
296
  };
527
- const de_UntagResourceCommandError = async (output, context) => {
528
- const parsedOutput = {
529
- ...output,
530
- body: await parseErrorBody(output.body, context),
531
- };
532
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
533
- switch (errorCode) {
534
- case "InternalException":
535
- case "com.amazonaws.pipes#InternalException":
536
- throw await de_InternalExceptionRes(parsedOutput, context);
537
- case "NotFoundException":
538
- case "com.amazonaws.pipes#NotFoundException":
539
- throw await de_NotFoundExceptionRes(parsedOutput, context);
540
- case "ValidationException":
541
- case "com.amazonaws.pipes#ValidationException":
542
- throw await de_ValidationExceptionRes(parsedOutput, context);
543
- default:
544
- const parsedBody = parsedOutput.body;
545
- return throwDefaultError({
546
- output,
547
- parsedBody,
548
- errorCode,
549
- });
550
- }
551
- };
552
297
  export const de_UpdatePipeCommand = async (output, context) => {
553
298
  if (output.statusCode !== 200 && output.statusCode >= 300) {
554
- return de_UpdatePipeCommandError(output, context);
299
+ return de_CommandError(output, context);
555
300
  }
556
301
  const contents = map({
557
302
  $metadata: deserializeMetadata(output),
@@ -568,7 +313,7 @@ export const de_UpdatePipeCommand = async (output, context) => {
568
313
  Object.assign(contents, doc);
569
314
  return contents;
570
315
  };
571
- const de_UpdatePipeCommandError = async (output, context) => {
316
+ const de_CommandError = async (output, context) => {
572
317
  const parsedOutput = {
573
318
  ...output,
574
319
  body: await parseErrorBody(output.body, context),
@@ -584,6 +329,9 @@ const de_UpdatePipeCommandError = async (output, context) => {
584
329
  case "NotFoundException":
585
330
  case "com.amazonaws.pipes#NotFoundException":
586
331
  throw await de_NotFoundExceptionRes(parsedOutput, context);
332
+ case "ServiceQuotaExceededException":
333
+ case "com.amazonaws.pipes#ServiceQuotaExceededException":
334
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
587
335
  case "ThrottlingException":
588
336
  case "com.amazonaws.pipes#ThrottlingException":
589
337
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-pipes",
3
3
  "description": "AWS SDK for JavaScript Pipes Client for Node.js, Browser and React Native",
4
- "version": "3.503.1",
4
+ "version": "3.507.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-pipes",
@@ -20,9 +20,9 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.502.0",
23
+ "@aws-sdk/client-sts": "3.507.0",
24
24
  "@aws-sdk/core": "3.496.0",
25
- "@aws-sdk/credential-provider-node": "3.503.1",
25
+ "@aws-sdk/credential-provider-node": "3.507.0",
26
26
  "@aws-sdk/middleware-host-header": "3.502.0",
27
27
  "@aws-sdk/middleware-logger": "3.502.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.502.0",