@aws-sdk/client-app-mesh 3.525.0 → 3.529.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 +39 -79
- package/dist-es/protocols/Aws_restJson1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -277,6 +277,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
277
277
|
var import_types = require("@smithy/types");
|
|
278
278
|
|
|
279
279
|
// src/protocols/Aws_restJson1.ts
|
|
280
|
+
var import_core2 = require("@aws-sdk/core");
|
|
280
281
|
|
|
281
282
|
|
|
282
283
|
var import_uuid = require("uuid");
|
|
@@ -1438,7 +1439,7 @@ var de_CreateGatewayRouteCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1438
1439
|
const contents = (0, import_smithy_client.map)({
|
|
1439
1440
|
$metadata: deserializeMetadata(output)
|
|
1440
1441
|
});
|
|
1441
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1442
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1442
1443
|
contents.gatewayRoute = de_GatewayRouteData(data, context);
|
|
1443
1444
|
return contents;
|
|
1444
1445
|
}, "de_CreateGatewayRouteCommand");
|
|
@@ -1449,7 +1450,7 @@ var de_CreateMeshCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1449
1450
|
const contents = (0, import_smithy_client.map)({
|
|
1450
1451
|
$metadata: deserializeMetadata(output)
|
|
1451
1452
|
});
|
|
1452
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1453
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1453
1454
|
contents.mesh = de_MeshData(data, context);
|
|
1454
1455
|
return contents;
|
|
1455
1456
|
}, "de_CreateMeshCommand");
|
|
@@ -1460,7 +1461,7 @@ var de_CreateRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1460
1461
|
const contents = (0, import_smithy_client.map)({
|
|
1461
1462
|
$metadata: deserializeMetadata(output)
|
|
1462
1463
|
});
|
|
1463
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1464
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1464
1465
|
contents.route = de_RouteData(data, context);
|
|
1465
1466
|
return contents;
|
|
1466
1467
|
}, "de_CreateRouteCommand");
|
|
@@ -1471,7 +1472,7 @@ var de_CreateVirtualGatewayCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1471
1472
|
const contents = (0, import_smithy_client.map)({
|
|
1472
1473
|
$metadata: deserializeMetadata(output)
|
|
1473
1474
|
});
|
|
1474
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1475
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1475
1476
|
contents.virtualGateway = de_VirtualGatewayData(data, context);
|
|
1476
1477
|
return contents;
|
|
1477
1478
|
}, "de_CreateVirtualGatewayCommand");
|
|
@@ -1482,7 +1483,7 @@ var de_CreateVirtualNodeCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1482
1483
|
const contents = (0, import_smithy_client.map)({
|
|
1483
1484
|
$metadata: deserializeMetadata(output)
|
|
1484
1485
|
});
|
|
1485
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1486
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1486
1487
|
contents.virtualNode = de_VirtualNodeData(data, context);
|
|
1487
1488
|
return contents;
|
|
1488
1489
|
}, "de_CreateVirtualNodeCommand");
|
|
@@ -1493,7 +1494,7 @@ var de_CreateVirtualRouterCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1493
1494
|
const contents = (0, import_smithy_client.map)({
|
|
1494
1495
|
$metadata: deserializeMetadata(output)
|
|
1495
1496
|
});
|
|
1496
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1497
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1497
1498
|
contents.virtualRouter = de_VirtualRouterData(data, context);
|
|
1498
1499
|
return contents;
|
|
1499
1500
|
}, "de_CreateVirtualRouterCommand");
|
|
@@ -1504,7 +1505,7 @@ var de_CreateVirtualServiceCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1504
1505
|
const contents = (0, import_smithy_client.map)({
|
|
1505
1506
|
$metadata: deserializeMetadata(output)
|
|
1506
1507
|
});
|
|
1507
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1508
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1508
1509
|
contents.virtualService = de_VirtualServiceData(data, context);
|
|
1509
1510
|
return contents;
|
|
1510
1511
|
}, "de_CreateVirtualServiceCommand");
|
|
@@ -1515,7 +1516,7 @@ var de_DeleteGatewayRouteCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1515
1516
|
const contents = (0, import_smithy_client.map)({
|
|
1516
1517
|
$metadata: deserializeMetadata(output)
|
|
1517
1518
|
});
|
|
1518
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1519
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1519
1520
|
contents.gatewayRoute = de_GatewayRouteData(data, context);
|
|
1520
1521
|
return contents;
|
|
1521
1522
|
}, "de_DeleteGatewayRouteCommand");
|
|
@@ -1526,7 +1527,7 @@ var de_DeleteMeshCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1526
1527
|
const contents = (0, import_smithy_client.map)({
|
|
1527
1528
|
$metadata: deserializeMetadata(output)
|
|
1528
1529
|
});
|
|
1529
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1530
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1530
1531
|
contents.mesh = de_MeshData(data, context);
|
|
1531
1532
|
return contents;
|
|
1532
1533
|
}, "de_DeleteMeshCommand");
|
|
@@ -1537,7 +1538,7 @@ var de_DeleteRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1537
1538
|
const contents = (0, import_smithy_client.map)({
|
|
1538
1539
|
$metadata: deserializeMetadata(output)
|
|
1539
1540
|
});
|
|
1540
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1541
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1541
1542
|
contents.route = de_RouteData(data, context);
|
|
1542
1543
|
return contents;
|
|
1543
1544
|
}, "de_DeleteRouteCommand");
|
|
@@ -1548,7 +1549,7 @@ var de_DeleteVirtualGatewayCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1548
1549
|
const contents = (0, import_smithy_client.map)({
|
|
1549
1550
|
$metadata: deserializeMetadata(output)
|
|
1550
1551
|
});
|
|
1551
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1552
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1552
1553
|
contents.virtualGateway = de_VirtualGatewayData(data, context);
|
|
1553
1554
|
return contents;
|
|
1554
1555
|
}, "de_DeleteVirtualGatewayCommand");
|
|
@@ -1559,7 +1560,7 @@ var de_DeleteVirtualNodeCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1559
1560
|
const contents = (0, import_smithy_client.map)({
|
|
1560
1561
|
$metadata: deserializeMetadata(output)
|
|
1561
1562
|
});
|
|
1562
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1563
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1563
1564
|
contents.virtualNode = de_VirtualNodeData(data, context);
|
|
1564
1565
|
return contents;
|
|
1565
1566
|
}, "de_DeleteVirtualNodeCommand");
|
|
@@ -1570,7 +1571,7 @@ var de_DeleteVirtualRouterCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1570
1571
|
const contents = (0, import_smithy_client.map)({
|
|
1571
1572
|
$metadata: deserializeMetadata(output)
|
|
1572
1573
|
});
|
|
1573
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1574
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1574
1575
|
contents.virtualRouter = de_VirtualRouterData(data, context);
|
|
1575
1576
|
return contents;
|
|
1576
1577
|
}, "de_DeleteVirtualRouterCommand");
|
|
@@ -1581,7 +1582,7 @@ var de_DeleteVirtualServiceCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1581
1582
|
const contents = (0, import_smithy_client.map)({
|
|
1582
1583
|
$metadata: deserializeMetadata(output)
|
|
1583
1584
|
});
|
|
1584
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1585
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1585
1586
|
contents.virtualService = de_VirtualServiceData(data, context);
|
|
1586
1587
|
return contents;
|
|
1587
1588
|
}, "de_DeleteVirtualServiceCommand");
|
|
@@ -1592,7 +1593,7 @@ var de_DescribeGatewayRouteCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1592
1593
|
const contents = (0, import_smithy_client.map)({
|
|
1593
1594
|
$metadata: deserializeMetadata(output)
|
|
1594
1595
|
});
|
|
1595
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1596
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1596
1597
|
contents.gatewayRoute = de_GatewayRouteData(data, context);
|
|
1597
1598
|
return contents;
|
|
1598
1599
|
}, "de_DescribeGatewayRouteCommand");
|
|
@@ -1603,7 +1604,7 @@ var de_DescribeMeshCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1603
1604
|
const contents = (0, import_smithy_client.map)({
|
|
1604
1605
|
$metadata: deserializeMetadata(output)
|
|
1605
1606
|
});
|
|
1606
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1607
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1607
1608
|
contents.mesh = de_MeshData(data, context);
|
|
1608
1609
|
return contents;
|
|
1609
1610
|
}, "de_DescribeMeshCommand");
|
|
@@ -1614,7 +1615,7 @@ var de_DescribeRouteCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1614
1615
|
const contents = (0, import_smithy_client.map)({
|
|
1615
1616
|
$metadata: deserializeMetadata(output)
|
|
1616
1617
|
});
|
|
1617
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1618
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1618
1619
|
contents.route = de_RouteData(data, context);
|
|
1619
1620
|
return contents;
|
|
1620
1621
|
}, "de_DescribeRouteCommand");
|
|
@@ -1625,7 +1626,7 @@ var de_DescribeVirtualGatewayCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1625
1626
|
const contents = (0, import_smithy_client.map)({
|
|
1626
1627
|
$metadata: deserializeMetadata(output)
|
|
1627
1628
|
});
|
|
1628
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1629
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1629
1630
|
contents.virtualGateway = de_VirtualGatewayData(data, context);
|
|
1630
1631
|
return contents;
|
|
1631
1632
|
}, "de_DescribeVirtualGatewayCommand");
|
|
@@ -1636,7 +1637,7 @@ var de_DescribeVirtualNodeCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1636
1637
|
const contents = (0, import_smithy_client.map)({
|
|
1637
1638
|
$metadata: deserializeMetadata(output)
|
|
1638
1639
|
});
|
|
1639
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1640
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1640
1641
|
contents.virtualNode = de_VirtualNodeData(data, context);
|
|
1641
1642
|
return contents;
|
|
1642
1643
|
}, "de_DescribeVirtualNodeCommand");
|
|
@@ -1647,7 +1648,7 @@ var de_DescribeVirtualRouterCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1647
1648
|
const contents = (0, import_smithy_client.map)({
|
|
1648
1649
|
$metadata: deserializeMetadata(output)
|
|
1649
1650
|
});
|
|
1650
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1651
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1651
1652
|
contents.virtualRouter = de_VirtualRouterData(data, context);
|
|
1652
1653
|
return contents;
|
|
1653
1654
|
}, "de_DescribeVirtualRouterCommand");
|
|
@@ -1658,7 +1659,7 @@ var de_DescribeVirtualServiceCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1658
1659
|
const contents = (0, import_smithy_client.map)({
|
|
1659
1660
|
$metadata: deserializeMetadata(output)
|
|
1660
1661
|
});
|
|
1661
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1662
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1662
1663
|
contents.virtualService = de_VirtualServiceData(data, context);
|
|
1663
1664
|
return contents;
|
|
1664
1665
|
}, "de_DescribeVirtualServiceCommand");
|
|
@@ -1669,7 +1670,7 @@ var de_ListGatewayRoutesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1669
1670
|
const contents = (0, import_smithy_client.map)({
|
|
1670
1671
|
$metadata: deserializeMetadata(output)
|
|
1671
1672
|
});
|
|
1672
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1673
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1673
1674
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1674
1675
|
gatewayRoutes: (_) => de_GatewayRouteList(_, context),
|
|
1675
1676
|
nextToken: import_smithy_client.expectString
|
|
@@ -1684,7 +1685,7 @@ var de_ListMeshesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1684
1685
|
const contents = (0, import_smithy_client.map)({
|
|
1685
1686
|
$metadata: deserializeMetadata(output)
|
|
1686
1687
|
});
|
|
1687
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1688
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1688
1689
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1689
1690
|
meshes: (_) => de_MeshList(_, context),
|
|
1690
1691
|
nextToken: import_smithy_client.expectString
|
|
@@ -1699,7 +1700,7 @@ var de_ListRoutesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1699
1700
|
const contents = (0, import_smithy_client.map)({
|
|
1700
1701
|
$metadata: deserializeMetadata(output)
|
|
1701
1702
|
});
|
|
1702
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1703
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1703
1704
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1704
1705
|
nextToken: import_smithy_client.expectString,
|
|
1705
1706
|
routes: (_) => de_RouteList(_, context)
|
|
@@ -1714,7 +1715,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1714
1715
|
const contents = (0, import_smithy_client.map)({
|
|
1715
1716
|
$metadata: deserializeMetadata(output)
|
|
1716
1717
|
});
|
|
1717
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1718
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1718
1719
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1719
1720
|
nextToken: import_smithy_client.expectString,
|
|
1720
1721
|
tags: import_smithy_client._json
|
|
@@ -1729,7 +1730,7 @@ var de_ListVirtualGatewaysCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1729
1730
|
const contents = (0, import_smithy_client.map)({
|
|
1730
1731
|
$metadata: deserializeMetadata(output)
|
|
1731
1732
|
});
|
|
1732
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1733
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1733
1734
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1734
1735
|
nextToken: import_smithy_client.expectString,
|
|
1735
1736
|
virtualGateways: (_) => de_VirtualGatewayList(_, context)
|
|
@@ -1744,7 +1745,7 @@ var de_ListVirtualNodesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1744
1745
|
const contents = (0, import_smithy_client.map)({
|
|
1745
1746
|
$metadata: deserializeMetadata(output)
|
|
1746
1747
|
});
|
|
1747
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1748
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1748
1749
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1749
1750
|
nextToken: import_smithy_client.expectString,
|
|
1750
1751
|
virtualNodes: (_) => de_VirtualNodeList(_, context)
|
|
@@ -1759,7 +1760,7 @@ var de_ListVirtualRoutersCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1759
1760
|
const contents = (0, import_smithy_client.map)({
|
|
1760
1761
|
$metadata: deserializeMetadata(output)
|
|
1761
1762
|
});
|
|
1762
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1763
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1763
1764
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1764
1765
|
nextToken: import_smithy_client.expectString,
|
|
1765
1766
|
virtualRouters: (_) => de_VirtualRouterList(_, context)
|
|
@@ -1774,7 +1775,7 @@ var de_ListVirtualServicesCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1774
1775
|
const contents = (0, import_smithy_client.map)({
|
|
1775
1776
|
$metadata: deserializeMetadata(output)
|
|
1776
1777
|
});
|
|
1777
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1778
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1778
1779
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1779
1780
|
nextToken: import_smithy_client.expectString,
|
|
1780
1781
|
virtualServices: (_) => de_VirtualServiceList(_, context)
|
|
@@ -1809,7 +1810,7 @@ var de_UpdateGatewayRouteCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1809
1810
|
const contents = (0, import_smithy_client.map)({
|
|
1810
1811
|
$metadata: deserializeMetadata(output)
|
|
1811
1812
|
});
|
|
1812
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1813
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1813
1814
|
contents.gatewayRoute = de_GatewayRouteData(data, context);
|
|
1814
1815
|
return contents;
|
|
1815
1816
|
}, "de_UpdateGatewayRouteCommand");
|
|
@@ -1820,7 +1821,7 @@ var de_UpdateMeshCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1820
1821
|
const contents = (0, import_smithy_client.map)({
|
|
1821
1822
|
$metadata: deserializeMetadata(output)
|
|
1822
1823
|
});
|
|
1823
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1824
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1824
1825
|
contents.mesh = de_MeshData(data, context);
|
|
1825
1826
|
return contents;
|
|
1826
1827
|
}, "de_UpdateMeshCommand");
|
|
@@ -1831,7 +1832,7 @@ var de_UpdateRouteCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1831
1832
|
const contents = (0, import_smithy_client.map)({
|
|
1832
1833
|
$metadata: deserializeMetadata(output)
|
|
1833
1834
|
});
|
|
1834
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1835
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1835
1836
|
contents.route = de_RouteData(data, context);
|
|
1836
1837
|
return contents;
|
|
1837
1838
|
}, "de_UpdateRouteCommand");
|
|
@@ -1842,7 +1843,7 @@ var de_UpdateVirtualGatewayCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1842
1843
|
const contents = (0, import_smithy_client.map)({
|
|
1843
1844
|
$metadata: deserializeMetadata(output)
|
|
1844
1845
|
});
|
|
1845
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1846
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1846
1847
|
contents.virtualGateway = de_VirtualGatewayData(data, context);
|
|
1847
1848
|
return contents;
|
|
1848
1849
|
}, "de_UpdateVirtualGatewayCommand");
|
|
@@ -1853,7 +1854,7 @@ var de_UpdateVirtualNodeCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1853
1854
|
const contents = (0, import_smithy_client.map)({
|
|
1854
1855
|
$metadata: deserializeMetadata(output)
|
|
1855
1856
|
});
|
|
1856
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1857
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1857
1858
|
contents.virtualNode = de_VirtualNodeData(data, context);
|
|
1858
1859
|
return contents;
|
|
1859
1860
|
}, "de_UpdateVirtualNodeCommand");
|
|
@@ -1864,7 +1865,7 @@ var de_UpdateVirtualRouterCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1864
1865
|
const contents = (0, import_smithy_client.map)({
|
|
1865
1866
|
$metadata: deserializeMetadata(output)
|
|
1866
1867
|
});
|
|
1867
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1868
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1868
1869
|
contents.virtualRouter = de_VirtualRouterData(data, context);
|
|
1869
1870
|
return contents;
|
|
1870
1871
|
}, "de_UpdateVirtualRouterCommand");
|
|
@@ -1875,16 +1876,16 @@ var de_UpdateVirtualServiceCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1875
1876
|
const contents = (0, import_smithy_client.map)({
|
|
1876
1877
|
$metadata: deserializeMetadata(output)
|
|
1877
1878
|
});
|
|
1878
|
-
const data = (0, import_smithy_client.expectObject)(await
|
|
1879
|
+
const data = (0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context));
|
|
1879
1880
|
contents.virtualService = de_VirtualServiceData(data, context);
|
|
1880
1881
|
return contents;
|
|
1881
1882
|
}, "de_UpdateVirtualServiceCommand");
|
|
1882
1883
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1883
1884
|
const parsedOutput = {
|
|
1884
1885
|
...output,
|
|
1885
|
-
body: await
|
|
1886
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1886
1887
|
};
|
|
1887
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1888
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1888
1889
|
switch (errorCode) {
|
|
1889
1890
|
case "BadRequestException":
|
|
1890
1891
|
case "com.amazonaws.appmesh#BadRequestException":
|
|
@@ -2264,51 +2265,10 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2264
2265
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2265
2266
|
cfId: output.headers["x-amz-cf-id"]
|
|
2266
2267
|
}), "deserializeMetadata");
|
|
2267
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2268
2268
|
var _l = "limit";
|
|
2269
2269
|
var _mO = "meshOwner";
|
|
2270
2270
|
var _nT = "nextToken";
|
|
2271
2271
|
var _rA = "resourceArn";
|
|
2272
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2273
|
-
if (encoded.length) {
|
|
2274
|
-
return JSON.parse(encoded);
|
|
2275
|
-
}
|
|
2276
|
-
return {};
|
|
2277
|
-
}), "parseBody");
|
|
2278
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2279
|
-
const value = await parseBody(errorBody, context);
|
|
2280
|
-
value.message = value.message ?? value.Message;
|
|
2281
|
-
return value;
|
|
2282
|
-
}, "parseErrorBody");
|
|
2283
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2284
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2285
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2286
|
-
let cleanValue = rawValue;
|
|
2287
|
-
if (typeof cleanValue === "number") {
|
|
2288
|
-
cleanValue = cleanValue.toString();
|
|
2289
|
-
}
|
|
2290
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2291
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2292
|
-
}
|
|
2293
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2294
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2295
|
-
}
|
|
2296
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2297
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2298
|
-
}
|
|
2299
|
-
return cleanValue;
|
|
2300
|
-
}, "sanitizeErrorCode");
|
|
2301
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2302
|
-
if (headerKey !== void 0) {
|
|
2303
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2304
|
-
}
|
|
2305
|
-
if (data.code !== void 0) {
|
|
2306
|
-
return sanitizeErrorCode(data.code);
|
|
2307
|
-
}
|
|
2308
|
-
if (data["__type"] !== void 0) {
|
|
2309
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2310
|
-
}
|
|
2311
|
-
}, "loadRestJsonErrorCode");
|
|
2312
2272
|
|
|
2313
2273
|
// src/commands/CreateGatewayRouteCommand.ts
|
|
2314
2274
|
var _CreateGatewayRouteCommand = class _CreateGatewayRouteCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -1453,43 +1454,3 @@ const _l = "limit";
|
|
|
1453
1454
|
const _mO = "meshOwner";
|
|
1454
1455
|
const _nT = "nextToken";
|
|
1455
1456
|
const _rA = "resourceArn";
|
|
1456
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1457
|
-
if (encoded.length) {
|
|
1458
|
-
return JSON.parse(encoded);
|
|
1459
|
-
}
|
|
1460
|
-
return {};
|
|
1461
|
-
});
|
|
1462
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1463
|
-
const value = await parseBody(errorBody, context);
|
|
1464
|
-
value.message = value.message ?? value.Message;
|
|
1465
|
-
return value;
|
|
1466
|
-
};
|
|
1467
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1468
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1469
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1470
|
-
let cleanValue = rawValue;
|
|
1471
|
-
if (typeof cleanValue === "number") {
|
|
1472
|
-
cleanValue = cleanValue.toString();
|
|
1473
|
-
}
|
|
1474
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1475
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1476
|
-
}
|
|
1477
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1478
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1479
|
-
}
|
|
1480
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1481
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1482
|
-
}
|
|
1483
|
-
return cleanValue;
|
|
1484
|
-
};
|
|
1485
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1486
|
-
if (headerKey !== undefined) {
|
|
1487
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1488
|
-
}
|
|
1489
|
-
if (data.code !== undefined) {
|
|
1490
|
-
return sanitizeErrorCode(data.code);
|
|
1491
|
-
}
|
|
1492
|
-
if (data["__type"] !== undefined) {
|
|
1493
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1494
|
-
}
|
|
1495
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-app-mesh",
|
|
3
3
|
"description": "AWS SDK for JavaScript App Mesh Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-app-mesh",
|
|
@@ -20,9 +20,9 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|