@aws-sdk/client-app-mesh 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
@@ -1375,7 +1375,7 @@ var se_UpdateVirtualServiceCommand = /* @__PURE__ */ __name(async (input, contex
1375
1375
  }, "se_UpdateVirtualServiceCommand");
1376
1376
  var de_CreateGatewayRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
1377
1377
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1378
- return de_CreateGatewayRouteCommandError(output, context);
1378
+ return de_CommandError(output, context);
1379
1379
  }
1380
1380
  const contents = (0, import_smithy_client.map)({
1381
1381
  $metadata: deserializeMetadata(output)
@@ -1384,49 +1384,9 @@ var de_CreateGatewayRouteCommand = /* @__PURE__ */ __name(async (output, context
1384
1384
  contents.gatewayRoute = de_GatewayRouteData(data, context);
1385
1385
  return contents;
1386
1386
  }, "de_CreateGatewayRouteCommand");
1387
- var de_CreateGatewayRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
1388
- const parsedOutput = {
1389
- ...output,
1390
- body: await parseErrorBody(output.body, context)
1391
- };
1392
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1393
- switch (errorCode) {
1394
- case "BadRequestException":
1395
- case "com.amazonaws.appmesh#BadRequestException":
1396
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1397
- case "ConflictException":
1398
- case "com.amazonaws.appmesh#ConflictException":
1399
- throw await de_ConflictExceptionRes(parsedOutput, context);
1400
- case "ForbiddenException":
1401
- case "com.amazonaws.appmesh#ForbiddenException":
1402
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1403
- case "InternalServerErrorException":
1404
- case "com.amazonaws.appmesh#InternalServerErrorException":
1405
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1406
- case "LimitExceededException":
1407
- case "com.amazonaws.appmesh#LimitExceededException":
1408
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1409
- case "NotFoundException":
1410
- case "com.amazonaws.appmesh#NotFoundException":
1411
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1412
- case "ServiceUnavailableException":
1413
- case "com.amazonaws.appmesh#ServiceUnavailableException":
1414
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1415
- case "TooManyRequestsException":
1416
- case "com.amazonaws.appmesh#TooManyRequestsException":
1417
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1418
- default:
1419
- const parsedBody = parsedOutput.body;
1420
- return throwDefaultError({
1421
- output,
1422
- parsedBody,
1423
- errorCode
1424
- });
1425
- }
1426
- }, "de_CreateGatewayRouteCommandError");
1427
1387
  var de_CreateMeshCommand = /* @__PURE__ */ __name(async (output, context) => {
1428
1388
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1429
- return de_CreateMeshCommandError(output, context);
1389
+ return de_CommandError(output, context);
1430
1390
  }
1431
1391
  const contents = (0, import_smithy_client.map)({
1432
1392
  $metadata: deserializeMetadata(output)
@@ -1435,49 +1395,9 @@ var de_CreateMeshCommand = /* @__PURE__ */ __name(async (output, context) => {
1435
1395
  contents.mesh = de_MeshData(data, context);
1436
1396
  return contents;
1437
1397
  }, "de_CreateMeshCommand");
1438
- var de_CreateMeshCommandError = /* @__PURE__ */ __name(async (output, context) => {
1439
- const parsedOutput = {
1440
- ...output,
1441
- body: await parseErrorBody(output.body, context)
1442
- };
1443
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1444
- switch (errorCode) {
1445
- case "BadRequestException":
1446
- case "com.amazonaws.appmesh#BadRequestException":
1447
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1448
- case "ConflictException":
1449
- case "com.amazonaws.appmesh#ConflictException":
1450
- throw await de_ConflictExceptionRes(parsedOutput, context);
1451
- case "ForbiddenException":
1452
- case "com.amazonaws.appmesh#ForbiddenException":
1453
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1454
- case "InternalServerErrorException":
1455
- case "com.amazonaws.appmesh#InternalServerErrorException":
1456
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1457
- case "LimitExceededException":
1458
- case "com.amazonaws.appmesh#LimitExceededException":
1459
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1460
- case "NotFoundException":
1461
- case "com.amazonaws.appmesh#NotFoundException":
1462
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1463
- case "ServiceUnavailableException":
1464
- case "com.amazonaws.appmesh#ServiceUnavailableException":
1465
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1466
- case "TooManyRequestsException":
1467
- case "com.amazonaws.appmesh#TooManyRequestsException":
1468
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1469
- default:
1470
- const parsedBody = parsedOutput.body;
1471
- return throwDefaultError({
1472
- output,
1473
- parsedBody,
1474
- errorCode
1475
- });
1476
- }
1477
- }, "de_CreateMeshCommandError");
1478
1398
  var de_CreateRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
1479
1399
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1480
- return de_CreateRouteCommandError(output, context);
1400
+ return de_CommandError(output, context);
1481
1401
  }
1482
1402
  const contents = (0, import_smithy_client.map)({
1483
1403
  $metadata: deserializeMetadata(output)
@@ -1486,49 +1406,9 @@ var de_CreateRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
1486
1406
  contents.route = de_RouteData(data, context);
1487
1407
  return contents;
1488
1408
  }, "de_CreateRouteCommand");
1489
- var de_CreateRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
1490
- const parsedOutput = {
1491
- ...output,
1492
- body: await parseErrorBody(output.body, context)
1493
- };
1494
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1495
- switch (errorCode) {
1496
- case "BadRequestException":
1497
- case "com.amazonaws.appmesh#BadRequestException":
1498
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1499
- case "ConflictException":
1500
- case "com.amazonaws.appmesh#ConflictException":
1501
- throw await de_ConflictExceptionRes(parsedOutput, context);
1502
- case "ForbiddenException":
1503
- case "com.amazonaws.appmesh#ForbiddenException":
1504
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1505
- case "InternalServerErrorException":
1506
- case "com.amazonaws.appmesh#InternalServerErrorException":
1507
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1508
- case "LimitExceededException":
1509
- case "com.amazonaws.appmesh#LimitExceededException":
1510
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1511
- case "NotFoundException":
1512
- case "com.amazonaws.appmesh#NotFoundException":
1513
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1514
- case "ServiceUnavailableException":
1515
- case "com.amazonaws.appmesh#ServiceUnavailableException":
1516
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1517
- case "TooManyRequestsException":
1518
- case "com.amazonaws.appmesh#TooManyRequestsException":
1519
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1520
- default:
1521
- const parsedBody = parsedOutput.body;
1522
- return throwDefaultError({
1523
- output,
1524
- parsedBody,
1525
- errorCode
1526
- });
1527
- }
1528
- }, "de_CreateRouteCommandError");
1529
1409
  var de_CreateVirtualGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
1530
1410
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1531
- return de_CreateVirtualGatewayCommandError(output, context);
1411
+ return de_CommandError(output, context);
1532
1412
  }
1533
1413
  const contents = (0, import_smithy_client.map)({
1534
1414
  $metadata: deserializeMetadata(output)
@@ -1537,49 +1417,9 @@ var de_CreateVirtualGatewayCommand = /* @__PURE__ */ __name(async (output, conte
1537
1417
  contents.virtualGateway = de_VirtualGatewayData(data, context);
1538
1418
  return contents;
1539
1419
  }, "de_CreateVirtualGatewayCommand");
1540
- var de_CreateVirtualGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
1541
- const parsedOutput = {
1542
- ...output,
1543
- body: await parseErrorBody(output.body, context)
1544
- };
1545
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1546
- switch (errorCode) {
1547
- case "BadRequestException":
1548
- case "com.amazonaws.appmesh#BadRequestException":
1549
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1550
- case "ConflictException":
1551
- case "com.amazonaws.appmesh#ConflictException":
1552
- throw await de_ConflictExceptionRes(parsedOutput, context);
1553
- case "ForbiddenException":
1554
- case "com.amazonaws.appmesh#ForbiddenException":
1555
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1556
- case "InternalServerErrorException":
1557
- case "com.amazonaws.appmesh#InternalServerErrorException":
1558
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1559
- case "LimitExceededException":
1560
- case "com.amazonaws.appmesh#LimitExceededException":
1561
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1562
- case "NotFoundException":
1563
- case "com.amazonaws.appmesh#NotFoundException":
1564
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1565
- case "ServiceUnavailableException":
1566
- case "com.amazonaws.appmesh#ServiceUnavailableException":
1567
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1568
- case "TooManyRequestsException":
1569
- case "com.amazonaws.appmesh#TooManyRequestsException":
1570
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1571
- default:
1572
- const parsedBody = parsedOutput.body;
1573
- return throwDefaultError({
1574
- output,
1575
- parsedBody,
1576
- errorCode
1577
- });
1578
- }
1579
- }, "de_CreateVirtualGatewayCommandError");
1580
1420
  var de_CreateVirtualNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
1581
1421
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1582
- return de_CreateVirtualNodeCommandError(output, context);
1422
+ return de_CommandError(output, context);
1583
1423
  }
1584
1424
  const contents = (0, import_smithy_client.map)({
1585
1425
  $metadata: deserializeMetadata(output)
@@ -1588,49 +1428,9 @@ var de_CreateVirtualNodeCommand = /* @__PURE__ */ __name(async (output, context)
1588
1428
  contents.virtualNode = de_VirtualNodeData(data, context);
1589
1429
  return contents;
1590
1430
  }, "de_CreateVirtualNodeCommand");
1591
- var de_CreateVirtualNodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
1592
- const parsedOutput = {
1593
- ...output,
1594
- body: await parseErrorBody(output.body, context)
1595
- };
1596
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1597
- switch (errorCode) {
1598
- case "BadRequestException":
1599
- case "com.amazonaws.appmesh#BadRequestException":
1600
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1601
- case "ConflictException":
1602
- case "com.amazonaws.appmesh#ConflictException":
1603
- throw await de_ConflictExceptionRes(parsedOutput, context);
1604
- case "ForbiddenException":
1605
- case "com.amazonaws.appmesh#ForbiddenException":
1606
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1607
- case "InternalServerErrorException":
1608
- case "com.amazonaws.appmesh#InternalServerErrorException":
1609
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1610
- case "LimitExceededException":
1611
- case "com.amazonaws.appmesh#LimitExceededException":
1612
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1613
- case "NotFoundException":
1614
- case "com.amazonaws.appmesh#NotFoundException":
1615
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1616
- case "ServiceUnavailableException":
1617
- case "com.amazonaws.appmesh#ServiceUnavailableException":
1618
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1619
- case "TooManyRequestsException":
1620
- case "com.amazonaws.appmesh#TooManyRequestsException":
1621
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1622
- default:
1623
- const parsedBody = parsedOutput.body;
1624
- return throwDefaultError({
1625
- output,
1626
- parsedBody,
1627
- errorCode
1628
- });
1629
- }
1630
- }, "de_CreateVirtualNodeCommandError");
1631
1431
  var de_CreateVirtualRouterCommand = /* @__PURE__ */ __name(async (output, context) => {
1632
1432
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1633
- return de_CreateVirtualRouterCommandError(output, context);
1433
+ return de_CommandError(output, context);
1634
1434
  }
1635
1435
  const contents = (0, import_smithy_client.map)({
1636
1436
  $metadata: deserializeMetadata(output)
@@ -1639,49 +1439,9 @@ var de_CreateVirtualRouterCommand = /* @__PURE__ */ __name(async (output, contex
1639
1439
  contents.virtualRouter = de_VirtualRouterData(data, context);
1640
1440
  return contents;
1641
1441
  }, "de_CreateVirtualRouterCommand");
1642
- var de_CreateVirtualRouterCommandError = /* @__PURE__ */ __name(async (output, context) => {
1643
- const parsedOutput = {
1644
- ...output,
1645
- body: await parseErrorBody(output.body, context)
1646
- };
1647
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1648
- switch (errorCode) {
1649
- case "BadRequestException":
1650
- case "com.amazonaws.appmesh#BadRequestException":
1651
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1652
- case "ConflictException":
1653
- case "com.amazonaws.appmesh#ConflictException":
1654
- throw await de_ConflictExceptionRes(parsedOutput, context);
1655
- case "ForbiddenException":
1656
- case "com.amazonaws.appmesh#ForbiddenException":
1657
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1658
- case "InternalServerErrorException":
1659
- case "com.amazonaws.appmesh#InternalServerErrorException":
1660
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1661
- case "LimitExceededException":
1662
- case "com.amazonaws.appmesh#LimitExceededException":
1663
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1664
- case "NotFoundException":
1665
- case "com.amazonaws.appmesh#NotFoundException":
1666
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1667
- case "ServiceUnavailableException":
1668
- case "com.amazonaws.appmesh#ServiceUnavailableException":
1669
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1670
- case "TooManyRequestsException":
1671
- case "com.amazonaws.appmesh#TooManyRequestsException":
1672
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1673
- default:
1674
- const parsedBody = parsedOutput.body;
1675
- return throwDefaultError({
1676
- output,
1677
- parsedBody,
1678
- errorCode
1679
- });
1680
- }
1681
- }, "de_CreateVirtualRouterCommandError");
1682
1442
  var de_CreateVirtualServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
1683
1443
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1684
- return de_CreateVirtualServiceCommandError(output, context);
1444
+ return de_CommandError(output, context);
1685
1445
  }
1686
1446
  const contents = (0, import_smithy_client.map)({
1687
1447
  $metadata: deserializeMetadata(output)
@@ -1690,49 +1450,9 @@ var de_CreateVirtualServiceCommand = /* @__PURE__ */ __name(async (output, conte
1690
1450
  contents.virtualService = de_VirtualServiceData(data, context);
1691
1451
  return contents;
1692
1452
  }, "de_CreateVirtualServiceCommand");
1693
- var de_CreateVirtualServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1694
- const parsedOutput = {
1695
- ...output,
1696
- body: await parseErrorBody(output.body, context)
1697
- };
1698
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1699
- switch (errorCode) {
1700
- case "BadRequestException":
1701
- case "com.amazonaws.appmesh#BadRequestException":
1702
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1703
- case "ConflictException":
1704
- case "com.amazonaws.appmesh#ConflictException":
1705
- throw await de_ConflictExceptionRes(parsedOutput, context);
1706
- case "ForbiddenException":
1707
- case "com.amazonaws.appmesh#ForbiddenException":
1708
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1709
- case "InternalServerErrorException":
1710
- case "com.amazonaws.appmesh#InternalServerErrorException":
1711
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1712
- case "LimitExceededException":
1713
- case "com.amazonaws.appmesh#LimitExceededException":
1714
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
1715
- case "NotFoundException":
1716
- case "com.amazonaws.appmesh#NotFoundException":
1717
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1718
- case "ServiceUnavailableException":
1719
- case "com.amazonaws.appmesh#ServiceUnavailableException":
1720
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1721
- case "TooManyRequestsException":
1722
- case "com.amazonaws.appmesh#TooManyRequestsException":
1723
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1724
- default:
1725
- const parsedBody = parsedOutput.body;
1726
- return throwDefaultError({
1727
- output,
1728
- parsedBody,
1729
- errorCode
1730
- });
1731
- }
1732
- }, "de_CreateVirtualServiceCommandError");
1733
1453
  var de_DeleteGatewayRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
1734
1454
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1735
- return de_DeleteGatewayRouteCommandError(output, context);
1455
+ return de_CommandError(output, context);
1736
1456
  }
1737
1457
  const contents = (0, import_smithy_client.map)({
1738
1458
  $metadata: deserializeMetadata(output)
@@ -1741,46 +1461,9 @@ var de_DeleteGatewayRouteCommand = /* @__PURE__ */ __name(async (output, context
1741
1461
  contents.gatewayRoute = de_GatewayRouteData(data, context);
1742
1462
  return contents;
1743
1463
  }, "de_DeleteGatewayRouteCommand");
1744
- var de_DeleteGatewayRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
1745
- const parsedOutput = {
1746
- ...output,
1747
- body: await parseErrorBody(output.body, context)
1748
- };
1749
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1750
- switch (errorCode) {
1751
- case "BadRequestException":
1752
- case "com.amazonaws.appmesh#BadRequestException":
1753
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1754
- case "ForbiddenException":
1755
- case "com.amazonaws.appmesh#ForbiddenException":
1756
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1757
- case "InternalServerErrorException":
1758
- case "com.amazonaws.appmesh#InternalServerErrorException":
1759
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1760
- case "NotFoundException":
1761
- case "com.amazonaws.appmesh#NotFoundException":
1762
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1763
- case "ResourceInUseException":
1764
- case "com.amazonaws.appmesh#ResourceInUseException":
1765
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1766
- case "ServiceUnavailableException":
1767
- case "com.amazonaws.appmesh#ServiceUnavailableException":
1768
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1769
- case "TooManyRequestsException":
1770
- case "com.amazonaws.appmesh#TooManyRequestsException":
1771
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1772
- default:
1773
- const parsedBody = parsedOutput.body;
1774
- return throwDefaultError({
1775
- output,
1776
- parsedBody,
1777
- errorCode
1778
- });
1779
- }
1780
- }, "de_DeleteGatewayRouteCommandError");
1781
1464
  var de_DeleteMeshCommand = /* @__PURE__ */ __name(async (output, context) => {
1782
1465
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1783
- return de_DeleteMeshCommandError(output, context);
1466
+ return de_CommandError(output, context);
1784
1467
  }
1785
1468
  const contents = (0, import_smithy_client.map)({
1786
1469
  $metadata: deserializeMetadata(output)
@@ -1789,46 +1472,9 @@ var de_DeleteMeshCommand = /* @__PURE__ */ __name(async (output, context) => {
1789
1472
  contents.mesh = de_MeshData(data, context);
1790
1473
  return contents;
1791
1474
  }, "de_DeleteMeshCommand");
1792
- var de_DeleteMeshCommandError = /* @__PURE__ */ __name(async (output, context) => {
1793
- const parsedOutput = {
1794
- ...output,
1795
- body: await parseErrorBody(output.body, context)
1796
- };
1797
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1798
- switch (errorCode) {
1799
- case "BadRequestException":
1800
- case "com.amazonaws.appmesh#BadRequestException":
1801
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1802
- case "ForbiddenException":
1803
- case "com.amazonaws.appmesh#ForbiddenException":
1804
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1805
- case "InternalServerErrorException":
1806
- case "com.amazonaws.appmesh#InternalServerErrorException":
1807
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1808
- case "NotFoundException":
1809
- case "com.amazonaws.appmesh#NotFoundException":
1810
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1811
- case "ResourceInUseException":
1812
- case "com.amazonaws.appmesh#ResourceInUseException":
1813
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1814
- case "ServiceUnavailableException":
1815
- case "com.amazonaws.appmesh#ServiceUnavailableException":
1816
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1817
- case "TooManyRequestsException":
1818
- case "com.amazonaws.appmesh#TooManyRequestsException":
1819
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1820
- default:
1821
- const parsedBody = parsedOutput.body;
1822
- return throwDefaultError({
1823
- output,
1824
- parsedBody,
1825
- errorCode
1826
- });
1827
- }
1828
- }, "de_DeleteMeshCommandError");
1829
1475
  var de_DeleteRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
1830
1476
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1831
- return de_DeleteRouteCommandError(output, context);
1477
+ return de_CommandError(output, context);
1832
1478
  }
1833
1479
  const contents = (0, import_smithy_client.map)({
1834
1480
  $metadata: deserializeMetadata(output)
@@ -1837,46 +1483,9 @@ var de_DeleteRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
1837
1483
  contents.route = de_RouteData(data, context);
1838
1484
  return contents;
1839
1485
  }, "de_DeleteRouteCommand");
1840
- var de_DeleteRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
1841
- const parsedOutput = {
1842
- ...output,
1843
- body: await parseErrorBody(output.body, context)
1844
- };
1845
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1846
- switch (errorCode) {
1847
- case "BadRequestException":
1848
- case "com.amazonaws.appmesh#BadRequestException":
1849
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1850
- case "ForbiddenException":
1851
- case "com.amazonaws.appmesh#ForbiddenException":
1852
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1853
- case "InternalServerErrorException":
1854
- case "com.amazonaws.appmesh#InternalServerErrorException":
1855
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1856
- case "NotFoundException":
1857
- case "com.amazonaws.appmesh#NotFoundException":
1858
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1859
- case "ResourceInUseException":
1860
- case "com.amazonaws.appmesh#ResourceInUseException":
1861
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1862
- case "ServiceUnavailableException":
1863
- case "com.amazonaws.appmesh#ServiceUnavailableException":
1864
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1865
- case "TooManyRequestsException":
1866
- case "com.amazonaws.appmesh#TooManyRequestsException":
1867
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1868
- default:
1869
- const parsedBody = parsedOutput.body;
1870
- return throwDefaultError({
1871
- output,
1872
- parsedBody,
1873
- errorCode
1874
- });
1875
- }
1876
- }, "de_DeleteRouteCommandError");
1877
1486
  var de_DeleteVirtualGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
1878
1487
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1879
- return de_DeleteVirtualGatewayCommandError(output, context);
1488
+ return de_CommandError(output, context);
1880
1489
  }
1881
1490
  const contents = (0, import_smithy_client.map)({
1882
1491
  $metadata: deserializeMetadata(output)
@@ -1885,46 +1494,9 @@ var de_DeleteVirtualGatewayCommand = /* @__PURE__ */ __name(async (output, conte
1885
1494
  contents.virtualGateway = de_VirtualGatewayData(data, context);
1886
1495
  return contents;
1887
1496
  }, "de_DeleteVirtualGatewayCommand");
1888
- var de_DeleteVirtualGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
1889
- const parsedOutput = {
1890
- ...output,
1891
- body: await parseErrorBody(output.body, context)
1892
- };
1893
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1894
- switch (errorCode) {
1895
- case "BadRequestException":
1896
- case "com.amazonaws.appmesh#BadRequestException":
1897
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1898
- case "ForbiddenException":
1899
- case "com.amazonaws.appmesh#ForbiddenException":
1900
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1901
- case "InternalServerErrorException":
1902
- case "com.amazonaws.appmesh#InternalServerErrorException":
1903
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1904
- case "NotFoundException":
1905
- case "com.amazonaws.appmesh#NotFoundException":
1906
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1907
- case "ResourceInUseException":
1908
- case "com.amazonaws.appmesh#ResourceInUseException":
1909
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1910
- case "ServiceUnavailableException":
1911
- case "com.amazonaws.appmesh#ServiceUnavailableException":
1912
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1913
- case "TooManyRequestsException":
1914
- case "com.amazonaws.appmesh#TooManyRequestsException":
1915
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1916
- default:
1917
- const parsedBody = parsedOutput.body;
1918
- return throwDefaultError({
1919
- output,
1920
- parsedBody,
1921
- errorCode
1922
- });
1923
- }
1924
- }, "de_DeleteVirtualGatewayCommandError");
1925
1497
  var de_DeleteVirtualNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
1926
1498
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1927
- return de_DeleteVirtualNodeCommandError(output, context);
1499
+ return de_CommandError(output, context);
1928
1500
  }
1929
1501
  const contents = (0, import_smithy_client.map)({
1930
1502
  $metadata: deserializeMetadata(output)
@@ -1933,46 +1505,9 @@ var de_DeleteVirtualNodeCommand = /* @__PURE__ */ __name(async (output, context)
1933
1505
  contents.virtualNode = de_VirtualNodeData(data, context);
1934
1506
  return contents;
1935
1507
  }, "de_DeleteVirtualNodeCommand");
1936
- var de_DeleteVirtualNodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
1937
- const parsedOutput = {
1938
- ...output,
1939
- body: await parseErrorBody(output.body, context)
1940
- };
1941
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1942
- switch (errorCode) {
1943
- case "BadRequestException":
1944
- case "com.amazonaws.appmesh#BadRequestException":
1945
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1946
- case "ForbiddenException":
1947
- case "com.amazonaws.appmesh#ForbiddenException":
1948
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1949
- case "InternalServerErrorException":
1950
- case "com.amazonaws.appmesh#InternalServerErrorException":
1951
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
1952
- case "NotFoundException":
1953
- case "com.amazonaws.appmesh#NotFoundException":
1954
- throw await de_NotFoundExceptionRes(parsedOutput, context);
1955
- case "ResourceInUseException":
1956
- case "com.amazonaws.appmesh#ResourceInUseException":
1957
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1958
- case "ServiceUnavailableException":
1959
- case "com.amazonaws.appmesh#ServiceUnavailableException":
1960
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
1961
- case "TooManyRequestsException":
1962
- case "com.amazonaws.appmesh#TooManyRequestsException":
1963
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1964
- default:
1965
- const parsedBody = parsedOutput.body;
1966
- return throwDefaultError({
1967
- output,
1968
- parsedBody,
1969
- errorCode
1970
- });
1971
- }
1972
- }, "de_DeleteVirtualNodeCommandError");
1973
1508
  var de_DeleteVirtualRouterCommand = /* @__PURE__ */ __name(async (output, context) => {
1974
1509
  if (output.statusCode !== 200 && output.statusCode >= 300) {
1975
- return de_DeleteVirtualRouterCommandError(output, context);
1510
+ return de_CommandError(output, context);
1976
1511
  }
1977
1512
  const contents = (0, import_smithy_client.map)({
1978
1513
  $metadata: deserializeMetadata(output)
@@ -1981,46 +1516,9 @@ var de_DeleteVirtualRouterCommand = /* @__PURE__ */ __name(async (output, contex
1981
1516
  contents.virtualRouter = de_VirtualRouterData(data, context);
1982
1517
  return contents;
1983
1518
  }, "de_DeleteVirtualRouterCommand");
1984
- var de_DeleteVirtualRouterCommandError = /* @__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 "BadRequestException":
1992
- case "com.amazonaws.appmesh#BadRequestException":
1993
- throw await de_BadRequestExceptionRes(parsedOutput, context);
1994
- case "ForbiddenException":
1995
- case "com.amazonaws.appmesh#ForbiddenException":
1996
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
1997
- case "InternalServerErrorException":
1998
- case "com.amazonaws.appmesh#InternalServerErrorException":
1999
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2000
- case "NotFoundException":
2001
- case "com.amazonaws.appmesh#NotFoundException":
2002
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2003
- case "ResourceInUseException":
2004
- case "com.amazonaws.appmesh#ResourceInUseException":
2005
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2006
- case "ServiceUnavailableException":
2007
- case "com.amazonaws.appmesh#ServiceUnavailableException":
2008
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2009
- case "TooManyRequestsException":
2010
- case "com.amazonaws.appmesh#TooManyRequestsException":
2011
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2012
- default:
2013
- const parsedBody = parsedOutput.body;
2014
- return throwDefaultError({
2015
- output,
2016
- parsedBody,
2017
- errorCode
2018
- });
2019
- }
2020
- }, "de_DeleteVirtualRouterCommandError");
2021
1519
  var de_DeleteVirtualServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
2022
1520
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2023
- return de_DeleteVirtualServiceCommandError(output, context);
1521
+ return de_CommandError(output, context);
2024
1522
  }
2025
1523
  const contents = (0, import_smithy_client.map)({
2026
1524
  $metadata: deserializeMetadata(output)
@@ -2029,181 +1527,42 @@ var de_DeleteVirtualServiceCommand = /* @__PURE__ */ __name(async (output, conte
2029
1527
  contents.virtualService = de_VirtualServiceData(data, context);
2030
1528
  return contents;
2031
1529
  }, "de_DeleteVirtualServiceCommand");
2032
- var de_DeleteVirtualServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2033
- const parsedOutput = {
2034
- ...output,
2035
- body: await parseErrorBody(output.body, context)
2036
- };
2037
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2038
- switch (errorCode) {
2039
- case "BadRequestException":
2040
- case "com.amazonaws.appmesh#BadRequestException":
2041
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2042
- case "ForbiddenException":
2043
- case "com.amazonaws.appmesh#ForbiddenException":
2044
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2045
- case "InternalServerErrorException":
2046
- case "com.amazonaws.appmesh#InternalServerErrorException":
2047
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2048
- case "NotFoundException":
2049
- case "com.amazonaws.appmesh#NotFoundException":
2050
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2051
- case "ResourceInUseException":
2052
- case "com.amazonaws.appmesh#ResourceInUseException":
2053
- throw await de_ResourceInUseExceptionRes(parsedOutput, context);
2054
- case "ServiceUnavailableException":
2055
- case "com.amazonaws.appmesh#ServiceUnavailableException":
2056
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2057
- case "TooManyRequestsException":
2058
- case "com.amazonaws.appmesh#TooManyRequestsException":
2059
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2060
- default:
2061
- const parsedBody = parsedOutput.body;
2062
- return throwDefaultError({
2063
- output,
2064
- parsedBody,
2065
- errorCode
2066
- });
2067
- }
2068
- }, "de_DeleteVirtualServiceCommandError");
2069
1530
  var de_DescribeGatewayRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
2070
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2071
- return de_DescribeGatewayRouteCommandError(output, context);
2072
- }
2073
- const contents = (0, import_smithy_client.map)({
2074
- $metadata: deserializeMetadata(output)
2075
- });
2076
- const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
2077
- contents.gatewayRoute = de_GatewayRouteData(data, context);
2078
- return contents;
2079
- }, "de_DescribeGatewayRouteCommand");
2080
- var de_DescribeGatewayRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
2081
- const parsedOutput = {
2082
- ...output,
2083
- body: await parseErrorBody(output.body, context)
2084
- };
2085
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2086
- switch (errorCode) {
2087
- case "BadRequestException":
2088
- case "com.amazonaws.appmesh#BadRequestException":
2089
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2090
- case "ForbiddenException":
2091
- case "com.amazonaws.appmesh#ForbiddenException":
2092
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2093
- case "InternalServerErrorException":
2094
- case "com.amazonaws.appmesh#InternalServerErrorException":
2095
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2096
- case "NotFoundException":
2097
- case "com.amazonaws.appmesh#NotFoundException":
2098
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2099
- case "ServiceUnavailableException":
2100
- case "com.amazonaws.appmesh#ServiceUnavailableException":
2101
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2102
- case "TooManyRequestsException":
2103
- case "com.amazonaws.appmesh#TooManyRequestsException":
2104
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2105
- default:
2106
- const parsedBody = parsedOutput.body;
2107
- return throwDefaultError({
2108
- output,
2109
- parsedBody,
2110
- errorCode
2111
- });
2112
- }
2113
- }, "de_DescribeGatewayRouteCommandError");
2114
- var de_DescribeMeshCommand = /* @__PURE__ */ __name(async (output, context) => {
2115
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2116
- return de_DescribeMeshCommandError(output, context);
2117
- }
2118
- const contents = (0, import_smithy_client.map)({
2119
- $metadata: deserializeMetadata(output)
2120
- });
2121
- const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
2122
- contents.mesh = de_MeshData(data, context);
2123
- return contents;
2124
- }, "de_DescribeMeshCommand");
2125
- var de_DescribeMeshCommandError = /* @__PURE__ */ __name(async (output, context) => {
2126
- const parsedOutput = {
2127
- ...output,
2128
- body: await parseErrorBody(output.body, context)
2129
- };
2130
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2131
- switch (errorCode) {
2132
- case "BadRequestException":
2133
- case "com.amazonaws.appmesh#BadRequestException":
2134
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2135
- case "ForbiddenException":
2136
- case "com.amazonaws.appmesh#ForbiddenException":
2137
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2138
- case "InternalServerErrorException":
2139
- case "com.amazonaws.appmesh#InternalServerErrorException":
2140
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2141
- case "NotFoundException":
2142
- case "com.amazonaws.appmesh#NotFoundException":
2143
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2144
- case "ServiceUnavailableException":
2145
- case "com.amazonaws.appmesh#ServiceUnavailableException":
2146
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2147
- case "TooManyRequestsException":
2148
- case "com.amazonaws.appmesh#TooManyRequestsException":
2149
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2150
- default:
2151
- const parsedBody = parsedOutput.body;
2152
- return throwDefaultError({
2153
- output,
2154
- parsedBody,
2155
- errorCode
2156
- });
2157
- }
2158
- }, "de_DescribeMeshCommandError");
2159
- var de_DescribeRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
2160
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2161
- return de_DescribeRouteCommandError(output, context);
2162
- }
2163
- const contents = (0, import_smithy_client.map)({
2164
- $metadata: deserializeMetadata(output)
2165
- });
2166
- const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
2167
- contents.route = de_RouteData(data, context);
2168
- return contents;
2169
- }, "de_DescribeRouteCommand");
2170
- var de_DescribeRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
2171
- const parsedOutput = {
2172
- ...output,
2173
- body: await parseErrorBody(output.body, context)
2174
- };
2175
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2176
- switch (errorCode) {
2177
- case "BadRequestException":
2178
- case "com.amazonaws.appmesh#BadRequestException":
2179
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2180
- case "ForbiddenException":
2181
- case "com.amazonaws.appmesh#ForbiddenException":
2182
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2183
- case "InternalServerErrorException":
2184
- case "com.amazonaws.appmesh#InternalServerErrorException":
2185
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2186
- case "NotFoundException":
2187
- case "com.amazonaws.appmesh#NotFoundException":
2188
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2189
- case "ServiceUnavailableException":
2190
- case "com.amazonaws.appmesh#ServiceUnavailableException":
2191
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2192
- case "TooManyRequestsException":
2193
- case "com.amazonaws.appmesh#TooManyRequestsException":
2194
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2195
- default:
2196
- const parsedBody = parsedOutput.body;
2197
- return throwDefaultError({
2198
- output,
2199
- parsedBody,
2200
- errorCode
2201
- });
1531
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1532
+ return de_CommandError(output, context);
1533
+ }
1534
+ const contents = (0, import_smithy_client.map)({
1535
+ $metadata: deserializeMetadata(output)
1536
+ });
1537
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1538
+ contents.gatewayRoute = de_GatewayRouteData(data, context);
1539
+ return contents;
1540
+ }, "de_DescribeGatewayRouteCommand");
1541
+ var de_DescribeMeshCommand = /* @__PURE__ */ __name(async (output, context) => {
1542
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1543
+ return de_CommandError(output, context);
1544
+ }
1545
+ const contents = (0, import_smithy_client.map)({
1546
+ $metadata: deserializeMetadata(output)
1547
+ });
1548
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1549
+ contents.mesh = de_MeshData(data, context);
1550
+ return contents;
1551
+ }, "de_DescribeMeshCommand");
1552
+ var de_DescribeRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
1553
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1554
+ return de_CommandError(output, context);
2202
1555
  }
2203
- }, "de_DescribeRouteCommandError");
1556
+ const contents = (0, import_smithy_client.map)({
1557
+ $metadata: deserializeMetadata(output)
1558
+ });
1559
+ const data = (0, import_smithy_client.expectObject)(await parseBody(output.body, context));
1560
+ contents.route = de_RouteData(data, context);
1561
+ return contents;
1562
+ }, "de_DescribeRouteCommand");
2204
1563
  var de_DescribeVirtualGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
2205
1564
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2206
- return de_DescribeVirtualGatewayCommandError(output, context);
1565
+ return de_CommandError(output, context);
2207
1566
  }
2208
1567
  const contents = (0, import_smithy_client.map)({
2209
1568
  $metadata: deserializeMetadata(output)
@@ -2212,43 +1571,9 @@ var de_DescribeVirtualGatewayCommand = /* @__PURE__ */ __name(async (output, con
2212
1571
  contents.virtualGateway = de_VirtualGatewayData(data, context);
2213
1572
  return contents;
2214
1573
  }, "de_DescribeVirtualGatewayCommand");
2215
- var de_DescribeVirtualGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
2216
- const parsedOutput = {
2217
- ...output,
2218
- body: await parseErrorBody(output.body, context)
2219
- };
2220
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2221
- switch (errorCode) {
2222
- case "BadRequestException":
2223
- case "com.amazonaws.appmesh#BadRequestException":
2224
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2225
- case "ForbiddenException":
2226
- case "com.amazonaws.appmesh#ForbiddenException":
2227
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2228
- case "InternalServerErrorException":
2229
- case "com.amazonaws.appmesh#InternalServerErrorException":
2230
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2231
- case "NotFoundException":
2232
- case "com.amazonaws.appmesh#NotFoundException":
2233
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2234
- case "ServiceUnavailableException":
2235
- case "com.amazonaws.appmesh#ServiceUnavailableException":
2236
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2237
- case "TooManyRequestsException":
2238
- case "com.amazonaws.appmesh#TooManyRequestsException":
2239
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2240
- default:
2241
- const parsedBody = parsedOutput.body;
2242
- return throwDefaultError({
2243
- output,
2244
- parsedBody,
2245
- errorCode
2246
- });
2247
- }
2248
- }, "de_DescribeVirtualGatewayCommandError");
2249
1574
  var de_DescribeVirtualNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
2250
1575
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2251
- return de_DescribeVirtualNodeCommandError(output, context);
1576
+ return de_CommandError(output, context);
2252
1577
  }
2253
1578
  const contents = (0, import_smithy_client.map)({
2254
1579
  $metadata: deserializeMetadata(output)
@@ -2257,43 +1582,9 @@ var de_DescribeVirtualNodeCommand = /* @__PURE__ */ __name(async (output, contex
2257
1582
  contents.virtualNode = de_VirtualNodeData(data, context);
2258
1583
  return contents;
2259
1584
  }, "de_DescribeVirtualNodeCommand");
2260
- var de_DescribeVirtualNodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
2261
- const parsedOutput = {
2262
- ...output,
2263
- body: await parseErrorBody(output.body, context)
2264
- };
2265
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2266
- switch (errorCode) {
2267
- case "BadRequestException":
2268
- case "com.amazonaws.appmesh#BadRequestException":
2269
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2270
- case "ForbiddenException":
2271
- case "com.amazonaws.appmesh#ForbiddenException":
2272
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2273
- case "InternalServerErrorException":
2274
- case "com.amazonaws.appmesh#InternalServerErrorException":
2275
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2276
- case "NotFoundException":
2277
- case "com.amazonaws.appmesh#NotFoundException":
2278
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2279
- case "ServiceUnavailableException":
2280
- case "com.amazonaws.appmesh#ServiceUnavailableException":
2281
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2282
- case "TooManyRequestsException":
2283
- case "com.amazonaws.appmesh#TooManyRequestsException":
2284
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2285
- default:
2286
- const parsedBody = parsedOutput.body;
2287
- return throwDefaultError({
2288
- output,
2289
- parsedBody,
2290
- errorCode
2291
- });
2292
- }
2293
- }, "de_DescribeVirtualNodeCommandError");
2294
1585
  var de_DescribeVirtualRouterCommand = /* @__PURE__ */ __name(async (output, context) => {
2295
1586
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2296
- return de_DescribeVirtualRouterCommandError(output, context);
1587
+ return de_CommandError(output, context);
2297
1588
  }
2298
1589
  const contents = (0, import_smithy_client.map)({
2299
1590
  $metadata: deserializeMetadata(output)
@@ -2302,43 +1593,9 @@ var de_DescribeVirtualRouterCommand = /* @__PURE__ */ __name(async (output, cont
2302
1593
  contents.virtualRouter = de_VirtualRouterData(data, context);
2303
1594
  return contents;
2304
1595
  }, "de_DescribeVirtualRouterCommand");
2305
- var de_DescribeVirtualRouterCommandError = /* @__PURE__ */ __name(async (output, context) => {
2306
- const parsedOutput = {
2307
- ...output,
2308
- body: await parseErrorBody(output.body, context)
2309
- };
2310
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2311
- switch (errorCode) {
2312
- case "BadRequestException":
2313
- case "com.amazonaws.appmesh#BadRequestException":
2314
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2315
- case "ForbiddenException":
2316
- case "com.amazonaws.appmesh#ForbiddenException":
2317
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2318
- case "InternalServerErrorException":
2319
- case "com.amazonaws.appmesh#InternalServerErrorException":
2320
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2321
- case "NotFoundException":
2322
- case "com.amazonaws.appmesh#NotFoundException":
2323
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2324
- case "ServiceUnavailableException":
2325
- case "com.amazonaws.appmesh#ServiceUnavailableException":
2326
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2327
- case "TooManyRequestsException":
2328
- case "com.amazonaws.appmesh#TooManyRequestsException":
2329
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2330
- default:
2331
- const parsedBody = parsedOutput.body;
2332
- return throwDefaultError({
2333
- output,
2334
- parsedBody,
2335
- errorCode
2336
- });
2337
- }
2338
- }, "de_DescribeVirtualRouterCommandError");
2339
1596
  var de_DescribeVirtualServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
2340
1597
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2341
- return de_DescribeVirtualServiceCommandError(output, context);
1598
+ return de_CommandError(output, context);
2342
1599
  }
2343
1600
  const contents = (0, import_smithy_client.map)({
2344
1601
  $metadata: deserializeMetadata(output)
@@ -2347,43 +1604,9 @@ var de_DescribeVirtualServiceCommand = /* @__PURE__ */ __name(async (output, con
2347
1604
  contents.virtualService = de_VirtualServiceData(data, context);
2348
1605
  return contents;
2349
1606
  }, "de_DescribeVirtualServiceCommand");
2350
- var de_DescribeVirtualServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2351
- const parsedOutput = {
2352
- ...output,
2353
- body: await parseErrorBody(output.body, context)
2354
- };
2355
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2356
- switch (errorCode) {
2357
- case "BadRequestException":
2358
- case "com.amazonaws.appmesh#BadRequestException":
2359
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2360
- case "ForbiddenException":
2361
- case "com.amazonaws.appmesh#ForbiddenException":
2362
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2363
- case "InternalServerErrorException":
2364
- case "com.amazonaws.appmesh#InternalServerErrorException":
2365
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2366
- case "NotFoundException":
2367
- case "com.amazonaws.appmesh#NotFoundException":
2368
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2369
- case "ServiceUnavailableException":
2370
- case "com.amazonaws.appmesh#ServiceUnavailableException":
2371
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2372
- case "TooManyRequestsException":
2373
- case "com.amazonaws.appmesh#TooManyRequestsException":
2374
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2375
- default:
2376
- const parsedBody = parsedOutput.body;
2377
- return throwDefaultError({
2378
- output,
2379
- parsedBody,
2380
- errorCode
2381
- });
2382
- }
2383
- }, "de_DescribeVirtualServiceCommandError");
2384
1607
  var de_ListGatewayRoutesCommand = /* @__PURE__ */ __name(async (output, context) => {
2385
1608
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2386
- return de_ListGatewayRoutesCommandError(output, context);
1609
+ return de_CommandError(output, context);
2387
1610
  }
2388
1611
  const contents = (0, import_smithy_client.map)({
2389
1612
  $metadata: deserializeMetadata(output)
@@ -2396,43 +1619,9 @@ var de_ListGatewayRoutesCommand = /* @__PURE__ */ __name(async (output, context)
2396
1619
  Object.assign(contents, doc);
2397
1620
  return contents;
2398
1621
  }, "de_ListGatewayRoutesCommand");
2399
- var de_ListGatewayRoutesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2400
- const parsedOutput = {
2401
- ...output,
2402
- body: await parseErrorBody(output.body, context)
2403
- };
2404
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2405
- switch (errorCode) {
2406
- case "BadRequestException":
2407
- case "com.amazonaws.appmesh#BadRequestException":
2408
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2409
- case "ForbiddenException":
2410
- case "com.amazonaws.appmesh#ForbiddenException":
2411
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2412
- case "InternalServerErrorException":
2413
- case "com.amazonaws.appmesh#InternalServerErrorException":
2414
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2415
- case "NotFoundException":
2416
- case "com.amazonaws.appmesh#NotFoundException":
2417
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2418
- case "ServiceUnavailableException":
2419
- case "com.amazonaws.appmesh#ServiceUnavailableException":
2420
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2421
- case "TooManyRequestsException":
2422
- case "com.amazonaws.appmesh#TooManyRequestsException":
2423
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2424
- default:
2425
- const parsedBody = parsedOutput.body;
2426
- return throwDefaultError({
2427
- output,
2428
- parsedBody,
2429
- errorCode
2430
- });
2431
- }
2432
- }, "de_ListGatewayRoutesCommandError");
2433
1622
  var de_ListMeshesCommand = /* @__PURE__ */ __name(async (output, context) => {
2434
1623
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2435
- return de_ListMeshesCommandError(output, context);
1624
+ return de_CommandError(output, context);
2436
1625
  }
2437
1626
  const contents = (0, import_smithy_client.map)({
2438
1627
  $metadata: deserializeMetadata(output)
@@ -2445,43 +1634,9 @@ var de_ListMeshesCommand = /* @__PURE__ */ __name(async (output, context) => {
2445
1634
  Object.assign(contents, doc);
2446
1635
  return contents;
2447
1636
  }, "de_ListMeshesCommand");
2448
- var de_ListMeshesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2449
- const parsedOutput = {
2450
- ...output,
2451
- body: await parseErrorBody(output.body, context)
2452
- };
2453
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2454
- switch (errorCode) {
2455
- case "BadRequestException":
2456
- case "com.amazonaws.appmesh#BadRequestException":
2457
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2458
- case "ForbiddenException":
2459
- case "com.amazonaws.appmesh#ForbiddenException":
2460
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2461
- case "InternalServerErrorException":
2462
- case "com.amazonaws.appmesh#InternalServerErrorException":
2463
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2464
- case "NotFoundException":
2465
- case "com.amazonaws.appmesh#NotFoundException":
2466
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2467
- case "ServiceUnavailableException":
2468
- case "com.amazonaws.appmesh#ServiceUnavailableException":
2469
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2470
- case "TooManyRequestsException":
2471
- case "com.amazonaws.appmesh#TooManyRequestsException":
2472
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2473
- default:
2474
- const parsedBody = parsedOutput.body;
2475
- return throwDefaultError({
2476
- output,
2477
- parsedBody,
2478
- errorCode
2479
- });
2480
- }
2481
- }, "de_ListMeshesCommandError");
2482
1637
  var de_ListRoutesCommand = /* @__PURE__ */ __name(async (output, context) => {
2483
1638
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2484
- return de_ListRoutesCommandError(output, context);
1639
+ return de_CommandError(output, context);
2485
1640
  }
2486
1641
  const contents = (0, import_smithy_client.map)({
2487
1642
  $metadata: deserializeMetadata(output)
@@ -2490,47 +1645,13 @@ var de_ListRoutesCommand = /* @__PURE__ */ __name(async (output, context) => {
2490
1645
  const doc = (0, import_smithy_client.take)(data, {
2491
1646
  nextToken: import_smithy_client.expectString,
2492
1647
  routes: (_) => de_RouteList(_, context)
2493
- });
2494
- Object.assign(contents, doc);
2495
- return contents;
2496
- }, "de_ListRoutesCommand");
2497
- var de_ListRoutesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2498
- const parsedOutput = {
2499
- ...output,
2500
- body: await parseErrorBody(output.body, context)
2501
- };
2502
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2503
- switch (errorCode) {
2504
- case "BadRequestException":
2505
- case "com.amazonaws.appmesh#BadRequestException":
2506
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2507
- case "ForbiddenException":
2508
- case "com.amazonaws.appmesh#ForbiddenException":
2509
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2510
- case "InternalServerErrorException":
2511
- case "com.amazonaws.appmesh#InternalServerErrorException":
2512
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2513
- case "NotFoundException":
2514
- case "com.amazonaws.appmesh#NotFoundException":
2515
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2516
- case "ServiceUnavailableException":
2517
- case "com.amazonaws.appmesh#ServiceUnavailableException":
2518
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2519
- case "TooManyRequestsException":
2520
- case "com.amazonaws.appmesh#TooManyRequestsException":
2521
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2522
- default:
2523
- const parsedBody = parsedOutput.body;
2524
- return throwDefaultError({
2525
- output,
2526
- parsedBody,
2527
- errorCode
2528
- });
2529
- }
2530
- }, "de_ListRoutesCommandError");
1648
+ });
1649
+ Object.assign(contents, doc);
1650
+ return contents;
1651
+ }, "de_ListRoutesCommand");
2531
1652
  var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2532
1653
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2533
- return de_ListTagsForResourceCommandError(output, context);
1654
+ return de_CommandError(output, context);
2534
1655
  }
2535
1656
  const contents = (0, import_smithy_client.map)({
2536
1657
  $metadata: deserializeMetadata(output)
@@ -2543,43 +1664,9 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
2543
1664
  Object.assign(contents, doc);
2544
1665
  return contents;
2545
1666
  }, "de_ListTagsForResourceCommand");
2546
- var de_ListTagsForResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2547
- const parsedOutput = {
2548
- ...output,
2549
- body: await parseErrorBody(output.body, context)
2550
- };
2551
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2552
- switch (errorCode) {
2553
- case "BadRequestException":
2554
- case "com.amazonaws.appmesh#BadRequestException":
2555
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2556
- case "ForbiddenException":
2557
- case "com.amazonaws.appmesh#ForbiddenException":
2558
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2559
- case "InternalServerErrorException":
2560
- case "com.amazonaws.appmesh#InternalServerErrorException":
2561
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2562
- case "NotFoundException":
2563
- case "com.amazonaws.appmesh#NotFoundException":
2564
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2565
- case "ServiceUnavailableException":
2566
- case "com.amazonaws.appmesh#ServiceUnavailableException":
2567
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2568
- case "TooManyRequestsException":
2569
- case "com.amazonaws.appmesh#TooManyRequestsException":
2570
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2571
- default:
2572
- const parsedBody = parsedOutput.body;
2573
- return throwDefaultError({
2574
- output,
2575
- parsedBody,
2576
- errorCode
2577
- });
2578
- }
2579
- }, "de_ListTagsForResourceCommandError");
2580
1667
  var de_ListVirtualGatewaysCommand = /* @__PURE__ */ __name(async (output, context) => {
2581
1668
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2582
- return de_ListVirtualGatewaysCommandError(output, context);
1669
+ return de_CommandError(output, context);
2583
1670
  }
2584
1671
  const contents = (0, import_smithy_client.map)({
2585
1672
  $metadata: deserializeMetadata(output)
@@ -2592,43 +1679,9 @@ var de_ListVirtualGatewaysCommand = /* @__PURE__ */ __name(async (output, contex
2592
1679
  Object.assign(contents, doc);
2593
1680
  return contents;
2594
1681
  }, "de_ListVirtualGatewaysCommand");
2595
- var de_ListVirtualGatewaysCommandError = /* @__PURE__ */ __name(async (output, context) => {
2596
- const parsedOutput = {
2597
- ...output,
2598
- body: await parseErrorBody(output.body, context)
2599
- };
2600
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2601
- switch (errorCode) {
2602
- case "BadRequestException":
2603
- case "com.amazonaws.appmesh#BadRequestException":
2604
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2605
- case "ForbiddenException":
2606
- case "com.amazonaws.appmesh#ForbiddenException":
2607
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2608
- case "InternalServerErrorException":
2609
- case "com.amazonaws.appmesh#InternalServerErrorException":
2610
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2611
- case "NotFoundException":
2612
- case "com.amazonaws.appmesh#NotFoundException":
2613
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2614
- case "ServiceUnavailableException":
2615
- case "com.amazonaws.appmesh#ServiceUnavailableException":
2616
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2617
- case "TooManyRequestsException":
2618
- case "com.amazonaws.appmesh#TooManyRequestsException":
2619
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2620
- default:
2621
- const parsedBody = parsedOutput.body;
2622
- return throwDefaultError({
2623
- output,
2624
- parsedBody,
2625
- errorCode
2626
- });
2627
- }
2628
- }, "de_ListVirtualGatewaysCommandError");
2629
1682
  var de_ListVirtualNodesCommand = /* @__PURE__ */ __name(async (output, context) => {
2630
1683
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2631
- return de_ListVirtualNodesCommandError(output, context);
1684
+ return de_CommandError(output, context);
2632
1685
  }
2633
1686
  const contents = (0, import_smithy_client.map)({
2634
1687
  $metadata: deserializeMetadata(output)
@@ -2641,43 +1694,9 @@ var de_ListVirtualNodesCommand = /* @__PURE__ */ __name(async (output, context)
2641
1694
  Object.assign(contents, doc);
2642
1695
  return contents;
2643
1696
  }, "de_ListVirtualNodesCommand");
2644
- var de_ListVirtualNodesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2645
- const parsedOutput = {
2646
- ...output,
2647
- body: await parseErrorBody(output.body, context)
2648
- };
2649
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2650
- switch (errorCode) {
2651
- case "BadRequestException":
2652
- case "com.amazonaws.appmesh#BadRequestException":
2653
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2654
- case "ForbiddenException":
2655
- case "com.amazonaws.appmesh#ForbiddenException":
2656
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2657
- case "InternalServerErrorException":
2658
- case "com.amazonaws.appmesh#InternalServerErrorException":
2659
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2660
- case "NotFoundException":
2661
- case "com.amazonaws.appmesh#NotFoundException":
2662
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2663
- case "ServiceUnavailableException":
2664
- case "com.amazonaws.appmesh#ServiceUnavailableException":
2665
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2666
- case "TooManyRequestsException":
2667
- case "com.amazonaws.appmesh#TooManyRequestsException":
2668
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2669
- default:
2670
- const parsedBody = parsedOutput.body;
2671
- return throwDefaultError({
2672
- output,
2673
- parsedBody,
2674
- errorCode
2675
- });
2676
- }
2677
- }, "de_ListVirtualNodesCommandError");
2678
1697
  var de_ListVirtualRoutersCommand = /* @__PURE__ */ __name(async (output, context) => {
2679
1698
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2680
- return de_ListVirtualRoutersCommandError(output, context);
1699
+ return de_CommandError(output, context);
2681
1700
  }
2682
1701
  const contents = (0, import_smithy_client.map)({
2683
1702
  $metadata: deserializeMetadata(output)
@@ -2690,183 +1709,44 @@ var de_ListVirtualRoutersCommand = /* @__PURE__ */ __name(async (output, context
2690
1709
  Object.assign(contents, doc);
2691
1710
  return contents;
2692
1711
  }, "de_ListVirtualRoutersCommand");
2693
- var de_ListVirtualRoutersCommandError = /* @__PURE__ */ __name(async (output, context) => {
2694
- const parsedOutput = {
2695
- ...output,
2696
- body: await parseErrorBody(output.body, context)
2697
- };
2698
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2699
- switch (errorCode) {
2700
- case "BadRequestException":
2701
- case "com.amazonaws.appmesh#BadRequestException":
2702
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2703
- case "ForbiddenException":
2704
- case "com.amazonaws.appmesh#ForbiddenException":
2705
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2706
- case "InternalServerErrorException":
2707
- case "com.amazonaws.appmesh#InternalServerErrorException":
2708
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2709
- case "NotFoundException":
2710
- case "com.amazonaws.appmesh#NotFoundException":
2711
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2712
- case "ServiceUnavailableException":
2713
- case "com.amazonaws.appmesh#ServiceUnavailableException":
2714
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2715
- case "TooManyRequestsException":
2716
- case "com.amazonaws.appmesh#TooManyRequestsException":
2717
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2718
- default:
2719
- const parsedBody = parsedOutput.body;
2720
- return throwDefaultError({
2721
- output,
2722
- parsedBody,
2723
- errorCode
2724
- });
2725
- }
2726
- }, "de_ListVirtualRoutersCommandError");
2727
1712
  var de_ListVirtualServicesCommand = /* @__PURE__ */ __name(async (output, context) => {
2728
1713
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2729
- return de_ListVirtualServicesCommandError(output, context);
2730
- }
2731
- const contents = (0, import_smithy_client.map)({
2732
- $metadata: deserializeMetadata(output)
2733
- });
2734
- const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
2735
- const doc = (0, import_smithy_client.take)(data, {
2736
- nextToken: import_smithy_client.expectString,
2737
- virtualServices: (_) => de_VirtualServiceList(_, context)
2738
- });
2739
- Object.assign(contents, doc);
2740
- return contents;
2741
- }, "de_ListVirtualServicesCommand");
2742
- var de_ListVirtualServicesCommandError = /* @__PURE__ */ __name(async (output, context) => {
2743
- const parsedOutput = {
2744
- ...output,
2745
- body: await parseErrorBody(output.body, context)
2746
- };
2747
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2748
- switch (errorCode) {
2749
- case "BadRequestException":
2750
- case "com.amazonaws.appmesh#BadRequestException":
2751
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2752
- case "ForbiddenException":
2753
- case "com.amazonaws.appmesh#ForbiddenException":
2754
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2755
- case "InternalServerErrorException":
2756
- case "com.amazonaws.appmesh#InternalServerErrorException":
2757
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2758
- case "NotFoundException":
2759
- case "com.amazonaws.appmesh#NotFoundException":
2760
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2761
- case "ServiceUnavailableException":
2762
- case "com.amazonaws.appmesh#ServiceUnavailableException":
2763
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2764
- case "TooManyRequestsException":
2765
- case "com.amazonaws.appmesh#TooManyRequestsException":
2766
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2767
- default:
2768
- const parsedBody = parsedOutput.body;
2769
- return throwDefaultError({
2770
- output,
2771
- parsedBody,
2772
- errorCode
2773
- });
2774
- }
2775
- }, "de_ListVirtualServicesCommandError");
2776
- var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2777
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2778
- return de_TagResourceCommandError(output, context);
2779
- }
2780
- const contents = (0, import_smithy_client.map)({
2781
- $metadata: deserializeMetadata(output)
2782
- });
2783
- await (0, import_smithy_client.collectBody)(output.body, context);
2784
- return contents;
2785
- }, "de_TagResourceCommand");
2786
- var de_TagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2787
- const parsedOutput = {
2788
- ...output,
2789
- body: await parseErrorBody(output.body, context)
2790
- };
2791
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2792
- switch (errorCode) {
2793
- case "BadRequestException":
2794
- case "com.amazonaws.appmesh#BadRequestException":
2795
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2796
- case "ForbiddenException":
2797
- case "com.amazonaws.appmesh#ForbiddenException":
2798
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2799
- case "InternalServerErrorException":
2800
- case "com.amazonaws.appmesh#InternalServerErrorException":
2801
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2802
- case "NotFoundException":
2803
- case "com.amazonaws.appmesh#NotFoundException":
2804
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2805
- case "ServiceUnavailableException":
2806
- case "com.amazonaws.appmesh#ServiceUnavailableException":
2807
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2808
- case "TooManyRequestsException":
2809
- case "com.amazonaws.appmesh#TooManyRequestsException":
2810
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2811
- case "TooManyTagsException":
2812
- case "com.amazonaws.appmesh#TooManyTagsException":
2813
- throw await de_TooManyTagsExceptionRes(parsedOutput, context);
2814
- default:
2815
- const parsedBody = parsedOutput.body;
2816
- return throwDefaultError({
2817
- output,
2818
- parsedBody,
2819
- errorCode
2820
- });
2821
- }
2822
- }, "de_TagResourceCommandError");
2823
- var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
2824
- if (output.statusCode !== 200 && output.statusCode >= 300) {
2825
- return de_UntagResourceCommandError(output, context);
1714
+ return de_CommandError(output, context);
2826
1715
  }
2827
1716
  const contents = (0, import_smithy_client.map)({
2828
1717
  $metadata: deserializeMetadata(output)
2829
1718
  });
2830
- await (0, import_smithy_client.collectBody)(output.body, context);
2831
- return contents;
2832
- }, "de_UntagResourceCommand");
2833
- var de_UntagResourceCommandError = /* @__PURE__ */ __name(async (output, context) => {
2834
- const parsedOutput = {
2835
- ...output,
2836
- body: await parseErrorBody(output.body, context)
2837
- };
2838
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2839
- switch (errorCode) {
2840
- case "BadRequestException":
2841
- case "com.amazonaws.appmesh#BadRequestException":
2842
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2843
- case "ForbiddenException":
2844
- case "com.amazonaws.appmesh#ForbiddenException":
2845
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2846
- case "InternalServerErrorException":
2847
- case "com.amazonaws.appmesh#InternalServerErrorException":
2848
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2849
- case "NotFoundException":
2850
- case "com.amazonaws.appmesh#NotFoundException":
2851
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2852
- case "ServiceUnavailableException":
2853
- case "com.amazonaws.appmesh#ServiceUnavailableException":
2854
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2855
- case "TooManyRequestsException":
2856
- case "com.amazonaws.appmesh#TooManyRequestsException":
2857
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2858
- default:
2859
- const parsedBody = parsedOutput.body;
2860
- return throwDefaultError({
2861
- output,
2862
- parsedBody,
2863
- errorCode
2864
- });
1719
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await parseBody(output.body, context)), "body");
1720
+ const doc = (0, import_smithy_client.take)(data, {
1721
+ nextToken: import_smithy_client.expectString,
1722
+ virtualServices: (_) => de_VirtualServiceList(_, context)
1723
+ });
1724
+ Object.assign(contents, doc);
1725
+ return contents;
1726
+ }, "de_ListVirtualServicesCommand");
1727
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1728
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1729
+ return de_CommandError(output, context);
1730
+ }
1731
+ const contents = (0, import_smithy_client.map)({
1732
+ $metadata: deserializeMetadata(output)
1733
+ });
1734
+ await (0, import_smithy_client.collectBody)(output.body, context);
1735
+ return contents;
1736
+ }, "de_TagResourceCommand");
1737
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
1738
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
1739
+ return de_CommandError(output, context);
2865
1740
  }
2866
- }, "de_UntagResourceCommandError");
1741
+ const contents = (0, import_smithy_client.map)({
1742
+ $metadata: deserializeMetadata(output)
1743
+ });
1744
+ await (0, import_smithy_client.collectBody)(output.body, context);
1745
+ return contents;
1746
+ }, "de_UntagResourceCommand");
2867
1747
  var de_UpdateGatewayRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
2868
1748
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2869
- return de_UpdateGatewayRouteCommandError(output, context);
1749
+ return de_CommandError(output, context);
2870
1750
  }
2871
1751
  const contents = (0, import_smithy_client.map)({
2872
1752
  $metadata: deserializeMetadata(output)
@@ -2875,49 +1755,9 @@ var de_UpdateGatewayRouteCommand = /* @__PURE__ */ __name(async (output, context
2875
1755
  contents.gatewayRoute = de_GatewayRouteData(data, context);
2876
1756
  return contents;
2877
1757
  }, "de_UpdateGatewayRouteCommand");
2878
- var de_UpdateGatewayRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
2879
- const parsedOutput = {
2880
- ...output,
2881
- body: await parseErrorBody(output.body, context)
2882
- };
2883
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2884
- switch (errorCode) {
2885
- case "BadRequestException":
2886
- case "com.amazonaws.appmesh#BadRequestException":
2887
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2888
- case "ConflictException":
2889
- case "com.amazonaws.appmesh#ConflictException":
2890
- throw await de_ConflictExceptionRes(parsedOutput, context);
2891
- case "ForbiddenException":
2892
- case "com.amazonaws.appmesh#ForbiddenException":
2893
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2894
- case "InternalServerErrorException":
2895
- case "com.amazonaws.appmesh#InternalServerErrorException":
2896
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2897
- case "LimitExceededException":
2898
- case "com.amazonaws.appmesh#LimitExceededException":
2899
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2900
- case "NotFoundException":
2901
- case "com.amazonaws.appmesh#NotFoundException":
2902
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2903
- case "ServiceUnavailableException":
2904
- case "com.amazonaws.appmesh#ServiceUnavailableException":
2905
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2906
- case "TooManyRequestsException":
2907
- case "com.amazonaws.appmesh#TooManyRequestsException":
2908
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2909
- default:
2910
- const parsedBody = parsedOutput.body;
2911
- return throwDefaultError({
2912
- output,
2913
- parsedBody,
2914
- errorCode
2915
- });
2916
- }
2917
- }, "de_UpdateGatewayRouteCommandError");
2918
1758
  var de_UpdateMeshCommand = /* @__PURE__ */ __name(async (output, context) => {
2919
1759
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2920
- return de_UpdateMeshCommandError(output, context);
1760
+ return de_CommandError(output, context);
2921
1761
  }
2922
1762
  const contents = (0, import_smithy_client.map)({
2923
1763
  $metadata: deserializeMetadata(output)
@@ -2926,46 +1766,9 @@ var de_UpdateMeshCommand = /* @__PURE__ */ __name(async (output, context) => {
2926
1766
  contents.mesh = de_MeshData(data, context);
2927
1767
  return contents;
2928
1768
  }, "de_UpdateMeshCommand");
2929
- var de_UpdateMeshCommandError = /* @__PURE__ */ __name(async (output, context) => {
2930
- const parsedOutput = {
2931
- ...output,
2932
- body: await parseErrorBody(output.body, context)
2933
- };
2934
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2935
- switch (errorCode) {
2936
- case "BadRequestException":
2937
- case "com.amazonaws.appmesh#BadRequestException":
2938
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2939
- case "ConflictException":
2940
- case "com.amazonaws.appmesh#ConflictException":
2941
- throw await de_ConflictExceptionRes(parsedOutput, context);
2942
- case "ForbiddenException":
2943
- case "com.amazonaws.appmesh#ForbiddenException":
2944
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2945
- case "InternalServerErrorException":
2946
- case "com.amazonaws.appmesh#InternalServerErrorException":
2947
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2948
- case "NotFoundException":
2949
- case "com.amazonaws.appmesh#NotFoundException":
2950
- throw await de_NotFoundExceptionRes(parsedOutput, context);
2951
- case "ServiceUnavailableException":
2952
- case "com.amazonaws.appmesh#ServiceUnavailableException":
2953
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
2954
- case "TooManyRequestsException":
2955
- case "com.amazonaws.appmesh#TooManyRequestsException":
2956
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
2957
- default:
2958
- const parsedBody = parsedOutput.body;
2959
- return throwDefaultError({
2960
- output,
2961
- parsedBody,
2962
- errorCode
2963
- });
2964
- }
2965
- }, "de_UpdateMeshCommandError");
2966
1769
  var de_UpdateRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
2967
1770
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2968
- return de_UpdateRouteCommandError(output, context);
1771
+ return de_CommandError(output, context);
2969
1772
  }
2970
1773
  const contents = (0, import_smithy_client.map)({
2971
1774
  $metadata: deserializeMetadata(output)
@@ -2974,49 +1777,9 @@ var de_UpdateRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
2974
1777
  contents.route = de_RouteData(data, context);
2975
1778
  return contents;
2976
1779
  }, "de_UpdateRouteCommand");
2977
- var de_UpdateRouteCommandError = /* @__PURE__ */ __name(async (output, context) => {
2978
- const parsedOutput = {
2979
- ...output,
2980
- body: await parseErrorBody(output.body, context)
2981
- };
2982
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2983
- switch (errorCode) {
2984
- case "BadRequestException":
2985
- case "com.amazonaws.appmesh#BadRequestException":
2986
- throw await de_BadRequestExceptionRes(parsedOutput, context);
2987
- case "ConflictException":
2988
- case "com.amazonaws.appmesh#ConflictException":
2989
- throw await de_ConflictExceptionRes(parsedOutput, context);
2990
- case "ForbiddenException":
2991
- case "com.amazonaws.appmesh#ForbiddenException":
2992
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
2993
- case "InternalServerErrorException":
2994
- case "com.amazonaws.appmesh#InternalServerErrorException":
2995
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
2996
- case "LimitExceededException":
2997
- case "com.amazonaws.appmesh#LimitExceededException":
2998
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
2999
- case "NotFoundException":
3000
- case "com.amazonaws.appmesh#NotFoundException":
3001
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3002
- case "ServiceUnavailableException":
3003
- case "com.amazonaws.appmesh#ServiceUnavailableException":
3004
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3005
- case "TooManyRequestsException":
3006
- case "com.amazonaws.appmesh#TooManyRequestsException":
3007
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3008
- default:
3009
- const parsedBody = parsedOutput.body;
3010
- return throwDefaultError({
3011
- output,
3012
- parsedBody,
3013
- errorCode
3014
- });
3015
- }
3016
- }, "de_UpdateRouteCommandError");
3017
1780
  var de_UpdateVirtualGatewayCommand = /* @__PURE__ */ __name(async (output, context) => {
3018
1781
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3019
- return de_UpdateVirtualGatewayCommandError(output, context);
1782
+ return de_CommandError(output, context);
3020
1783
  }
3021
1784
  const contents = (0, import_smithy_client.map)({
3022
1785
  $metadata: deserializeMetadata(output)
@@ -3025,49 +1788,9 @@ var de_UpdateVirtualGatewayCommand = /* @__PURE__ */ __name(async (output, conte
3025
1788
  contents.virtualGateway = de_VirtualGatewayData(data, context);
3026
1789
  return contents;
3027
1790
  }, "de_UpdateVirtualGatewayCommand");
3028
- var de_UpdateVirtualGatewayCommandError = /* @__PURE__ */ __name(async (output, context) => {
3029
- const parsedOutput = {
3030
- ...output,
3031
- body: await parseErrorBody(output.body, context)
3032
- };
3033
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3034
- switch (errorCode) {
3035
- case "BadRequestException":
3036
- case "com.amazonaws.appmesh#BadRequestException":
3037
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3038
- case "ConflictException":
3039
- case "com.amazonaws.appmesh#ConflictException":
3040
- throw await de_ConflictExceptionRes(parsedOutput, context);
3041
- case "ForbiddenException":
3042
- case "com.amazonaws.appmesh#ForbiddenException":
3043
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3044
- case "InternalServerErrorException":
3045
- case "com.amazonaws.appmesh#InternalServerErrorException":
3046
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3047
- case "LimitExceededException":
3048
- case "com.amazonaws.appmesh#LimitExceededException":
3049
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
3050
- case "NotFoundException":
3051
- case "com.amazonaws.appmesh#NotFoundException":
3052
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3053
- case "ServiceUnavailableException":
3054
- case "com.amazonaws.appmesh#ServiceUnavailableException":
3055
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3056
- case "TooManyRequestsException":
3057
- case "com.amazonaws.appmesh#TooManyRequestsException":
3058
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3059
- default:
3060
- const parsedBody = parsedOutput.body;
3061
- return throwDefaultError({
3062
- output,
3063
- parsedBody,
3064
- errorCode
3065
- });
3066
- }
3067
- }, "de_UpdateVirtualGatewayCommandError");
3068
1791
  var de_UpdateVirtualNodeCommand = /* @__PURE__ */ __name(async (output, context) => {
3069
1792
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3070
- return de_UpdateVirtualNodeCommandError(output, context);
1793
+ return de_CommandError(output, context);
3071
1794
  }
3072
1795
  const contents = (0, import_smithy_client.map)({
3073
1796
  $metadata: deserializeMetadata(output)
@@ -3076,49 +1799,9 @@ var de_UpdateVirtualNodeCommand = /* @__PURE__ */ __name(async (output, context)
3076
1799
  contents.virtualNode = de_VirtualNodeData(data, context);
3077
1800
  return contents;
3078
1801
  }, "de_UpdateVirtualNodeCommand");
3079
- var de_UpdateVirtualNodeCommandError = /* @__PURE__ */ __name(async (output, context) => {
3080
- const parsedOutput = {
3081
- ...output,
3082
- body: await parseErrorBody(output.body, context)
3083
- };
3084
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3085
- switch (errorCode) {
3086
- case "BadRequestException":
3087
- case "com.amazonaws.appmesh#BadRequestException":
3088
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3089
- case "ConflictException":
3090
- case "com.amazonaws.appmesh#ConflictException":
3091
- throw await de_ConflictExceptionRes(parsedOutput, context);
3092
- case "ForbiddenException":
3093
- case "com.amazonaws.appmesh#ForbiddenException":
3094
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3095
- case "InternalServerErrorException":
3096
- case "com.amazonaws.appmesh#InternalServerErrorException":
3097
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3098
- case "LimitExceededException":
3099
- case "com.amazonaws.appmesh#LimitExceededException":
3100
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
3101
- case "NotFoundException":
3102
- case "com.amazonaws.appmesh#NotFoundException":
3103
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3104
- case "ServiceUnavailableException":
3105
- case "com.amazonaws.appmesh#ServiceUnavailableException":
3106
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3107
- case "TooManyRequestsException":
3108
- case "com.amazonaws.appmesh#TooManyRequestsException":
3109
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3110
- default:
3111
- const parsedBody = parsedOutput.body;
3112
- return throwDefaultError({
3113
- output,
3114
- parsedBody,
3115
- errorCode
3116
- });
3117
- }
3118
- }, "de_UpdateVirtualNodeCommandError");
3119
1802
  var de_UpdateVirtualRouterCommand = /* @__PURE__ */ __name(async (output, context) => {
3120
1803
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3121
- return de_UpdateVirtualRouterCommandError(output, context);
1804
+ return de_CommandError(output, context);
3122
1805
  }
3123
1806
  const contents = (0, import_smithy_client.map)({
3124
1807
  $metadata: deserializeMetadata(output)
@@ -3127,49 +1810,9 @@ var de_UpdateVirtualRouterCommand = /* @__PURE__ */ __name(async (output, contex
3127
1810
  contents.virtualRouter = de_VirtualRouterData(data, context);
3128
1811
  return contents;
3129
1812
  }, "de_UpdateVirtualRouterCommand");
3130
- var de_UpdateVirtualRouterCommandError = /* @__PURE__ */ __name(async (output, context) => {
3131
- const parsedOutput = {
3132
- ...output,
3133
- body: await parseErrorBody(output.body, context)
3134
- };
3135
- const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
3136
- switch (errorCode) {
3137
- case "BadRequestException":
3138
- case "com.amazonaws.appmesh#BadRequestException":
3139
- throw await de_BadRequestExceptionRes(parsedOutput, context);
3140
- case "ConflictException":
3141
- case "com.amazonaws.appmesh#ConflictException":
3142
- throw await de_ConflictExceptionRes(parsedOutput, context);
3143
- case "ForbiddenException":
3144
- case "com.amazonaws.appmesh#ForbiddenException":
3145
- throw await de_ForbiddenExceptionRes(parsedOutput, context);
3146
- case "InternalServerErrorException":
3147
- case "com.amazonaws.appmesh#InternalServerErrorException":
3148
- throw await de_InternalServerErrorExceptionRes(parsedOutput, context);
3149
- case "LimitExceededException":
3150
- case "com.amazonaws.appmesh#LimitExceededException":
3151
- throw await de_LimitExceededExceptionRes(parsedOutput, context);
3152
- case "NotFoundException":
3153
- case "com.amazonaws.appmesh#NotFoundException":
3154
- throw await de_NotFoundExceptionRes(parsedOutput, context);
3155
- case "ServiceUnavailableException":
3156
- case "com.amazonaws.appmesh#ServiceUnavailableException":
3157
- throw await de_ServiceUnavailableExceptionRes(parsedOutput, context);
3158
- case "TooManyRequestsException":
3159
- case "com.amazonaws.appmesh#TooManyRequestsException":
3160
- throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
3161
- default:
3162
- const parsedBody = parsedOutput.body;
3163
- return throwDefaultError({
3164
- output,
3165
- parsedBody,
3166
- errorCode
3167
- });
3168
- }
3169
- }, "de_UpdateVirtualRouterCommandError");
3170
1813
  var de_UpdateVirtualServiceCommand = /* @__PURE__ */ __name(async (output, context) => {
3171
1814
  if (output.statusCode !== 200 && output.statusCode >= 300) {
3172
- return de_UpdateVirtualServiceCommandError(output, context);
1815
+ return de_CommandError(output, context);
3173
1816
  }
3174
1817
  const contents = (0, import_smithy_client.map)({
3175
1818
  $metadata: deserializeMetadata(output)
@@ -3178,7 +1821,7 @@ var de_UpdateVirtualServiceCommand = /* @__PURE__ */ __name(async (output, conte
3178
1821
  contents.virtualService = de_VirtualServiceData(data, context);
3179
1822
  return contents;
3180
1823
  }, "de_UpdateVirtualServiceCommand");
3181
- var de_UpdateVirtualServiceCommandError = /* @__PURE__ */ __name(async (output, context) => {
1824
+ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
3182
1825
  const parsedOutput = {
3183
1826
  ...output,
3184
1827
  body: await parseErrorBody(output.body, context)
@@ -3209,6 +1852,12 @@ var de_UpdateVirtualServiceCommandError = /* @__PURE__ */ __name(async (output,
3209
1852
  case "TooManyRequestsException":
3210
1853
  case "com.amazonaws.appmesh#TooManyRequestsException":
3211
1854
  throw await de_TooManyRequestsExceptionRes(parsedOutput, context);
1855
+ case "ResourceInUseException":
1856
+ case "com.amazonaws.appmesh#ResourceInUseException":
1857
+ throw await de_ResourceInUseExceptionRes(parsedOutput, context);
1858
+ case "TooManyTagsException":
1859
+ case "com.amazonaws.appmesh#TooManyTagsException":
1860
+ throw await de_TooManyTagsExceptionRes(parsedOutput, context);
3212
1861
  default:
3213
1862
  const parsedBody = parsedOutput.body;
3214
1863
  return throwDefaultError({
@@ -3217,7 +1866,7 @@ var de_UpdateVirtualServiceCommandError = /* @__PURE__ */ __name(async (output,
3217
1866
  errorCode
3218
1867
  });
3219
1868
  }
3220
- }, "de_UpdateVirtualServiceCommandError");
1869
+ }, "de_CommandError");
3221
1870
  var throwDefaultError = (0, import_smithy_client.withBaseException)(AppMeshServiceException);
3222
1871
  var de_BadRequestExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
3223
1872
  const contents = (0, import_smithy_client.map)({});