@aws-sdk/client-iotfleetwise 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
@@ -1013,7 +1013,7 @@ var se_UpdateVehicleCommand = /* @__PURE__ */ __name(async (input, context) => {
1013
1013
  }, "se_UpdateVehicleCommand");
1014
1014
  var de_AssociateVehicleFleetCommand = /* @__PURE__ */ __name(async (output, context) => {
1015
1015
  if (output.statusCode >= 300) {
1016
- return de_AssociateVehicleFleetCommandError(output, context);
1016
+ return de_CommandError(output, context);
1017
1017
  }
1018
1018
  const data = await parseBody(output.body, context);
1019
1019
  let contents = {};
@@ -1024,43 +1024,9 @@ var de_AssociateVehicleFleetCommand = /* @__PURE__ */ __name(async (output, cont
1024
1024
  };
1025
1025
  return response;
1026
1026
  }, "de_AssociateVehicleFleetCommand");
1027
- var de_AssociateVehicleFleetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1028
- const parsedOutput = {
1029
- ...output,
1030
- body: await parseErrorBody(output.body, context)
1031
- };
1032
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1033
- switch (errorCode) {
1034
- case "AccessDeniedException":
1035
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1036
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1037
- case "InternalServerException":
1038
- case "com.amazonaws.iotfleetwise#InternalServerException":
1039
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1040
- case "LimitExceededException":
1041
- case "com.amazonaws.iotfleetwise#LimitExceededException":
1042
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1043
- case "ResourceNotFoundException":
1044
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1045
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1046
- case "ThrottlingException":
1047
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1048
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1049
- case "ValidationException":
1050
- case "com.amazonaws.iotfleetwise#ValidationException":
1051
- throw await de_ValidationExceptionRes(parsedOutput, context);
1052
- default:
1053
- const parsedBody = parsedOutput.body;
1054
- return throwDefaultError({
1055
- output,
1056
- parsedBody,
1057
- errorCode
1058
- });
1059
- }
1060
- }, "de_AssociateVehicleFleetCommandError");
1061
1027
  var de_BatchCreateVehicleCommand = /* @__PURE__ */ __name(async (output, context) => {
1062
1028
  if (output.statusCode >= 300) {
1063
- return de_BatchCreateVehicleCommandError(output, context);
1029
+ return de_CommandError(output, context);
1064
1030
  }
1065
1031
  const data = await parseBody(output.body, context);
1066
1032
  let contents = {};
@@ -1071,40 +1037,9 @@ var de_BatchCreateVehicleCommand = /* @__PURE__ */ __name(async (output, context
1071
1037
  };
1072
1038
  return response;
1073
1039
  }, "de_BatchCreateVehicleCommand");
1074
- var de_BatchCreateVehicleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1075
- const parsedOutput = {
1076
- ...output,
1077
- body: await parseErrorBody(output.body, context)
1078
- };
1079
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1080
- switch (errorCode) {
1081
- case "AccessDeniedException":
1082
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1083
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1084
- case "InternalServerException":
1085
- case "com.amazonaws.iotfleetwise#InternalServerException":
1086
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1087
- case "LimitExceededException":
1088
- case "com.amazonaws.iotfleetwise#LimitExceededException":
1089
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1090
- case "ThrottlingException":
1091
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1092
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1093
- case "ValidationException":
1094
- case "com.amazonaws.iotfleetwise#ValidationException":
1095
- throw await de_ValidationExceptionRes(parsedOutput, context);
1096
- default:
1097
- const parsedBody = parsedOutput.body;
1098
- return throwDefaultError({
1099
- output,
1100
- parsedBody,
1101
- errorCode
1102
- });
1103
- }
1104
- }, "de_BatchCreateVehicleCommandError");
1105
1040
  var de_BatchUpdateVehicleCommand = /* @__PURE__ */ __name(async (output, context) => {
1106
1041
  if (output.statusCode >= 300) {
1107
- return de_BatchUpdateVehicleCommandError(output, context);
1042
+ return de_CommandError(output, context);
1108
1043
  }
1109
1044
  const data = await parseBody(output.body, context);
1110
1045
  let contents = {};
@@ -1115,37 +1050,9 @@ var de_BatchUpdateVehicleCommand = /* @__PURE__ */ __name(async (output, context
1115
1050
  };
1116
1051
  return response;
1117
1052
  }, "de_BatchUpdateVehicleCommand");
1118
- var de_BatchUpdateVehicleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1119
- const parsedOutput = {
1120
- ...output,
1121
- body: await parseErrorBody(output.body, context)
1122
- };
1123
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1124
- switch (errorCode) {
1125
- case "AccessDeniedException":
1126
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1127
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1128
- case "InternalServerException":
1129
- case "com.amazonaws.iotfleetwise#InternalServerException":
1130
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1131
- case "ThrottlingException":
1132
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1133
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1134
- case "ValidationException":
1135
- case "com.amazonaws.iotfleetwise#ValidationException":
1136
- throw await de_ValidationExceptionRes(parsedOutput, context);
1137
- default:
1138
- const parsedBody = parsedOutput.body;
1139
- return throwDefaultError({
1140
- output,
1141
- parsedBody,
1142
- errorCode
1143
- });
1144
- }
1145
- }, "de_BatchUpdateVehicleCommandError");
1146
1053
  var de_CreateCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
1147
1054
  if (output.statusCode >= 300) {
1148
- return de_CreateCampaignCommandError(output, context);
1055
+ return de_CommandError(output, context);
1149
1056
  }
1150
1057
  const data = await parseBody(output.body, context);
1151
1058
  let contents = {};
@@ -1156,46 +1063,9 @@ var de_CreateCampaignCommand = /* @__PURE__ */ __name(async (output, context) =>
1156
1063
  };
1157
1064
  return response;
1158
1065
  }, "de_CreateCampaignCommand");
1159
- var de_CreateCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
1160
- const parsedOutput = {
1161
- ...output,
1162
- body: await parseErrorBody(output.body, context)
1163
- };
1164
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1165
- switch (errorCode) {
1166
- case "AccessDeniedException":
1167
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1168
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1169
- case "ConflictException":
1170
- case "com.amazonaws.iotfleetwise#ConflictException":
1171
- throw await de_ConflictExceptionRes(parsedOutput, context);
1172
- case "InternalServerException":
1173
- case "com.amazonaws.iotfleetwise#InternalServerException":
1174
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1175
- case "LimitExceededException":
1176
- case "com.amazonaws.iotfleetwise#LimitExceededException":
1177
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1178
- case "ResourceNotFoundException":
1179
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1180
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1181
- case "ThrottlingException":
1182
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1183
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1184
- case "ValidationException":
1185
- case "com.amazonaws.iotfleetwise#ValidationException":
1186
- throw await de_ValidationExceptionRes(parsedOutput, context);
1187
- default:
1188
- const parsedBody = parsedOutput.body;
1189
- return throwDefaultError({
1190
- output,
1191
- parsedBody,
1192
- errorCode
1193
- });
1194
- }
1195
- }, "de_CreateCampaignCommandError");
1196
1066
  var de_CreateDecoderManifestCommand = /* @__PURE__ */ __name(async (output, context) => {
1197
1067
  if (output.statusCode >= 300) {
1198
- return de_CreateDecoderManifestCommandError(output, context);
1068
+ return de_CommandError(output, context);
1199
1069
  }
1200
1070
  const data = await parseBody(output.body, context);
1201
1071
  let contents = {};
@@ -1206,49 +1076,9 @@ var de_CreateDecoderManifestCommand = /* @__PURE__ */ __name(async (output, cont
1206
1076
  };
1207
1077
  return response;
1208
1078
  }, "de_CreateDecoderManifestCommand");
1209
- var de_CreateDecoderManifestCommandError = /* @__PURE__ */ __name(async (output, context) => {
1210
- const parsedOutput = {
1211
- ...output,
1212
- body: await parseErrorBody(output.body, context)
1213
- };
1214
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1215
- switch (errorCode) {
1216
- case "AccessDeniedException":
1217
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1218
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1219
- case "ConflictException":
1220
- case "com.amazonaws.iotfleetwise#ConflictException":
1221
- throw await de_ConflictExceptionRes(parsedOutput, context);
1222
- case "DecoderManifestValidationException":
1223
- case "com.amazonaws.iotfleetwise#DecoderManifestValidationException":
1224
- throw await de_DecoderManifestValidationExceptionRes(parsedOutput, context);
1225
- case "InternalServerException":
1226
- case "com.amazonaws.iotfleetwise#InternalServerException":
1227
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1228
- case "LimitExceededException":
1229
- case "com.amazonaws.iotfleetwise#LimitExceededException":
1230
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1231
- case "ResourceNotFoundException":
1232
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1233
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1234
- case "ThrottlingException":
1235
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1236
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1237
- case "ValidationException":
1238
- case "com.amazonaws.iotfleetwise#ValidationException":
1239
- throw await de_ValidationExceptionRes(parsedOutput, context);
1240
- default:
1241
- const parsedBody = parsedOutput.body;
1242
- return throwDefaultError({
1243
- output,
1244
- parsedBody,
1245
- errorCode
1246
- });
1247
- }
1248
- }, "de_CreateDecoderManifestCommandError");
1249
1079
  var de_CreateFleetCommand = /* @__PURE__ */ __name(async (output, context) => {
1250
1080
  if (output.statusCode >= 300) {
1251
- return de_CreateFleetCommandError(output, context);
1081
+ return de_CommandError(output, context);
1252
1082
  }
1253
1083
  const data = await parseBody(output.body, context);
1254
1084
  let contents = {};
@@ -1259,46 +1089,9 @@ var de_CreateFleetCommand = /* @__PURE__ */ __name(async (output, context) => {
1259
1089
  };
1260
1090
  return response;
1261
1091
  }, "de_CreateFleetCommand");
1262
- var de_CreateFleetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1263
- const parsedOutput = {
1264
- ...output,
1265
- body: await parseErrorBody(output.body, context)
1266
- };
1267
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1268
- switch (errorCode) {
1269
- case "AccessDeniedException":
1270
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1271
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1272
- case "ConflictException":
1273
- case "com.amazonaws.iotfleetwise#ConflictException":
1274
- throw await de_ConflictExceptionRes(parsedOutput, context);
1275
- case "InternalServerException":
1276
- case "com.amazonaws.iotfleetwise#InternalServerException":
1277
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1278
- case "LimitExceededException":
1279
- case "com.amazonaws.iotfleetwise#LimitExceededException":
1280
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1281
- case "ResourceNotFoundException":
1282
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1283
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1284
- case "ThrottlingException":
1285
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1286
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1287
- case "ValidationException":
1288
- case "com.amazonaws.iotfleetwise#ValidationException":
1289
- throw await de_ValidationExceptionRes(parsedOutput, context);
1290
- default:
1291
- const parsedBody = parsedOutput.body;
1292
- return throwDefaultError({
1293
- output,
1294
- parsedBody,
1295
- errorCode
1296
- });
1297
- }
1298
- }, "de_CreateFleetCommandError");
1299
1092
  var de_CreateModelManifestCommand = /* @__PURE__ */ __name(async (output, context) => {
1300
1093
  if (output.statusCode >= 300) {
1301
- return de_CreateModelManifestCommandError(output, context);
1094
+ return de_CommandError(output, context);
1302
1095
  }
1303
1096
  const data = await parseBody(output.body, context);
1304
1097
  let contents = {};
@@ -1309,49 +1102,9 @@ var de_CreateModelManifestCommand = /* @__PURE__ */ __name(async (output, contex
1309
1102
  };
1310
1103
  return response;
1311
1104
  }, "de_CreateModelManifestCommand");
1312
- var de_CreateModelManifestCommandError = /* @__PURE__ */ __name(async (output, context) => {
1313
- const parsedOutput = {
1314
- ...output,
1315
- body: await parseErrorBody(output.body, context)
1316
- };
1317
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1318
- switch (errorCode) {
1319
- case "AccessDeniedException":
1320
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1321
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1322
- case "ConflictException":
1323
- case "com.amazonaws.iotfleetwise#ConflictException":
1324
- throw await de_ConflictExceptionRes(parsedOutput, context);
1325
- case "InternalServerException":
1326
- case "com.amazonaws.iotfleetwise#InternalServerException":
1327
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1328
- case "InvalidSignalsException":
1329
- case "com.amazonaws.iotfleetwise#InvalidSignalsException":
1330
- throw await de_InvalidSignalsExceptionRes(parsedOutput, context);
1331
- case "LimitExceededException":
1332
- case "com.amazonaws.iotfleetwise#LimitExceededException":
1333
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1334
- case "ResourceNotFoundException":
1335
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1336
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1337
- case "ThrottlingException":
1338
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1339
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1340
- case "ValidationException":
1341
- case "com.amazonaws.iotfleetwise#ValidationException":
1342
- throw await de_ValidationExceptionRes(parsedOutput, context);
1343
- default:
1344
- const parsedBody = parsedOutput.body;
1345
- return throwDefaultError({
1346
- output,
1347
- parsedBody,
1348
- errorCode
1349
- });
1350
- }
1351
- }, "de_CreateModelManifestCommandError");
1352
1105
  var de_CreateSignalCatalogCommand = /* @__PURE__ */ __name(async (output, context) => {
1353
1106
  if (output.statusCode >= 300) {
1354
- return de_CreateSignalCatalogCommandError(output, context);
1107
+ return de_CommandError(output, context);
1355
1108
  }
1356
1109
  const data = await parseBody(output.body, context);
1357
1110
  let contents = {};
@@ -1362,99 +1115,22 @@ var de_CreateSignalCatalogCommand = /* @__PURE__ */ __name(async (output, contex
1362
1115
  };
1363
1116
  return response;
1364
1117
  }, "de_CreateSignalCatalogCommand");
1365
- var de_CreateSignalCatalogCommandError = /* @__PURE__ */ __name(async (output, context) => {
1366
- const parsedOutput = {
1367
- ...output,
1368
- body: await parseErrorBody(output.body, context)
1369
- };
1370
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1371
- switch (errorCode) {
1372
- case "AccessDeniedException":
1373
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1374
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1375
- case "ConflictException":
1376
- case "com.amazonaws.iotfleetwise#ConflictException":
1377
- throw await de_ConflictExceptionRes(parsedOutput, context);
1378
- case "InternalServerException":
1379
- case "com.amazonaws.iotfleetwise#InternalServerException":
1380
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1381
- case "InvalidNodeException":
1382
- case "com.amazonaws.iotfleetwise#InvalidNodeException":
1383
- throw await de_InvalidNodeExceptionRes(parsedOutput, context);
1384
- case "InvalidSignalsException":
1385
- case "com.amazonaws.iotfleetwise#InvalidSignalsException":
1386
- throw await de_InvalidSignalsExceptionRes(parsedOutput, context);
1387
- case "LimitExceededException":
1388
- case "com.amazonaws.iotfleetwise#LimitExceededException":
1389
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1390
- case "ThrottlingException":
1391
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1392
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1393
- case "ValidationException":
1394
- case "com.amazonaws.iotfleetwise#ValidationException":
1395
- throw await de_ValidationExceptionRes(parsedOutput, context);
1396
- default:
1397
- const parsedBody = parsedOutput.body;
1398
- return throwDefaultError({
1399
- output,
1400
- parsedBody,
1401
- errorCode
1402
- });
1403
- }
1404
- }, "de_CreateSignalCatalogCommandError");
1405
- var de_CreateVehicleCommand = /* @__PURE__ */ __name(async (output, context) => {
1406
- if (output.statusCode >= 300) {
1407
- return de_CreateVehicleCommandError(output, context);
1408
- }
1409
- const data = await parseBody(output.body, context);
1410
- let contents = {};
1411
- contents = (0, import_smithy_client._json)(data);
1412
- const response = {
1413
- $metadata: deserializeMetadata(output),
1414
- ...contents
1118
+ var de_CreateVehicleCommand = /* @__PURE__ */ __name(async (output, context) => {
1119
+ if (output.statusCode >= 300) {
1120
+ return de_CommandError(output, context);
1121
+ }
1122
+ const data = await parseBody(output.body, context);
1123
+ let contents = {};
1124
+ contents = (0, import_smithy_client._json)(data);
1125
+ const response = {
1126
+ $metadata: deserializeMetadata(output),
1127
+ ...contents
1415
1128
  };
1416
1129
  return response;
1417
1130
  }, "de_CreateVehicleCommand");
1418
- var de_CreateVehicleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1419
- const parsedOutput = {
1420
- ...output,
1421
- body: await parseErrorBody(output.body, context)
1422
- };
1423
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1424
- switch (errorCode) {
1425
- case "AccessDeniedException":
1426
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1427
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1428
- case "ConflictException":
1429
- case "com.amazonaws.iotfleetwise#ConflictException":
1430
- throw await de_ConflictExceptionRes(parsedOutput, context);
1431
- case "InternalServerException":
1432
- case "com.amazonaws.iotfleetwise#InternalServerException":
1433
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1434
- case "LimitExceededException":
1435
- case "com.amazonaws.iotfleetwise#LimitExceededException":
1436
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1437
- case "ResourceNotFoundException":
1438
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1439
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1440
- case "ThrottlingException":
1441
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1442
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1443
- case "ValidationException":
1444
- case "com.amazonaws.iotfleetwise#ValidationException":
1445
- throw await de_ValidationExceptionRes(parsedOutput, context);
1446
- default:
1447
- const parsedBody = parsedOutput.body;
1448
- return throwDefaultError({
1449
- output,
1450
- parsedBody,
1451
- errorCode
1452
- });
1453
- }
1454
- }, "de_CreateVehicleCommandError");
1455
1131
  var de_DeleteCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
1456
1132
  if (output.statusCode >= 300) {
1457
- return de_DeleteCampaignCommandError(output, context);
1133
+ return de_CommandError(output, context);
1458
1134
  }
1459
1135
  const data = await parseBody(output.body, context);
1460
1136
  let contents = {};
@@ -1465,40 +1141,9 @@ var de_DeleteCampaignCommand = /* @__PURE__ */ __name(async (output, context) =>
1465
1141
  };
1466
1142
  return response;
1467
1143
  }, "de_DeleteCampaignCommand");
1468
- var de_DeleteCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
1469
- const parsedOutput = {
1470
- ...output,
1471
- body: await parseErrorBody(output.body, context)
1472
- };
1473
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1474
- switch (errorCode) {
1475
- case "AccessDeniedException":
1476
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1477
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1478
- case "InternalServerException":
1479
- case "com.amazonaws.iotfleetwise#InternalServerException":
1480
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1481
- case "ResourceNotFoundException":
1482
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1483
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1484
- case "ThrottlingException":
1485
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1486
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1487
- case "ValidationException":
1488
- case "com.amazonaws.iotfleetwise#ValidationException":
1489
- throw await de_ValidationExceptionRes(parsedOutput, context);
1490
- default:
1491
- const parsedBody = parsedOutput.body;
1492
- return throwDefaultError({
1493
- output,
1494
- parsedBody,
1495
- errorCode
1496
- });
1497
- }
1498
- }, "de_DeleteCampaignCommandError");
1499
1144
  var de_DeleteDecoderManifestCommand = /* @__PURE__ */ __name(async (output, context) => {
1500
1145
  if (output.statusCode >= 300) {
1501
- return de_DeleteDecoderManifestCommandError(output, context);
1146
+ return de_CommandError(output, context);
1502
1147
  }
1503
1148
  const data = await parseBody(output.body, context);
1504
1149
  let contents = {};
@@ -1509,40 +1154,9 @@ var de_DeleteDecoderManifestCommand = /* @__PURE__ */ __name(async (output, cont
1509
1154
  };
1510
1155
  return response;
1511
1156
  }, "de_DeleteDecoderManifestCommand");
1512
- var de_DeleteDecoderManifestCommandError = /* @__PURE__ */ __name(async (output, context) => {
1513
- const parsedOutput = {
1514
- ...output,
1515
- body: await parseErrorBody(output.body, context)
1516
- };
1517
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1518
- switch (errorCode) {
1519
- case "AccessDeniedException":
1520
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1521
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1522
- case "ConflictException":
1523
- case "com.amazonaws.iotfleetwise#ConflictException":
1524
- throw await de_ConflictExceptionRes(parsedOutput, context);
1525
- case "InternalServerException":
1526
- case "com.amazonaws.iotfleetwise#InternalServerException":
1527
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1528
- case "ThrottlingException":
1529
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1530
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1531
- case "ValidationException":
1532
- case "com.amazonaws.iotfleetwise#ValidationException":
1533
- throw await de_ValidationExceptionRes(parsedOutput, context);
1534
- default:
1535
- const parsedBody = parsedOutput.body;
1536
- return throwDefaultError({
1537
- output,
1538
- parsedBody,
1539
- errorCode
1540
- });
1541
- }
1542
- }, "de_DeleteDecoderManifestCommandError");
1543
1157
  var de_DeleteFleetCommand = /* @__PURE__ */ __name(async (output, context) => {
1544
1158
  if (output.statusCode >= 300) {
1545
- return de_DeleteFleetCommandError(output, context);
1159
+ return de_CommandError(output, context);
1546
1160
  }
1547
1161
  const data = await parseBody(output.body, context);
1548
1162
  let contents = {};
@@ -1553,37 +1167,9 @@ var de_DeleteFleetCommand = /* @__PURE__ */ __name(async (output, context) => {
1553
1167
  };
1554
1168
  return response;
1555
1169
  }, "de_DeleteFleetCommand");
1556
- var de_DeleteFleetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1557
- const parsedOutput = {
1558
- ...output,
1559
- body: await parseErrorBody(output.body, context)
1560
- };
1561
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1562
- switch (errorCode) {
1563
- case "AccessDeniedException":
1564
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1565
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1566
- case "InternalServerException":
1567
- case "com.amazonaws.iotfleetwise#InternalServerException":
1568
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1569
- case "ThrottlingException":
1570
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1571
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1572
- case "ValidationException":
1573
- case "com.amazonaws.iotfleetwise#ValidationException":
1574
- throw await de_ValidationExceptionRes(parsedOutput, context);
1575
- default:
1576
- const parsedBody = parsedOutput.body;
1577
- return throwDefaultError({
1578
- output,
1579
- parsedBody,
1580
- errorCode
1581
- });
1582
- }
1583
- }, "de_DeleteFleetCommandError");
1584
1170
  var de_DeleteModelManifestCommand = /* @__PURE__ */ __name(async (output, context) => {
1585
1171
  if (output.statusCode >= 300) {
1586
- return de_DeleteModelManifestCommandError(output, context);
1172
+ return de_CommandError(output, context);
1587
1173
  }
1588
1174
  const data = await parseBody(output.body, context);
1589
1175
  let contents = {};
@@ -1594,40 +1180,9 @@ var de_DeleteModelManifestCommand = /* @__PURE__ */ __name(async (output, contex
1594
1180
  };
1595
1181
  return response;
1596
1182
  }, "de_DeleteModelManifestCommand");
1597
- var de_DeleteModelManifestCommandError = /* @__PURE__ */ __name(async (output, context) => {
1598
- const parsedOutput = {
1599
- ...output,
1600
- body: await parseErrorBody(output.body, context)
1601
- };
1602
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1603
- switch (errorCode) {
1604
- case "AccessDeniedException":
1605
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1606
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1607
- case "ConflictException":
1608
- case "com.amazonaws.iotfleetwise#ConflictException":
1609
- throw await de_ConflictExceptionRes(parsedOutput, context);
1610
- case "InternalServerException":
1611
- case "com.amazonaws.iotfleetwise#InternalServerException":
1612
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1613
- case "ThrottlingException":
1614
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1615
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1616
- case "ValidationException":
1617
- case "com.amazonaws.iotfleetwise#ValidationException":
1618
- throw await de_ValidationExceptionRes(parsedOutput, context);
1619
- default:
1620
- const parsedBody = parsedOutput.body;
1621
- return throwDefaultError({
1622
- output,
1623
- parsedBody,
1624
- errorCode
1625
- });
1626
- }
1627
- }, "de_DeleteModelManifestCommandError");
1628
1183
  var de_DeleteSignalCatalogCommand = /* @__PURE__ */ __name(async (output, context) => {
1629
1184
  if (output.statusCode >= 300) {
1630
- return de_DeleteSignalCatalogCommandError(output, context);
1185
+ return de_CommandError(output, context);
1631
1186
  }
1632
1187
  const data = await parseBody(output.body, context);
1633
1188
  let contents = {};
@@ -1638,40 +1193,9 @@ var de_DeleteSignalCatalogCommand = /* @__PURE__ */ __name(async (output, contex
1638
1193
  };
1639
1194
  return response;
1640
1195
  }, "de_DeleteSignalCatalogCommand");
1641
- var de_DeleteSignalCatalogCommandError = /* @__PURE__ */ __name(async (output, context) => {
1642
- const parsedOutput = {
1643
- ...output,
1644
- body: await parseErrorBody(output.body, context)
1645
- };
1646
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1647
- switch (errorCode) {
1648
- case "AccessDeniedException":
1649
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1650
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1651
- case "ConflictException":
1652
- case "com.amazonaws.iotfleetwise#ConflictException":
1653
- throw await de_ConflictExceptionRes(parsedOutput, context);
1654
- case "InternalServerException":
1655
- case "com.amazonaws.iotfleetwise#InternalServerException":
1656
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1657
- case "ThrottlingException":
1658
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1659
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1660
- case "ValidationException":
1661
- case "com.amazonaws.iotfleetwise#ValidationException":
1662
- throw await de_ValidationExceptionRes(parsedOutput, context);
1663
- default:
1664
- const parsedBody = parsedOutput.body;
1665
- return throwDefaultError({
1666
- output,
1667
- parsedBody,
1668
- errorCode
1669
- });
1670
- }
1671
- }, "de_DeleteSignalCatalogCommandError");
1672
1196
  var de_DeleteVehicleCommand = /* @__PURE__ */ __name(async (output, context) => {
1673
1197
  if (output.statusCode >= 300) {
1674
- return de_DeleteVehicleCommandError(output, context);
1198
+ return de_CommandError(output, context);
1675
1199
  }
1676
1200
  const data = await parseBody(output.body, context);
1677
1201
  let contents = {};
@@ -1682,37 +1206,9 @@ var de_DeleteVehicleCommand = /* @__PURE__ */ __name(async (output, context) =>
1682
1206
  };
1683
1207
  return response;
1684
1208
  }, "de_DeleteVehicleCommand");
1685
- var de_DeleteVehicleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1686
- const parsedOutput = {
1687
- ...output,
1688
- body: await parseErrorBody(output.body, context)
1689
- };
1690
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1691
- switch (errorCode) {
1692
- case "AccessDeniedException":
1693
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1694
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1695
- case "InternalServerException":
1696
- case "com.amazonaws.iotfleetwise#InternalServerException":
1697
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1698
- case "ThrottlingException":
1699
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1700
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1701
- case "ValidationException":
1702
- case "com.amazonaws.iotfleetwise#ValidationException":
1703
- throw await de_ValidationExceptionRes(parsedOutput, context);
1704
- default:
1705
- const parsedBody = parsedOutput.body;
1706
- return throwDefaultError({
1707
- output,
1708
- parsedBody,
1709
- errorCode
1710
- });
1711
- }
1712
- }, "de_DeleteVehicleCommandError");
1713
1209
  var de_DisassociateVehicleFleetCommand = /* @__PURE__ */ __name(async (output, context) => {
1714
1210
  if (output.statusCode >= 300) {
1715
- return de_DisassociateVehicleFleetCommandError(output, context);
1211
+ return de_CommandError(output, context);
1716
1212
  }
1717
1213
  const data = await parseBody(output.body, context);
1718
1214
  let contents = {};
@@ -1723,84 +1219,22 @@ var de_DisassociateVehicleFleetCommand = /* @__PURE__ */ __name(async (output, c
1723
1219
  };
1724
1220
  return response;
1725
1221
  }, "de_DisassociateVehicleFleetCommand");
1726
- var de_DisassociateVehicleFleetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1727
- const parsedOutput = {
1728
- ...output,
1729
- body: await parseErrorBody(output.body, context)
1730
- };
1731
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1732
- switch (errorCode) {
1733
- case "AccessDeniedException":
1734
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1735
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1736
- case "InternalServerException":
1737
- case "com.amazonaws.iotfleetwise#InternalServerException":
1738
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1739
- case "ResourceNotFoundException":
1740
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1741
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1742
- case "ThrottlingException":
1743
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1744
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1745
- case "ValidationException":
1746
- case "com.amazonaws.iotfleetwise#ValidationException":
1747
- throw await de_ValidationExceptionRes(parsedOutput, context);
1748
- default:
1749
- const parsedBody = parsedOutput.body;
1750
- return throwDefaultError({
1751
- output,
1752
- parsedBody,
1753
- errorCode
1754
- });
1755
- }
1756
- }, "de_DisassociateVehicleFleetCommandError");
1757
- var de_GetCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
1758
- if (output.statusCode >= 300) {
1759
- return de_GetCampaignCommandError(output, context);
1760
- }
1761
- const data = await parseBody(output.body, context);
1762
- let contents = {};
1763
- contents = de_GetCampaignResponse(data, context);
1764
- const response = {
1765
- $metadata: deserializeMetadata(output),
1766
- ...contents
1222
+ var de_GetCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
1223
+ if (output.statusCode >= 300) {
1224
+ return de_CommandError(output, context);
1225
+ }
1226
+ const data = await parseBody(output.body, context);
1227
+ let contents = {};
1228
+ contents = de_GetCampaignResponse(data, context);
1229
+ const response = {
1230
+ $metadata: deserializeMetadata(output),
1231
+ ...contents
1767
1232
  };
1768
1233
  return response;
1769
1234
  }, "de_GetCampaignCommand");
1770
- var de_GetCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
1771
- const parsedOutput = {
1772
- ...output,
1773
- body: await parseErrorBody(output.body, context)
1774
- };
1775
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1776
- switch (errorCode) {
1777
- case "AccessDeniedException":
1778
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1779
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1780
- case "InternalServerException":
1781
- case "com.amazonaws.iotfleetwise#InternalServerException":
1782
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1783
- case "ResourceNotFoundException":
1784
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1785
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1786
- case "ThrottlingException":
1787
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1788
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1789
- case "ValidationException":
1790
- case "com.amazonaws.iotfleetwise#ValidationException":
1791
- throw await de_ValidationExceptionRes(parsedOutput, context);
1792
- default:
1793
- const parsedBody = parsedOutput.body;
1794
- return throwDefaultError({
1795
- output,
1796
- parsedBody,
1797
- errorCode
1798
- });
1799
- }
1800
- }, "de_GetCampaignCommandError");
1801
1235
  var de_GetDecoderManifestCommand = /* @__PURE__ */ __name(async (output, context) => {
1802
1236
  if (output.statusCode >= 300) {
1803
- return de_GetDecoderManifestCommandError(output, context);
1237
+ return de_CommandError(output, context);
1804
1238
  }
1805
1239
  const data = await parseBody(output.body, context);
1806
1240
  let contents = {};
@@ -1811,40 +1245,9 @@ var de_GetDecoderManifestCommand = /* @__PURE__ */ __name(async (output, context
1811
1245
  };
1812
1246
  return response;
1813
1247
  }, "de_GetDecoderManifestCommand");
1814
- var de_GetDecoderManifestCommandError = /* @__PURE__ */ __name(async (output, context) => {
1815
- const parsedOutput = {
1816
- ...output,
1817
- body: await parseErrorBody(output.body, context)
1818
- };
1819
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1820
- switch (errorCode) {
1821
- case "AccessDeniedException":
1822
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1823
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1824
- case "InternalServerException":
1825
- case "com.amazonaws.iotfleetwise#InternalServerException":
1826
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1827
- case "ResourceNotFoundException":
1828
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1829
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1830
- case "ThrottlingException":
1831
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1832
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1833
- case "ValidationException":
1834
- case "com.amazonaws.iotfleetwise#ValidationException":
1835
- throw await de_ValidationExceptionRes(parsedOutput, context);
1836
- default:
1837
- const parsedBody = parsedOutput.body;
1838
- return throwDefaultError({
1839
- output,
1840
- parsedBody,
1841
- errorCode
1842
- });
1843
- }
1844
- }, "de_GetDecoderManifestCommandError");
1845
1248
  var de_GetEncryptionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
1846
1249
  if (output.statusCode >= 300) {
1847
- return de_GetEncryptionConfigurationCommandError(output, context);
1250
+ return de_CommandError(output, context);
1848
1251
  }
1849
1252
  const data = await parseBody(output.body, context);
1850
1253
  let contents = {};
@@ -1855,40 +1258,9 @@ var de_GetEncryptionConfigurationCommand = /* @__PURE__ */ __name(async (output,
1855
1258
  };
1856
1259
  return response;
1857
1260
  }, "de_GetEncryptionConfigurationCommand");
1858
- var de_GetEncryptionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
1859
- const parsedOutput = {
1860
- ...output,
1861
- body: await parseErrorBody(output.body, context)
1862
- };
1863
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1864
- switch (errorCode) {
1865
- case "AccessDeniedException":
1866
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1867
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1868
- case "InternalServerException":
1869
- case "com.amazonaws.iotfleetwise#InternalServerException":
1870
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1871
- case "ResourceNotFoundException":
1872
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1873
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1874
- case "ThrottlingException":
1875
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1876
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1877
- case "ValidationException":
1878
- case "com.amazonaws.iotfleetwise#ValidationException":
1879
- throw await de_ValidationExceptionRes(parsedOutput, context);
1880
- default:
1881
- const parsedBody = parsedOutput.body;
1882
- return throwDefaultError({
1883
- output,
1884
- parsedBody,
1885
- errorCode
1886
- });
1887
- }
1888
- }, "de_GetEncryptionConfigurationCommandError");
1889
1261
  var de_GetFleetCommand = /* @__PURE__ */ __name(async (output, context) => {
1890
1262
  if (output.statusCode >= 300) {
1891
- return de_GetFleetCommandError(output, context);
1263
+ return de_CommandError(output, context);
1892
1264
  }
1893
1265
  const data = await parseBody(output.body, context);
1894
1266
  let contents = {};
@@ -1899,40 +1271,9 @@ var de_GetFleetCommand = /* @__PURE__ */ __name(async (output, context) => {
1899
1271
  };
1900
1272
  return response;
1901
1273
  }, "de_GetFleetCommand");
1902
- var de_GetFleetCommandError = /* @__PURE__ */ __name(async (output, context) => {
1903
- const parsedOutput = {
1904
- ...output,
1905
- body: await parseErrorBody(output.body, context)
1906
- };
1907
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1908
- switch (errorCode) {
1909
- case "AccessDeniedException":
1910
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1911
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1912
- case "InternalServerException":
1913
- case "com.amazonaws.iotfleetwise#InternalServerException":
1914
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1915
- case "ResourceNotFoundException":
1916
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1917
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1918
- case "ThrottlingException":
1919
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1920
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1921
- case "ValidationException":
1922
- case "com.amazonaws.iotfleetwise#ValidationException":
1923
- throw await de_ValidationExceptionRes(parsedOutput, context);
1924
- default:
1925
- const parsedBody = parsedOutput.body;
1926
- return throwDefaultError({
1927
- output,
1928
- parsedBody,
1929
- errorCode
1930
- });
1931
- }
1932
- }, "de_GetFleetCommandError");
1933
1274
  var de_GetLoggingOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
1934
1275
  if (output.statusCode >= 300) {
1935
- return de_GetLoggingOptionsCommandError(output, context);
1276
+ return de_CommandError(output, context);
1936
1277
  }
1937
1278
  const data = await parseBody(output.body, context);
1938
1279
  let contents = {};
@@ -1943,34 +1284,9 @@ var de_GetLoggingOptionsCommand = /* @__PURE__ */ __name(async (output, context)
1943
1284
  };
1944
1285
  return response;
1945
1286
  }, "de_GetLoggingOptionsCommand");
1946
- var de_GetLoggingOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1947
- const parsedOutput = {
1948
- ...output,
1949
- body: await parseErrorBody(output.body, context)
1950
- };
1951
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1952
- switch (errorCode) {
1953
- case "AccessDeniedException":
1954
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1955
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1956
- case "InternalServerException":
1957
- case "com.amazonaws.iotfleetwise#InternalServerException":
1958
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1959
- case "ThrottlingException":
1960
- case "com.amazonaws.iotfleetwise#ThrottlingException":
1961
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1962
- default:
1963
- const parsedBody = parsedOutput.body;
1964
- return throwDefaultError({
1965
- output,
1966
- parsedBody,
1967
- errorCode
1968
- });
1969
- }
1970
- }, "de_GetLoggingOptionsCommandError");
1971
1287
  var de_GetModelManifestCommand = /* @__PURE__ */ __name(async (output, context) => {
1972
1288
  if (output.statusCode >= 300) {
1973
- return de_GetModelManifestCommandError(output, context);
1289
+ return de_CommandError(output, context);
1974
1290
  }
1975
1291
  const data = await parseBody(output.body, context);
1976
1292
  let contents = {};
@@ -1981,40 +1297,9 @@ var de_GetModelManifestCommand = /* @__PURE__ */ __name(async (output, context)
1981
1297
  };
1982
1298
  return response;
1983
1299
  }, "de_GetModelManifestCommand");
1984
- var de_GetModelManifestCommandError = /* @__PURE__ */ __name(async (output, context) => {
1985
- const parsedOutput = {
1986
- ...output,
1987
- body: await parseErrorBody(output.body, context)
1988
- };
1989
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1990
- switch (errorCode) {
1991
- case "AccessDeniedException":
1992
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
1993
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1994
- case "InternalServerException":
1995
- case "com.amazonaws.iotfleetwise#InternalServerException":
1996
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1997
- case "ResourceNotFoundException":
1998
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
1999
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2000
- case "ThrottlingException":
2001
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2002
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2003
- case "ValidationException":
2004
- case "com.amazonaws.iotfleetwise#ValidationException":
2005
- throw await de_ValidationExceptionRes(parsedOutput, context);
2006
- default:
2007
- const parsedBody = parsedOutput.body;
2008
- return throwDefaultError({
2009
- output,
2010
- parsedBody,
2011
- errorCode
2012
- });
2013
- }
2014
- }, "de_GetModelManifestCommandError");
2015
1300
  var de_GetRegisterAccountStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
2016
1301
  if (output.statusCode >= 300) {
2017
- return de_GetRegisterAccountStatusCommandError(output, context);
1302
+ return de_CommandError(output, context);
2018
1303
  }
2019
1304
  const data = await parseBody(output.body, context);
2020
1305
  let contents = {};
@@ -2025,40 +1310,9 @@ var de_GetRegisterAccountStatusCommand = /* @__PURE__ */ __name(async (output, c
2025
1310
  };
2026
1311
  return response;
2027
1312
  }, "de_GetRegisterAccountStatusCommand");
2028
- var de_GetRegisterAccountStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
2029
- const parsedOutput = {
2030
- ...output,
2031
- body: await parseErrorBody(output.body, context)
2032
- };
2033
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2034
- switch (errorCode) {
2035
- case "AccessDeniedException":
2036
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2037
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2038
- case "InternalServerException":
2039
- case "com.amazonaws.iotfleetwise#InternalServerException":
2040
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2041
- case "ResourceNotFoundException":
2042
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2043
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2044
- case "ThrottlingException":
2045
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2046
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2047
- case "ValidationException":
2048
- case "com.amazonaws.iotfleetwise#ValidationException":
2049
- throw await de_ValidationExceptionRes(parsedOutput, context);
2050
- default:
2051
- const parsedBody = parsedOutput.body;
2052
- return throwDefaultError({
2053
- output,
2054
- parsedBody,
2055
- errorCode
2056
- });
2057
- }
2058
- }, "de_GetRegisterAccountStatusCommandError");
2059
1313
  var de_GetSignalCatalogCommand = /* @__PURE__ */ __name(async (output, context) => {
2060
1314
  if (output.statusCode >= 300) {
2061
- return de_GetSignalCatalogCommandError(output, context);
1315
+ return de_CommandError(output, context);
2062
1316
  }
2063
1317
  const data = await parseBody(output.body, context);
2064
1318
  let contents = {};
@@ -2069,40 +1323,9 @@ var de_GetSignalCatalogCommand = /* @__PURE__ */ __name(async (output, context)
2069
1323
  };
2070
1324
  return response;
2071
1325
  }, "de_GetSignalCatalogCommand");
2072
- var de_GetSignalCatalogCommandError = /* @__PURE__ */ __name(async (output, context) => {
2073
- const parsedOutput = {
2074
- ...output,
2075
- body: await parseErrorBody(output.body, context)
2076
- };
2077
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2078
- switch (errorCode) {
2079
- case "AccessDeniedException":
2080
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2081
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2082
- case "InternalServerException":
2083
- case "com.amazonaws.iotfleetwise#InternalServerException":
2084
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2085
- case "ResourceNotFoundException":
2086
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2087
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2088
- case "ThrottlingException":
2089
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2090
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2091
- case "ValidationException":
2092
- case "com.amazonaws.iotfleetwise#ValidationException":
2093
- throw await de_ValidationExceptionRes(parsedOutput, context);
2094
- default:
2095
- const parsedBody = parsedOutput.body;
2096
- return throwDefaultError({
2097
- output,
2098
- parsedBody,
2099
- errorCode
2100
- });
2101
- }
2102
- }, "de_GetSignalCatalogCommandError");
2103
1326
  var de_GetVehicleCommand = /* @__PURE__ */ __name(async (output, context) => {
2104
1327
  if (output.statusCode >= 300) {
2105
- return de_GetVehicleCommandError(output, context);
1328
+ return de_CommandError(output, context);
2106
1329
  }
2107
1330
  const data = await parseBody(output.body, context);
2108
1331
  let contents = {};
@@ -2113,40 +1336,9 @@ var de_GetVehicleCommand = /* @__PURE__ */ __name(async (output, context) => {
2113
1336
  };
2114
1337
  return response;
2115
1338
  }, "de_GetVehicleCommand");
2116
- var de_GetVehicleCommandError = /* @__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 "AccessDeniedException":
2124
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2125
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2126
- case "InternalServerException":
2127
- case "com.amazonaws.iotfleetwise#InternalServerException":
2128
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2129
- case "ResourceNotFoundException":
2130
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2131
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2132
- case "ThrottlingException":
2133
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2134
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2135
- case "ValidationException":
2136
- case "com.amazonaws.iotfleetwise#ValidationException":
2137
- throw await de_ValidationExceptionRes(parsedOutput, context);
2138
- default:
2139
- const parsedBody = parsedOutput.body;
2140
- return throwDefaultError({
2141
- output,
2142
- parsedBody,
2143
- errorCode
2144
- });
2145
- }
2146
- }, "de_GetVehicleCommandError");
2147
1339
  var de_GetVehicleStatusCommand = /* @__PURE__ */ __name(async (output, context) => {
2148
1340
  if (output.statusCode >= 300) {
2149
- return de_GetVehicleStatusCommandError(output, context);
1341
+ return de_CommandError(output, context);
2150
1342
  }
2151
1343
  const data = await parseBody(output.body, context);
2152
1344
  let contents = {};
@@ -2157,40 +1349,9 @@ var de_GetVehicleStatusCommand = /* @__PURE__ */ __name(async (output, context)
2157
1349
  };
2158
1350
  return response;
2159
1351
  }, "de_GetVehicleStatusCommand");
2160
- var de_GetVehicleStatusCommandError = /* @__PURE__ */ __name(async (output, context) => {
2161
- const parsedOutput = {
2162
- ...output,
2163
- body: await parseErrorBody(output.body, context)
2164
- };
2165
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2166
- switch (errorCode) {
2167
- case "AccessDeniedException":
2168
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2169
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2170
- case "InternalServerException":
2171
- case "com.amazonaws.iotfleetwise#InternalServerException":
2172
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2173
- case "ResourceNotFoundException":
2174
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2175
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2176
- case "ThrottlingException":
2177
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2178
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2179
- case "ValidationException":
2180
- case "com.amazonaws.iotfleetwise#ValidationException":
2181
- throw await de_ValidationExceptionRes(parsedOutput, context);
2182
- default:
2183
- const parsedBody = parsedOutput.body;
2184
- return throwDefaultError({
2185
- output,
2186
- parsedBody,
2187
- errorCode
2188
- });
2189
- }
2190
- }, "de_GetVehicleStatusCommandError");
2191
1352
  var de_ImportDecoderManifestCommand = /* @__PURE__ */ __name(async (output, context) => {
2192
1353
  if (output.statusCode >= 300) {
2193
- return de_ImportDecoderManifestCommandError(output, context);
1354
+ return de_CommandError(output, context);
2194
1355
  }
2195
1356
  const data = await parseBody(output.body, context);
2196
1357
  let contents = {};
@@ -2201,49 +1362,9 @@ var de_ImportDecoderManifestCommand = /* @__PURE__ */ __name(async (output, cont
2201
1362
  };
2202
1363
  return response;
2203
1364
  }, "de_ImportDecoderManifestCommand");
2204
- var de_ImportDecoderManifestCommandError = /* @__PURE__ */ __name(async (output, context) => {
2205
- const parsedOutput = {
2206
- ...output,
2207
- body: await parseErrorBody(output.body, context)
2208
- };
2209
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2210
- switch (errorCode) {
2211
- case "AccessDeniedException":
2212
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2213
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2214
- case "ConflictException":
2215
- case "com.amazonaws.iotfleetwise#ConflictException":
2216
- throw await de_ConflictExceptionRes(parsedOutput, context);
2217
- case "DecoderManifestValidationException":
2218
- case "com.amazonaws.iotfleetwise#DecoderManifestValidationException":
2219
- throw await de_DecoderManifestValidationExceptionRes(parsedOutput, context);
2220
- case "InternalServerException":
2221
- case "com.amazonaws.iotfleetwise#InternalServerException":
2222
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2223
- case "InvalidSignalsException":
2224
- case "com.amazonaws.iotfleetwise#InvalidSignalsException":
2225
- throw await de_InvalidSignalsExceptionRes(parsedOutput, context);
2226
- case "ResourceNotFoundException":
2227
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2228
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2229
- case "ThrottlingException":
2230
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2231
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2232
- case "ValidationException":
2233
- case "com.amazonaws.iotfleetwise#ValidationException":
2234
- throw await de_ValidationExceptionRes(parsedOutput, context);
2235
- default:
2236
- const parsedBody = parsedOutput.body;
2237
- return throwDefaultError({
2238
- output,
2239
- parsedBody,
2240
- errorCode
2241
- });
2242
- }
2243
- }, "de_ImportDecoderManifestCommandError");
2244
1365
  var de_ImportSignalCatalogCommand = /* @__PURE__ */ __name(async (output, context) => {
2245
1366
  if (output.statusCode >= 300) {
2246
- return de_ImportSignalCatalogCommandError(output, context);
1367
+ return de_CommandError(output, context);
2247
1368
  }
2248
1369
  const data = await parseBody(output.body, context);
2249
1370
  let contents = {};
@@ -2254,49 +1375,9 @@ var de_ImportSignalCatalogCommand = /* @__PURE__ */ __name(async (output, contex
2254
1375
  };
2255
1376
  return response;
2256
1377
  }, "de_ImportSignalCatalogCommand");
2257
- var de_ImportSignalCatalogCommandError = /* @__PURE__ */ __name(async (output, context) => {
2258
- const parsedOutput = {
2259
- ...output,
2260
- body: await parseErrorBody(output.body, context)
2261
- };
2262
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2263
- switch (errorCode) {
2264
- case "AccessDeniedException":
2265
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2266
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2267
- case "ConflictException":
2268
- case "com.amazonaws.iotfleetwise#ConflictException":
2269
- throw await de_ConflictExceptionRes(parsedOutput, context);
2270
- case "InternalServerException":
2271
- case "com.amazonaws.iotfleetwise#InternalServerException":
2272
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2273
- case "InvalidSignalsException":
2274
- case "com.amazonaws.iotfleetwise#InvalidSignalsException":
2275
- throw await de_InvalidSignalsExceptionRes(parsedOutput, context);
2276
- case "LimitExceededException":
2277
- case "com.amazonaws.iotfleetwise#LimitExceededException":
2278
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2279
- case "ResourceNotFoundException":
2280
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2281
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2282
- case "ThrottlingException":
2283
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2284
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2285
- case "ValidationException":
2286
- case "com.amazonaws.iotfleetwise#ValidationException":
2287
- throw await de_ValidationExceptionRes(parsedOutput, context);
2288
- default:
2289
- const parsedBody = parsedOutput.body;
2290
- return throwDefaultError({
2291
- output,
2292
- parsedBody,
2293
- errorCode
2294
- });
2295
- }
2296
- }, "de_ImportSignalCatalogCommandError");
2297
1378
  var de_ListCampaignsCommand = /* @__PURE__ */ __name(async (output, context) => {
2298
1379
  if (output.statusCode >= 300) {
2299
- return de_ListCampaignsCommandError(output, context);
1380
+ return de_CommandError(output, context);
2300
1381
  }
2301
1382
  const data = await parseBody(output.body, context);
2302
1383
  let contents = {};
@@ -2307,37 +1388,9 @@ var de_ListCampaignsCommand = /* @__PURE__ */ __name(async (output, context) =>
2307
1388
  };
2308
1389
  return response;
2309
1390
  }, "de_ListCampaignsCommand");
2310
- var de_ListCampaignsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2311
- const parsedOutput = {
2312
- ...output,
2313
- body: await parseErrorBody(output.body, context)
2314
- };
2315
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2316
- switch (errorCode) {
2317
- case "AccessDeniedException":
2318
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2319
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2320
- case "InternalServerException":
2321
- case "com.amazonaws.iotfleetwise#InternalServerException":
2322
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2323
- case "ThrottlingException":
2324
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2325
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2326
- case "ValidationException":
2327
- case "com.amazonaws.iotfleetwise#ValidationException":
2328
- throw await de_ValidationExceptionRes(parsedOutput, context);
2329
- default:
2330
- const parsedBody = parsedOutput.body;
2331
- return throwDefaultError({
2332
- output,
2333
- parsedBody,
2334
- errorCode
2335
- });
2336
- }
2337
- }, "de_ListCampaignsCommandError");
2338
1391
  var de_ListDecoderManifestNetworkInterfacesCommand = /* @__PURE__ */ __name(async (output, context) => {
2339
1392
  if (output.statusCode >= 300) {
2340
- return de_ListDecoderManifestNetworkInterfacesCommandError(output, context);
1393
+ return de_CommandError(output, context);
2341
1394
  }
2342
1395
  const data = await parseBody(output.body, context);
2343
1396
  let contents = {};
@@ -2348,40 +1401,9 @@ var de_ListDecoderManifestNetworkInterfacesCommand = /* @__PURE__ */ __name(asyn
2348
1401
  };
2349
1402
  return response;
2350
1403
  }, "de_ListDecoderManifestNetworkInterfacesCommand");
2351
- var de_ListDecoderManifestNetworkInterfacesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2352
- const parsedOutput = {
2353
- ...output,
2354
- body: await parseErrorBody(output.body, context)
2355
- };
2356
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2357
- switch (errorCode) {
2358
- case "AccessDeniedException":
2359
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2360
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2361
- case "InternalServerException":
2362
- case "com.amazonaws.iotfleetwise#InternalServerException":
2363
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2364
- case "ResourceNotFoundException":
2365
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2366
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2367
- case "ThrottlingException":
2368
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2369
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2370
- case "ValidationException":
2371
- case "com.amazonaws.iotfleetwise#ValidationException":
2372
- throw await de_ValidationExceptionRes(parsedOutput, context);
2373
- default:
2374
- const parsedBody = parsedOutput.body;
2375
- return throwDefaultError({
2376
- output,
2377
- parsedBody,
2378
- errorCode
2379
- });
2380
- }
2381
- }, "de_ListDecoderManifestNetworkInterfacesCommandError");
2382
1404
  var de_ListDecoderManifestsCommand = /* @__PURE__ */ __name(async (output, context) => {
2383
1405
  if (output.statusCode >= 300) {
2384
- return de_ListDecoderManifestsCommandError(output, context);
1406
+ return de_CommandError(output, context);
2385
1407
  }
2386
1408
  const data = await parseBody(output.body, context);
2387
1409
  let contents = {};
@@ -2392,37 +1414,9 @@ var de_ListDecoderManifestsCommand = /* @__PURE__ */ __name(async (output, conte
2392
1414
  };
2393
1415
  return response;
2394
1416
  }, "de_ListDecoderManifestsCommand");
2395
- var de_ListDecoderManifestsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2396
- const parsedOutput = {
2397
- ...output,
2398
- body: await parseErrorBody(output.body, context)
2399
- };
2400
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2401
- switch (errorCode) {
2402
- case "AccessDeniedException":
2403
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2404
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2405
- case "InternalServerException":
2406
- case "com.amazonaws.iotfleetwise#InternalServerException":
2407
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2408
- case "ThrottlingException":
2409
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2410
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2411
- case "ValidationException":
2412
- case "com.amazonaws.iotfleetwise#ValidationException":
2413
- throw await de_ValidationExceptionRes(parsedOutput, context);
2414
- default:
2415
- const parsedBody = parsedOutput.body;
2416
- return throwDefaultError({
2417
- output,
2418
- parsedBody,
2419
- errorCode
2420
- });
2421
- }
2422
- }, "de_ListDecoderManifestsCommandError");
2423
1417
  var de_ListDecoderManifestSignalsCommand = /* @__PURE__ */ __name(async (output, context) => {
2424
1418
  if (output.statusCode >= 300) {
2425
- return de_ListDecoderManifestSignalsCommandError(output, context);
1419
+ return de_CommandError(output, context);
2426
1420
  }
2427
1421
  const data = await parseBody(output.body, context);
2428
1422
  let contents = {};
@@ -2433,40 +1427,9 @@ var de_ListDecoderManifestSignalsCommand = /* @__PURE__ */ __name(async (output,
2433
1427
  };
2434
1428
  return response;
2435
1429
  }, "de_ListDecoderManifestSignalsCommand");
2436
- var de_ListDecoderManifestSignalsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2437
- const parsedOutput = {
2438
- ...output,
2439
- body: await parseErrorBody(output.body, context)
2440
- };
2441
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2442
- switch (errorCode) {
2443
- case "AccessDeniedException":
2444
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2445
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2446
- case "InternalServerException":
2447
- case "com.amazonaws.iotfleetwise#InternalServerException":
2448
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2449
- case "ResourceNotFoundException":
2450
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2451
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2452
- case "ThrottlingException":
2453
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2454
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2455
- case "ValidationException":
2456
- case "com.amazonaws.iotfleetwise#ValidationException":
2457
- throw await de_ValidationExceptionRes(parsedOutput, context);
2458
- default:
2459
- const parsedBody = parsedOutput.body;
2460
- return throwDefaultError({
2461
- output,
2462
- parsedBody,
2463
- errorCode
2464
- });
2465
- }
2466
- }, "de_ListDecoderManifestSignalsCommandError");
2467
1430
  var de_ListFleetsCommand = /* @__PURE__ */ __name(async (output, context) => {
2468
1431
  if (output.statusCode >= 300) {
2469
- return de_ListFleetsCommandError(output, context);
1432
+ return de_CommandError(output, context);
2470
1433
  }
2471
1434
  const data = await parseBody(output.body, context);
2472
1435
  let contents = {};
@@ -2477,40 +1440,9 @@ var de_ListFleetsCommand = /* @__PURE__ */ __name(async (output, context) => {
2477
1440
  };
2478
1441
  return response;
2479
1442
  }, "de_ListFleetsCommand");
2480
- var de_ListFleetsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2481
- const parsedOutput = {
2482
- ...output,
2483
- body: await parseErrorBody(output.body, context)
2484
- };
2485
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2486
- switch (errorCode) {
2487
- case "AccessDeniedException":
2488
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2489
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2490
- case "InternalServerException":
2491
- case "com.amazonaws.iotfleetwise#InternalServerException":
2492
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2493
- case "ResourceNotFoundException":
2494
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2495
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2496
- case "ThrottlingException":
2497
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2498
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2499
- case "ValidationException":
2500
- case "com.amazonaws.iotfleetwise#ValidationException":
2501
- throw await de_ValidationExceptionRes(parsedOutput, context);
2502
- default:
2503
- const parsedBody = parsedOutput.body;
2504
- return throwDefaultError({
2505
- output,
2506
- parsedBody,
2507
- errorCode
2508
- });
2509
- }
2510
- }, "de_ListFleetsCommandError");
2511
1443
  var de_ListFleetsForVehicleCommand = /* @__PURE__ */ __name(async (output, context) => {
2512
1444
  if (output.statusCode >= 300) {
2513
- return de_ListFleetsForVehicleCommandError(output, context);
1445
+ return de_CommandError(output, context);
2514
1446
  }
2515
1447
  const data = await parseBody(output.body, context);
2516
1448
  let contents = {};
@@ -2521,128 +1453,35 @@ var de_ListFleetsForVehicleCommand = /* @__PURE__ */ __name(async (output, conte
2521
1453
  };
2522
1454
  return response;
2523
1455
  }, "de_ListFleetsForVehicleCommand");
2524
- var de_ListFleetsForVehicleCommandError = /* @__PURE__ */ __name(async (output, context) => {
2525
- const parsedOutput = {
2526
- ...output,
2527
- body: await parseErrorBody(output.body, context)
2528
- };
2529
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2530
- switch (errorCode) {
2531
- case "AccessDeniedException":
2532
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2533
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2534
- case "InternalServerException":
2535
- case "com.amazonaws.iotfleetwise#InternalServerException":
2536
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2537
- case "ResourceNotFoundException":
2538
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2539
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2540
- case "ThrottlingException":
2541
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2542
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2543
- case "ValidationException":
2544
- case "com.amazonaws.iotfleetwise#ValidationException":
2545
- throw await de_ValidationExceptionRes(parsedOutput, context);
2546
- default:
2547
- const parsedBody = parsedOutput.body;
2548
- return throwDefaultError({
2549
- output,
2550
- parsedBody,
2551
- errorCode
2552
- });
2553
- }
2554
- }, "de_ListFleetsForVehicleCommandError");
2555
1456
  var de_ListModelManifestNodesCommand = /* @__PURE__ */ __name(async (output, context) => {
2556
1457
  if (output.statusCode >= 300) {
2557
- return de_ListModelManifestNodesCommandError(output, context);
1458
+ return de_CommandError(output, context);
2558
1459
  }
2559
1460
  const data = await parseBody(output.body, context);
2560
1461
  let contents = {};
2561
1462
  contents = de_ListModelManifestNodesResponse(data, context);
2562
1463
  const response = {
2563
- $metadata: deserializeMetadata(output),
2564
- ...contents
2565
- };
2566
- return response;
2567
- }, "de_ListModelManifestNodesCommand");
2568
- var de_ListModelManifestNodesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2569
- const parsedOutput = {
2570
- ...output,
2571
- body: await parseErrorBody(output.body, context)
2572
- };
2573
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2574
- switch (errorCode) {
2575
- case "AccessDeniedException":
2576
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2577
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2578
- case "InternalServerException":
2579
- case "com.amazonaws.iotfleetwise#InternalServerException":
2580
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2581
- case "LimitExceededException":
2582
- case "com.amazonaws.iotfleetwise#LimitExceededException":
2583
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2584
- case "ResourceNotFoundException":
2585
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2586
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2587
- case "ThrottlingException":
2588
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2589
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2590
- case "ValidationException":
2591
- case "com.amazonaws.iotfleetwise#ValidationException":
2592
- throw await de_ValidationExceptionRes(parsedOutput, context);
2593
- default:
2594
- const parsedBody = parsedOutput.body;
2595
- return throwDefaultError({
2596
- output,
2597
- parsedBody,
2598
- errorCode
2599
- });
2600
- }
2601
- }, "de_ListModelManifestNodesCommandError");
2602
- var de_ListModelManifestsCommand = /* @__PURE__ */ __name(async (output, context) => {
2603
- if (output.statusCode >= 300) {
2604
- return de_ListModelManifestsCommandError(output, context);
2605
- }
2606
- const data = await parseBody(output.body, context);
2607
- let contents = {};
2608
- contents = de_ListModelManifestsResponse(data, context);
2609
- const response = {
2610
- $metadata: deserializeMetadata(output),
2611
- ...contents
2612
- };
2613
- return response;
2614
- }, "de_ListModelManifestsCommand");
2615
- var de_ListModelManifestsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2616
- const parsedOutput = {
2617
- ...output,
2618
- body: await parseErrorBody(output.body, context)
2619
- };
2620
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2621
- switch (errorCode) {
2622
- case "AccessDeniedException":
2623
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2624
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2625
- case "InternalServerException":
2626
- case "com.amazonaws.iotfleetwise#InternalServerException":
2627
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2628
- case "ThrottlingException":
2629
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2630
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2631
- case "ValidationException":
2632
- case "com.amazonaws.iotfleetwise#ValidationException":
2633
- throw await de_ValidationExceptionRes(parsedOutput, context);
2634
- default:
2635
- const parsedBody = parsedOutput.body;
2636
- return throwDefaultError({
2637
- output,
2638
- parsedBody,
2639
- errorCode
2640
- });
1464
+ $metadata: deserializeMetadata(output),
1465
+ ...contents
1466
+ };
1467
+ return response;
1468
+ }, "de_ListModelManifestNodesCommand");
1469
+ var de_ListModelManifestsCommand = /* @__PURE__ */ __name(async (output, context) => {
1470
+ if (output.statusCode >= 300) {
1471
+ return de_CommandError(output, context);
2641
1472
  }
2642
- }, "de_ListModelManifestsCommandError");
1473
+ const data = await parseBody(output.body, context);
1474
+ let contents = {};
1475
+ contents = de_ListModelManifestsResponse(data, context);
1476
+ const response = {
1477
+ $metadata: deserializeMetadata(output),
1478
+ ...contents
1479
+ };
1480
+ return response;
1481
+ }, "de_ListModelManifestsCommand");
2643
1482
  var de_ListSignalCatalogNodesCommand = /* @__PURE__ */ __name(async (output, context) => {
2644
1483
  if (output.statusCode >= 300) {
2645
- return de_ListSignalCatalogNodesCommandError(output, context);
1484
+ return de_CommandError(output, context);
2646
1485
  }
2647
1486
  const data = await parseBody(output.body, context);
2648
1487
  let contents = {};
@@ -2653,43 +1492,9 @@ var de_ListSignalCatalogNodesCommand = /* @__PURE__ */ __name(async (output, con
2653
1492
  };
2654
1493
  return response;
2655
1494
  }, "de_ListSignalCatalogNodesCommand");
2656
- var de_ListSignalCatalogNodesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2657
- const parsedOutput = {
2658
- ...output,
2659
- body: await parseErrorBody(output.body, context)
2660
- };
2661
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2662
- switch (errorCode) {
2663
- case "AccessDeniedException":
2664
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2665
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2666
- case "InternalServerException":
2667
- case "com.amazonaws.iotfleetwise#InternalServerException":
2668
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2669
- case "LimitExceededException":
2670
- case "com.amazonaws.iotfleetwise#LimitExceededException":
2671
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2672
- case "ResourceNotFoundException":
2673
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2674
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2675
- case "ThrottlingException":
2676
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2677
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2678
- case "ValidationException":
2679
- case "com.amazonaws.iotfleetwise#ValidationException":
2680
- throw await de_ValidationExceptionRes(parsedOutput, context);
2681
- default:
2682
- const parsedBody = parsedOutput.body;
2683
- return throwDefaultError({
2684
- output,
2685
- parsedBody,
2686
- errorCode
2687
- });
2688
- }
2689
- }, "de_ListSignalCatalogNodesCommandError");
2690
1495
  var de_ListSignalCatalogsCommand = /* @__PURE__ */ __name(async (output, context) => {
2691
1496
  if (output.statusCode >= 300) {
2692
- return de_ListSignalCatalogsCommandError(output, context);
1497
+ return de_CommandError(output, context);
2693
1498
  }
2694
1499
  const data = await parseBody(output.body, context);
2695
1500
  let contents = {};
@@ -2700,37 +1505,9 @@ var de_ListSignalCatalogsCommand = /* @__PURE__ */ __name(async (output, context
2700
1505
  };
2701
1506
  return response;
2702
1507
  }, "de_ListSignalCatalogsCommand");
2703
- var de_ListSignalCatalogsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2704
- const parsedOutput = {
2705
- ...output,
2706
- body: await parseErrorBody(output.body, context)
2707
- };
2708
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2709
- switch (errorCode) {
2710
- case "AccessDeniedException":
2711
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2712
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2713
- case "InternalServerException":
2714
- case "com.amazonaws.iotfleetwise#InternalServerException":
2715
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2716
- case "ThrottlingException":
2717
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2718
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2719
- case "ValidationException":
2720
- case "com.amazonaws.iotfleetwise#ValidationException":
2721
- throw await de_ValidationExceptionRes(parsedOutput, context);
2722
- default:
2723
- const parsedBody = parsedOutput.body;
2724
- return throwDefaultError({
2725
- output,
2726
- parsedBody,
2727
- errorCode
2728
- });
2729
- }
2730
- }, "de_ListSignalCatalogsCommandError");
2731
1508
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2732
1509
  if (output.statusCode >= 300) {
2733
- return de_ListTagsForResourceCommandError(output, context);
1510
+ return de_CommandError(output, context);
2734
1511
  }
2735
1512
  const data = await parseBody(output.body, context);
2736
1513
  let contents = {};
@@ -2741,40 +1518,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
2741
1518
  };
2742
1519
  return response;
2743
1520
  }, "de_ListTagsForResourceCommand");
2744
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2745
- const parsedOutput = {
2746
- ...output,
2747
- body: await parseErrorBody(output.body, context)
2748
- };
2749
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2750
- switch (errorCode) {
2751
- case "AccessDeniedException":
2752
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2753
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2754
- case "InternalServerException":
2755
- case "com.amazonaws.iotfleetwise#InternalServerException":
2756
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2757
- case "ResourceNotFoundException":
2758
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2759
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2760
- case "ThrottlingException":
2761
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2762
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2763
- case "ValidationException":
2764
- case "com.amazonaws.iotfleetwise#ValidationException":
2765
- throw await de_ValidationExceptionRes(parsedOutput, context);
2766
- default:
2767
- const parsedBody = parsedOutput.body;
2768
- return throwDefaultError({
2769
- output,
2770
- parsedBody,
2771
- errorCode
2772
- });
2773
- }
2774
- }, "de_ListTagsForResourceCommandError");
2775
1521
  var de_ListVehiclesCommand = /* @__PURE__ */ __name(async (output, context) => {
2776
1522
  if (output.statusCode >= 300) {
2777
- return de_ListVehiclesCommandError(output, context);
1523
+ return de_CommandError(output, context);
2778
1524
  }
2779
1525
  const data = await parseBody(output.body, context);
2780
1526
  let contents = {};
@@ -2785,37 +1531,9 @@ var de_ListVehiclesCommand = /* @__PURE__ */ __name(async (output, context) => {
2785
1531
  };
2786
1532
  return response;
2787
1533
  }, "de_ListVehiclesCommand");
2788
- var de_ListVehiclesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2789
- const parsedOutput = {
2790
- ...output,
2791
- body: await parseErrorBody(output.body, context)
2792
- };
2793
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2794
- switch (errorCode) {
2795
- case "AccessDeniedException":
2796
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2797
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2798
- case "InternalServerException":
2799
- case "com.amazonaws.iotfleetwise#InternalServerException":
2800
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2801
- case "ThrottlingException":
2802
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2803
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2804
- case "ValidationException":
2805
- case "com.amazonaws.iotfleetwise#ValidationException":
2806
- throw await de_ValidationExceptionRes(parsedOutput, context);
2807
- default:
2808
- const parsedBody = parsedOutput.body;
2809
- return throwDefaultError({
2810
- output,
2811
- parsedBody,
2812
- errorCode
2813
- });
2814
- }
2815
- }, "de_ListVehiclesCommandError");
2816
1534
  var de_ListVehiclesInFleetCommand = /* @__PURE__ */ __name(async (output, context) => {
2817
1535
  if (output.statusCode >= 300) {
2818
- return de_ListVehiclesInFleetCommandError(output, context);
1536
+ return de_CommandError(output, context);
2819
1537
  }
2820
1538
  const data = await parseBody(output.body, context);
2821
1539
  let contents = {};
@@ -2826,40 +1544,9 @@ var de_ListVehiclesInFleetCommand = /* @__PURE__ */ __name(async (output, contex
2826
1544
  };
2827
1545
  return response;
2828
1546
  }, "de_ListVehiclesInFleetCommand");
2829
- var de_ListVehiclesInFleetCommandError = /* @__PURE__ */ __name(async (output, context) => {
2830
- const parsedOutput = {
2831
- ...output,
2832
- body: await parseErrorBody(output.body, context)
2833
- };
2834
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2835
- switch (errorCode) {
2836
- case "AccessDeniedException":
2837
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2838
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2839
- case "InternalServerException":
2840
- case "com.amazonaws.iotfleetwise#InternalServerException":
2841
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2842
- case "ResourceNotFoundException":
2843
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2844
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2845
- case "ThrottlingException":
2846
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2847
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2848
- case "ValidationException":
2849
- case "com.amazonaws.iotfleetwise#ValidationException":
2850
- throw await de_ValidationExceptionRes(parsedOutput, context);
2851
- default:
2852
- const parsedBody = parsedOutput.body;
2853
- return throwDefaultError({
2854
- output,
2855
- parsedBody,
2856
- errorCode
2857
- });
2858
- }
2859
- }, "de_ListVehiclesInFleetCommandError");
2860
1547
  var de_PutEncryptionConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
2861
1548
  if (output.statusCode >= 300) {
2862
- return de_PutEncryptionConfigurationCommandError(output, context);
1549
+ return de_CommandError(output, context);
2863
1550
  }
2864
1551
  const data = await parseBody(output.body, context);
2865
1552
  let contents = {};
@@ -2870,43 +1557,9 @@ var de_PutEncryptionConfigurationCommand = /* @__PURE__ */ __name(async (output,
2870
1557
  };
2871
1558
  return response;
2872
1559
  }, "de_PutEncryptionConfigurationCommand");
2873
- var de_PutEncryptionConfigurationCommandError = /* @__PURE__ */ __name(async (output, context) => {
2874
- const parsedOutput = {
2875
- ...output,
2876
- body: await parseErrorBody(output.body, context)
2877
- };
2878
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2879
- switch (errorCode) {
2880
- case "AccessDeniedException":
2881
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2882
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2883
- case "ConflictException":
2884
- case "com.amazonaws.iotfleetwise#ConflictException":
2885
- throw await de_ConflictExceptionRes(parsedOutput, context);
2886
- case "InternalServerException":
2887
- case "com.amazonaws.iotfleetwise#InternalServerException":
2888
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2889
- case "ResourceNotFoundException":
2890
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2891
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2892
- case "ThrottlingException":
2893
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2894
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2895
- case "ValidationException":
2896
- case "com.amazonaws.iotfleetwise#ValidationException":
2897
- throw await de_ValidationExceptionRes(parsedOutput, context);
2898
- default:
2899
- const parsedBody = parsedOutput.body;
2900
- return throwDefaultError({
2901
- output,
2902
- parsedBody,
2903
- errorCode
2904
- });
2905
- }
2906
- }, "de_PutEncryptionConfigurationCommandError");
2907
1560
  var de_PutLoggingOptionsCommand = /* @__PURE__ */ __name(async (output, context) => {
2908
1561
  if (output.statusCode >= 300) {
2909
- return de_PutLoggingOptionsCommandError(output, context);
1562
+ return de_CommandError(output, context);
2910
1563
  }
2911
1564
  const data = await parseBody(output.body, context);
2912
1565
  let contents = {};
@@ -2917,43 +1570,9 @@ var de_PutLoggingOptionsCommand = /* @__PURE__ */ __name(async (output, context)
2917
1570
  };
2918
1571
  return response;
2919
1572
  }, "de_PutLoggingOptionsCommand");
2920
- var de_PutLoggingOptionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2921
- const parsedOutput = {
2922
- ...output,
2923
- body: await parseErrorBody(output.body, context)
2924
- };
2925
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2926
- switch (errorCode) {
2927
- case "AccessDeniedException":
2928
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2929
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2930
- case "ConflictException":
2931
- case "com.amazonaws.iotfleetwise#ConflictException":
2932
- throw await de_ConflictExceptionRes(parsedOutput, context);
2933
- case "InternalServerException":
2934
- case "com.amazonaws.iotfleetwise#InternalServerException":
2935
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2936
- case "ResourceNotFoundException":
2937
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2938
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2939
- case "ThrottlingException":
2940
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2941
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2942
- case "ValidationException":
2943
- case "com.amazonaws.iotfleetwise#ValidationException":
2944
- throw await de_ValidationExceptionRes(parsedOutput, context);
2945
- default:
2946
- const parsedBody = parsedOutput.body;
2947
- return throwDefaultError({
2948
- output,
2949
- parsedBody,
2950
- errorCode
2951
- });
2952
- }
2953
- }, "de_PutLoggingOptionsCommandError");
2954
1573
  var de_RegisterAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
2955
1574
  if (output.statusCode >= 300) {
2956
- return de_RegisterAccountCommandError(output, context);
1575
+ return de_CommandError(output, context);
2957
1576
  }
2958
1577
  const data = await parseBody(output.body, context);
2959
1578
  let contents = {};
@@ -2962,45 +1581,11 @@ var de_RegisterAccountCommand = /* @__PURE__ */ __name(async (output, context) =
2962
1581
  $metadata: deserializeMetadata(output),
2963
1582
  ...contents
2964
1583
  };
2965
- return response;
2966
- }, "de_RegisterAccountCommand");
2967
- var de_RegisterAccountCommandError = /* @__PURE__ */ __name(async (output, context) => {
2968
- const parsedOutput = {
2969
- ...output,
2970
- body: await parseErrorBody(output.body, context)
2971
- };
2972
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2973
- switch (errorCode) {
2974
- case "AccessDeniedException":
2975
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
2976
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2977
- case "ConflictException":
2978
- case "com.amazonaws.iotfleetwise#ConflictException":
2979
- throw await de_ConflictExceptionRes(parsedOutput, context);
2980
- case "InternalServerException":
2981
- case "com.amazonaws.iotfleetwise#InternalServerException":
2982
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2983
- case "ResourceNotFoundException":
2984
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
2985
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2986
- case "ThrottlingException":
2987
- case "com.amazonaws.iotfleetwise#ThrottlingException":
2988
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2989
- case "ValidationException":
2990
- case "com.amazonaws.iotfleetwise#ValidationException":
2991
- throw await de_ValidationExceptionRes(parsedOutput, context);
2992
- default:
2993
- const parsedBody = parsedOutput.body;
2994
- return throwDefaultError({
2995
- output,
2996
- parsedBody,
2997
- errorCode
2998
- });
2999
- }
3000
- }, "de_RegisterAccountCommandError");
1584
+ return response;
1585
+ }, "de_RegisterAccountCommand");
3001
1586
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3002
1587
  if (output.statusCode >= 300) {
3003
- return de_TagResourceCommandError(output, context);
1588
+ return de_CommandError(output, context);
3004
1589
  }
3005
1590
  const data = await parseBody(output.body, context);
3006
1591
  let contents = {};
@@ -3011,40 +1596,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3011
1596
  };
3012
1597
  return response;
3013
1598
  }, "de_TagResourceCommand");
3014
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3015
- const parsedOutput = {
3016
- ...output,
3017
- body: await parseErrorBody(output.body, context)
3018
- };
3019
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3020
- switch (errorCode) {
3021
- case "AccessDeniedException":
3022
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
3023
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3024
- case "InternalServerException":
3025
- case "com.amazonaws.iotfleetwise#InternalServerException":
3026
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3027
- case "ResourceNotFoundException":
3028
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
3029
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3030
- case "ThrottlingException":
3031
- case "com.amazonaws.iotfleetwise#ThrottlingException":
3032
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3033
- case "ValidationException":
3034
- case "com.amazonaws.iotfleetwise#ValidationException":
3035
- throw await de_ValidationExceptionRes(parsedOutput, context);
3036
- default:
3037
- const parsedBody = parsedOutput.body;
3038
- return throwDefaultError({
3039
- output,
3040
- parsedBody,
3041
- errorCode
3042
- });
3043
- }
3044
- }, "de_TagResourceCommandError");
3045
1599
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
3046
1600
  if (output.statusCode >= 300) {
3047
- return de_UntagResourceCommandError(output, context);
1601
+ return de_CommandError(output, context);
3048
1602
  }
3049
1603
  const data = await parseBody(output.body, context);
3050
1604
  let contents = {};
@@ -3055,40 +1609,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
3055
1609
  };
3056
1610
  return response;
3057
1611
  }, "de_UntagResourceCommand");
3058
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
3059
- const parsedOutput = {
3060
- ...output,
3061
- body: await parseErrorBody(output.body, context)
3062
- };
3063
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3064
- switch (errorCode) {
3065
- case "AccessDeniedException":
3066
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
3067
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3068
- case "InternalServerException":
3069
- case "com.amazonaws.iotfleetwise#InternalServerException":
3070
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3071
- case "ResourceNotFoundException":
3072
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
3073
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3074
- case "ThrottlingException":
3075
- case "com.amazonaws.iotfleetwise#ThrottlingException":
3076
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3077
- case "ValidationException":
3078
- case "com.amazonaws.iotfleetwise#ValidationException":
3079
- throw await de_ValidationExceptionRes(parsedOutput, context);
3080
- default:
3081
- const parsedBody = parsedOutput.body;
3082
- return throwDefaultError({
3083
- output,
3084
- parsedBody,
3085
- errorCode
3086
- });
3087
- }
3088
- }, "de_UntagResourceCommandError");
3089
1612
  var de_UpdateCampaignCommand = /* @__PURE__ */ __name(async (output, context) => {
3090
1613
  if (output.statusCode >= 300) {
3091
- return de_UpdateCampaignCommandError(output, context);
1614
+ return de_CommandError(output, context);
3092
1615
  }
3093
1616
  const data = await parseBody(output.body, context);
3094
1617
  let contents = {};
@@ -3099,43 +1622,9 @@ var de_UpdateCampaignCommand = /* @__PURE__ */ __name(async (output, context) =>
3099
1622
  };
3100
1623
  return response;
3101
1624
  }, "de_UpdateCampaignCommand");
3102
- var de_UpdateCampaignCommandError = /* @__PURE__ */ __name(async (output, context) => {
3103
- const parsedOutput = {
3104
- ...output,
3105
- body: await parseErrorBody(output.body, context)
3106
- };
3107
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3108
- switch (errorCode) {
3109
- case "AccessDeniedException":
3110
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
3111
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3112
- case "ConflictException":
3113
- case "com.amazonaws.iotfleetwise#ConflictException":
3114
- throw await de_ConflictExceptionRes(parsedOutput, context);
3115
- case "InternalServerException":
3116
- case "com.amazonaws.iotfleetwise#InternalServerException":
3117
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3118
- case "ResourceNotFoundException":
3119
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
3120
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3121
- case "ThrottlingException":
3122
- case "com.amazonaws.iotfleetwise#ThrottlingException":
3123
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3124
- case "ValidationException":
3125
- case "com.amazonaws.iotfleetwise#ValidationException":
3126
- throw await de_ValidationExceptionRes(parsedOutput, context);
3127
- default:
3128
- const parsedBody = parsedOutput.body;
3129
- return throwDefaultError({
3130
- output,
3131
- parsedBody,
3132
- errorCode
3133
- });
3134
- }
3135
- }, "de_UpdateCampaignCommandError");
3136
1625
  var de_UpdateDecoderManifestCommand = /* @__PURE__ */ __name(async (output, context) => {
3137
1626
  if (output.statusCode >= 300) {
3138
- return de_UpdateDecoderManifestCommandError(output, context);
1627
+ return de_CommandError(output, context);
3139
1628
  }
3140
1629
  const data = await parseBody(output.body, context);
3141
1630
  let contents = {};
@@ -3146,49 +1635,9 @@ var de_UpdateDecoderManifestCommand = /* @__PURE__ */ __name(async (output, cont
3146
1635
  };
3147
1636
  return response;
3148
1637
  }, "de_UpdateDecoderManifestCommand");
3149
- var de_UpdateDecoderManifestCommandError = /* @__PURE__ */ __name(async (output, context) => {
3150
- const parsedOutput = {
3151
- ...output,
3152
- body: await parseErrorBody(output.body, context)
3153
- };
3154
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3155
- switch (errorCode) {
3156
- case "AccessDeniedException":
3157
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
3158
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3159
- case "ConflictException":
3160
- case "com.amazonaws.iotfleetwise#ConflictException":
3161
- throw await de_ConflictExceptionRes(parsedOutput, context);
3162
- case "DecoderManifestValidationException":
3163
- case "com.amazonaws.iotfleetwise#DecoderManifestValidationException":
3164
- throw await de_DecoderManifestValidationExceptionRes(parsedOutput, context);
3165
- case "InternalServerException":
3166
- case "com.amazonaws.iotfleetwise#InternalServerException":
3167
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3168
- case "LimitExceededException":
3169
- case "com.amazonaws.iotfleetwise#LimitExceededException":
3170
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
3171
- case "ResourceNotFoundException":
3172
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
3173
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3174
- case "ThrottlingException":
3175
- case "com.amazonaws.iotfleetwise#ThrottlingException":
3176
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3177
- case "ValidationException":
3178
- case "com.amazonaws.iotfleetwise#ValidationException":
3179
- throw await de_ValidationExceptionRes(parsedOutput, context);
3180
- default:
3181
- const parsedBody = parsedOutput.body;
3182
- return throwDefaultError({
3183
- output,
3184
- parsedBody,
3185
- errorCode
3186
- });
3187
- }
3188
- }, "de_UpdateDecoderManifestCommandError");
3189
1638
  var de_UpdateFleetCommand = /* @__PURE__ */ __name(async (output, context) => {
3190
1639
  if (output.statusCode >= 300) {
3191
- return de_UpdateFleetCommandError(output, context);
1640
+ return de_CommandError(output, context);
3192
1641
  }
3193
1642
  const data = await parseBody(output.body, context);
3194
1643
  let contents = {};
@@ -3199,43 +1648,9 @@ var de_UpdateFleetCommand = /* @__PURE__ */ __name(async (output, context) => {
3199
1648
  };
3200
1649
  return response;
3201
1650
  }, "de_UpdateFleetCommand");
3202
- var de_UpdateFleetCommandError = /* @__PURE__ */ __name(async (output, context) => {
3203
- const parsedOutput = {
3204
- ...output,
3205
- body: await parseErrorBody(output.body, context)
3206
- };
3207
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3208
- switch (errorCode) {
3209
- case "AccessDeniedException":
3210
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
3211
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3212
- case "ConflictException":
3213
- case "com.amazonaws.iotfleetwise#ConflictException":
3214
- throw await de_ConflictExceptionRes(parsedOutput, context);
3215
- case "InternalServerException":
3216
- case "com.amazonaws.iotfleetwise#InternalServerException":
3217
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3218
- case "ResourceNotFoundException":
3219
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
3220
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3221
- case "ThrottlingException":
3222
- case "com.amazonaws.iotfleetwise#ThrottlingException":
3223
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3224
- case "ValidationException":
3225
- case "com.amazonaws.iotfleetwise#ValidationException":
3226
- throw await de_ValidationExceptionRes(parsedOutput, context);
3227
- default:
3228
- const parsedBody = parsedOutput.body;
3229
- return throwDefaultError({
3230
- output,
3231
- parsedBody,
3232
- errorCode
3233
- });
3234
- }
3235
- }, "de_UpdateFleetCommandError");
3236
1651
  var de_UpdateModelManifestCommand = /* @__PURE__ */ __name(async (output, context) => {
3237
1652
  if (output.statusCode >= 300) {
3238
- return de_UpdateModelManifestCommandError(output, context);
1653
+ return de_CommandError(output, context);
3239
1654
  }
3240
1655
  const data = await parseBody(output.body, context);
3241
1656
  let contents = {};
@@ -3246,46 +1661,9 @@ var de_UpdateModelManifestCommand = /* @__PURE__ */ __name(async (output, contex
3246
1661
  };
3247
1662
  return response;
3248
1663
  }, "de_UpdateModelManifestCommand");
3249
- var de_UpdateModelManifestCommandError = /* @__PURE__ */ __name(async (output, context) => {
3250
- const parsedOutput = {
3251
- ...output,
3252
- body: await parseErrorBody(output.body, context)
3253
- };
3254
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3255
- switch (errorCode) {
3256
- case "AccessDeniedException":
3257
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
3258
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3259
- case "ConflictException":
3260
- case "com.amazonaws.iotfleetwise#ConflictException":
3261
- throw await de_ConflictExceptionRes(parsedOutput, context);
3262
- case "InternalServerException":
3263
- case "com.amazonaws.iotfleetwise#InternalServerException":
3264
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3265
- case "InvalidSignalsException":
3266
- case "com.amazonaws.iotfleetwise#InvalidSignalsException":
3267
- throw await de_InvalidSignalsExceptionRes(parsedOutput, context);
3268
- case "ResourceNotFoundException":
3269
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
3270
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3271
- case "ThrottlingException":
3272
- case "com.amazonaws.iotfleetwise#ThrottlingException":
3273
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3274
- case "ValidationException":
3275
- case "com.amazonaws.iotfleetwise#ValidationException":
3276
- throw await de_ValidationExceptionRes(parsedOutput, context);
3277
- default:
3278
- const parsedBody = parsedOutput.body;
3279
- return throwDefaultError({
3280
- output,
3281
- parsedBody,
3282
- errorCode
3283
- });
3284
- }
3285
- }, "de_UpdateModelManifestCommandError");
3286
1664
  var de_UpdateSignalCatalogCommand = /* @__PURE__ */ __name(async (output, context) => {
3287
1665
  if (output.statusCode >= 300) {
3288
- return de_UpdateSignalCatalogCommandError(output, context);
1666
+ return de_CommandError(output, context);
3289
1667
  }
3290
1668
  const data = await parseBody(output.body, context);
3291
1669
  let contents = {};
@@ -3296,52 +1674,9 @@ var de_UpdateSignalCatalogCommand = /* @__PURE__ */ __name(async (output, contex
3296
1674
  };
3297
1675
  return response;
3298
1676
  }, "de_UpdateSignalCatalogCommand");
3299
- var de_UpdateSignalCatalogCommandError = /* @__PURE__ */ __name(async (output, context) => {
3300
- const parsedOutput = {
3301
- ...output,
3302
- body: await parseErrorBody(output.body, context)
3303
- };
3304
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3305
- switch (errorCode) {
3306
- case "AccessDeniedException":
3307
- case "com.amazonaws.iotfleetwise#AccessDeniedException":
3308
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3309
- case "ConflictException":
3310
- case "com.amazonaws.iotfleetwise#ConflictException":
3311
- throw await de_ConflictExceptionRes(parsedOutput, context);
3312
- case "InternalServerException":
3313
- case "com.amazonaws.iotfleetwise#InternalServerException":
3314
- throw await de_InternalServerExceptionRes(parsedOutput, context);
3315
- case "InvalidNodeException":
3316
- case "com.amazonaws.iotfleetwise#InvalidNodeException":
3317
- throw await de_InvalidNodeExceptionRes(parsedOutput, context);
3318
- case "InvalidSignalsException":
3319
- case "com.amazonaws.iotfleetwise#InvalidSignalsException":
3320
- throw await de_InvalidSignalsExceptionRes(parsedOutput, context);
3321
- case "LimitExceededException":
3322
- case "com.amazonaws.iotfleetwise#LimitExceededException":
3323
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
3324
- case "ResourceNotFoundException":
3325
- case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
3326
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
3327
- case "ThrottlingException":
3328
- case "com.amazonaws.iotfleetwise#ThrottlingException":
3329
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
3330
- case "ValidationException":
3331
- case "com.amazonaws.iotfleetwise#ValidationException":
3332
- throw await de_ValidationExceptionRes(parsedOutput, context);
3333
- default:
3334
- const parsedBody = parsedOutput.body;
3335
- return throwDefaultError({
3336
- output,
3337
- parsedBody,
3338
- errorCode
3339
- });
3340
- }
3341
- }, "de_UpdateSignalCatalogCommandError");
3342
1677
  var de_UpdateVehicleCommand = /* @__PURE__ */ __name(async (output, context) => {
3343
1678
  if (output.statusCode >= 300) {
3344
- return de_UpdateVehicleCommandError(output, context);
1679
+ return de_CommandError(output, context);
3345
1680
  }
3346
1681
  const data = await parseBody(output.body, context);
3347
1682
  let contents = {};
@@ -3352,7 +1687,7 @@ var de_UpdateVehicleCommand = /* @__PURE__ */ __name(async (output, context) =>
3352
1687
  };
3353
1688
  return response;
3354
1689
  }, "de_UpdateVehicleCommand");
3355
- var de_UpdateVehicleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1690
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
3356
1691
  const parsedOutput = {
3357
1692
  ...output,
3358
1693
  body: await parseErrorBody(output.body, context)
@@ -3362,12 +1697,12 @@ var de_UpdateVehicleCommandError = /* @__PURE__ */ __name(async (output, context
3362
1697
  case "AccessDeniedException":
3363
1698
  case "com.amazonaws.iotfleetwise#AccessDeniedException":
3364
1699
  throw await de_AccessDeniedExceptionRes(parsedOutput, context);
3365
- case "ConflictException":
3366
- case "com.amazonaws.iotfleetwise#ConflictException":
3367
- throw await de_ConflictExceptionRes(parsedOutput, context);
3368
1700
  case "InternalServerException":
3369
1701
  case "com.amazonaws.iotfleetwise#InternalServerException":
3370
1702
  throw await de_InternalServerExceptionRes(parsedOutput, context);
1703
+ case "LimitExceededException":
1704
+ case "com.amazonaws.iotfleetwise#LimitExceededException":
1705
+ throw await de_LimitExceededExceptionRes(parsedOutput, context);
3371
1706
  case "ResourceNotFoundException":
3372
1707
  case "com.amazonaws.iotfleetwise#ResourceNotFoundException":
3373
1708
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
@@ -3377,6 +1712,18 @@ var de_UpdateVehicleCommandError = /* @__PURE__ */ __name(async (output, context
3377
1712
  case "ValidationException":
3378
1713
  case "com.amazonaws.iotfleetwise#ValidationException":
3379
1714
  throw await de_ValidationExceptionRes(parsedOutput, context);
1715
+ case "ConflictException":
1716
+ case "com.amazonaws.iotfleetwise#ConflictException":
1717
+ throw await de_ConflictExceptionRes(parsedOutput, context);
1718
+ case "DecoderManifestValidationException":
1719
+ case "com.amazonaws.iotfleetwise#DecoderManifestValidationException":
1720
+ throw await de_DecoderManifestValidationExceptionRes(parsedOutput, context);
1721
+ case "InvalidSignalsException":
1722
+ case "com.amazonaws.iotfleetwise#InvalidSignalsException":
1723
+ throw await de_InvalidSignalsExceptionRes(parsedOutput, context);
1724
+ case "InvalidNodeException":
1725
+ case "com.amazonaws.iotfleetwise#InvalidNodeException":
1726
+ throw await de_InvalidNodeExceptionRes(parsedOutput, context);
3380
1727
  default:
3381
1728
  const parsedBody = parsedOutput.body;
3382
1729
  return throwDefaultError({
@@ -3385,7 +1732,7 @@ var de_UpdateVehicleCommandError = /* @__PURE__ */ __name(async (output, context
3385
1732
  errorCode
3386
1733
  });
3387
1734
  }
3388
- }, "de_UpdateVehicleCommandError");
1735
+ }, "de_CommandError");
3389
1736
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3390
1737
  const body = parsedOutput.body;
3391
1738
  const deserialized = (0, import_smithy_client._json)(body);