@aws-sdk/client-global-accelerator 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
@@ -995,7 +995,7 @@ var se_WithdrawByoipCidrCommand = /* @__PURE__ */ __name(async (input, context)
995
995
  }, "se_WithdrawByoipCidrCommand");
996
996
  var de_AddCustomRoutingEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
997
997
  if (output.statusCode >= 300) {
998
- return de_AddCustomRoutingEndpointsCommandError(output, context);
998
+ return de_CommandError(output, context);
999
999
  }
1000
1000
  const data = await parseBody(output.body, context);
1001
1001
  let contents = {};
@@ -1006,46 +1006,9 @@ var de_AddCustomRoutingEndpointsCommand = /* @__PURE__ */ __name(async (output,
1006
1006
  };
1007
1007
  return response;
1008
1008
  }, "de_AddCustomRoutingEndpointsCommand");
1009
- var de_AddCustomRoutingEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1010
- const parsedOutput = {
1011
- ...output,
1012
- body: await parseErrorBody(output.body, context)
1013
- };
1014
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1015
- switch (errorCode) {
1016
- case "AccessDeniedException":
1017
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
1018
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1019
- case "ConflictException":
1020
- case "com.amazonaws.globalaccelerator#ConflictException":
1021
- throw await de_ConflictExceptionRes(parsedOutput, context);
1022
- case "EndpointAlreadyExistsException":
1023
- case "com.amazonaws.globalaccelerator#EndpointAlreadyExistsException":
1024
- throw await de_EndpointAlreadyExistsExceptionRes(parsedOutput, context);
1025
- case "EndpointGroupNotFoundException":
1026
- case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
1027
- throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
1028
- case "InternalServiceErrorException":
1029
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1030
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1031
- case "InvalidArgumentException":
1032
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1033
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1034
- case "LimitExceededException":
1035
- case "com.amazonaws.globalaccelerator#LimitExceededException":
1036
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1037
- default:
1038
- const parsedBody = parsedOutput.body;
1039
- return throwDefaultError({
1040
- output,
1041
- parsedBody,
1042
- errorCode
1043
- });
1044
- }
1045
- }, "de_AddCustomRoutingEndpointsCommandError");
1046
1009
  var de_AddEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
1047
1010
  if (output.statusCode >= 300) {
1048
- return de_AddEndpointsCommandError(output, context);
1011
+ return de_CommandError(output, context);
1049
1012
  }
1050
1013
  const data = await parseBody(output.body, context);
1051
1014
  let contents = {};
@@ -1056,43 +1019,9 @@ var de_AddEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
1056
1019
  };
1057
1020
  return response;
1058
1021
  }, "de_AddEndpointsCommand");
1059
- var de_AddEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1060
- const parsedOutput = {
1061
- ...output,
1062
- body: await parseErrorBody(output.body, context)
1063
- };
1064
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1065
- switch (errorCode) {
1066
- case "AccessDeniedException":
1067
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
1068
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1069
- case "EndpointGroupNotFoundException":
1070
- case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
1071
- throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
1072
- case "InternalServiceErrorException":
1073
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1074
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1075
- case "InvalidArgumentException":
1076
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1077
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1078
- case "LimitExceededException":
1079
- case "com.amazonaws.globalaccelerator#LimitExceededException":
1080
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1081
- case "TransactionInProgressException":
1082
- case "com.amazonaws.globalaccelerator#TransactionInProgressException":
1083
- throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
1084
- default:
1085
- const parsedBody = parsedOutput.body;
1086
- return throwDefaultError({
1087
- output,
1088
- parsedBody,
1089
- errorCode
1090
- });
1091
- }
1092
- }, "de_AddEndpointsCommandError");
1093
1022
  var de_AdvertiseByoipCidrCommand = /* @__PURE__ */ __name(async (output, context) => {
1094
1023
  if (output.statusCode >= 300) {
1095
- return de_AdvertiseByoipCidrCommandError(output, context);
1024
+ return de_CommandError(output, context);
1096
1025
  }
1097
1026
  const data = await parseBody(output.body, context);
1098
1027
  let contents = {};
@@ -1103,40 +1032,9 @@ var de_AdvertiseByoipCidrCommand = /* @__PURE__ */ __name(async (output, context
1103
1032
  };
1104
1033
  return response;
1105
1034
  }, "de_AdvertiseByoipCidrCommand");
1106
- var de_AdvertiseByoipCidrCommandError = /* @__PURE__ */ __name(async (output, context) => {
1107
- const parsedOutput = {
1108
- ...output,
1109
- body: await parseErrorBody(output.body, context)
1110
- };
1111
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1112
- switch (errorCode) {
1113
- case "AccessDeniedException":
1114
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
1115
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1116
- case "ByoipCidrNotFoundException":
1117
- case "com.amazonaws.globalaccelerator#ByoipCidrNotFoundException":
1118
- throw await de_ByoipCidrNotFoundExceptionRes(parsedOutput, context);
1119
- case "IncorrectCidrStateException":
1120
- case "com.amazonaws.globalaccelerator#IncorrectCidrStateException":
1121
- throw await de_IncorrectCidrStateExceptionRes(parsedOutput, context);
1122
- case "InternalServiceErrorException":
1123
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1124
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1125
- case "InvalidArgumentException":
1126
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1127
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1128
- default:
1129
- const parsedBody = parsedOutput.body;
1130
- return throwDefaultError({
1131
- output,
1132
- parsedBody,
1133
- errorCode
1134
- });
1135
- }
1136
- }, "de_AdvertiseByoipCidrCommandError");
1137
1035
  var de_AllowCustomRoutingTrafficCommand = /* @__PURE__ */ __name(async (output, context) => {
1138
1036
  if (output.statusCode >= 300) {
1139
- return de_AllowCustomRoutingTrafficCommandError(output, context);
1037
+ return de_CommandError(output, context);
1140
1038
  }
1141
1039
  await (0, import_smithy_client.collectBody)(output.body, context);
1142
1040
  const response = {
@@ -1144,34 +1042,9 @@ var de_AllowCustomRoutingTrafficCommand = /* @__PURE__ */ __name(async (output,
1144
1042
  };
1145
1043
  return response;
1146
1044
  }, "de_AllowCustomRoutingTrafficCommand");
1147
- var de_AllowCustomRoutingTrafficCommandError = /* @__PURE__ */ __name(async (output, context) => {
1148
- const parsedOutput = {
1149
- ...output,
1150
- body: await parseErrorBody(output.body, context)
1151
- };
1152
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1153
- switch (errorCode) {
1154
- case "EndpointGroupNotFoundException":
1155
- case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
1156
- throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
1157
- case "InternalServiceErrorException":
1158
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1159
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1160
- case "InvalidArgumentException":
1161
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1162
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1163
- default:
1164
- const parsedBody = parsedOutput.body;
1165
- return throwDefaultError({
1166
- output,
1167
- parsedBody,
1168
- errorCode
1169
- });
1170
- }
1171
- }, "de_AllowCustomRoutingTrafficCommandError");
1172
1045
  var de_CreateAcceleratorCommand = /* @__PURE__ */ __name(async (output, context) => {
1173
1046
  if (output.statusCode >= 300) {
1174
- return de_CreateAcceleratorCommandError(output, context);
1047
+ return de_CommandError(output, context);
1175
1048
  }
1176
1049
  const data = await parseBody(output.body, context);
1177
1050
  let contents = {};
@@ -1182,34 +1055,9 @@ var de_CreateAcceleratorCommand = /* @__PURE__ */ __name(async (output, context)
1182
1055
  };
1183
1056
  return response;
1184
1057
  }, "de_CreateAcceleratorCommand");
1185
- var de_CreateAcceleratorCommandError = /* @__PURE__ */ __name(async (output, context) => {
1186
- const parsedOutput = {
1187
- ...output,
1188
- body: await parseErrorBody(output.body, context)
1189
- };
1190
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1191
- switch (errorCode) {
1192
- case "InternalServiceErrorException":
1193
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1194
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1195
- case "InvalidArgumentException":
1196
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1197
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1198
- case "LimitExceededException":
1199
- case "com.amazonaws.globalaccelerator#LimitExceededException":
1200
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1201
- default:
1202
- const parsedBody = parsedOutput.body;
1203
- return throwDefaultError({
1204
- output,
1205
- parsedBody,
1206
- errorCode
1207
- });
1208
- }
1209
- }, "de_CreateAcceleratorCommandError");
1210
1058
  var de_CreateCrossAccountAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1211
1059
  if (output.statusCode >= 300) {
1212
- return de_CreateCrossAccountAttachmentCommandError(output, context);
1060
+ return de_CommandError(output, context);
1213
1061
  }
1214
1062
  const data = await parseBody(output.body, context);
1215
1063
  let contents = {};
@@ -1220,40 +1068,9 @@ var de_CreateCrossAccountAttachmentCommand = /* @__PURE__ */ __name(async (outpu
1220
1068
  };
1221
1069
  return response;
1222
1070
  }, "de_CreateCrossAccountAttachmentCommand");
1223
- var de_CreateCrossAccountAttachmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1224
- const parsedOutput = {
1225
- ...output,
1226
- body: await parseErrorBody(output.body, context)
1227
- };
1228
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1229
- switch (errorCode) {
1230
- case "AccessDeniedException":
1231
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
1232
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1233
- case "InternalServiceErrorException":
1234
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1235
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1236
- case "InvalidArgumentException":
1237
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1238
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1239
- case "LimitExceededException":
1240
- case "com.amazonaws.globalaccelerator#LimitExceededException":
1241
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1242
- case "TransactionInProgressException":
1243
- case "com.amazonaws.globalaccelerator#TransactionInProgressException":
1244
- throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
1245
- default:
1246
- const parsedBody = parsedOutput.body;
1247
- return throwDefaultError({
1248
- output,
1249
- parsedBody,
1250
- errorCode
1251
- });
1252
- }
1253
- }, "de_CreateCrossAccountAttachmentCommandError");
1254
1071
  var de_CreateCustomRoutingAcceleratorCommand = /* @__PURE__ */ __name(async (output, context) => {
1255
1072
  if (output.statusCode >= 300) {
1256
- return de_CreateCustomRoutingAcceleratorCommandError(output, context);
1073
+ return de_CommandError(output, context);
1257
1074
  }
1258
1075
  const data = await parseBody(output.body, context);
1259
1076
  let contents = {};
@@ -1264,37 +1081,9 @@ var de_CreateCustomRoutingAcceleratorCommand = /* @__PURE__ */ __name(async (out
1264
1081
  };
1265
1082
  return response;
1266
1083
  }, "de_CreateCustomRoutingAcceleratorCommand");
1267
- var de_CreateCustomRoutingAcceleratorCommandError = /* @__PURE__ */ __name(async (output, context) => {
1268
- const parsedOutput = {
1269
- ...output,
1270
- body: await parseErrorBody(output.body, context)
1271
- };
1272
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1273
- switch (errorCode) {
1274
- case "AccessDeniedException":
1275
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
1276
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1277
- case "InternalServiceErrorException":
1278
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1279
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1280
- case "InvalidArgumentException":
1281
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1282
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1283
- case "LimitExceededException":
1284
- case "com.amazonaws.globalaccelerator#LimitExceededException":
1285
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1286
- default:
1287
- const parsedBody = parsedOutput.body;
1288
- return throwDefaultError({
1289
- output,
1290
- parsedBody,
1291
- errorCode
1292
- });
1293
- }
1294
- }, "de_CreateCustomRoutingAcceleratorCommandError");
1295
1084
  var de_CreateCustomRoutingEndpointGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1296
1085
  if (output.statusCode >= 300) {
1297
- return de_CreateCustomRoutingEndpointGroupCommandError(output, context);
1086
+ return de_CommandError(output, context);
1298
1087
  }
1299
1088
  const data = await parseBody(output.body, context);
1300
1089
  let contents = {};
@@ -1305,49 +1094,9 @@ var de_CreateCustomRoutingEndpointGroupCommand = /* @__PURE__ */ __name(async (o
1305
1094
  };
1306
1095
  return response;
1307
1096
  }, "de_CreateCustomRoutingEndpointGroupCommand");
1308
- var de_CreateCustomRoutingEndpointGroupCommandError = /* @__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 "AcceleratorNotFoundException":
1316
- case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
1317
- throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
1318
- case "AccessDeniedException":
1319
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
1320
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1321
- case "EndpointGroupAlreadyExistsException":
1322
- case "com.amazonaws.globalaccelerator#EndpointGroupAlreadyExistsException":
1323
- throw await de_EndpointGroupAlreadyExistsExceptionRes(parsedOutput, context);
1324
- case "InternalServiceErrorException":
1325
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1326
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1327
- case "InvalidArgumentException":
1328
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1329
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1330
- case "InvalidPortRangeException":
1331
- case "com.amazonaws.globalaccelerator#InvalidPortRangeException":
1332
- throw await de_InvalidPortRangeExceptionRes(parsedOutput, context);
1333
- case "LimitExceededException":
1334
- case "com.amazonaws.globalaccelerator#LimitExceededException":
1335
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1336
- case "ListenerNotFoundException":
1337
- case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
1338
- throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
1339
- default:
1340
- const parsedBody = parsedOutput.body;
1341
- return throwDefaultError({
1342
- output,
1343
- parsedBody,
1344
- errorCode
1345
- });
1346
- }
1347
- }, "de_CreateCustomRoutingEndpointGroupCommandError");
1348
1097
  var de_CreateCustomRoutingListenerCommand = /* @__PURE__ */ __name(async (output, context) => {
1349
1098
  if (output.statusCode >= 300) {
1350
- return de_CreateCustomRoutingListenerCommandError(output, context);
1099
+ return de_CommandError(output, context);
1351
1100
  }
1352
1101
  const data = await parseBody(output.body, context);
1353
1102
  let contents = {};
@@ -1358,90 +1107,22 @@ var de_CreateCustomRoutingListenerCommand = /* @__PURE__ */ __name(async (output
1358
1107
  };
1359
1108
  return response;
1360
1109
  }, "de_CreateCustomRoutingListenerCommand");
1361
- var de_CreateCustomRoutingListenerCommandError = /* @__PURE__ */ __name(async (output, context) => {
1362
- const parsedOutput = {
1363
- ...output,
1364
- body: await parseErrorBody(output.body, context)
1365
- };
1366
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1367
- switch (errorCode) {
1368
- case "AcceleratorNotFoundException":
1369
- case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
1370
- throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
1371
- case "InternalServiceErrorException":
1372
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1373
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1374
- case "InvalidArgumentException":
1375
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1376
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1377
- case "InvalidPortRangeException":
1378
- case "com.amazonaws.globalaccelerator#InvalidPortRangeException":
1379
- throw await de_InvalidPortRangeExceptionRes(parsedOutput, context);
1380
- case "LimitExceededException":
1381
- case "com.amazonaws.globalaccelerator#LimitExceededException":
1382
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1383
- default:
1384
- const parsedBody = parsedOutput.body;
1385
- return throwDefaultError({
1386
- output,
1387
- parsedBody,
1388
- errorCode
1389
- });
1390
- }
1391
- }, "de_CreateCustomRoutingListenerCommandError");
1392
- var de_CreateEndpointGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1393
- if (output.statusCode >= 300) {
1394
- return de_CreateEndpointGroupCommandError(output, context);
1395
- }
1396
- const data = await parseBody(output.body, context);
1397
- let contents = {};
1398
- contents = de_CreateEndpointGroupResponse(data, context);
1399
- const response = {
1400
- $metadata: deserializeMetadata(output),
1401
- ...contents
1110
+ var de_CreateEndpointGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1111
+ if (output.statusCode >= 300) {
1112
+ return de_CommandError(output, context);
1113
+ }
1114
+ const data = await parseBody(output.body, context);
1115
+ let contents = {};
1116
+ contents = de_CreateEndpointGroupResponse(data, context);
1117
+ const response = {
1118
+ $metadata: deserializeMetadata(output),
1119
+ ...contents
1402
1120
  };
1403
1121
  return response;
1404
1122
  }, "de_CreateEndpointGroupCommand");
1405
- var de_CreateEndpointGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1406
- const parsedOutput = {
1407
- ...output,
1408
- body: await parseErrorBody(output.body, context)
1409
- };
1410
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1411
- switch (errorCode) {
1412
- case "AcceleratorNotFoundException":
1413
- case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
1414
- throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
1415
- case "AccessDeniedException":
1416
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
1417
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1418
- case "EndpointGroupAlreadyExistsException":
1419
- case "com.amazonaws.globalaccelerator#EndpointGroupAlreadyExistsException":
1420
- throw await de_EndpointGroupAlreadyExistsExceptionRes(parsedOutput, context);
1421
- case "InternalServiceErrorException":
1422
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1423
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1424
- case "InvalidArgumentException":
1425
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1426
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1427
- case "LimitExceededException":
1428
- case "com.amazonaws.globalaccelerator#LimitExceededException":
1429
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1430
- case "ListenerNotFoundException":
1431
- case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
1432
- throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
1433
- default:
1434
- const parsedBody = parsedOutput.body;
1435
- return throwDefaultError({
1436
- output,
1437
- parsedBody,
1438
- errorCode
1439
- });
1440
- }
1441
- }, "de_CreateEndpointGroupCommandError");
1442
1123
  var de_CreateListenerCommand = /* @__PURE__ */ __name(async (output, context) => {
1443
1124
  if (output.statusCode >= 300) {
1444
- return de_CreateListenerCommandError(output, context);
1125
+ return de_CommandError(output, context);
1445
1126
  }
1446
1127
  const data = await parseBody(output.body, context);
1447
1128
  let contents = {};
@@ -1452,40 +1133,9 @@ var de_CreateListenerCommand = /* @__PURE__ */ __name(async (output, context) =>
1452
1133
  };
1453
1134
  return response;
1454
1135
  }, "de_CreateListenerCommand");
1455
- var de_CreateListenerCommandError = /* @__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 "AcceleratorNotFoundException":
1463
- case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
1464
- throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
1465
- case "InternalServiceErrorException":
1466
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1467
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1468
- case "InvalidArgumentException":
1469
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1470
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1471
- case "InvalidPortRangeException":
1472
- case "com.amazonaws.globalaccelerator#InvalidPortRangeException":
1473
- throw await de_InvalidPortRangeExceptionRes(parsedOutput, context);
1474
- case "LimitExceededException":
1475
- case "com.amazonaws.globalaccelerator#LimitExceededException":
1476
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1477
- default:
1478
- const parsedBody = parsedOutput.body;
1479
- return throwDefaultError({
1480
- output,
1481
- parsedBody,
1482
- errorCode
1483
- });
1484
- }
1485
- }, "de_CreateListenerCommandError");
1486
1136
  var de_DeleteAcceleratorCommand = /* @__PURE__ */ __name(async (output, context) => {
1487
1137
  if (output.statusCode >= 300) {
1488
- return de_DeleteAcceleratorCommandError(output, context);
1138
+ return de_CommandError(output, context);
1489
1139
  }
1490
1140
  await (0, import_smithy_client.collectBody)(output.body, context);
1491
1141
  const response = {
@@ -1493,40 +1143,9 @@ var de_DeleteAcceleratorCommand = /* @__PURE__ */ __name(async (output, context)
1493
1143
  };
1494
1144
  return response;
1495
1145
  }, "de_DeleteAcceleratorCommand");
1496
- var de_DeleteAcceleratorCommandError = /* @__PURE__ */ __name(async (output, context) => {
1497
- const parsedOutput = {
1498
- ...output,
1499
- body: await parseErrorBody(output.body, context)
1500
- };
1501
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1502
- switch (errorCode) {
1503
- case "AcceleratorNotDisabledException":
1504
- case "com.amazonaws.globalaccelerator#AcceleratorNotDisabledException":
1505
- throw await de_AcceleratorNotDisabledExceptionRes(parsedOutput, context);
1506
- case "AcceleratorNotFoundException":
1507
- case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
1508
- throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
1509
- case "AssociatedListenerFoundException":
1510
- case "com.amazonaws.globalaccelerator#AssociatedListenerFoundException":
1511
- throw await de_AssociatedListenerFoundExceptionRes(parsedOutput, context);
1512
- case "InternalServiceErrorException":
1513
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1514
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1515
- case "InvalidArgumentException":
1516
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1517
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1518
- default:
1519
- const parsedBody = parsedOutput.body;
1520
- return throwDefaultError({
1521
- output,
1522
- parsedBody,
1523
- errorCode
1524
- });
1525
- }
1526
- }, "de_DeleteAcceleratorCommandError");
1527
1146
  var de_DeleteCrossAccountAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1528
1147
  if (output.statusCode >= 300) {
1529
- return de_DeleteCrossAccountAttachmentCommandError(output, context);
1148
+ return de_CommandError(output, context);
1530
1149
  }
1531
1150
  await (0, import_smithy_client.collectBody)(output.body, context);
1532
1151
  const response = {
@@ -1534,40 +1153,9 @@ var de_DeleteCrossAccountAttachmentCommand = /* @__PURE__ */ __name(async (outpu
1534
1153
  };
1535
1154
  return response;
1536
1155
  }, "de_DeleteCrossAccountAttachmentCommand");
1537
- var de_DeleteCrossAccountAttachmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1538
- const parsedOutput = {
1539
- ...output,
1540
- body: await parseErrorBody(output.body, context)
1541
- };
1542
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1543
- switch (errorCode) {
1544
- case "AccessDeniedException":
1545
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
1546
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1547
- case "AttachmentNotFoundException":
1548
- case "com.amazonaws.globalaccelerator#AttachmentNotFoundException":
1549
- throw await de_AttachmentNotFoundExceptionRes(parsedOutput, context);
1550
- case "InternalServiceErrorException":
1551
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1552
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1553
- case "InvalidArgumentException":
1554
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1555
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1556
- case "TransactionInProgressException":
1557
- case "com.amazonaws.globalaccelerator#TransactionInProgressException":
1558
- throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
1559
- default:
1560
- const parsedBody = parsedOutput.body;
1561
- return throwDefaultError({
1562
- output,
1563
- parsedBody,
1564
- errorCode
1565
- });
1566
- }
1567
- }, "de_DeleteCrossAccountAttachmentCommandError");
1568
1156
  var de_DeleteCustomRoutingAcceleratorCommand = /* @__PURE__ */ __name(async (output, context) => {
1569
1157
  if (output.statusCode >= 300) {
1570
- return de_DeleteCustomRoutingAcceleratorCommandError(output, context);
1158
+ return de_CommandError(output, context);
1571
1159
  }
1572
1160
  await (0, import_smithy_client.collectBody)(output.body, context);
1573
1161
  const response = {
@@ -1575,40 +1163,9 @@ var de_DeleteCustomRoutingAcceleratorCommand = /* @__PURE__ */ __name(async (out
1575
1163
  };
1576
1164
  return response;
1577
1165
  }, "de_DeleteCustomRoutingAcceleratorCommand");
1578
- var de_DeleteCustomRoutingAcceleratorCommandError = /* @__PURE__ */ __name(async (output, context) => {
1579
- const parsedOutput = {
1580
- ...output,
1581
- body: await parseErrorBody(output.body, context)
1582
- };
1583
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1584
- switch (errorCode) {
1585
- case "AcceleratorNotDisabledException":
1586
- case "com.amazonaws.globalaccelerator#AcceleratorNotDisabledException":
1587
- throw await de_AcceleratorNotDisabledExceptionRes(parsedOutput, context);
1588
- case "AcceleratorNotFoundException":
1589
- case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
1590
- throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
1591
- case "AssociatedListenerFoundException":
1592
- case "com.amazonaws.globalaccelerator#AssociatedListenerFoundException":
1593
- throw await de_AssociatedListenerFoundExceptionRes(parsedOutput, context);
1594
- case "InternalServiceErrorException":
1595
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1596
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1597
- case "InvalidArgumentException":
1598
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1599
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1600
- default:
1601
- const parsedBody = parsedOutput.body;
1602
- return throwDefaultError({
1603
- output,
1604
- parsedBody,
1605
- errorCode
1606
- });
1607
- }
1608
- }, "de_DeleteCustomRoutingAcceleratorCommandError");
1609
1166
  var de_DeleteCustomRoutingEndpointGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1610
1167
  if (output.statusCode >= 300) {
1611
- return de_DeleteCustomRoutingEndpointGroupCommandError(output, context);
1168
+ return de_CommandError(output, context);
1612
1169
  }
1613
1170
  await (0, import_smithy_client.collectBody)(output.body, context);
1614
1171
  const response = {
@@ -1616,34 +1173,9 @@ var de_DeleteCustomRoutingEndpointGroupCommand = /* @__PURE__ */ __name(async (o
1616
1173
  };
1617
1174
  return response;
1618
1175
  }, "de_DeleteCustomRoutingEndpointGroupCommand");
1619
- var de_DeleteCustomRoutingEndpointGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1620
- const parsedOutput = {
1621
- ...output,
1622
- body: await parseErrorBody(output.body, context)
1623
- };
1624
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1625
- switch (errorCode) {
1626
- case "EndpointGroupNotFoundException":
1627
- case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
1628
- throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
1629
- case "InternalServiceErrorException":
1630
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1631
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1632
- case "InvalidArgumentException":
1633
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1634
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1635
- default:
1636
- const parsedBody = parsedOutput.body;
1637
- return throwDefaultError({
1638
- output,
1639
- parsedBody,
1640
- errorCode
1641
- });
1642
- }
1643
- }, "de_DeleteCustomRoutingEndpointGroupCommandError");
1644
1176
  var de_DeleteCustomRoutingListenerCommand = /* @__PURE__ */ __name(async (output, context) => {
1645
1177
  if (output.statusCode >= 300) {
1646
- return de_DeleteCustomRoutingListenerCommandError(output, context);
1178
+ return de_CommandError(output, context);
1647
1179
  }
1648
1180
  await (0, import_smithy_client.collectBody)(output.body, context);
1649
1181
  const response = {
@@ -1651,37 +1183,9 @@ var de_DeleteCustomRoutingListenerCommand = /* @__PURE__ */ __name(async (output
1651
1183
  };
1652
1184
  return response;
1653
1185
  }, "de_DeleteCustomRoutingListenerCommand");
1654
- var de_DeleteCustomRoutingListenerCommandError = /* @__PURE__ */ __name(async (output, context) => {
1655
- const parsedOutput = {
1656
- ...output,
1657
- body: await parseErrorBody(output.body, context)
1658
- };
1659
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1660
- switch (errorCode) {
1661
- case "AssociatedEndpointGroupFoundException":
1662
- case "com.amazonaws.globalaccelerator#AssociatedEndpointGroupFoundException":
1663
- throw await de_AssociatedEndpointGroupFoundExceptionRes(parsedOutput, context);
1664
- case "InternalServiceErrorException":
1665
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1666
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1667
- case "InvalidArgumentException":
1668
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1669
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1670
- case "ListenerNotFoundException":
1671
- case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
1672
- throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
1673
- default:
1674
- const parsedBody = parsedOutput.body;
1675
- return throwDefaultError({
1676
- output,
1677
- parsedBody,
1678
- errorCode
1679
- });
1680
- }
1681
- }, "de_DeleteCustomRoutingListenerCommandError");
1682
1186
  var de_DeleteEndpointGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1683
1187
  if (output.statusCode >= 300) {
1684
- return de_DeleteEndpointGroupCommandError(output, context);
1188
+ return de_CommandError(output, context);
1685
1189
  }
1686
1190
  await (0, import_smithy_client.collectBody)(output.body, context);
1687
1191
  const response = {
@@ -1689,34 +1193,9 @@ var de_DeleteEndpointGroupCommand = /* @__PURE__ */ __name(async (output, contex
1689
1193
  };
1690
1194
  return response;
1691
1195
  }, "de_DeleteEndpointGroupCommand");
1692
- var de_DeleteEndpointGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1693
- const parsedOutput = {
1694
- ...output,
1695
- body: await parseErrorBody(output.body, context)
1696
- };
1697
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1698
- switch (errorCode) {
1699
- case "EndpointGroupNotFoundException":
1700
- case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
1701
- throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
1702
- case "InternalServiceErrorException":
1703
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1704
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1705
- case "InvalidArgumentException":
1706
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1707
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1708
- default:
1709
- const parsedBody = parsedOutput.body;
1710
- return throwDefaultError({
1711
- output,
1712
- parsedBody,
1713
- errorCode
1714
- });
1715
- }
1716
- }, "de_DeleteEndpointGroupCommandError");
1717
1196
  var de_DeleteListenerCommand = /* @__PURE__ */ __name(async (output, context) => {
1718
1197
  if (output.statusCode >= 300) {
1719
- return de_DeleteListenerCommandError(output, context);
1198
+ return de_CommandError(output, context);
1720
1199
  }
1721
1200
  await (0, import_smithy_client.collectBody)(output.body, context);
1722
1201
  const response = {
@@ -1724,116 +1203,32 @@ var de_DeleteListenerCommand = /* @__PURE__ */ __name(async (output, context) =>
1724
1203
  };
1725
1204
  return response;
1726
1205
  }, "de_DeleteListenerCommand");
1727
- var de_DeleteListenerCommandError = /* @__PURE__ */ __name(async (output, context) => {
1728
- const parsedOutput = {
1729
- ...output,
1730
- body: await parseErrorBody(output.body, context)
1731
- };
1732
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1733
- switch (errorCode) {
1734
- case "AssociatedEndpointGroupFoundException":
1735
- case "com.amazonaws.globalaccelerator#AssociatedEndpointGroupFoundException":
1736
- throw await de_AssociatedEndpointGroupFoundExceptionRes(parsedOutput, context);
1737
- case "InternalServiceErrorException":
1738
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1739
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1740
- case "InvalidArgumentException":
1741
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1742
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1743
- case "ListenerNotFoundException":
1744
- case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
1745
- throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
1746
- default:
1747
- const parsedBody = parsedOutput.body;
1748
- return throwDefaultError({
1749
- output,
1750
- parsedBody,
1751
- errorCode
1752
- });
1753
- }
1754
- }, "de_DeleteListenerCommandError");
1755
1206
  var de_DenyCustomRoutingTrafficCommand = /* @__PURE__ */ __name(async (output, context) => {
1756
1207
  if (output.statusCode >= 300) {
1757
- return de_DenyCustomRoutingTrafficCommandError(output, context);
1208
+ return de_CommandError(output, context);
1758
1209
  }
1759
1210
  await (0, import_smithy_client.collectBody)(output.body, context);
1760
1211
  const response = {
1761
1212
  $metadata: deserializeMetadata(output)
1762
1213
  };
1763
1214
  return response;
1764
- }, "de_DenyCustomRoutingTrafficCommand");
1765
- var de_DenyCustomRoutingTrafficCommandError = /* @__PURE__ */ __name(async (output, context) => {
1766
- const parsedOutput = {
1767
- ...output,
1768
- body: await parseErrorBody(output.body, context)
1769
- };
1770
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1771
- switch (errorCode) {
1772
- case "EndpointGroupNotFoundException":
1773
- case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
1774
- throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
1775
- case "InternalServiceErrorException":
1776
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1777
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1778
- case "InvalidArgumentException":
1779
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1780
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1781
- default:
1782
- const parsedBody = parsedOutput.body;
1783
- return throwDefaultError({
1784
- output,
1785
- parsedBody,
1786
- errorCode
1787
- });
1788
- }
1789
- }, "de_DenyCustomRoutingTrafficCommandError");
1790
- var de_DeprovisionByoipCidrCommand = /* @__PURE__ */ __name(async (output, context) => {
1791
- if (output.statusCode >= 300) {
1792
- return de_DeprovisionByoipCidrCommandError(output, context);
1793
- }
1794
- const data = await parseBody(output.body, context);
1795
- let contents = {};
1796
- contents = de_DeprovisionByoipCidrResponse(data, context);
1797
- const response = {
1798
- $metadata: deserializeMetadata(output),
1799
- ...contents
1800
- };
1801
- return response;
1802
- }, "de_DeprovisionByoipCidrCommand");
1803
- var de_DeprovisionByoipCidrCommandError = /* @__PURE__ */ __name(async (output, context) => {
1804
- const parsedOutput = {
1805
- ...output,
1806
- body: await parseErrorBody(output.body, context)
1807
- };
1808
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1809
- switch (errorCode) {
1810
- case "AccessDeniedException":
1811
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
1812
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1813
- case "ByoipCidrNotFoundException":
1814
- case "com.amazonaws.globalaccelerator#ByoipCidrNotFoundException":
1815
- throw await de_ByoipCidrNotFoundExceptionRes(parsedOutput, context);
1816
- case "IncorrectCidrStateException":
1817
- case "com.amazonaws.globalaccelerator#IncorrectCidrStateException":
1818
- throw await de_IncorrectCidrStateExceptionRes(parsedOutput, context);
1819
- case "InternalServiceErrorException":
1820
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1821
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1822
- case "InvalidArgumentException":
1823
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1824
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1825
- default:
1826
- const parsedBody = parsedOutput.body;
1827
- return throwDefaultError({
1828
- output,
1829
- parsedBody,
1830
- errorCode
1831
- });
1215
+ }, "de_DenyCustomRoutingTrafficCommand");
1216
+ var de_DeprovisionByoipCidrCommand = /* @__PURE__ */ __name(async (output, context) => {
1217
+ if (output.statusCode >= 300) {
1218
+ return de_CommandError(output, context);
1832
1219
  }
1833
- }, "de_DeprovisionByoipCidrCommandError");
1220
+ const data = await parseBody(output.body, context);
1221
+ let contents = {};
1222
+ contents = de_DeprovisionByoipCidrResponse(data, context);
1223
+ const response = {
1224
+ $metadata: deserializeMetadata(output),
1225
+ ...contents
1226
+ };
1227
+ return response;
1228
+ }, "de_DeprovisionByoipCidrCommand");
1834
1229
  var de_DescribeAcceleratorCommand = /* @__PURE__ */ __name(async (output, context) => {
1835
1230
  if (output.statusCode >= 300) {
1836
- return de_DescribeAcceleratorCommandError(output, context);
1231
+ return de_CommandError(output, context);
1837
1232
  }
1838
1233
  const data = await parseBody(output.body, context);
1839
1234
  let contents = {};
@@ -1844,34 +1239,9 @@ var de_DescribeAcceleratorCommand = /* @__PURE__ */ __name(async (output, contex
1844
1239
  };
1845
1240
  return response;
1846
1241
  }, "de_DescribeAcceleratorCommand");
1847
- var de_DescribeAcceleratorCommandError = /* @__PURE__ */ __name(async (output, context) => {
1848
- const parsedOutput = {
1849
- ...output,
1850
- body: await parseErrorBody(output.body, context)
1851
- };
1852
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1853
- switch (errorCode) {
1854
- case "AcceleratorNotFoundException":
1855
- case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
1856
- throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
1857
- case "InternalServiceErrorException":
1858
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1859
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1860
- case "InvalidArgumentException":
1861
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1862
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1863
- default:
1864
- const parsedBody = parsedOutput.body;
1865
- return throwDefaultError({
1866
- output,
1867
- parsedBody,
1868
- errorCode
1869
- });
1870
- }
1871
- }, "de_DescribeAcceleratorCommandError");
1872
1242
  var de_DescribeAcceleratorAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
1873
1243
  if (output.statusCode >= 300) {
1874
- return de_DescribeAcceleratorAttributesCommandError(output, context);
1244
+ return de_CommandError(output, context);
1875
1245
  }
1876
1246
  const data = await parseBody(output.body, context);
1877
1247
  let contents = {};
@@ -1882,34 +1252,9 @@ var de_DescribeAcceleratorAttributesCommand = /* @__PURE__ */ __name(async (outp
1882
1252
  };
1883
1253
  return response;
1884
1254
  }, "de_DescribeAcceleratorAttributesCommand");
1885
- var de_DescribeAcceleratorAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1886
- const parsedOutput = {
1887
- ...output,
1888
- body: await parseErrorBody(output.body, context)
1889
- };
1890
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1891
- switch (errorCode) {
1892
- case "AcceleratorNotFoundException":
1893
- case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
1894
- throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
1895
- case "InternalServiceErrorException":
1896
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1897
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1898
- case "InvalidArgumentException":
1899
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1900
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1901
- default:
1902
- const parsedBody = parsedOutput.body;
1903
- return throwDefaultError({
1904
- output,
1905
- parsedBody,
1906
- errorCode
1907
- });
1908
- }
1909
- }, "de_DescribeAcceleratorAttributesCommandError");
1910
1255
  var de_DescribeCrossAccountAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
1911
1256
  if (output.statusCode >= 300) {
1912
- return de_DescribeCrossAccountAttachmentCommandError(output, context);
1257
+ return de_CommandError(output, context);
1913
1258
  }
1914
1259
  const data = await parseBody(output.body, context);
1915
1260
  let contents = {};
@@ -1920,37 +1265,9 @@ var de_DescribeCrossAccountAttachmentCommand = /* @__PURE__ */ __name(async (out
1920
1265
  };
1921
1266
  return response;
1922
1267
  }, "de_DescribeCrossAccountAttachmentCommand");
1923
- var de_DescribeCrossAccountAttachmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
1924
- const parsedOutput = {
1925
- ...output,
1926
- body: await parseErrorBody(output.body, context)
1927
- };
1928
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1929
- switch (errorCode) {
1930
- case "AccessDeniedException":
1931
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
1932
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1933
- case "AttachmentNotFoundException":
1934
- case "com.amazonaws.globalaccelerator#AttachmentNotFoundException":
1935
- throw await de_AttachmentNotFoundExceptionRes(parsedOutput, context);
1936
- case "InternalServiceErrorException":
1937
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1938
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1939
- case "InvalidArgumentException":
1940
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1941
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1942
- default:
1943
- const parsedBody = parsedOutput.body;
1944
- return throwDefaultError({
1945
- output,
1946
- parsedBody,
1947
- errorCode
1948
- });
1949
- }
1950
- }, "de_DescribeCrossAccountAttachmentCommandError");
1951
1268
  var de_DescribeCustomRoutingAcceleratorCommand = /* @__PURE__ */ __name(async (output, context) => {
1952
1269
  if (output.statusCode >= 300) {
1953
- return de_DescribeCustomRoutingAcceleratorCommandError(output, context);
1270
+ return de_CommandError(output, context);
1954
1271
  }
1955
1272
  const data = await parseBody(output.body, context);
1956
1273
  let contents = {};
@@ -1961,34 +1278,9 @@ var de_DescribeCustomRoutingAcceleratorCommand = /* @__PURE__ */ __name(async (o
1961
1278
  };
1962
1279
  return response;
1963
1280
  }, "de_DescribeCustomRoutingAcceleratorCommand");
1964
- var de_DescribeCustomRoutingAcceleratorCommandError = /* @__PURE__ */ __name(async (output, context) => {
1965
- const parsedOutput = {
1966
- ...output,
1967
- body: await parseErrorBody(output.body, context)
1968
- };
1969
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1970
- switch (errorCode) {
1971
- case "AcceleratorNotFoundException":
1972
- case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
1973
- throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
1974
- case "InternalServiceErrorException":
1975
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
1976
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
1977
- case "InvalidArgumentException":
1978
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
1979
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1980
- default:
1981
- const parsedBody = parsedOutput.body;
1982
- return throwDefaultError({
1983
- output,
1984
- parsedBody,
1985
- errorCode
1986
- });
1987
- }
1988
- }, "de_DescribeCustomRoutingAcceleratorCommandError");
1989
1281
  var de_DescribeCustomRoutingAcceleratorAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
1990
1282
  if (output.statusCode >= 300) {
1991
- return de_DescribeCustomRoutingAcceleratorAttributesCommandError(output, context);
1283
+ return de_CommandError(output, context);
1992
1284
  }
1993
1285
  const data = await parseBody(output.body, context);
1994
1286
  let contents = {};
@@ -1999,34 +1291,9 @@ var de_DescribeCustomRoutingAcceleratorAttributesCommand = /* @__PURE__ */ __nam
1999
1291
  };
2000
1292
  return response;
2001
1293
  }, "de_DescribeCustomRoutingAcceleratorAttributesCommand");
2002
- var de_DescribeCustomRoutingAcceleratorAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2003
- const parsedOutput = {
2004
- ...output,
2005
- body: await parseErrorBody(output.body, context)
2006
- };
2007
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2008
- switch (errorCode) {
2009
- case "AcceleratorNotFoundException":
2010
- case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
2011
- throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
2012
- case "InternalServiceErrorException":
2013
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2014
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2015
- case "InvalidArgumentException":
2016
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2017
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2018
- default:
2019
- const parsedBody = parsedOutput.body;
2020
- return throwDefaultError({
2021
- output,
2022
- parsedBody,
2023
- errorCode
2024
- });
2025
- }
2026
- }, "de_DescribeCustomRoutingAcceleratorAttributesCommandError");
2027
1294
  var de_DescribeCustomRoutingEndpointGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2028
1295
  if (output.statusCode >= 300) {
2029
- return de_DescribeCustomRoutingEndpointGroupCommandError(output, context);
1296
+ return de_CommandError(output, context);
2030
1297
  }
2031
1298
  const data = await parseBody(output.body, context);
2032
1299
  let contents = {};
@@ -2037,34 +1304,9 @@ var de_DescribeCustomRoutingEndpointGroupCommand = /* @__PURE__ */ __name(async
2037
1304
  };
2038
1305
  return response;
2039
1306
  }, "de_DescribeCustomRoutingEndpointGroupCommand");
2040
- var de_DescribeCustomRoutingEndpointGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
2041
- const parsedOutput = {
2042
- ...output,
2043
- body: await parseErrorBody(output.body, context)
2044
- };
2045
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2046
- switch (errorCode) {
2047
- case "EndpointGroupNotFoundException":
2048
- case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
2049
- throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
2050
- case "InternalServiceErrorException":
2051
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2052
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2053
- case "InvalidArgumentException":
2054
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2055
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2056
- default:
2057
- const parsedBody = parsedOutput.body;
2058
- return throwDefaultError({
2059
- output,
2060
- parsedBody,
2061
- errorCode
2062
- });
2063
- }
2064
- }, "de_DescribeCustomRoutingEndpointGroupCommandError");
2065
1307
  var de_DescribeCustomRoutingListenerCommand = /* @__PURE__ */ __name(async (output, context) => {
2066
1308
  if (output.statusCode >= 300) {
2067
- return de_DescribeCustomRoutingListenerCommandError(output, context);
1309
+ return de_CommandError(output, context);
2068
1310
  }
2069
1311
  const data = await parseBody(output.body, context);
2070
1312
  let contents = {};
@@ -2075,34 +1317,9 @@ var de_DescribeCustomRoutingListenerCommand = /* @__PURE__ */ __name(async (outp
2075
1317
  };
2076
1318
  return response;
2077
1319
  }, "de_DescribeCustomRoutingListenerCommand");
2078
- var de_DescribeCustomRoutingListenerCommandError = /* @__PURE__ */ __name(async (output, context) => {
2079
- const parsedOutput = {
2080
- ...output,
2081
- body: await parseErrorBody(output.body, context)
2082
- };
2083
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2084
- switch (errorCode) {
2085
- case "InternalServiceErrorException":
2086
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2087
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2088
- case "InvalidArgumentException":
2089
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2090
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2091
- case "ListenerNotFoundException":
2092
- case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
2093
- throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
2094
- default:
2095
- const parsedBody = parsedOutput.body;
2096
- return throwDefaultError({
2097
- output,
2098
- parsedBody,
2099
- errorCode
2100
- });
2101
- }
2102
- }, "de_DescribeCustomRoutingListenerCommandError");
2103
1320
  var de_DescribeEndpointGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2104
1321
  if (output.statusCode >= 300) {
2105
- return de_DescribeEndpointGroupCommandError(output, context);
1322
+ return de_CommandError(output, context);
2106
1323
  }
2107
1324
  const data = await parseBody(output.body, context);
2108
1325
  let contents = {};
@@ -2113,34 +1330,9 @@ var de_DescribeEndpointGroupCommand = /* @__PURE__ */ __name(async (output, cont
2113
1330
  };
2114
1331
  return response;
2115
1332
  }, "de_DescribeEndpointGroupCommand");
2116
- var de_DescribeEndpointGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
2117
- const parsedOutput = {
2118
- ...output,
2119
- body: await parseErrorBody(output.body, context)
2120
- };
2121
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2122
- switch (errorCode) {
2123
- case "EndpointGroupNotFoundException":
2124
- case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
2125
- throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
2126
- case "InternalServiceErrorException":
2127
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2128
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2129
- case "InvalidArgumentException":
2130
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2131
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2132
- default:
2133
- const parsedBody = parsedOutput.body;
2134
- return throwDefaultError({
2135
- output,
2136
- parsedBody,
2137
- errorCode
2138
- });
2139
- }
2140
- }, "de_DescribeEndpointGroupCommandError");
2141
1333
  var de_DescribeListenerCommand = /* @__PURE__ */ __name(async (output, context) => {
2142
1334
  if (output.statusCode >= 300) {
2143
- return de_DescribeListenerCommandError(output, context);
1335
+ return de_CommandError(output, context);
2144
1336
  }
2145
1337
  const data = await parseBody(output.body, context);
2146
1338
  let contents = {};
@@ -2151,72 +1343,22 @@ var de_DescribeListenerCommand = /* @__PURE__ */ __name(async (output, context)
2151
1343
  };
2152
1344
  return response;
2153
1345
  }, "de_DescribeListenerCommand");
2154
- var de_DescribeListenerCommandError = /* @__PURE__ */ __name(async (output, context) => {
2155
- const parsedOutput = {
2156
- ...output,
2157
- body: await parseErrorBody(output.body, context)
2158
- };
2159
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2160
- switch (errorCode) {
2161
- case "InternalServiceErrorException":
2162
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2163
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2164
- case "InvalidArgumentException":
2165
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2166
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2167
- case "ListenerNotFoundException":
2168
- case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
2169
- throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
2170
- default:
2171
- const parsedBody = parsedOutput.body;
2172
- return throwDefaultError({
2173
- output,
2174
- parsedBody,
2175
- errorCode
2176
- });
2177
- }
2178
- }, "de_DescribeListenerCommandError");
2179
- var de_ListAcceleratorsCommand = /* @__PURE__ */ __name(async (output, context) => {
2180
- if (output.statusCode >= 300) {
2181
- return de_ListAcceleratorsCommandError(output, context);
2182
- }
2183
- const data = await parseBody(output.body, context);
2184
- let contents = {};
2185
- contents = de_ListAcceleratorsResponse(data, context);
2186
- const response = {
2187
- $metadata: deserializeMetadata(output),
2188
- ...contents
2189
- };
2190
- return response;
2191
- }, "de_ListAcceleratorsCommand");
2192
- var de_ListAcceleratorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2193
- const parsedOutput = {
2194
- ...output,
2195
- body: await parseErrorBody(output.body, context)
2196
- };
2197
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2198
- switch (errorCode) {
2199
- case "InternalServiceErrorException":
2200
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2201
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2202
- case "InvalidArgumentException":
2203
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2204
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2205
- case "InvalidNextTokenException":
2206
- case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
2207
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2208
- default:
2209
- const parsedBody = parsedOutput.body;
2210
- return throwDefaultError({
2211
- output,
2212
- parsedBody,
2213
- errorCode
2214
- });
1346
+ var de_ListAcceleratorsCommand = /* @__PURE__ */ __name(async (output, context) => {
1347
+ if (output.statusCode >= 300) {
1348
+ return de_CommandError(output, context);
2215
1349
  }
2216
- }, "de_ListAcceleratorsCommandError");
1350
+ const data = await parseBody(output.body, context);
1351
+ let contents = {};
1352
+ contents = de_ListAcceleratorsResponse(data, context);
1353
+ const response = {
1354
+ $metadata: deserializeMetadata(output),
1355
+ ...contents
1356
+ };
1357
+ return response;
1358
+ }, "de_ListAcceleratorsCommand");
2217
1359
  var de_ListByoipCidrsCommand = /* @__PURE__ */ __name(async (output, context) => {
2218
1360
  if (output.statusCode >= 300) {
2219
- return de_ListByoipCidrsCommandError(output, context);
1361
+ return de_CommandError(output, context);
2220
1362
  }
2221
1363
  const data = await parseBody(output.body, context);
2222
1364
  let contents = {};
@@ -2227,37 +1369,9 @@ var de_ListByoipCidrsCommand = /* @__PURE__ */ __name(async (output, context) =>
2227
1369
  };
2228
1370
  return response;
2229
1371
  }, "de_ListByoipCidrsCommand");
2230
- var de_ListByoipCidrsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2231
- const parsedOutput = {
2232
- ...output,
2233
- body: await parseErrorBody(output.body, context)
2234
- };
2235
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2236
- switch (errorCode) {
2237
- case "AccessDeniedException":
2238
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
2239
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2240
- case "InternalServiceErrorException":
2241
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2242
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2243
- case "InvalidArgumentException":
2244
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2245
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2246
- case "InvalidNextTokenException":
2247
- case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
2248
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2249
- default:
2250
- const parsedBody = parsedOutput.body;
2251
- return throwDefaultError({
2252
- output,
2253
- parsedBody,
2254
- errorCode
2255
- });
2256
- }
2257
- }, "de_ListByoipCidrsCommandError");
2258
1372
  var de_ListCrossAccountAttachmentsCommand = /* @__PURE__ */ __name(async (output, context) => {
2259
1373
  if (output.statusCode >= 300) {
2260
- return de_ListCrossAccountAttachmentsCommandError(output, context);
1374
+ return de_CommandError(output, context);
2261
1375
  }
2262
1376
  const data = await parseBody(output.body, context);
2263
1377
  let contents = {};
@@ -2268,37 +1382,9 @@ var de_ListCrossAccountAttachmentsCommand = /* @__PURE__ */ __name(async (output
2268
1382
  };
2269
1383
  return response;
2270
1384
  }, "de_ListCrossAccountAttachmentsCommand");
2271
- var de_ListCrossAccountAttachmentsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2272
- const parsedOutput = {
2273
- ...output,
2274
- body: await parseErrorBody(output.body, context)
2275
- };
2276
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2277
- switch (errorCode) {
2278
- case "AccessDeniedException":
2279
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
2280
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2281
- case "InternalServiceErrorException":
2282
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2283
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2284
- case "InvalidArgumentException":
2285
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2286
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2287
- case "InvalidNextTokenException":
2288
- case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
2289
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2290
- default:
2291
- const parsedBody = parsedOutput.body;
2292
- return throwDefaultError({
2293
- output,
2294
- parsedBody,
2295
- errorCode
2296
- });
2297
- }
2298
- }, "de_ListCrossAccountAttachmentsCommandError");
2299
1385
  var de_ListCrossAccountResourceAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
2300
1386
  if (output.statusCode >= 300) {
2301
- return de_ListCrossAccountResourceAccountsCommandError(output, context);
1387
+ return de_CommandError(output, context);
2302
1388
  }
2303
1389
  const data = await parseBody(output.body, context);
2304
1390
  let contents = {};
@@ -2309,31 +1395,9 @@ var de_ListCrossAccountResourceAccountsCommand = /* @__PURE__ */ __name(async (o
2309
1395
  };
2310
1396
  return response;
2311
1397
  }, "de_ListCrossAccountResourceAccountsCommand");
2312
- var de_ListCrossAccountResourceAccountsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2313
- const parsedOutput = {
2314
- ...output,
2315
- body: await parseErrorBody(output.body, context)
2316
- };
2317
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2318
- switch (errorCode) {
2319
- case "AccessDeniedException":
2320
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
2321
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2322
- case "InternalServiceErrorException":
2323
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2324
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2325
- default:
2326
- const parsedBody = parsedOutput.body;
2327
- return throwDefaultError({
2328
- output,
2329
- parsedBody,
2330
- errorCode
2331
- });
2332
- }
2333
- }, "de_ListCrossAccountResourceAccountsCommandError");
2334
1398
  var de_ListCrossAccountResourcesCommand = /* @__PURE__ */ __name(async (output, context) => {
2335
1399
  if (output.statusCode >= 300) {
2336
- return de_ListCrossAccountResourcesCommandError(output, context);
1400
+ return de_CommandError(output, context);
2337
1401
  }
2338
1402
  const data = await parseBody(output.body, context);
2339
1403
  let contents = {};
@@ -2344,40 +1408,9 @@ var de_ListCrossAccountResourcesCommand = /* @__PURE__ */ __name(async (output,
2344
1408
  };
2345
1409
  return response;
2346
1410
  }, "de_ListCrossAccountResourcesCommand");
2347
- var de_ListCrossAccountResourcesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2348
- const parsedOutput = {
2349
- ...output,
2350
- body: await parseErrorBody(output.body, context)
2351
- };
2352
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2353
- switch (errorCode) {
2354
- case "AcceleratorNotFoundException":
2355
- case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
2356
- throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
2357
- case "AccessDeniedException":
2358
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
2359
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2360
- case "InternalServiceErrorException":
2361
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2362
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2363
- case "InvalidArgumentException":
2364
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2365
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2366
- case "InvalidNextTokenException":
2367
- case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
2368
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2369
- default:
2370
- const parsedBody = parsedOutput.body;
2371
- return throwDefaultError({
2372
- output,
2373
- parsedBody,
2374
- errorCode
2375
- });
2376
- }
2377
- }, "de_ListCrossAccountResourcesCommandError");
2378
1411
  var de_ListCustomRoutingAcceleratorsCommand = /* @__PURE__ */ __name(async (output, context) => {
2379
1412
  if (output.statusCode >= 300) {
2380
- return de_ListCustomRoutingAcceleratorsCommandError(output, context);
1413
+ return de_CommandError(output, context);
2381
1414
  }
2382
1415
  const data = await parseBody(output.body, context);
2383
1416
  let contents = {};
@@ -2388,34 +1421,9 @@ var de_ListCustomRoutingAcceleratorsCommand = /* @__PURE__ */ __name(async (outp
2388
1421
  };
2389
1422
  return response;
2390
1423
  }, "de_ListCustomRoutingAcceleratorsCommand");
2391
- var de_ListCustomRoutingAcceleratorsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2392
- const parsedOutput = {
2393
- ...output,
2394
- body: await parseErrorBody(output.body, context)
2395
- };
2396
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2397
- switch (errorCode) {
2398
- case "InternalServiceErrorException":
2399
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2400
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2401
- case "InvalidArgumentException":
2402
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2403
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2404
- case "InvalidNextTokenException":
2405
- case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
2406
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2407
- default:
2408
- const parsedBody = parsedOutput.body;
2409
- return throwDefaultError({
2410
- output,
2411
- parsedBody,
2412
- errorCode
2413
- });
2414
- }
2415
- }, "de_ListCustomRoutingAcceleratorsCommandError");
2416
1424
  var de_ListCustomRoutingEndpointGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
2417
1425
  if (output.statusCode >= 300) {
2418
- return de_ListCustomRoutingEndpointGroupsCommandError(output, context);
1426
+ return de_CommandError(output, context);
2419
1427
  }
2420
1428
  const data = await parseBody(output.body, context);
2421
1429
  let contents = {};
@@ -2426,37 +1434,9 @@ var de_ListCustomRoutingEndpointGroupsCommand = /* @__PURE__ */ __name(async (ou
2426
1434
  };
2427
1435
  return response;
2428
1436
  }, "de_ListCustomRoutingEndpointGroupsCommand");
2429
- var de_ListCustomRoutingEndpointGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2430
- const parsedOutput = {
2431
- ...output,
2432
- body: await parseErrorBody(output.body, context)
2433
- };
2434
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2435
- switch (errorCode) {
2436
- case "InternalServiceErrorException":
2437
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2438
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2439
- case "InvalidArgumentException":
2440
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2441
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2442
- case "InvalidNextTokenException":
2443
- case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
2444
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2445
- case "ListenerNotFoundException":
2446
- case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
2447
- throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
2448
- default:
2449
- const parsedBody = parsedOutput.body;
2450
- return throwDefaultError({
2451
- output,
2452
- parsedBody,
2453
- errorCode
2454
- });
2455
- }
2456
- }, "de_ListCustomRoutingEndpointGroupsCommandError");
2457
1437
  var de_ListCustomRoutingListenersCommand = /* @__PURE__ */ __name(async (output, context) => {
2458
1438
  if (output.statusCode >= 300) {
2459
- return de_ListCustomRoutingListenersCommandError(output, context);
1439
+ return de_CommandError(output, context);
2460
1440
  }
2461
1441
  const data = await parseBody(output.body, context);
2462
1442
  let contents = {};
@@ -2467,81 +1447,9 @@ var de_ListCustomRoutingListenersCommand = /* @__PURE__ */ __name(async (output,
2467
1447
  };
2468
1448
  return response;
2469
1449
  }, "de_ListCustomRoutingListenersCommand");
2470
- var de_ListCustomRoutingListenersCommandError = /* @__PURE__ */ __name(async (output, context) => {
2471
- const parsedOutput = {
2472
- ...output,
2473
- body: await parseErrorBody(output.body, context)
2474
- };
2475
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2476
- switch (errorCode) {
2477
- case "AcceleratorNotFoundException":
2478
- case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
2479
- throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
2480
- case "InternalServiceErrorException":
2481
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2482
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2483
- case "InvalidArgumentException":
2484
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2485
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2486
- case "InvalidNextTokenException":
2487
- case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
2488
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2489
- default:
2490
- const parsedBody = parsedOutput.body;
2491
- return throwDefaultError({
2492
- output,
2493
- parsedBody,
2494
- errorCode
2495
- });
2496
- }
2497
- }, "de_ListCustomRoutingListenersCommandError");
2498
1450
  var de_ListCustomRoutingPortMappingsCommand = /* @__PURE__ */ __name(async (output, context) => {
2499
1451
  if (output.statusCode >= 300) {
2500
- return de_ListCustomRoutingPortMappingsCommandError(output, context);
2501
- }
2502
- const data = await parseBody(output.body, context);
2503
- let contents = {};
2504
- contents = (0, import_smithy_client._json)(data);
2505
- const response = {
2506
- $metadata: deserializeMetadata(output),
2507
- ...contents
2508
- };
2509
- return response;
2510
- }, "de_ListCustomRoutingPortMappingsCommand");
2511
- var de_ListCustomRoutingPortMappingsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2512
- const parsedOutput = {
2513
- ...output,
2514
- body: await parseErrorBody(output.body, context)
2515
- };
2516
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2517
- switch (errorCode) {
2518
- case "AcceleratorNotFoundException":
2519
- case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
2520
- throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
2521
- case "EndpointGroupNotFoundException":
2522
- case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
2523
- throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
2524
- case "InternalServiceErrorException":
2525
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2526
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2527
- case "InvalidArgumentException":
2528
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2529
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2530
- case "InvalidNextTokenException":
2531
- case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
2532
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2533
- default:
2534
- const parsedBody = parsedOutput.body;
2535
- return throwDefaultError({
2536
- output,
2537
- parsedBody,
2538
- errorCode
2539
- });
2540
- }
2541
- }, "de_ListCustomRoutingPortMappingsCommandError");
2542
- var de_ListCustomRoutingPortMappingsByDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
2543
- if (output.statusCode >= 300) {
2544
- return de_ListCustomRoutingPortMappingsByDestinationCommandError(output, context);
1452
+ return de_CommandError(output, context);
2545
1453
  }
2546
1454
  const data = await parseBody(output.body, context);
2547
1455
  let contents = {};
@@ -2549,40 +1457,25 @@ var de_ListCustomRoutingPortMappingsByDestinationCommand = /* @__PURE__ */ __nam
2549
1457
  const response = {
2550
1458
  $metadata: deserializeMetadata(output),
2551
1459
  ...contents
2552
- };
2553
- return response;
2554
- }, "de_ListCustomRoutingPortMappingsByDestinationCommand");
2555
- var de_ListCustomRoutingPortMappingsByDestinationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2556
- const parsedOutput = {
2557
- ...output,
2558
- body: await parseErrorBody(output.body, context)
2559
- };
2560
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2561
- switch (errorCode) {
2562
- case "EndpointNotFoundException":
2563
- case "com.amazonaws.globalaccelerator#EndpointNotFoundException":
2564
- throw await de_EndpointNotFoundExceptionRes(parsedOutput, context);
2565
- case "InternalServiceErrorException":
2566
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2567
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2568
- case "InvalidArgumentException":
2569
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2570
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2571
- case "InvalidNextTokenException":
2572
- case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
2573
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2574
- default:
2575
- const parsedBody = parsedOutput.body;
2576
- return throwDefaultError({
2577
- output,
2578
- parsedBody,
2579
- errorCode
2580
- });
1460
+ };
1461
+ return response;
1462
+ }, "de_ListCustomRoutingPortMappingsCommand");
1463
+ var de_ListCustomRoutingPortMappingsByDestinationCommand = /* @__PURE__ */ __name(async (output, context) => {
1464
+ if (output.statusCode >= 300) {
1465
+ return de_CommandError(output, context);
2581
1466
  }
2582
- }, "de_ListCustomRoutingPortMappingsByDestinationCommandError");
1467
+ const data = await parseBody(output.body, context);
1468
+ let contents = {};
1469
+ contents = (0, import_smithy_client._json)(data);
1470
+ const response = {
1471
+ $metadata: deserializeMetadata(output),
1472
+ ...contents
1473
+ };
1474
+ return response;
1475
+ }, "de_ListCustomRoutingPortMappingsByDestinationCommand");
2583
1476
  var de_ListEndpointGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
2584
1477
  if (output.statusCode >= 300) {
2585
- return de_ListEndpointGroupsCommandError(output, context);
1478
+ return de_CommandError(output, context);
2586
1479
  }
2587
1480
  const data = await parseBody(output.body, context);
2588
1481
  let contents = {};
@@ -2593,37 +1486,9 @@ var de_ListEndpointGroupsCommand = /* @__PURE__ */ __name(async (output, context
2593
1486
  };
2594
1487
  return response;
2595
1488
  }, "de_ListEndpointGroupsCommand");
2596
- var de_ListEndpointGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2597
- const parsedOutput = {
2598
- ...output,
2599
- body: await parseErrorBody(output.body, context)
2600
- };
2601
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2602
- switch (errorCode) {
2603
- case "InternalServiceErrorException":
2604
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2605
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2606
- case "InvalidArgumentException":
2607
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2608
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2609
- case "InvalidNextTokenException":
2610
- case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
2611
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2612
- case "ListenerNotFoundException":
2613
- case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
2614
- throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
2615
- default:
2616
- const parsedBody = parsedOutput.body;
2617
- return throwDefaultError({
2618
- output,
2619
- parsedBody,
2620
- errorCode
2621
- });
2622
- }
2623
- }, "de_ListEndpointGroupsCommandError");
2624
1489
  var de_ListListenersCommand = /* @__PURE__ */ __name(async (output, context) => {
2625
1490
  if (output.statusCode >= 300) {
2626
- return de_ListListenersCommandError(output, context);
1491
+ return de_CommandError(output, context);
2627
1492
  }
2628
1493
  const data = await parseBody(output.body, context);
2629
1494
  let contents = {};
@@ -2634,37 +1499,9 @@ var de_ListListenersCommand = /* @__PURE__ */ __name(async (output, context) =>
2634
1499
  };
2635
1500
  return response;
2636
1501
  }, "de_ListListenersCommand");
2637
- var de_ListListenersCommandError = /* @__PURE__ */ __name(async (output, context) => {
2638
- const parsedOutput = {
2639
- ...output,
2640
- body: await parseErrorBody(output.body, context)
2641
- };
2642
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2643
- switch (errorCode) {
2644
- case "AcceleratorNotFoundException":
2645
- case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
2646
- throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
2647
- case "InternalServiceErrorException":
2648
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2649
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2650
- case "InvalidArgumentException":
2651
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2652
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2653
- case "InvalidNextTokenException":
2654
- case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
2655
- throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
2656
- default:
2657
- const parsedBody = parsedOutput.body;
2658
- return throwDefaultError({
2659
- output,
2660
- parsedBody,
2661
- errorCode
2662
- });
2663
- }
2664
- }, "de_ListListenersCommandError");
2665
1502
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2666
1503
  if (output.statusCode >= 300) {
2667
- return de_ListTagsForResourceCommandError(output, context);
1504
+ return de_CommandError(output, context);
2668
1505
  }
2669
1506
  const data = await parseBody(output.body, context);
2670
1507
  let contents = {};
@@ -2675,34 +1512,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
2675
1512
  };
2676
1513
  return response;
2677
1514
  }, "de_ListTagsForResourceCommand");
2678
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2679
- const parsedOutput = {
2680
- ...output,
2681
- body: await parseErrorBody(output.body, context)
2682
- };
2683
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2684
- switch (errorCode) {
2685
- case "AcceleratorNotFoundException":
2686
- case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
2687
- throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
2688
- case "InternalServiceErrorException":
2689
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2690
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2691
- case "InvalidArgumentException":
2692
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2693
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2694
- default:
2695
- const parsedBody = parsedOutput.body;
2696
- return throwDefaultError({
2697
- output,
2698
- parsedBody,
2699
- errorCode
2700
- });
2701
- }
2702
- }, "de_ListTagsForResourceCommandError");
2703
1515
  var de_ProvisionByoipCidrCommand = /* @__PURE__ */ __name(async (output, context) => {
2704
1516
  if (output.statusCode >= 300) {
2705
- return de_ProvisionByoipCidrCommandError(output, context);
1517
+ return de_CommandError(output, context);
2706
1518
  }
2707
1519
  const data = await parseBody(output.body, context);
2708
1520
  let contents = {};
@@ -2713,40 +1525,9 @@ var de_ProvisionByoipCidrCommand = /* @__PURE__ */ __name(async (output, context
2713
1525
  };
2714
1526
  return response;
2715
1527
  }, "de_ProvisionByoipCidrCommand");
2716
- var de_ProvisionByoipCidrCommandError = /* @__PURE__ */ __name(async (output, context) => {
2717
- const parsedOutput = {
2718
- ...output,
2719
- body: await parseErrorBody(output.body, context)
2720
- };
2721
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2722
- switch (errorCode) {
2723
- case "AccessDeniedException":
2724
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
2725
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2726
- case "IncorrectCidrStateException":
2727
- case "com.amazonaws.globalaccelerator#IncorrectCidrStateException":
2728
- throw await de_IncorrectCidrStateExceptionRes(parsedOutput, context);
2729
- case "InternalServiceErrorException":
2730
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2731
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2732
- case "InvalidArgumentException":
2733
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2734
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2735
- case "LimitExceededException":
2736
- case "com.amazonaws.globalaccelerator#LimitExceededException":
2737
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2738
- default:
2739
- const parsedBody = parsedOutput.body;
2740
- return throwDefaultError({
2741
- output,
2742
- parsedBody,
2743
- errorCode
2744
- });
2745
- }
2746
- }, "de_ProvisionByoipCidrCommandError");
2747
1528
  var de_RemoveCustomRoutingEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
2748
1529
  if (output.statusCode >= 300) {
2749
- return de_RemoveCustomRoutingEndpointsCommandError(output, context);
1530
+ return de_CommandError(output, context);
2750
1531
  }
2751
1532
  await (0, import_smithy_client.collectBody)(output.body, context);
2752
1533
  const response = {
@@ -2754,43 +1535,9 @@ var de_RemoveCustomRoutingEndpointsCommand = /* @__PURE__ */ __name(async (outpu
2754
1535
  };
2755
1536
  return response;
2756
1537
  }, "de_RemoveCustomRoutingEndpointsCommand");
2757
- var de_RemoveCustomRoutingEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2758
- const parsedOutput = {
2759
- ...output,
2760
- body: await parseErrorBody(output.body, context)
2761
- };
2762
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2763
- switch (errorCode) {
2764
- case "AccessDeniedException":
2765
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
2766
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2767
- case "ConflictException":
2768
- case "com.amazonaws.globalaccelerator#ConflictException":
2769
- throw await de_ConflictExceptionRes(parsedOutput, context);
2770
- case "EndpointGroupNotFoundException":
2771
- case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
2772
- throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
2773
- case "EndpointNotFoundException":
2774
- case "com.amazonaws.globalaccelerator#EndpointNotFoundException":
2775
- throw await de_EndpointNotFoundExceptionRes(parsedOutput, context);
2776
- case "InternalServiceErrorException":
2777
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2778
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2779
- case "InvalidArgumentException":
2780
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2781
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2782
- default:
2783
- const parsedBody = parsedOutput.body;
2784
- return throwDefaultError({
2785
- output,
2786
- parsedBody,
2787
- errorCode
2788
- });
2789
- }
2790
- }, "de_RemoveCustomRoutingEndpointsCommandError");
2791
1538
  var de_RemoveEndpointsCommand = /* @__PURE__ */ __name(async (output, context) => {
2792
1539
  if (output.statusCode >= 300) {
2793
- return de_RemoveEndpointsCommandError(output, context);
1540
+ return de_CommandError(output, context);
2794
1541
  }
2795
1542
  await (0, import_smithy_client.collectBody)(output.body, context);
2796
1543
  const response = {
@@ -2798,40 +1545,9 @@ var de_RemoveEndpointsCommand = /* @__PURE__ */ __name(async (output, context) =
2798
1545
  };
2799
1546
  return response;
2800
1547
  }, "de_RemoveEndpointsCommand");
2801
- var de_RemoveEndpointsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2802
- const parsedOutput = {
2803
- ...output,
2804
- body: await parseErrorBody(output.body, context)
2805
- };
2806
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2807
- switch (errorCode) {
2808
- case "AccessDeniedException":
2809
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
2810
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2811
- case "EndpointGroupNotFoundException":
2812
- case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
2813
- throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
2814
- case "InternalServiceErrorException":
2815
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2816
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2817
- case "InvalidArgumentException":
2818
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2819
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2820
- case "TransactionInProgressException":
2821
- case "com.amazonaws.globalaccelerator#TransactionInProgressException":
2822
- throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
2823
- default:
2824
- const parsedBody = parsedOutput.body;
2825
- return throwDefaultError({
2826
- output,
2827
- parsedBody,
2828
- errorCode
2829
- });
2830
- }
2831
- }, "de_RemoveEndpointsCommandError");
2832
1548
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2833
1549
  if (output.statusCode >= 300) {
2834
- return de_TagResourceCommandError(output, context);
1550
+ return de_CommandError(output, context);
2835
1551
  }
2836
1552
  const data = await parseBody(output.body, context);
2837
1553
  let contents = {};
@@ -2842,34 +1558,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2842
1558
  };
2843
1559
  return response;
2844
1560
  }, "de_TagResourceCommand");
2845
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2846
- const parsedOutput = {
2847
- ...output,
2848
- body: await parseErrorBody(output.body, context)
2849
- };
2850
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2851
- switch (errorCode) {
2852
- case "AcceleratorNotFoundException":
2853
- case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
2854
- throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
2855
- case "InternalServiceErrorException":
2856
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2857
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2858
- case "InvalidArgumentException":
2859
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2860
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2861
- default:
2862
- const parsedBody = parsedOutput.body;
2863
- return throwDefaultError({
2864
- output,
2865
- parsedBody,
2866
- errorCode
2867
- });
2868
- }
2869
- }, "de_TagResourceCommandError");
2870
1561
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2871
1562
  if (output.statusCode >= 300) {
2872
- return de_UntagResourceCommandError(output, context);
1563
+ return de_CommandError(output, context);
2873
1564
  }
2874
1565
  const data = await parseBody(output.body, context);
2875
1566
  let contents = {};
@@ -2880,75 +1571,22 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
2880
1571
  };
2881
1572
  return response;
2882
1573
  }, "de_UntagResourceCommand");
2883
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2884
- const parsedOutput = {
2885
- ...output,
2886
- body: await parseErrorBody(output.body, context)
2887
- };
2888
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2889
- switch (errorCode) {
2890
- case "AcceleratorNotFoundException":
2891
- case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
2892
- throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
2893
- case "InternalServiceErrorException":
2894
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2895
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2896
- case "InvalidArgumentException":
2897
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2898
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2899
- default:
2900
- const parsedBody = parsedOutput.body;
2901
- return throwDefaultError({
2902
- output,
2903
- parsedBody,
2904
- errorCode
2905
- });
2906
- }
2907
- }, "de_UntagResourceCommandError");
2908
1574
  var de_UpdateAcceleratorCommand = /* @__PURE__ */ __name(async (output, context) => {
2909
1575
  if (output.statusCode >= 300) {
2910
- return de_UpdateAcceleratorCommandError(output, context);
1576
+ return de_CommandError(output, context);
2911
1577
  }
2912
1578
  const data = await parseBody(output.body, context);
2913
1579
  let contents = {};
2914
1580
  contents = de_UpdateAcceleratorResponse(data, context);
2915
1581
  const response = {
2916
- $metadata: deserializeMetadata(output),
2917
- ...contents
2918
- };
2919
- return response;
2920
- }, "de_UpdateAcceleratorCommand");
2921
- var de_UpdateAcceleratorCommandError = /* @__PURE__ */ __name(async (output, context) => {
2922
- const parsedOutput = {
2923
- ...output,
2924
- body: await parseErrorBody(output.body, context)
2925
- };
2926
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2927
- switch (errorCode) {
2928
- case "AcceleratorNotFoundException":
2929
- case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
2930
- throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
2931
- case "AccessDeniedException":
2932
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
2933
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2934
- case "InternalServiceErrorException":
2935
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2936
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2937
- case "InvalidArgumentException":
2938
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2939
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2940
- default:
2941
- const parsedBody = parsedOutput.body;
2942
- return throwDefaultError({
2943
- output,
2944
- parsedBody,
2945
- errorCode
2946
- });
2947
- }
2948
- }, "de_UpdateAcceleratorCommandError");
1582
+ $metadata: deserializeMetadata(output),
1583
+ ...contents
1584
+ };
1585
+ return response;
1586
+ }, "de_UpdateAcceleratorCommand");
2949
1587
  var de_UpdateAcceleratorAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
2950
1588
  if (output.statusCode >= 300) {
2951
- return de_UpdateAcceleratorAttributesCommandError(output, context);
1589
+ return de_CommandError(output, context);
2952
1590
  }
2953
1591
  const data = await parseBody(output.body, context);
2954
1592
  let contents = {};
@@ -2959,37 +1597,9 @@ var de_UpdateAcceleratorAttributesCommand = /* @__PURE__ */ __name(async (output
2959
1597
  };
2960
1598
  return response;
2961
1599
  }, "de_UpdateAcceleratorAttributesCommand");
2962
- var de_UpdateAcceleratorAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2963
- const parsedOutput = {
2964
- ...output,
2965
- body: await parseErrorBody(output.body, context)
2966
- };
2967
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2968
- switch (errorCode) {
2969
- case "AcceleratorNotFoundException":
2970
- case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
2971
- throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
2972
- case "AccessDeniedException":
2973
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
2974
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2975
- case "InternalServiceErrorException":
2976
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
2977
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
2978
- case "InvalidArgumentException":
2979
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
2980
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
2981
- default:
2982
- const parsedBody = parsedOutput.body;
2983
- return throwDefaultError({
2984
- output,
2985
- parsedBody,
2986
- errorCode
2987
- });
2988
- }
2989
- }, "de_UpdateAcceleratorAttributesCommandError");
2990
1600
  var de_UpdateCrossAccountAttachmentCommand = /* @__PURE__ */ __name(async (output, context) => {
2991
1601
  if (output.statusCode >= 300) {
2992
- return de_UpdateCrossAccountAttachmentCommandError(output, context);
1602
+ return de_CommandError(output, context);
2993
1603
  }
2994
1604
  const data = await parseBody(output.body, context);
2995
1605
  let contents = {};
@@ -3000,43 +1610,9 @@ var de_UpdateCrossAccountAttachmentCommand = /* @__PURE__ */ __name(async (outpu
3000
1610
  };
3001
1611
  return response;
3002
1612
  }, "de_UpdateCrossAccountAttachmentCommand");
3003
- var de_UpdateCrossAccountAttachmentCommandError = /* @__PURE__ */ __name(async (output, context) => {
3004
- const parsedOutput = {
3005
- ...output,
3006
- body: await parseErrorBody(output.body, context)
3007
- };
3008
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3009
- switch (errorCode) {
3010
- case "AccessDeniedException":
3011
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
3012
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3013
- case "AttachmentNotFoundException":
3014
- case "com.amazonaws.globalaccelerator#AttachmentNotFoundException":
3015
- throw await de_AttachmentNotFoundExceptionRes(parsedOutput, context);
3016
- case "InternalServiceErrorException":
3017
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
3018
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
3019
- case "InvalidArgumentException":
3020
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
3021
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
3022
- case "LimitExceededException":
3023
- case "com.amazonaws.globalaccelerator#LimitExceededException":
3024
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
3025
- case "TransactionInProgressException":
3026
- case "com.amazonaws.globalaccelerator#TransactionInProgressException":
3027
- throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
3028
- default:
3029
- const parsedBody = parsedOutput.body;
3030
- return throwDefaultError({
3031
- output,
3032
- parsedBody,
3033
- errorCode
3034
- });
3035
- }
3036
- }, "de_UpdateCrossAccountAttachmentCommandError");
3037
1613
  var de_UpdateCustomRoutingAcceleratorCommand = /* @__PURE__ */ __name(async (output, context) => {
3038
1614
  if (output.statusCode >= 300) {
3039
- return de_UpdateCustomRoutingAcceleratorCommandError(output, context);
1615
+ return de_CommandError(output, context);
3040
1616
  }
3041
1617
  const data = await parseBody(output.body, context);
3042
1618
  let contents = {};
@@ -3047,34 +1623,9 @@ var de_UpdateCustomRoutingAcceleratorCommand = /* @__PURE__ */ __name(async (out
3047
1623
  };
3048
1624
  return response;
3049
1625
  }, "de_UpdateCustomRoutingAcceleratorCommand");
3050
- var de_UpdateCustomRoutingAcceleratorCommandError = /* @__PURE__ */ __name(async (output, context) => {
3051
- const parsedOutput = {
3052
- ...output,
3053
- body: await parseErrorBody(output.body, context)
3054
- };
3055
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3056
- switch (errorCode) {
3057
- case "AcceleratorNotFoundException":
3058
- case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
3059
- throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
3060
- case "InternalServiceErrorException":
3061
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
3062
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
3063
- case "InvalidArgumentException":
3064
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
3065
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
3066
- default:
3067
- const parsedBody = parsedOutput.body;
3068
- return throwDefaultError({
3069
- output,
3070
- parsedBody,
3071
- errorCode
3072
- });
3073
- }
3074
- }, "de_UpdateCustomRoutingAcceleratorCommandError");
3075
1626
  var de_UpdateCustomRoutingAcceleratorAttributesCommand = /* @__PURE__ */ __name(async (output, context) => {
3076
1627
  if (output.statusCode >= 300) {
3077
- return de_UpdateCustomRoutingAcceleratorAttributesCommandError(output, context);
1628
+ return de_CommandError(output, context);
3078
1629
  }
3079
1630
  const data = await parseBody(output.body, context);
3080
1631
  let contents = {};
@@ -3085,37 +1636,9 @@ var de_UpdateCustomRoutingAcceleratorAttributesCommand = /* @__PURE__ */ __name(
3085
1636
  };
3086
1637
  return response;
3087
1638
  }, "de_UpdateCustomRoutingAcceleratorAttributesCommand");
3088
- var de_UpdateCustomRoutingAcceleratorAttributesCommandError = /* @__PURE__ */ __name(async (output, context) => {
3089
- const parsedOutput = {
3090
- ...output,
3091
- body: await parseErrorBody(output.body, context)
3092
- };
3093
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3094
- switch (errorCode) {
3095
- case "AcceleratorNotFoundException":
3096
- case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
3097
- throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
3098
- case "AccessDeniedException":
3099
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
3100
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3101
- case "InternalServiceErrorException":
3102
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
3103
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
3104
- case "InvalidArgumentException":
3105
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
3106
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
3107
- default:
3108
- const parsedBody = parsedOutput.body;
3109
- return throwDefaultError({
3110
- output,
3111
- parsedBody,
3112
- errorCode
3113
- });
3114
- }
3115
- }, "de_UpdateCustomRoutingAcceleratorAttributesCommandError");
3116
1639
  var de_UpdateCustomRoutingListenerCommand = /* @__PURE__ */ __name(async (output, context) => {
3117
1640
  if (output.statusCode >= 300) {
3118
- return de_UpdateCustomRoutingListenerCommandError(output, context);
1641
+ return de_CommandError(output, context);
3119
1642
  }
3120
1643
  const data = await parseBody(output.body, context);
3121
1644
  let contents = {};
@@ -3126,40 +1649,9 @@ var de_UpdateCustomRoutingListenerCommand = /* @__PURE__ */ __name(async (output
3126
1649
  };
3127
1650
  return response;
3128
1651
  }, "de_UpdateCustomRoutingListenerCommand");
3129
- var de_UpdateCustomRoutingListenerCommandError = /* @__PURE__ */ __name(async (output, context) => {
3130
- const parsedOutput = {
3131
- ...output,
3132
- body: await parseErrorBody(output.body, context)
3133
- };
3134
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3135
- switch (errorCode) {
3136
- case "InternalServiceErrorException":
3137
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
3138
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
3139
- case "InvalidArgumentException":
3140
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
3141
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
3142
- case "InvalidPortRangeException":
3143
- case "com.amazonaws.globalaccelerator#InvalidPortRangeException":
3144
- throw await de_InvalidPortRangeExceptionRes(parsedOutput, context);
3145
- case "LimitExceededException":
3146
- case "com.amazonaws.globalaccelerator#LimitExceededException":
3147
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
3148
- case "ListenerNotFoundException":
3149
- case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
3150
- throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
3151
- default:
3152
- const parsedBody = parsedOutput.body;
3153
- return throwDefaultError({
3154
- output,
3155
- parsedBody,
3156
- errorCode
3157
- });
3158
- }
3159
- }, "de_UpdateCustomRoutingListenerCommandError");
3160
1652
  var de_UpdateEndpointGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
3161
1653
  if (output.statusCode >= 300) {
3162
- return de_UpdateEndpointGroupCommandError(output, context);
1654
+ return de_CommandError(output, context);
3163
1655
  }
3164
1656
  const data = await parseBody(output.body, context);
3165
1657
  let contents = {};
@@ -3170,40 +1662,9 @@ var de_UpdateEndpointGroupCommand = /* @__PURE__ */ __name(async (output, contex
3170
1662
  };
3171
1663
  return response;
3172
1664
  }, "de_UpdateEndpointGroupCommand");
3173
- var de_UpdateEndpointGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
3174
- const parsedOutput = {
3175
- ...output,
3176
- body: await parseErrorBody(output.body, context)
3177
- };
3178
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3179
- switch (errorCode) {
3180
- case "AccessDeniedException":
3181
- case "com.amazonaws.globalaccelerator#AccessDeniedException":
3182
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3183
- case "EndpointGroupNotFoundException":
3184
- case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
3185
- throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
3186
- case "InternalServiceErrorException":
3187
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
3188
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
3189
- case "InvalidArgumentException":
3190
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
3191
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
3192
- case "LimitExceededException":
3193
- case "com.amazonaws.globalaccelerator#LimitExceededException":
3194
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
3195
- default:
3196
- const parsedBody = parsedOutput.body;
3197
- return throwDefaultError({
3198
- output,
3199
- parsedBody,
3200
- errorCode
3201
- });
3202
- }
3203
- }, "de_UpdateEndpointGroupCommandError");
3204
1665
  var de_UpdateListenerCommand = /* @__PURE__ */ __name(async (output, context) => {
3205
1666
  if (output.statusCode >= 300) {
3206
- return de_UpdateListenerCommandError(output, context);
1667
+ return de_CommandError(output, context);
3207
1668
  }
3208
1669
  const data = await parseBody(output.body, context);
3209
1670
  let contents = {};
@@ -3214,40 +1675,9 @@ var de_UpdateListenerCommand = /* @__PURE__ */ __name(async (output, context) =>
3214
1675
  };
3215
1676
  return response;
3216
1677
  }, "de_UpdateListenerCommand");
3217
- var de_UpdateListenerCommandError = /* @__PURE__ */ __name(async (output, context) => {
3218
- const parsedOutput = {
3219
- ...output,
3220
- body: await parseErrorBody(output.body, context)
3221
- };
3222
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3223
- switch (errorCode) {
3224
- case "InternalServiceErrorException":
3225
- case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
3226
- throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
3227
- case "InvalidArgumentException":
3228
- case "com.amazonaws.globalaccelerator#InvalidArgumentException":
3229
- throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
3230
- case "InvalidPortRangeException":
3231
- case "com.amazonaws.globalaccelerator#InvalidPortRangeException":
3232
- throw await de_InvalidPortRangeExceptionRes(parsedOutput, context);
3233
- case "LimitExceededException":
3234
- case "com.amazonaws.globalaccelerator#LimitExceededException":
3235
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
3236
- case "ListenerNotFoundException":
3237
- case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
3238
- throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
3239
- default:
3240
- const parsedBody = parsedOutput.body;
3241
- return throwDefaultError({
3242
- output,
3243
- parsedBody,
3244
- errorCode
3245
- });
3246
- }
3247
- }, "de_UpdateListenerCommandError");
3248
1678
  var de_WithdrawByoipCidrCommand = /* @__PURE__ */ __name(async (output, context) => {
3249
1679
  if (output.statusCode >= 300) {
3250
- return de_WithdrawByoipCidrCommandError(output, context);
1680
+ return de_CommandError(output, context);
3251
1681
  }
3252
1682
  const data = await parseBody(output.body, context);
3253
1683
  let contents = {};
@@ -3258,7 +1688,7 @@ var de_WithdrawByoipCidrCommand = /* @__PURE__ */ __name(async (output, context)
3258
1688
  };
3259
1689
  return response;
3260
1690
  }, "de_WithdrawByoipCidrCommand");
3261
- var de_WithdrawByoipCidrCommandError = /* @__PURE__ */ __name(async (output, context) => {
1691
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
3262
1692
  const parsedOutput = {
3263
1693
  ...output,
3264
1694
  body: await parseErrorBody(output.body, context)
@@ -3268,18 +1698,63 @@ var de_WithdrawByoipCidrCommandError = /* @__PURE__ */ __name(async (output, con
3268
1698
  case "AccessDeniedException":
3269
1699
  case "com.amazonaws.globalaccelerator#AccessDeniedException":
3270
1700
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3271
- case "ByoipCidrNotFoundException":
3272
- case "com.amazonaws.globalaccelerator#ByoipCidrNotFoundException":
3273
- throw await de_ByoipCidrNotFoundExceptionRes(parsedOutput, context);
3274
- case "IncorrectCidrStateException":
3275
- case "com.amazonaws.globalaccelerator#IncorrectCidrStateException":
3276
- throw await de_IncorrectCidrStateExceptionRes(parsedOutput, context);
1701
+ case "ConflictException":
1702
+ case "com.amazonaws.globalaccelerator#ConflictException":
1703
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1704
+ case "EndpointAlreadyExistsException":
1705
+ case "com.amazonaws.globalaccelerator#EndpointAlreadyExistsException":
1706
+ throw await de_EndpointAlreadyExistsExceptionRes(parsedOutput, context);
1707
+ case "EndpointGroupNotFoundException":
1708
+ case "com.amazonaws.globalaccelerator#EndpointGroupNotFoundException":
1709
+ throw await de_EndpointGroupNotFoundExceptionRes(parsedOutput, context);
3277
1710
  case "InternalServiceErrorException":
3278
1711
  case "com.amazonaws.globalaccelerator#InternalServiceErrorException":
3279
1712
  throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
3280
1713
  case "InvalidArgumentException":
3281
1714
  case "com.amazonaws.globalaccelerator#InvalidArgumentException":
3282
1715
  throw await de_InvalidArgumentExceptionRes(parsedOutput, context);
1716
+ case "LimitExceededException":
1717
+ case "com.amazonaws.globalaccelerator#LimitExceededException":
1718
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
1719
+ case "TransactionInProgressException":
1720
+ case "com.amazonaws.globalaccelerator#TransactionInProgressException":
1721
+ throw await de_TransactionInProgressExceptionRes(parsedOutput, context);
1722
+ case "ByoipCidrNotFoundException":
1723
+ case "com.amazonaws.globalaccelerator#ByoipCidrNotFoundException":
1724
+ throw await de_ByoipCidrNotFoundExceptionRes(parsedOutput, context);
1725
+ case "IncorrectCidrStateException":
1726
+ case "com.amazonaws.globalaccelerator#IncorrectCidrStateException":
1727
+ throw await de_IncorrectCidrStateExceptionRes(parsedOutput, context);
1728
+ case "AcceleratorNotFoundException":
1729
+ case "com.amazonaws.globalaccelerator#AcceleratorNotFoundException":
1730
+ throw await de_AcceleratorNotFoundExceptionRes(parsedOutput, context);
1731
+ case "EndpointGroupAlreadyExistsException":
1732
+ case "com.amazonaws.globalaccelerator#EndpointGroupAlreadyExistsException":
1733
+ throw await de_EndpointGroupAlreadyExistsExceptionRes(parsedOutput, context);
1734
+ case "InvalidPortRangeException":
1735
+ case "com.amazonaws.globalaccelerator#InvalidPortRangeException":
1736
+ throw await de_InvalidPortRangeExceptionRes(parsedOutput, context);
1737
+ case "ListenerNotFoundException":
1738
+ case "com.amazonaws.globalaccelerator#ListenerNotFoundException":
1739
+ throw await de_ListenerNotFoundExceptionRes(parsedOutput, context);
1740
+ case "AcceleratorNotDisabledException":
1741
+ case "com.amazonaws.globalaccelerator#AcceleratorNotDisabledException":
1742
+ throw await de_AcceleratorNotDisabledExceptionRes(parsedOutput, context);
1743
+ case "AssociatedListenerFoundException":
1744
+ case "com.amazonaws.globalaccelerator#AssociatedListenerFoundException":
1745
+ throw await de_AssociatedListenerFoundExceptionRes(parsedOutput, context);
1746
+ case "AttachmentNotFoundException":
1747
+ case "com.amazonaws.globalaccelerator#AttachmentNotFoundException":
1748
+ throw await de_AttachmentNotFoundExceptionRes(parsedOutput, context);
1749
+ case "AssociatedEndpointGroupFoundException":
1750
+ case "com.amazonaws.globalaccelerator#AssociatedEndpointGroupFoundException":
1751
+ throw await de_AssociatedEndpointGroupFoundExceptionRes(parsedOutput, context);
1752
+ case "InvalidNextTokenException":
1753
+ case "com.amazonaws.globalaccelerator#InvalidNextTokenException":
1754
+ throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
1755
+ case "EndpointNotFoundException":
1756
+ case "com.amazonaws.globalaccelerator#EndpointNotFoundException":
1757
+ throw await de_EndpointNotFoundExceptionRes(parsedOutput, context);
3283
1758
  default:
3284
1759
  const parsedBody = parsedOutput.body;
3285
1760
  return throwDefaultError({
@@ -3288,7 +1763,7 @@ var de_WithdrawByoipCidrCommandError = /* @__PURE__ */ __name(async (output, con
3288
1763
  errorCode
3289
1764
  });
3290
1765
  }
3291
- }, "de_WithdrawByoipCidrCommandError");
1766
+ }, "de_CommandError");
3292
1767
  var de_AcceleratorNotDisabledExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3293
1768
  const body = parsedOutput.body;
3294
1769
  const deserialized = (0, import_smithy_client._json)(body);