@aws-sdk/client-billingconductor 3.504.0 → 3.507.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -1188,7 +1188,7 @@ var se_UpdatePricingRuleCommand = /* @__PURE__ */ __name(async (input, context)
1188
1188
  }, "se_UpdatePricingRuleCommand");
1189
1189
  var de_AssociateAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
1190
1190
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1191
- return de_AssociateAccountsCommandError(output, context);
1191
+ return de_CommandError(output, context);
1192
1192
  }
1193
1193
  const contents = (0, import_smithy_client.map)({
1194
1194
  $metadata: deserializeMetadata(output)
@@ -1200,46 +1200,9 @@ var de_AssociateAccountsCommand = /* @__PURE__ */ __name(async (output, context)
1200
1200
  Object.assign(contents, doc);
1201
1201
  return contents;
1202
1202
  }, "de_AssociateAccountsCommand");
1203
- var de_AssociateAccountsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1204
- const parsedOutput = {
1205
- ...output,
1206
- body: await parseErrorBody(output.body, context)
1207
- };
1208
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1209
- switch (errorCode) {
1210
- case "AccessDeniedException":
1211
- case "com.amazonaws.billingconductor#AccessDeniedException":
1212
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1213
- case "ConflictException":
1214
- case "com.amazonaws.billingconductor#ConflictException":
1215
- throw await de_ConflictExceptionRes(parsedOutput, context);
1216
- case "InternalServerException":
1217
- case "com.amazonaws.billingconductor#InternalServerException":
1218
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1219
- case "ResourceNotFoundException":
1220
- case "com.amazonaws.billingconductor#ResourceNotFoundException":
1221
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1222
- case "ServiceLimitExceededException":
1223
- case "com.amazonaws.billingconductor#ServiceLimitExceededException":
1224
- throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
1225
- case "ThrottlingException":
1226
- case "com.amazonaws.billingconductor#ThrottlingException":
1227
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1228
- case "ValidationException":
1229
- case "com.amazonaws.billingconductor#ValidationException":
1230
- throw await de_ValidationExceptionRes(parsedOutput, context);
1231
- default:
1232
- const parsedBody = parsedOutput.body;
1233
- return throwDefaultError({
1234
- output,
1235
- parsedBody,
1236
- errorCode
1237
- });
1238
- }
1239
- }, "de_AssociateAccountsCommandError");
1240
1203
  var de_AssociatePricingRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
1241
1204
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1242
- return de_AssociatePricingRulesCommandError(output, context);
1205
+ return de_CommandError(output, context);
1243
1206
  }
1244
1207
  const contents = (0, import_smithy_client.map)({
1245
1208
  $metadata: deserializeMetadata(output)
@@ -1251,46 +1214,9 @@ var de_AssociatePricingRulesCommand = /* @__PURE__ */ __name(async (output, cont
1251
1214
  Object.assign(contents, doc);
1252
1215
  return contents;
1253
1216
  }, "de_AssociatePricingRulesCommand");
1254
- var de_AssociatePricingRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1255
- const parsedOutput = {
1256
- ...output,
1257
- body: await parseErrorBody(output.body, context)
1258
- };
1259
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1260
- switch (errorCode) {
1261
- case "AccessDeniedException":
1262
- case "com.amazonaws.billingconductor#AccessDeniedException":
1263
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1264
- case "ConflictException":
1265
- case "com.amazonaws.billingconductor#ConflictException":
1266
- throw await de_ConflictExceptionRes(parsedOutput, context);
1267
- case "InternalServerException":
1268
- case "com.amazonaws.billingconductor#InternalServerException":
1269
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1270
- case "ResourceNotFoundException":
1271
- case "com.amazonaws.billingconductor#ResourceNotFoundException":
1272
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1273
- case "ServiceLimitExceededException":
1274
- case "com.amazonaws.billingconductor#ServiceLimitExceededException":
1275
- throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
1276
- case "ThrottlingException":
1277
- case "com.amazonaws.billingconductor#ThrottlingException":
1278
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1279
- case "ValidationException":
1280
- case "com.amazonaws.billingconductor#ValidationException":
1281
- throw await de_ValidationExceptionRes(parsedOutput, context);
1282
- default:
1283
- const parsedBody = parsedOutput.body;
1284
- return throwDefaultError({
1285
- output,
1286
- parsedBody,
1287
- errorCode
1288
- });
1289
- }
1290
- }, "de_AssociatePricingRulesCommandError");
1291
1217
  var de_BatchAssociateResourcesToCustomLineItemCommand = /* @__PURE__ */ __name(async (output, context) => {
1292
1218
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1293
- return de_BatchAssociateResourcesToCustomLineItemCommandError(output, context);
1219
+ return de_CommandError(output, context);
1294
1220
  }
1295
1221
  const contents = (0, import_smithy_client.map)({
1296
1222
  $metadata: deserializeMetadata(output)
@@ -1303,46 +1229,9 @@ var de_BatchAssociateResourcesToCustomLineItemCommand = /* @__PURE__ */ __name(a
1303
1229
  Object.assign(contents, doc);
1304
1230
  return contents;
1305
1231
  }, "de_BatchAssociateResourcesToCustomLineItemCommand");
1306
- var de_BatchAssociateResourcesToCustomLineItemCommandError = /* @__PURE__ */ __name(async (output, context) => {
1307
- const parsedOutput = {
1308
- ...output,
1309
- body: await parseErrorBody(output.body, context)
1310
- };
1311
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1312
- switch (errorCode) {
1313
- case "AccessDeniedException":
1314
- case "com.amazonaws.billingconductor#AccessDeniedException":
1315
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1316
- case "ConflictException":
1317
- case "com.amazonaws.billingconductor#ConflictException":
1318
- throw await de_ConflictExceptionRes(parsedOutput, context);
1319
- case "InternalServerException":
1320
- case "com.amazonaws.billingconductor#InternalServerException":
1321
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1322
- case "ResourceNotFoundException":
1323
- case "com.amazonaws.billingconductor#ResourceNotFoundException":
1324
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1325
- case "ServiceLimitExceededException":
1326
- case "com.amazonaws.billingconductor#ServiceLimitExceededException":
1327
- throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
1328
- case "ThrottlingException":
1329
- case "com.amazonaws.billingconductor#ThrottlingException":
1330
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1331
- case "ValidationException":
1332
- case "com.amazonaws.billingconductor#ValidationException":
1333
- throw await de_ValidationExceptionRes(parsedOutput, context);
1334
- default:
1335
- const parsedBody = parsedOutput.body;
1336
- return throwDefaultError({
1337
- output,
1338
- parsedBody,
1339
- errorCode
1340
- });
1341
- }
1342
- }, "de_BatchAssociateResourcesToCustomLineItemCommandError");
1343
1232
  var de_BatchDisassociateResourcesFromCustomLineItemCommand = /* @__PURE__ */ __name(async (output, context) => {
1344
1233
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1345
- return de_BatchDisassociateResourcesFromCustomLineItemCommandError(output, context);
1234
+ return de_CommandError(output, context);
1346
1235
  }
1347
1236
  const contents = (0, import_smithy_client.map)({
1348
1237
  $metadata: deserializeMetadata(output)
@@ -1355,43 +1244,9 @@ var de_BatchDisassociateResourcesFromCustomLineItemCommand = /* @__PURE__ */ __n
1355
1244
  Object.assign(contents, doc);
1356
1245
  return contents;
1357
1246
  }, "de_BatchDisassociateResourcesFromCustomLineItemCommand");
1358
- var de_BatchDisassociateResourcesFromCustomLineItemCommandError = /* @__PURE__ */ __name(async (output, context) => {
1359
- const parsedOutput = {
1360
- ...output,
1361
- body: await parseErrorBody(output.body, context)
1362
- };
1363
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1364
- switch (errorCode) {
1365
- case "AccessDeniedException":
1366
- case "com.amazonaws.billingconductor#AccessDeniedException":
1367
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1368
- case "ConflictException":
1369
- case "com.amazonaws.billingconductor#ConflictException":
1370
- throw await de_ConflictExceptionRes(parsedOutput, context);
1371
- case "InternalServerException":
1372
- case "com.amazonaws.billingconductor#InternalServerException":
1373
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1374
- case "ResourceNotFoundException":
1375
- case "com.amazonaws.billingconductor#ResourceNotFoundException":
1376
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1377
- case "ThrottlingException":
1378
- case "com.amazonaws.billingconductor#ThrottlingException":
1379
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1380
- case "ValidationException":
1381
- case "com.amazonaws.billingconductor#ValidationException":
1382
- throw await de_ValidationExceptionRes(parsedOutput, context);
1383
- default:
1384
- const parsedBody = parsedOutput.body;
1385
- return throwDefaultError({
1386
- output,
1387
- parsedBody,
1388
- errorCode
1389
- });
1390
- }
1391
- }, "de_BatchDisassociateResourcesFromCustomLineItemCommandError");
1392
1247
  var de_CreateBillingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1393
1248
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1394
- return de_CreateBillingGroupCommandError(output, context);
1249
+ return de_CommandError(output, context);
1395
1250
  }
1396
1251
  const contents = (0, import_smithy_client.map)({
1397
1252
  $metadata: deserializeMetadata(output)
@@ -1403,43 +1258,9 @@ var de_CreateBillingGroupCommand = /* @__PURE__ */ __name(async (output, context
1403
1258
  Object.assign(contents, doc);
1404
1259
  return contents;
1405
1260
  }, "de_CreateBillingGroupCommand");
1406
- var de_CreateBillingGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1407
- const parsedOutput = {
1408
- ...output,
1409
- body: await parseErrorBody(output.body, context)
1410
- };
1411
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1412
- switch (errorCode) {
1413
- case "AccessDeniedException":
1414
- case "com.amazonaws.billingconductor#AccessDeniedException":
1415
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1416
- case "ConflictException":
1417
- case "com.amazonaws.billingconductor#ConflictException":
1418
- throw await de_ConflictExceptionRes(parsedOutput, context);
1419
- case "InternalServerException":
1420
- case "com.amazonaws.billingconductor#InternalServerException":
1421
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1422
- case "ServiceLimitExceededException":
1423
- case "com.amazonaws.billingconductor#ServiceLimitExceededException":
1424
- throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
1425
- case "ThrottlingException":
1426
- case "com.amazonaws.billingconductor#ThrottlingException":
1427
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1428
- case "ValidationException":
1429
- case "com.amazonaws.billingconductor#ValidationException":
1430
- throw await de_ValidationExceptionRes(parsedOutput, context);
1431
- default:
1432
- const parsedBody = parsedOutput.body;
1433
- return throwDefaultError({
1434
- output,
1435
- parsedBody,
1436
- errorCode
1437
- });
1438
- }
1439
- }, "de_CreateBillingGroupCommandError");
1440
1261
  var de_CreateCustomLineItemCommand = /* @__PURE__ */ __name(async (output, context) => {
1441
1262
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1442
- return de_CreateCustomLineItemCommandError(output, context);
1263
+ return de_CommandError(output, context);
1443
1264
  }
1444
1265
  const contents = (0, import_smithy_client.map)({
1445
1266
  $metadata: deserializeMetadata(output)
@@ -1451,43 +1272,9 @@ var de_CreateCustomLineItemCommand = /* @__PURE__ */ __name(async (output, conte
1451
1272
  Object.assign(contents, doc);
1452
1273
  return contents;
1453
1274
  }, "de_CreateCustomLineItemCommand");
1454
- var de_CreateCustomLineItemCommandError = /* @__PURE__ */ __name(async (output, context) => {
1455
- const parsedOutput = {
1456
- ...output,
1457
- body: await parseErrorBody(output.body, context)
1458
- };
1459
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1460
- switch (errorCode) {
1461
- case "AccessDeniedException":
1462
- case "com.amazonaws.billingconductor#AccessDeniedException":
1463
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1464
- case "ConflictException":
1465
- case "com.amazonaws.billingconductor#ConflictException":
1466
- throw await de_ConflictExceptionRes(parsedOutput, context);
1467
- case "InternalServerException":
1468
- case "com.amazonaws.billingconductor#InternalServerException":
1469
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1470
- case "ServiceLimitExceededException":
1471
- case "com.amazonaws.billingconductor#ServiceLimitExceededException":
1472
- throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
1473
- case "ThrottlingException":
1474
- case "com.amazonaws.billingconductor#ThrottlingException":
1475
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1476
- case "ValidationException":
1477
- case "com.amazonaws.billingconductor#ValidationException":
1478
- throw await de_ValidationExceptionRes(parsedOutput, context);
1479
- default:
1480
- const parsedBody = parsedOutput.body;
1481
- return throwDefaultError({
1482
- output,
1483
- parsedBody,
1484
- errorCode
1485
- });
1486
- }
1487
- }, "de_CreateCustomLineItemCommandError");
1488
1275
  var de_CreatePricingPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
1489
1276
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1490
- return de_CreatePricingPlanCommandError(output, context);
1277
+ return de_CommandError(output, context);
1491
1278
  }
1492
1279
  const contents = (0, import_smithy_client.map)({
1493
1280
  $metadata: deserializeMetadata(output)
@@ -1499,46 +1286,9 @@ var de_CreatePricingPlanCommand = /* @__PURE__ */ __name(async (output, context)
1499
1286
  Object.assign(contents, doc);
1500
1287
  return contents;
1501
1288
  }, "de_CreatePricingPlanCommand");
1502
- var de_CreatePricingPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
1503
- const parsedOutput = {
1504
- ...output,
1505
- body: await parseErrorBody(output.body, context)
1506
- };
1507
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1508
- switch (errorCode) {
1509
- case "AccessDeniedException":
1510
- case "com.amazonaws.billingconductor#AccessDeniedException":
1511
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1512
- case "ConflictException":
1513
- case "com.amazonaws.billingconductor#ConflictException":
1514
- throw await de_ConflictExceptionRes(parsedOutput, context);
1515
- case "InternalServerException":
1516
- case "com.amazonaws.billingconductor#InternalServerException":
1517
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1518
- case "ResourceNotFoundException":
1519
- case "com.amazonaws.billingconductor#ResourceNotFoundException":
1520
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1521
- case "ServiceLimitExceededException":
1522
- case "com.amazonaws.billingconductor#ServiceLimitExceededException":
1523
- throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
1524
- case "ThrottlingException":
1525
- case "com.amazonaws.billingconductor#ThrottlingException":
1526
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1527
- case "ValidationException":
1528
- case "com.amazonaws.billingconductor#ValidationException":
1529
- throw await de_ValidationExceptionRes(parsedOutput, context);
1530
- default:
1531
- const parsedBody = parsedOutput.body;
1532
- return throwDefaultError({
1533
- output,
1534
- parsedBody,
1535
- errorCode
1536
- });
1537
- }
1538
- }, "de_CreatePricingPlanCommandError");
1539
1289
  var de_CreatePricingRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
1540
1290
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1541
- return de_CreatePricingRuleCommandError(output, context);
1291
+ return de_CommandError(output, context);
1542
1292
  }
1543
1293
  const contents = (0, import_smithy_client.map)({
1544
1294
  $metadata: deserializeMetadata(output)
@@ -1550,43 +1300,9 @@ var de_CreatePricingRuleCommand = /* @__PURE__ */ __name(async (output, context)
1550
1300
  Object.assign(contents, doc);
1551
1301
  return contents;
1552
1302
  }, "de_CreatePricingRuleCommand");
1553
- var de_CreatePricingRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1554
- const parsedOutput = {
1555
- ...output,
1556
- body: await parseErrorBody(output.body, context)
1557
- };
1558
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1559
- switch (errorCode) {
1560
- case "AccessDeniedException":
1561
- case "com.amazonaws.billingconductor#AccessDeniedException":
1562
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1563
- case "ConflictException":
1564
- case "com.amazonaws.billingconductor#ConflictException":
1565
- throw await de_ConflictExceptionRes(parsedOutput, context);
1566
- case "InternalServerException":
1567
- case "com.amazonaws.billingconductor#InternalServerException":
1568
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1569
- case "ServiceLimitExceededException":
1570
- case "com.amazonaws.billingconductor#ServiceLimitExceededException":
1571
- throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
1572
- case "ThrottlingException":
1573
- case "com.amazonaws.billingconductor#ThrottlingException":
1574
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1575
- case "ValidationException":
1576
- case "com.amazonaws.billingconductor#ValidationException":
1577
- throw await de_ValidationExceptionRes(parsedOutput, context);
1578
- default:
1579
- const parsedBody = parsedOutput.body;
1580
- return throwDefaultError({
1581
- output,
1582
- parsedBody,
1583
- errorCode
1584
- });
1585
- }
1586
- }, "de_CreatePricingRuleCommandError");
1587
1303
  var de_DeleteBillingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
1588
1304
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1589
- return de_DeleteBillingGroupCommandError(output, context);
1305
+ return de_CommandError(output, context);
1590
1306
  }
1591
1307
  const contents = (0, import_smithy_client.map)({
1592
1308
  $metadata: deserializeMetadata(output)
@@ -1598,37 +1314,9 @@ var de_DeleteBillingGroupCommand = /* @__PURE__ */ __name(async (output, context
1598
1314
  Object.assign(contents, doc);
1599
1315
  return contents;
1600
1316
  }, "de_DeleteBillingGroupCommand");
1601
- var de_DeleteBillingGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
1602
- const parsedOutput = {
1603
- ...output,
1604
- body: await parseErrorBody(output.body, context)
1605
- };
1606
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1607
- switch (errorCode) {
1608
- case "AccessDeniedException":
1609
- case "com.amazonaws.billingconductor#AccessDeniedException":
1610
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1611
- case "InternalServerException":
1612
- case "com.amazonaws.billingconductor#InternalServerException":
1613
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1614
- case "ThrottlingException":
1615
- case "com.amazonaws.billingconductor#ThrottlingException":
1616
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1617
- case "ValidationException":
1618
- case "com.amazonaws.billingconductor#ValidationException":
1619
- throw await de_ValidationExceptionRes(parsedOutput, context);
1620
- default:
1621
- const parsedBody = parsedOutput.body;
1622
- return throwDefaultError({
1623
- output,
1624
- parsedBody,
1625
- errorCode
1626
- });
1627
- }
1628
- }, "de_DeleteBillingGroupCommandError");
1629
1317
  var de_DeleteCustomLineItemCommand = /* @__PURE__ */ __name(async (output, context) => {
1630
1318
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1631
- return de_DeleteCustomLineItemCommandError(output, context);
1319
+ return de_CommandError(output, context);
1632
1320
  }
1633
1321
  const contents = (0, import_smithy_client.map)({
1634
1322
  $metadata: deserializeMetadata(output)
@@ -1640,40 +1328,9 @@ var de_DeleteCustomLineItemCommand = /* @__PURE__ */ __name(async (output, conte
1640
1328
  Object.assign(contents, doc);
1641
1329
  return contents;
1642
1330
  }, "de_DeleteCustomLineItemCommand");
1643
- var de_DeleteCustomLineItemCommandError = /* @__PURE__ */ __name(async (output, context) => {
1644
- const parsedOutput = {
1645
- ...output,
1646
- body: await parseErrorBody(output.body, context)
1647
- };
1648
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1649
- switch (errorCode) {
1650
- case "AccessDeniedException":
1651
- case "com.amazonaws.billingconductor#AccessDeniedException":
1652
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1653
- case "ConflictException":
1654
- case "com.amazonaws.billingconductor#ConflictException":
1655
- throw await de_ConflictExceptionRes(parsedOutput, context);
1656
- case "InternalServerException":
1657
- case "com.amazonaws.billingconductor#InternalServerException":
1658
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1659
- case "ThrottlingException":
1660
- case "com.amazonaws.billingconductor#ThrottlingException":
1661
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1662
- case "ValidationException":
1663
- case "com.amazonaws.billingconductor#ValidationException":
1664
- throw await de_ValidationExceptionRes(parsedOutput, context);
1665
- default:
1666
- const parsedBody = parsedOutput.body;
1667
- return throwDefaultError({
1668
- output,
1669
- parsedBody,
1670
- errorCode
1671
- });
1672
- }
1673
- }, "de_DeleteCustomLineItemCommandError");
1674
1331
  var de_DeletePricingPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
1675
1332
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1676
- return de_DeletePricingPlanCommandError(output, context);
1333
+ return de_CommandError(output, context);
1677
1334
  }
1678
1335
  const contents = (0, import_smithy_client.map)({
1679
1336
  $metadata: deserializeMetadata(output)
@@ -1685,40 +1342,9 @@ var de_DeletePricingPlanCommand = /* @__PURE__ */ __name(async (output, context)
1685
1342
  Object.assign(contents, doc);
1686
1343
  return contents;
1687
1344
  }, "de_DeletePricingPlanCommand");
1688
- var de_DeletePricingPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
1689
- const parsedOutput = {
1690
- ...output,
1691
- body: await parseErrorBody(output.body, context)
1692
- };
1693
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1694
- switch (errorCode) {
1695
- case "AccessDeniedException":
1696
- case "com.amazonaws.billingconductor#AccessDeniedException":
1697
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1698
- case "ConflictException":
1699
- case "com.amazonaws.billingconductor#ConflictException":
1700
- throw await de_ConflictExceptionRes(parsedOutput, context);
1701
- case "InternalServerException":
1702
- case "com.amazonaws.billingconductor#InternalServerException":
1703
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1704
- case "ThrottlingException":
1705
- case "com.amazonaws.billingconductor#ThrottlingException":
1706
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1707
- case "ValidationException":
1708
- case "com.amazonaws.billingconductor#ValidationException":
1709
- throw await de_ValidationExceptionRes(parsedOutput, context);
1710
- default:
1711
- const parsedBody = parsedOutput.body;
1712
- return throwDefaultError({
1713
- output,
1714
- parsedBody,
1715
- errorCode
1716
- });
1717
- }
1718
- }, "de_DeletePricingPlanCommandError");
1719
1345
  var de_DeletePricingRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
1720
1346
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1721
- return de_DeletePricingRuleCommandError(output, context);
1347
+ return de_CommandError(output, context);
1722
1348
  }
1723
1349
  const contents = (0, import_smithy_client.map)({
1724
1350
  $metadata: deserializeMetadata(output)
@@ -1730,40 +1356,9 @@ var de_DeletePricingRuleCommand = /* @__PURE__ */ __name(async (output, context)
1730
1356
  Object.assign(contents, doc);
1731
1357
  return contents;
1732
1358
  }, "de_DeletePricingRuleCommand");
1733
- var de_DeletePricingRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1734
- const parsedOutput = {
1735
- ...output,
1736
- body: await parseErrorBody(output.body, context)
1737
- };
1738
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1739
- switch (errorCode) {
1740
- case "AccessDeniedException":
1741
- case "com.amazonaws.billingconductor#AccessDeniedException":
1742
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1743
- case "ConflictException":
1744
- case "com.amazonaws.billingconductor#ConflictException":
1745
- throw await de_ConflictExceptionRes(parsedOutput, context);
1746
- case "InternalServerException":
1747
- case "com.amazonaws.billingconductor#InternalServerException":
1748
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1749
- case "ThrottlingException":
1750
- case "com.amazonaws.billingconductor#ThrottlingException":
1751
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1752
- case "ValidationException":
1753
- case "com.amazonaws.billingconductor#ValidationException":
1754
- throw await de_ValidationExceptionRes(parsedOutput, context);
1755
- default:
1756
- const parsedBody = parsedOutput.body;
1757
- return throwDefaultError({
1758
- output,
1759
- parsedBody,
1760
- errorCode
1761
- });
1762
- }
1763
- }, "de_DeletePricingRuleCommandError");
1764
1359
  var de_DisassociateAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
1765
1360
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1766
- return de_DisassociateAccountsCommandError(output, context);
1361
+ return de_CommandError(output, context);
1767
1362
  }
1768
1363
  const contents = (0, import_smithy_client.map)({
1769
1364
  $metadata: deserializeMetadata(output)
@@ -1775,137 +1370,38 @@ var de_DisassociateAccountsCommand = /* @__PURE__ */ __name(async (output, conte
1775
1370
  Object.assign(contents, doc);
1776
1371
  return contents;
1777
1372
  }, "de_DisassociateAccountsCommand");
1778
- var de_DisassociateAccountsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1779
- const parsedOutput = {
1780
- ...output,
1781
- body: await parseErrorBody(output.body, context)
1782
- };
1783
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1784
- switch (errorCode) {
1785
- case "AccessDeniedException":
1786
- case "com.amazonaws.billingconductor#AccessDeniedException":
1787
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1788
- case "ConflictException":
1789
- case "com.amazonaws.billingconductor#ConflictException":
1790
- throw await de_ConflictExceptionRes(parsedOutput, context);
1791
- case "InternalServerException":
1792
- case "com.amazonaws.billingconductor#InternalServerException":
1793
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1794
- case "ResourceNotFoundException":
1795
- case "com.amazonaws.billingconductor#ResourceNotFoundException":
1796
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1797
- case "ThrottlingException":
1798
- case "com.amazonaws.billingconductor#ThrottlingException":
1799
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1800
- case "ValidationException":
1801
- case "com.amazonaws.billingconductor#ValidationException":
1802
- throw await de_ValidationExceptionRes(parsedOutput, context);
1803
- default:
1804
- const parsedBody = parsedOutput.body;
1805
- return throwDefaultError({
1806
- output,
1807
- parsedBody,
1808
- errorCode
1809
- });
1810
- }
1811
- }, "de_DisassociateAccountsCommandError");
1812
1373
  var de_DisassociatePricingRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
1813
1374
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1814
- return de_DisassociatePricingRulesCommandError(output, context);
1375
+ return de_CommandError(output, context);
1815
1376
  }
1816
1377
  const contents = (0, import_smithy_client.map)({
1817
1378
  $metadata: deserializeMetadata(output)
1818
1379
  });
1819
1380
  const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1820
1381
  const doc = (0, import_smithy_client.take)(data, {
1821
- Arn: import_smithy_client.expectString
1822
- });
1823
- Object.assign(contents, doc);
1824
- return contents;
1825
- }, "de_DisassociatePricingRulesCommand");
1826
- var de_DisassociatePricingRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
1827
- const parsedOutput = {
1828
- ...output,
1829
- body: await parseErrorBody(output.body, context)
1830
- };
1831
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1832
- switch (errorCode) {
1833
- case "AccessDeniedException":
1834
- case "com.amazonaws.billingconductor#AccessDeniedException":
1835
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1836
- case "ConflictException":
1837
- case "com.amazonaws.billingconductor#ConflictException":
1838
- throw await de_ConflictExceptionRes(parsedOutput, context);
1839
- case "InternalServerException":
1840
- case "com.amazonaws.billingconductor#InternalServerException":
1841
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1842
- case "ResourceNotFoundException":
1843
- case "com.amazonaws.billingconductor#ResourceNotFoundException":
1844
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1845
- case "ThrottlingException":
1846
- case "com.amazonaws.billingconductor#ThrottlingException":
1847
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1848
- case "ValidationException":
1849
- case "com.amazonaws.billingconductor#ValidationException":
1850
- throw await de_ValidationExceptionRes(parsedOutput, context);
1851
- default:
1852
- const parsedBody = parsedOutput.body;
1853
- return throwDefaultError({
1854
- output,
1855
- parsedBody,
1856
- errorCode
1857
- });
1858
- }
1859
- }, "de_DisassociatePricingRulesCommandError");
1860
- var de_GetBillingGroupCostReportCommand = /* @__PURE__ */ __name(async (output, context) => {
1861
- if (output.statusCode !== 200 && output.statusCode >= 300) {
1862
- return de_GetBillingGroupCostReportCommandError(output, context);
1863
- }
1864
- const contents = (0, import_smithy_client.map)({
1865
- $metadata: deserializeMetadata(output)
1866
- });
1867
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1868
- const doc = (0, import_smithy_client.take)(data, {
1869
- BillingGroupCostReportResults: import_smithy_client._json,
1870
- NextToken: import_smithy_client.expectString
1871
- });
1872
- Object.assign(contents, doc);
1873
- return contents;
1874
- }, "de_GetBillingGroupCostReportCommand");
1875
- var de_GetBillingGroupCostReportCommandError = /* @__PURE__ */ __name(async (output, context) => {
1876
- const parsedOutput = {
1877
- ...output,
1878
- body: await parseErrorBody(output.body, context)
1879
- };
1880
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1881
- switch (errorCode) {
1882
- case "AccessDeniedException":
1883
- case "com.amazonaws.billingconductor#AccessDeniedException":
1884
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1885
- case "InternalServerException":
1886
- case "com.amazonaws.billingconductor#InternalServerException":
1887
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1888
- case "ResourceNotFoundException":
1889
- case "com.amazonaws.billingconductor#ResourceNotFoundException":
1890
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1891
- case "ThrottlingException":
1892
- case "com.amazonaws.billingconductor#ThrottlingException":
1893
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1894
- case "ValidationException":
1895
- case "com.amazonaws.billingconductor#ValidationException":
1896
- throw await de_ValidationExceptionRes(parsedOutput, context);
1897
- default:
1898
- const parsedBody = parsedOutput.body;
1899
- return throwDefaultError({
1900
- output,
1901
- parsedBody,
1902
- errorCode
1903
- });
1382
+ Arn: import_smithy_client.expectString
1383
+ });
1384
+ Object.assign(contents, doc);
1385
+ return contents;
1386
+ }, "de_DisassociatePricingRulesCommand");
1387
+ var de_GetBillingGroupCostReportCommand = /* @__PURE__ */ __name(async (output, context) => {
1388
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1389
+ return de_CommandError(output, context);
1904
1390
  }
1905
- }, "de_GetBillingGroupCostReportCommandError");
1391
+ const contents = (0, import_smithy_client.map)({
1392
+ $metadata: deserializeMetadata(output)
1393
+ });
1394
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1395
+ const doc = (0, import_smithy_client.take)(data, {
1396
+ BillingGroupCostReportResults: import_smithy_client._json,
1397
+ NextToken: import_smithy_client.expectString
1398
+ });
1399
+ Object.assign(contents, doc);
1400
+ return contents;
1401
+ }, "de_GetBillingGroupCostReportCommand");
1906
1402
  var de_ListAccountAssociationsCommand = /* @__PURE__ */ __name(async (output, context) => {
1907
1403
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1908
- return de_ListAccountAssociationsCommandError(output, context);
1404
+ return de_CommandError(output, context);
1909
1405
  }
1910
1406
  const contents = (0, import_smithy_client.map)({
1911
1407
  $metadata: deserializeMetadata(output)
@@ -1918,40 +1414,9 @@ var de_ListAccountAssociationsCommand = /* @__PURE__ */ __name(async (output, co
1918
1414
  Object.assign(contents, doc);
1919
1415
  return contents;
1920
1416
  }, "de_ListAccountAssociationsCommand");
1921
- var de_ListAccountAssociationsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1922
- const parsedOutput = {
1923
- ...output,
1924
- body: await parseErrorBody(output.body, context)
1925
- };
1926
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1927
- switch (errorCode) {
1928
- case "AccessDeniedException":
1929
- case "com.amazonaws.billingconductor#AccessDeniedException":
1930
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1931
- case "InternalServerException":
1932
- case "com.amazonaws.billingconductor#InternalServerException":
1933
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1934
- case "ResourceNotFoundException":
1935
- case "com.amazonaws.billingconductor#ResourceNotFoundException":
1936
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1937
- case "ThrottlingException":
1938
- case "com.amazonaws.billingconductor#ThrottlingException":
1939
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1940
- case "ValidationException":
1941
- case "com.amazonaws.billingconductor#ValidationException":
1942
- throw await de_ValidationExceptionRes(parsedOutput, context);
1943
- default:
1944
- const parsedBody = parsedOutput.body;
1945
- return throwDefaultError({
1946
- output,
1947
- parsedBody,
1948
- errorCode
1949
- });
1950
- }
1951
- }, "de_ListAccountAssociationsCommandError");
1952
1417
  var de_ListBillingGroupCostReportsCommand = /* @__PURE__ */ __name(async (output, context) => {
1953
1418
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1954
- return de_ListBillingGroupCostReportsCommandError(output, context);
1419
+ return de_CommandError(output, context);
1955
1420
  }
1956
1421
  const contents = (0, import_smithy_client.map)({
1957
1422
  $metadata: deserializeMetadata(output)
@@ -1964,40 +1429,9 @@ var de_ListBillingGroupCostReportsCommand = /* @__PURE__ */ __name(async (output
1964
1429
  Object.assign(contents, doc);
1965
1430
  return contents;
1966
1431
  }, "de_ListBillingGroupCostReportsCommand");
1967
- var de_ListBillingGroupCostReportsCommandError = /* @__PURE__ */ __name(async (output, context) => {
1968
- const parsedOutput = {
1969
- ...output,
1970
- body: await parseErrorBody(output.body, context)
1971
- };
1972
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1973
- switch (errorCode) {
1974
- case "AccessDeniedException":
1975
- case "com.amazonaws.billingconductor#AccessDeniedException":
1976
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
1977
- case "InternalServerException":
1978
- case "com.amazonaws.billingconductor#InternalServerException":
1979
- throw await de_InternalServerExceptionRes(parsedOutput, context);
1980
- case "ResourceNotFoundException":
1981
- case "com.amazonaws.billingconductor#ResourceNotFoundException":
1982
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1983
- case "ThrottlingException":
1984
- case "com.amazonaws.billingconductor#ThrottlingException":
1985
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
1986
- case "ValidationException":
1987
- case "com.amazonaws.billingconductor#ValidationException":
1988
- throw await de_ValidationExceptionRes(parsedOutput, context);
1989
- default:
1990
- const parsedBody = parsedOutput.body;
1991
- return throwDefaultError({
1992
- output,
1993
- parsedBody,
1994
- errorCode
1995
- });
1996
- }
1997
- }, "de_ListBillingGroupCostReportsCommandError");
1998
1432
  var de_ListBillingGroupsCommand = /* @__PURE__ */ __name(async (output, context) => {
1999
1433
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2000
- return de_ListBillingGroupsCommandError(output, context);
1434
+ return de_CommandError(output, context);
2001
1435
  }
2002
1436
  const contents = (0, import_smithy_client.map)({
2003
1437
  $metadata: deserializeMetadata(output)
@@ -2010,40 +1444,9 @@ var de_ListBillingGroupsCommand = /* @__PURE__ */ __name(async (output, context)
2010
1444
  Object.assign(contents, doc);
2011
1445
  return contents;
2012
1446
  }, "de_ListBillingGroupsCommand");
2013
- var de_ListBillingGroupsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2014
- const parsedOutput = {
2015
- ...output,
2016
- body: await parseErrorBody(output.body, context)
2017
- };
2018
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2019
- switch (errorCode) {
2020
- case "AccessDeniedException":
2021
- case "com.amazonaws.billingconductor#AccessDeniedException":
2022
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2023
- case "InternalServerException":
2024
- case "com.amazonaws.billingconductor#InternalServerException":
2025
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2026
- case "ResourceNotFoundException":
2027
- case "com.amazonaws.billingconductor#ResourceNotFoundException":
2028
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2029
- case "ThrottlingException":
2030
- case "com.amazonaws.billingconductor#ThrottlingException":
2031
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2032
- case "ValidationException":
2033
- case "com.amazonaws.billingconductor#ValidationException":
2034
- throw await de_ValidationExceptionRes(parsedOutput, context);
2035
- default:
2036
- const parsedBody = parsedOutput.body;
2037
- return throwDefaultError({
2038
- output,
2039
- parsedBody,
2040
- errorCode
2041
- });
2042
- }
2043
- }, "de_ListBillingGroupsCommandError");
2044
1447
  var de_ListCustomLineItemsCommand = /* @__PURE__ */ __name(async (output, context) => {
2045
1448
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2046
- return de_ListCustomLineItemsCommandError(output, context);
1449
+ return de_CommandError(output, context);
2047
1450
  }
2048
1451
  const contents = (0, import_smithy_client.map)({
2049
1452
  $metadata: deserializeMetadata(output)
@@ -2056,40 +1459,9 @@ var de_ListCustomLineItemsCommand = /* @__PURE__ */ __name(async (output, contex
2056
1459
  Object.assign(contents, doc);
2057
1460
  return contents;
2058
1461
  }, "de_ListCustomLineItemsCommand");
2059
- var de_ListCustomLineItemsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2060
- const parsedOutput = {
2061
- ...output,
2062
- body: await parseErrorBody(output.body, context)
2063
- };
2064
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2065
- switch (errorCode) {
2066
- case "AccessDeniedException":
2067
- case "com.amazonaws.billingconductor#AccessDeniedException":
2068
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2069
- case "InternalServerException":
2070
- case "com.amazonaws.billingconductor#InternalServerException":
2071
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2072
- case "ResourceNotFoundException":
2073
- case "com.amazonaws.billingconductor#ResourceNotFoundException":
2074
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2075
- case "ThrottlingException":
2076
- case "com.amazonaws.billingconductor#ThrottlingException":
2077
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2078
- case "ValidationException":
2079
- case "com.amazonaws.billingconductor#ValidationException":
2080
- throw await de_ValidationExceptionRes(parsedOutput, context);
2081
- default:
2082
- const parsedBody = parsedOutput.body;
2083
- return throwDefaultError({
2084
- output,
2085
- parsedBody,
2086
- errorCode
2087
- });
2088
- }
2089
- }, "de_ListCustomLineItemsCommandError");
2090
1462
  var de_ListCustomLineItemVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
2091
1463
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2092
- return de_ListCustomLineItemVersionsCommandError(output, context);
1464
+ return de_CommandError(output, context);
2093
1465
  }
2094
1466
  const contents = (0, import_smithy_client.map)({
2095
1467
  $metadata: deserializeMetadata(output)
@@ -2102,37 +1474,9 @@ var de_ListCustomLineItemVersionsCommand = /* @__PURE__ */ __name(async (output,
2102
1474
  Object.assign(contents, doc);
2103
1475
  return contents;
2104
1476
  }, "de_ListCustomLineItemVersionsCommand");
2105
- var de_ListCustomLineItemVersionsCommandError = /* @__PURE__ */ __name(async (output, context) => {
2106
- const parsedOutput = {
2107
- ...output,
2108
- body: await parseErrorBody(output.body, context)
2109
- };
2110
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2111
- switch (errorCode) {
2112
- case "AccessDeniedException":
2113
- case "com.amazonaws.billingconductor#AccessDeniedException":
2114
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2115
- case "InternalServerException":
2116
- case "com.amazonaws.billingconductor#InternalServerException":
2117
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2118
- case "ThrottlingException":
2119
- case "com.amazonaws.billingconductor#ThrottlingException":
2120
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2121
- case "ValidationException":
2122
- case "com.amazonaws.billingconductor#ValidationException":
2123
- throw await de_ValidationExceptionRes(parsedOutput, context);
2124
- default:
2125
- const parsedBody = parsedOutput.body;
2126
- return throwDefaultError({
2127
- output,
2128
- parsedBody,
2129
- errorCode
2130
- });
2131
- }
2132
- }, "de_ListCustomLineItemVersionsCommandError");
2133
1477
  var de_ListPricingPlansCommand = /* @__PURE__ */ __name(async (output, context) => {
2134
1478
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2135
- return de_ListPricingPlansCommandError(output, context);
1479
+ return de_CommandError(output, context);
2136
1480
  }
2137
1481
  const contents = (0, import_smithy_client.map)({
2138
1482
  $metadata: deserializeMetadata(output)
@@ -2146,37 +1490,9 @@ var de_ListPricingPlansCommand = /* @__PURE__ */ __name(async (output, context)
2146
1490
  Object.assign(contents, doc);
2147
1491
  return contents;
2148
1492
  }, "de_ListPricingPlansCommand");
2149
- var de_ListPricingPlansCommandError = /* @__PURE__ */ __name(async (output, context) => {
2150
- const parsedOutput = {
2151
- ...output,
2152
- body: await parseErrorBody(output.body, context)
2153
- };
2154
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2155
- switch (errorCode) {
2156
- case "AccessDeniedException":
2157
- case "com.amazonaws.billingconductor#AccessDeniedException":
2158
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2159
- case "InternalServerException":
2160
- case "com.amazonaws.billingconductor#InternalServerException":
2161
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2162
- case "ThrottlingException":
2163
- case "com.amazonaws.billingconductor#ThrottlingException":
2164
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2165
- case "ValidationException":
2166
- case "com.amazonaws.billingconductor#ValidationException":
2167
- throw await de_ValidationExceptionRes(parsedOutput, context);
2168
- default:
2169
- const parsedBody = parsedOutput.body;
2170
- return throwDefaultError({
2171
- output,
2172
- parsedBody,
2173
- errorCode
2174
- });
2175
- }
2176
- }, "de_ListPricingPlansCommandError");
2177
1493
  var de_ListPricingPlansAssociatedWithPricingRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
2178
1494
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2179
- return de_ListPricingPlansAssociatedWithPricingRuleCommandError(output, context);
1495
+ return de_CommandError(output, context);
2180
1496
  }
2181
1497
  const contents = (0, import_smithy_client.map)({
2182
1498
  $metadata: deserializeMetadata(output)
@@ -2190,85 +1506,26 @@ var de_ListPricingPlansAssociatedWithPricingRuleCommand = /* @__PURE__ */ __name
2190
1506
  });
2191
1507
  Object.assign(contents, doc);
2192
1508
  return contents;
2193
- }, "de_ListPricingPlansAssociatedWithPricingRuleCommand");
2194
- var de_ListPricingPlansAssociatedWithPricingRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
2195
- const parsedOutput = {
2196
- ...output,
2197
- body: await parseErrorBody(output.body, context)
2198
- };
2199
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2200
- switch (errorCode) {
2201
- case "AccessDeniedException":
2202
- case "com.amazonaws.billingconductor#AccessDeniedException":
2203
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2204
- case "InternalServerException":
2205
- case "com.amazonaws.billingconductor#InternalServerException":
2206
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2207
- case "ResourceNotFoundException":
2208
- case "com.amazonaws.billingconductor#ResourceNotFoundException":
2209
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2210
- case "ThrottlingException":
2211
- case "com.amazonaws.billingconductor#ThrottlingException":
2212
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2213
- case "ValidationException":
2214
- case "com.amazonaws.billingconductor#ValidationException":
2215
- throw await de_ValidationExceptionRes(parsedOutput, context);
2216
- default:
2217
- const parsedBody = parsedOutput.body;
2218
- return throwDefaultError({
2219
- output,
2220
- parsedBody,
2221
- errorCode
2222
- });
2223
- }
2224
- }, "de_ListPricingPlansAssociatedWithPricingRuleCommandError");
2225
- var de_ListPricingRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
2226
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2227
- return de_ListPricingRulesCommandError(output, context);
2228
- }
2229
- const contents = (0, import_smithy_client.map)({
2230
- $metadata: deserializeMetadata(output)
2231
- });
2232
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2233
- const doc = (0, import_smithy_client.take)(data, {
2234
- BillingPeriod: import_smithy_client.expectString,
2235
- NextToken: import_smithy_client.expectString,
2236
- PricingRules: (_) => de_PricingRuleList(_, context)
2237
- });
2238
- Object.assign(contents, doc);
2239
- return contents;
2240
- }, "de_ListPricingRulesCommand");
2241
- var de_ListPricingRulesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2242
- const parsedOutput = {
2243
- ...output,
2244
- body: await parseErrorBody(output.body, context)
2245
- };
2246
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2247
- switch (errorCode) {
2248
- case "AccessDeniedException":
2249
- case "com.amazonaws.billingconductor#AccessDeniedException":
2250
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2251
- case "InternalServerException":
2252
- case "com.amazonaws.billingconductor#InternalServerException":
2253
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2254
- case "ThrottlingException":
2255
- case "com.amazonaws.billingconductor#ThrottlingException":
2256
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2257
- case "ValidationException":
2258
- case "com.amazonaws.billingconductor#ValidationException":
2259
- throw await de_ValidationExceptionRes(parsedOutput, context);
2260
- default:
2261
- const parsedBody = parsedOutput.body;
2262
- return throwDefaultError({
2263
- output,
2264
- parsedBody,
2265
- errorCode
2266
- });
1509
+ }, "de_ListPricingPlansAssociatedWithPricingRuleCommand");
1510
+ var de_ListPricingRulesCommand = /* @__PURE__ */ __name(async (output, context) => {
1511
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1512
+ return de_CommandError(output, context);
2267
1513
  }
2268
- }, "de_ListPricingRulesCommandError");
1514
+ const contents = (0, import_smithy_client.map)({
1515
+ $metadata: deserializeMetadata(output)
1516
+ });
1517
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1518
+ const doc = (0, import_smithy_client.take)(data, {
1519
+ BillingPeriod: import_smithy_client.expectString,
1520
+ NextToken: import_smithy_client.expectString,
1521
+ PricingRules: (_) => de_PricingRuleList(_, context)
1522
+ });
1523
+ Object.assign(contents, doc);
1524
+ return contents;
1525
+ }, "de_ListPricingRulesCommand");
2269
1526
  var de_ListPricingRulesAssociatedToPricingPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
2270
1527
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2271
- return de_ListPricingRulesAssociatedToPricingPlanCommandError(output, context);
1528
+ return de_CommandError(output, context);
2272
1529
  }
2273
1530
  const contents = (0, import_smithy_client.map)({
2274
1531
  $metadata: deserializeMetadata(output)
@@ -2283,40 +1540,9 @@ var de_ListPricingRulesAssociatedToPricingPlanCommand = /* @__PURE__ */ __name(a
2283
1540
  Object.assign(contents, doc);
2284
1541
  return contents;
2285
1542
  }, "de_ListPricingRulesAssociatedToPricingPlanCommand");
2286
- var de_ListPricingRulesAssociatedToPricingPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
2287
- const parsedOutput = {
2288
- ...output,
2289
- body: await parseErrorBody(output.body, context)
2290
- };
2291
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2292
- switch (errorCode) {
2293
- case "AccessDeniedException":
2294
- case "com.amazonaws.billingconductor#AccessDeniedException":
2295
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2296
- case "InternalServerException":
2297
- case "com.amazonaws.billingconductor#InternalServerException":
2298
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2299
- case "ResourceNotFoundException":
2300
- case "com.amazonaws.billingconductor#ResourceNotFoundException":
2301
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2302
- case "ThrottlingException":
2303
- case "com.amazonaws.billingconductor#ThrottlingException":
2304
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2305
- case "ValidationException":
2306
- case "com.amazonaws.billingconductor#ValidationException":
2307
- throw await de_ValidationExceptionRes(parsedOutput, context);
2308
- default:
2309
- const parsedBody = parsedOutput.body;
2310
- return throwDefaultError({
2311
- output,
2312
- parsedBody,
2313
- errorCode
2314
- });
2315
- }
2316
- }, "de_ListPricingRulesAssociatedToPricingPlanCommandError");
2317
1543
  var de_ListResourcesAssociatedToCustomLineItemCommand = /* @__PURE__ */ __name(async (output, context) => {
2318
1544
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2319
- return de_ListResourcesAssociatedToCustomLineItemCommandError(output, context);
1545
+ return de_CommandError(output, context);
2320
1546
  }
2321
1547
  const contents = (0, import_smithy_client.map)({
2322
1548
  $metadata: deserializeMetadata(output)
@@ -2330,40 +1556,9 @@ var de_ListResourcesAssociatedToCustomLineItemCommand = /* @__PURE__ */ __name(a
2330
1556
  Object.assign(contents, doc);
2331
1557
  return contents;
2332
1558
  }, "de_ListResourcesAssociatedToCustomLineItemCommand");
2333
- var de_ListResourcesAssociatedToCustomLineItemCommandError = /* @__PURE__ */ __name(async (output, context) => {
2334
- const parsedOutput = {
2335
- ...output,
2336
- body: await parseErrorBody(output.body, context)
2337
- };
2338
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2339
- switch (errorCode) {
2340
- case "AccessDeniedException":
2341
- case "com.amazonaws.billingconductor#AccessDeniedException":
2342
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2343
- case "InternalServerException":
2344
- case "com.amazonaws.billingconductor#InternalServerException":
2345
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2346
- case "ResourceNotFoundException":
2347
- case "com.amazonaws.billingconductor#ResourceNotFoundException":
2348
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2349
- case "ThrottlingException":
2350
- case "com.amazonaws.billingconductor#ThrottlingException":
2351
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2352
- case "ValidationException":
2353
- case "com.amazonaws.billingconductor#ValidationException":
2354
- throw await de_ValidationExceptionRes(parsedOutput, context);
2355
- default:
2356
- const parsedBody = parsedOutput.body;
2357
- return throwDefaultError({
2358
- output,
2359
- parsedBody,
2360
- errorCode
2361
- });
2362
- }
2363
- }, "de_ListResourcesAssociatedToCustomLineItemCommandError");
2364
1559
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2365
1560
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2366
- return de_ListTagsForResourceCommandError(output, context);
1561
+ return de_CommandError(output, context);
2367
1562
  }
2368
1563
  const contents = (0, import_smithy_client.map)({
2369
1564
  $metadata: deserializeMetadata(output)
@@ -2375,40 +1570,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
2375
1570
  Object.assign(contents, doc);
2376
1571
  return contents;
2377
1572
  }, "de_ListTagsForResourceCommand");
2378
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2379
- const parsedOutput = {
2380
- ...output,
2381
- body: await parseErrorBody(output.body, context)
2382
- };
2383
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2384
- switch (errorCode) {
2385
- case "AccessDeniedException":
2386
- case "com.amazonaws.billingconductor#AccessDeniedException":
2387
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2388
- case "InternalServerException":
2389
- case "com.amazonaws.billingconductor#InternalServerException":
2390
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2391
- case "ResourceNotFoundException":
2392
- case "com.amazonaws.billingconductor#ResourceNotFoundException":
2393
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2394
- case "ThrottlingException":
2395
- case "com.amazonaws.billingconductor#ThrottlingException":
2396
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2397
- case "ValidationException":
2398
- case "com.amazonaws.billingconductor#ValidationException":
2399
- throw await de_ValidationExceptionRes(parsedOutput, context);
2400
- default:
2401
- const parsedBody = parsedOutput.body;
2402
- return throwDefaultError({
2403
- output,
2404
- parsedBody,
2405
- errorCode
2406
- });
2407
- }
2408
- }, "de_ListTagsForResourceCommandError");
2409
1573
  var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2410
1574
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2411
- return de_TagResourceCommandError(output, context);
1575
+ return de_CommandError(output, context);
2412
1576
  }
2413
1577
  const contents = (0, import_smithy_client.map)({
2414
1578
  $metadata: deserializeMetadata(output)
@@ -2416,40 +1580,9 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2416
1580
  await (0, import_smithy_client.collectBody)(output.body, context);
2417
1581
  return contents;
2418
1582
  }, "de_TagResourceCommand");
2419
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2420
- const parsedOutput = {
2421
- ...output,
2422
- body: await parseErrorBody(output.body, context)
2423
- };
2424
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2425
- switch (errorCode) {
2426
- case "AccessDeniedException":
2427
- case "com.amazonaws.billingconductor#AccessDeniedException":
2428
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2429
- case "InternalServerException":
2430
- case "com.amazonaws.billingconductor#InternalServerException":
2431
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2432
- case "ResourceNotFoundException":
2433
- case "com.amazonaws.billingconductor#ResourceNotFoundException":
2434
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2435
- case "ThrottlingException":
2436
- case "com.amazonaws.billingconductor#ThrottlingException":
2437
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2438
- case "ValidationException":
2439
- case "com.amazonaws.billingconductor#ValidationException":
2440
- throw await de_ValidationExceptionRes(parsedOutput, context);
2441
- default:
2442
- const parsedBody = parsedOutput.body;
2443
- return throwDefaultError({
2444
- output,
2445
- parsedBody,
2446
- errorCode
2447
- });
2448
- }
2449
- }, "de_TagResourceCommandError");
2450
1583
  var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2451
1584
  if (output.statusCode !== 204 && output.statusCode >= 300) {
2452
- return de_UntagResourceCommandError(output, context);
1585
+ return de_CommandError(output, context);
2453
1586
  }
2454
1587
  const contents = (0, import_smithy_client.map)({
2455
1588
  $metadata: deserializeMetadata(output)
@@ -2457,40 +1590,9 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
2457
1590
  await (0, import_smithy_client.collectBody)(output.body, context);
2458
1591
  return contents;
2459
1592
  }, "de_UntagResourceCommand");
2460
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2461
- const parsedOutput = {
2462
- ...output,
2463
- body: await parseErrorBody(output.body, context)
2464
- };
2465
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2466
- switch (errorCode) {
2467
- case "AccessDeniedException":
2468
- case "com.amazonaws.billingconductor#AccessDeniedException":
2469
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2470
- case "InternalServerException":
2471
- case "com.amazonaws.billingconductor#InternalServerException":
2472
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2473
- case "ResourceNotFoundException":
2474
- case "com.amazonaws.billingconductor#ResourceNotFoundException":
2475
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2476
- case "ThrottlingException":
2477
- case "com.amazonaws.billingconductor#ThrottlingException":
2478
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2479
- case "ValidationException":
2480
- case "com.amazonaws.billingconductor#ValidationException":
2481
- throw await de_ValidationExceptionRes(parsedOutput, context);
2482
- default:
2483
- const parsedBody = parsedOutput.body;
2484
- return throwDefaultError({
2485
- output,
2486
- parsedBody,
2487
- errorCode
2488
- });
2489
- }
2490
- }, "de_UntagResourceCommandError");
2491
1593
  var de_UpdateBillingGroupCommand = /* @__PURE__ */ __name(async (output, context) => {
2492
1594
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2493
- return de_UpdateBillingGroupCommandError(output, context);
1595
+ return de_CommandError(output, context);
2494
1596
  }
2495
1597
  const contents = (0, import_smithy_client.map)({
2496
1598
  $metadata: deserializeMetadata(output)
@@ -2511,43 +1613,9 @@ var de_UpdateBillingGroupCommand = /* @__PURE__ */ __name(async (output, context
2511
1613
  Object.assign(contents, doc);
2512
1614
  return contents;
2513
1615
  }, "de_UpdateBillingGroupCommand");
2514
- var de_UpdateBillingGroupCommandError = /* @__PURE__ */ __name(async (output, context) => {
2515
- const parsedOutput = {
2516
- ...output,
2517
- body: await parseErrorBody(output.body, context)
2518
- };
2519
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2520
- switch (errorCode) {
2521
- case "AccessDeniedException":
2522
- case "com.amazonaws.billingconductor#AccessDeniedException":
2523
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2524
- case "ConflictException":
2525
- case "com.amazonaws.billingconductor#ConflictException":
2526
- throw await de_ConflictExceptionRes(parsedOutput, context);
2527
- case "InternalServerException":
2528
- case "com.amazonaws.billingconductor#InternalServerException":
2529
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2530
- case "ResourceNotFoundException":
2531
- case "com.amazonaws.billingconductor#ResourceNotFoundException":
2532
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2533
- case "ThrottlingException":
2534
- case "com.amazonaws.billingconductor#ThrottlingException":
2535
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2536
- case "ValidationException":
2537
- case "com.amazonaws.billingconductor#ValidationException":
2538
- throw await de_ValidationExceptionRes(parsedOutput, context);
2539
- default:
2540
- const parsedBody = parsedOutput.body;
2541
- return throwDefaultError({
2542
- output,
2543
- parsedBody,
2544
- errorCode
2545
- });
2546
- }
2547
- }, "de_UpdateBillingGroupCommandError");
2548
1616
  var de_UpdateCustomLineItemCommand = /* @__PURE__ */ __name(async (output, context) => {
2549
1617
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2550
- return de_UpdateCustomLineItemCommandError(output, context);
1618
+ return de_CommandError(output, context);
2551
1619
  }
2552
1620
  const contents = (0, import_smithy_client.map)({
2553
1621
  $metadata: deserializeMetadata(output)
@@ -2565,40 +1633,9 @@ var de_UpdateCustomLineItemCommand = /* @__PURE__ */ __name(async (output, conte
2565
1633
  Object.assign(contents, doc);
2566
1634
  return contents;
2567
1635
  }, "de_UpdateCustomLineItemCommand");
2568
- var de_UpdateCustomLineItemCommandError = /* @__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.billingconductor#AccessDeniedException":
2577
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2578
- case "InternalServerException":
2579
- case "com.amazonaws.billingconductor#InternalServerException":
2580
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2581
- case "ResourceNotFoundException":
2582
- case "com.amazonaws.billingconductor#ResourceNotFoundException":
2583
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2584
- case "ThrottlingException":
2585
- case "com.amazonaws.billingconductor#ThrottlingException":
2586
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2587
- case "ValidationException":
2588
- case "com.amazonaws.billingconductor#ValidationException":
2589
- throw await de_ValidationExceptionRes(parsedOutput, context);
2590
- default:
2591
- const parsedBody = parsedOutput.body;
2592
- return throwDefaultError({
2593
- output,
2594
- parsedBody,
2595
- errorCode
2596
- });
2597
- }
2598
- }, "de_UpdateCustomLineItemCommandError");
2599
1636
  var de_UpdatePricingPlanCommand = /* @__PURE__ */ __name(async (output, context) => {
2600
1637
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2601
- return de_UpdatePricingPlanCommandError(output, context);
1638
+ return de_CommandError(output, context);
2602
1639
  }
2603
1640
  const contents = (0, import_smithy_client.map)({
2604
1641
  $metadata: deserializeMetadata(output)
@@ -2614,43 +1651,9 @@ var de_UpdatePricingPlanCommand = /* @__PURE__ */ __name(async (output, context)
2614
1651
  Object.assign(contents, doc);
2615
1652
  return contents;
2616
1653
  }, "de_UpdatePricingPlanCommand");
2617
- var de_UpdatePricingPlanCommandError = /* @__PURE__ */ __name(async (output, context) => {
2618
- const parsedOutput = {
2619
- ...output,
2620
- body: await parseErrorBody(output.body, context)
2621
- };
2622
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2623
- switch (errorCode) {
2624
- case "AccessDeniedException":
2625
- case "com.amazonaws.billingconductor#AccessDeniedException":
2626
- throw await de_AccessDeniedExceptionRes(parsedOutput, context);
2627
- case "ConflictException":
2628
- case "com.amazonaws.billingconductor#ConflictException":
2629
- throw await de_ConflictExceptionRes(parsedOutput, context);
2630
- case "InternalServerException":
2631
- case "com.amazonaws.billingconductor#InternalServerException":
2632
- throw await de_InternalServerExceptionRes(parsedOutput, context);
2633
- case "ResourceNotFoundException":
2634
- case "com.amazonaws.billingconductor#ResourceNotFoundException":
2635
- throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2636
- case "ThrottlingException":
2637
- case "com.amazonaws.billingconductor#ThrottlingException":
2638
- throw await de_ThrottlingExceptionRes(parsedOutput, context);
2639
- case "ValidationException":
2640
- case "com.amazonaws.billingconductor#ValidationException":
2641
- throw await de_ValidationExceptionRes(parsedOutput, context);
2642
- default:
2643
- const parsedBody = parsedOutput.body;
2644
- return throwDefaultError({
2645
- output,
2646
- parsedBody,
2647
- errorCode
2648
- });
2649
- }
2650
- }, "de_UpdatePricingPlanCommandError");
2651
1654
  var de_UpdatePricingRuleCommand = /* @__PURE__ */ __name(async (output, context) => {
2652
1655
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2653
- return de_UpdatePricingRuleCommandError(output, context);
1656
+ return de_CommandError(output, context);
2654
1657
  }
2655
1658
  const contents = (0, import_smithy_client.map)({
2656
1659
  $metadata: deserializeMetadata(output)
@@ -2674,7 +1677,7 @@ var de_UpdatePricingRuleCommand = /* @__PURE__ */ __name(async (output, context)
2674
1677
  Object.assign(contents, doc);
2675
1678
  return contents;
2676
1679
  }, "de_UpdatePricingRuleCommand");
2677
- var de_UpdatePricingRuleCommandError = /* @__PURE__ */ __name(async (output, context) => {
1680
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2678
1681
  const parsedOutput = {
2679
1682
  ...output,
2680
1683
  body: await parseErrorBody(output.body, context)
@@ -2693,6 +1696,9 @@ var de_UpdatePricingRuleCommandError = /* @__PURE__ */ __name(async (output, con
2693
1696
  case "ResourceNotFoundException":
2694
1697
  case "com.amazonaws.billingconductor#ResourceNotFoundException":
2695
1698
  throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1699
+ case "ServiceLimitExceededException":
1700
+ case "com.amazonaws.billingconductor#ServiceLimitExceededException":
1701
+ throw await de_ServiceLimitExceededExceptionRes(parsedOutput, context);
2696
1702
  case "ThrottlingException":
2697
1703
  case "com.amazonaws.billingconductor#ThrottlingException":
2698
1704
  throw await de_ThrottlingExceptionRes(parsedOutput, context);
@@ -2707,7 +1713,7 @@ var de_UpdatePricingRuleCommandError = /* @__PURE__ */ __name(async (output, con
2707
1713
  errorCode
2708
1714
  });
2709
1715
  }
2710
- }, "de_UpdatePricingRuleCommandError");
1716
+ }, "de_CommandError");
2711
1717
  var throwDefaultError = (0, import_smithy_client.withBaseException)(BillingconductorServiceException);
2712
1718
  var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2713
1719
  const contents = (0, import_smithy_client.map)({});