@aws-sdk/client-dynamodb 3.528.0 → 3.529.1
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 +54 -95
- package/dist-es/protocols/Aws_json1_0.js +1 -41
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -1350,7 +1350,7 @@ var de_BatchExecuteStatementCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1350
1350
|
if (output.statusCode >= 300) {
|
|
1351
1351
|
return de_CommandError(output, context);
|
|
1352
1352
|
}
|
|
1353
|
-
const data = await
|
|
1353
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1354
1354
|
let contents = {};
|
|
1355
1355
|
contents = de_BatchExecuteStatementOutput(data, context);
|
|
1356
1356
|
const response = {
|
|
@@ -1363,7 +1363,7 @@ var de_BatchGetItemCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1363
1363
|
if (output.statusCode >= 300) {
|
|
1364
1364
|
return de_CommandError(output, context);
|
|
1365
1365
|
}
|
|
1366
|
-
const data = await
|
|
1366
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1367
1367
|
let contents = {};
|
|
1368
1368
|
contents = de_BatchGetItemOutput(data, context);
|
|
1369
1369
|
const response = {
|
|
@@ -1376,7 +1376,7 @@ var de_BatchWriteItemCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1376
1376
|
if (output.statusCode >= 300) {
|
|
1377
1377
|
return de_CommandError(output, context);
|
|
1378
1378
|
}
|
|
1379
|
-
const data = await
|
|
1379
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1380
1380
|
let contents = {};
|
|
1381
1381
|
contents = de_BatchWriteItemOutput(data, context);
|
|
1382
1382
|
const response = {
|
|
@@ -1389,7 +1389,7 @@ var de_CreateBackupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1389
1389
|
if (output.statusCode >= 300) {
|
|
1390
1390
|
return de_CommandError(output, context);
|
|
1391
1391
|
}
|
|
1392
|
-
const data = await
|
|
1392
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1393
1393
|
let contents = {};
|
|
1394
1394
|
contents = de_CreateBackupOutput(data, context);
|
|
1395
1395
|
const response = {
|
|
@@ -1402,7 +1402,7 @@ var de_CreateGlobalTableCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1402
1402
|
if (output.statusCode >= 300) {
|
|
1403
1403
|
return de_CommandError(output, context);
|
|
1404
1404
|
}
|
|
1405
|
-
const data = await
|
|
1405
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1406
1406
|
let contents = {};
|
|
1407
1407
|
contents = de_CreateGlobalTableOutput(data, context);
|
|
1408
1408
|
const response = {
|
|
@@ -1415,7 +1415,7 @@ var de_CreateTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1415
1415
|
if (output.statusCode >= 300) {
|
|
1416
1416
|
return de_CommandError(output, context);
|
|
1417
1417
|
}
|
|
1418
|
-
const data = await
|
|
1418
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1419
1419
|
let contents = {};
|
|
1420
1420
|
contents = de_CreateTableOutput(data, context);
|
|
1421
1421
|
const response = {
|
|
@@ -1428,7 +1428,7 @@ var de_DeleteBackupCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1428
1428
|
if (output.statusCode >= 300) {
|
|
1429
1429
|
return de_CommandError(output, context);
|
|
1430
1430
|
}
|
|
1431
|
-
const data = await
|
|
1431
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1432
1432
|
let contents = {};
|
|
1433
1433
|
contents = de_DeleteBackupOutput(data, context);
|
|
1434
1434
|
const response = {
|
|
@@ -1441,7 +1441,7 @@ var de_DeleteItemCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1441
1441
|
if (output.statusCode >= 300) {
|
|
1442
1442
|
return de_CommandError(output, context);
|
|
1443
1443
|
}
|
|
1444
|
-
const data = await
|
|
1444
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1445
1445
|
let contents = {};
|
|
1446
1446
|
contents = de_DeleteItemOutput(data, context);
|
|
1447
1447
|
const response = {
|
|
@@ -1454,7 +1454,7 @@ var de_DeleteTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1454
1454
|
if (output.statusCode >= 300) {
|
|
1455
1455
|
return de_CommandError(output, context);
|
|
1456
1456
|
}
|
|
1457
|
-
const data = await
|
|
1457
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1458
1458
|
let contents = {};
|
|
1459
1459
|
contents = de_DeleteTableOutput(data, context);
|
|
1460
1460
|
const response = {
|
|
@@ -1467,7 +1467,7 @@ var de_DescribeBackupCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1467
1467
|
if (output.statusCode >= 300) {
|
|
1468
1468
|
return de_CommandError(output, context);
|
|
1469
1469
|
}
|
|
1470
|
-
const data = await
|
|
1470
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1471
1471
|
let contents = {};
|
|
1472
1472
|
contents = de_DescribeBackupOutput(data, context);
|
|
1473
1473
|
const response = {
|
|
@@ -1480,7 +1480,7 @@ var de_DescribeContinuousBackupsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1480
1480
|
if (output.statusCode >= 300) {
|
|
1481
1481
|
return de_CommandError(output, context);
|
|
1482
1482
|
}
|
|
1483
|
-
const data = await
|
|
1483
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1484
1484
|
let contents = {};
|
|
1485
1485
|
contents = de_DescribeContinuousBackupsOutput(data, context);
|
|
1486
1486
|
const response = {
|
|
@@ -1493,7 +1493,7 @@ var de_DescribeContributorInsightsCommand = /* @__PURE__ */ __name(async (output
|
|
|
1493
1493
|
if (output.statusCode >= 300) {
|
|
1494
1494
|
return de_CommandError(output, context);
|
|
1495
1495
|
}
|
|
1496
|
-
const data = await
|
|
1496
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1497
1497
|
let contents = {};
|
|
1498
1498
|
contents = de_DescribeContributorInsightsOutput(data, context);
|
|
1499
1499
|
const response = {
|
|
@@ -1506,7 +1506,7 @@ var de_DescribeEndpointsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1506
1506
|
if (output.statusCode >= 300) {
|
|
1507
1507
|
return de_CommandError(output, context);
|
|
1508
1508
|
}
|
|
1509
|
-
const data = await
|
|
1509
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1510
1510
|
let contents = {};
|
|
1511
1511
|
contents = (0, import_smithy_client._json)(data);
|
|
1512
1512
|
const response = {
|
|
@@ -1519,7 +1519,7 @@ var de_DescribeExportCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1519
1519
|
if (output.statusCode >= 300) {
|
|
1520
1520
|
return de_CommandError(output, context);
|
|
1521
1521
|
}
|
|
1522
|
-
const data = await
|
|
1522
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1523
1523
|
let contents = {};
|
|
1524
1524
|
contents = de_DescribeExportOutput(data, context);
|
|
1525
1525
|
const response = {
|
|
@@ -1532,7 +1532,7 @@ var de_DescribeGlobalTableCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1532
1532
|
if (output.statusCode >= 300) {
|
|
1533
1533
|
return de_CommandError(output, context);
|
|
1534
1534
|
}
|
|
1535
|
-
const data = await
|
|
1535
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1536
1536
|
let contents = {};
|
|
1537
1537
|
contents = de_DescribeGlobalTableOutput(data, context);
|
|
1538
1538
|
const response = {
|
|
@@ -1545,7 +1545,7 @@ var de_DescribeGlobalTableSettingsCommand = /* @__PURE__ */ __name(async (output
|
|
|
1545
1545
|
if (output.statusCode >= 300) {
|
|
1546
1546
|
return de_CommandError(output, context);
|
|
1547
1547
|
}
|
|
1548
|
-
const data = await
|
|
1548
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1549
1549
|
let contents = {};
|
|
1550
1550
|
contents = de_DescribeGlobalTableSettingsOutput(data, context);
|
|
1551
1551
|
const response = {
|
|
@@ -1558,7 +1558,7 @@ var de_DescribeImportCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1558
1558
|
if (output.statusCode >= 300) {
|
|
1559
1559
|
return de_CommandError(output, context);
|
|
1560
1560
|
}
|
|
1561
|
-
const data = await
|
|
1561
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1562
1562
|
let contents = {};
|
|
1563
1563
|
contents = de_DescribeImportOutput(data, context);
|
|
1564
1564
|
const response = {
|
|
@@ -1571,7 +1571,7 @@ var de_DescribeKinesisStreamingDestinationCommand = /* @__PURE__ */ __name(async
|
|
|
1571
1571
|
if (output.statusCode >= 300) {
|
|
1572
1572
|
return de_CommandError(output, context);
|
|
1573
1573
|
}
|
|
1574
|
-
const data = await
|
|
1574
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1575
1575
|
let contents = {};
|
|
1576
1576
|
contents = (0, import_smithy_client._json)(data);
|
|
1577
1577
|
const response = {
|
|
@@ -1584,7 +1584,7 @@ var de_DescribeLimitsCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1584
1584
|
if (output.statusCode >= 300) {
|
|
1585
1585
|
return de_CommandError(output, context);
|
|
1586
1586
|
}
|
|
1587
|
-
const data = await
|
|
1587
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1588
1588
|
let contents = {};
|
|
1589
1589
|
contents = (0, import_smithy_client._json)(data);
|
|
1590
1590
|
const response = {
|
|
@@ -1597,7 +1597,7 @@ var de_DescribeTableCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1597
1597
|
if (output.statusCode >= 300) {
|
|
1598
1598
|
return de_CommandError(output, context);
|
|
1599
1599
|
}
|
|
1600
|
-
const data = await
|
|
1600
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1601
1601
|
let contents = {};
|
|
1602
1602
|
contents = de_DescribeTableOutput(data, context);
|
|
1603
1603
|
const response = {
|
|
@@ -1610,7 +1610,7 @@ var de_DescribeTableReplicaAutoScalingCommand = /* @__PURE__ */ __name(async (ou
|
|
|
1610
1610
|
if (output.statusCode >= 300) {
|
|
1611
1611
|
return de_CommandError(output, context);
|
|
1612
1612
|
}
|
|
1613
|
-
const data = await
|
|
1613
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1614
1614
|
let contents = {};
|
|
1615
1615
|
contents = de_DescribeTableReplicaAutoScalingOutput(data, context);
|
|
1616
1616
|
const response = {
|
|
@@ -1623,7 +1623,7 @@ var de_DescribeTimeToLiveCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1623
1623
|
if (output.statusCode >= 300) {
|
|
1624
1624
|
return de_CommandError(output, context);
|
|
1625
1625
|
}
|
|
1626
|
-
const data = await
|
|
1626
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1627
1627
|
let contents = {};
|
|
1628
1628
|
contents = (0, import_smithy_client._json)(data);
|
|
1629
1629
|
const response = {
|
|
@@ -1636,7 +1636,7 @@ var de_DisableKinesisStreamingDestinationCommand = /* @__PURE__ */ __name(async
|
|
|
1636
1636
|
if (output.statusCode >= 300) {
|
|
1637
1637
|
return de_CommandError(output, context);
|
|
1638
1638
|
}
|
|
1639
|
-
const data = await
|
|
1639
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1640
1640
|
let contents = {};
|
|
1641
1641
|
contents = (0, import_smithy_client._json)(data);
|
|
1642
1642
|
const response = {
|
|
@@ -1649,7 +1649,7 @@ var de_EnableKinesisStreamingDestinationCommand = /* @__PURE__ */ __name(async (
|
|
|
1649
1649
|
if (output.statusCode >= 300) {
|
|
1650
1650
|
return de_CommandError(output, context);
|
|
1651
1651
|
}
|
|
1652
|
-
const data = await
|
|
1652
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1653
1653
|
let contents = {};
|
|
1654
1654
|
contents = (0, import_smithy_client._json)(data);
|
|
1655
1655
|
const response = {
|
|
@@ -1662,7 +1662,7 @@ var de_ExecuteStatementCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1662
1662
|
if (output.statusCode >= 300) {
|
|
1663
1663
|
return de_CommandError(output, context);
|
|
1664
1664
|
}
|
|
1665
|
-
const data = await
|
|
1665
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1666
1666
|
let contents = {};
|
|
1667
1667
|
contents = de_ExecuteStatementOutput(data, context);
|
|
1668
1668
|
const response = {
|
|
@@ -1675,7 +1675,7 @@ var de_ExecuteTransactionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1675
1675
|
if (output.statusCode >= 300) {
|
|
1676
1676
|
return de_CommandError(output, context);
|
|
1677
1677
|
}
|
|
1678
|
-
const data = await
|
|
1678
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1679
1679
|
let contents = {};
|
|
1680
1680
|
contents = de_ExecuteTransactionOutput(data, context);
|
|
1681
1681
|
const response = {
|
|
@@ -1688,7 +1688,7 @@ var de_ExportTableToPointInTimeCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1688
1688
|
if (output.statusCode >= 300) {
|
|
1689
1689
|
return de_CommandError(output, context);
|
|
1690
1690
|
}
|
|
1691
|
-
const data = await
|
|
1691
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1692
1692
|
let contents = {};
|
|
1693
1693
|
contents = de_ExportTableToPointInTimeOutput(data, context);
|
|
1694
1694
|
const response = {
|
|
@@ -1701,7 +1701,7 @@ var de_GetItemCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1701
1701
|
if (output.statusCode >= 300) {
|
|
1702
1702
|
return de_CommandError(output, context);
|
|
1703
1703
|
}
|
|
1704
|
-
const data = await
|
|
1704
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1705
1705
|
let contents = {};
|
|
1706
1706
|
contents = de_GetItemOutput(data, context);
|
|
1707
1707
|
const response = {
|
|
@@ -1714,7 +1714,7 @@ var de_ImportTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1714
1714
|
if (output.statusCode >= 300) {
|
|
1715
1715
|
return de_CommandError(output, context);
|
|
1716
1716
|
}
|
|
1717
|
-
const data = await
|
|
1717
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1718
1718
|
let contents = {};
|
|
1719
1719
|
contents = de_ImportTableOutput(data, context);
|
|
1720
1720
|
const response = {
|
|
@@ -1727,7 +1727,7 @@ var de_ListBackupsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1727
1727
|
if (output.statusCode >= 300) {
|
|
1728
1728
|
return de_CommandError(output, context);
|
|
1729
1729
|
}
|
|
1730
|
-
const data = await
|
|
1730
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1731
1731
|
let contents = {};
|
|
1732
1732
|
contents = de_ListBackupsOutput(data, context);
|
|
1733
1733
|
const response = {
|
|
@@ -1740,7 +1740,7 @@ var de_ListContributorInsightsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1740
1740
|
if (output.statusCode >= 300) {
|
|
1741
1741
|
return de_CommandError(output, context);
|
|
1742
1742
|
}
|
|
1743
|
-
const data = await
|
|
1743
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1744
1744
|
let contents = {};
|
|
1745
1745
|
contents = (0, import_smithy_client._json)(data);
|
|
1746
1746
|
const response = {
|
|
@@ -1753,7 +1753,7 @@ var de_ListExportsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1753
1753
|
if (output.statusCode >= 300) {
|
|
1754
1754
|
return de_CommandError(output, context);
|
|
1755
1755
|
}
|
|
1756
|
-
const data = await
|
|
1756
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1757
1757
|
let contents = {};
|
|
1758
1758
|
contents = (0, import_smithy_client._json)(data);
|
|
1759
1759
|
const response = {
|
|
@@ -1766,7 +1766,7 @@ var de_ListGlobalTablesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1766
1766
|
if (output.statusCode >= 300) {
|
|
1767
1767
|
return de_CommandError(output, context);
|
|
1768
1768
|
}
|
|
1769
|
-
const data = await
|
|
1769
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1770
1770
|
let contents = {};
|
|
1771
1771
|
contents = (0, import_smithy_client._json)(data);
|
|
1772
1772
|
const response = {
|
|
@@ -1779,7 +1779,7 @@ var de_ListImportsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1779
1779
|
if (output.statusCode >= 300) {
|
|
1780
1780
|
return de_CommandError(output, context);
|
|
1781
1781
|
}
|
|
1782
|
-
const data = await
|
|
1782
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1783
1783
|
let contents = {};
|
|
1784
1784
|
contents = de_ListImportsOutput(data, context);
|
|
1785
1785
|
const response = {
|
|
@@ -1792,7 +1792,7 @@ var de_ListTablesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1792
1792
|
if (output.statusCode >= 300) {
|
|
1793
1793
|
return de_CommandError(output, context);
|
|
1794
1794
|
}
|
|
1795
|
-
const data = await
|
|
1795
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1796
1796
|
let contents = {};
|
|
1797
1797
|
contents = (0, import_smithy_client._json)(data);
|
|
1798
1798
|
const response = {
|
|
@@ -1805,7 +1805,7 @@ var de_ListTagsOfResourceCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1805
1805
|
if (output.statusCode >= 300) {
|
|
1806
1806
|
return de_CommandError(output, context);
|
|
1807
1807
|
}
|
|
1808
|
-
const data = await
|
|
1808
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1809
1809
|
let contents = {};
|
|
1810
1810
|
contents = (0, import_smithy_client._json)(data);
|
|
1811
1811
|
const response = {
|
|
@@ -1818,7 +1818,7 @@ var de_PutItemCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1818
1818
|
if (output.statusCode >= 300) {
|
|
1819
1819
|
return de_CommandError(output, context);
|
|
1820
1820
|
}
|
|
1821
|
-
const data = await
|
|
1821
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1822
1822
|
let contents = {};
|
|
1823
1823
|
contents = de_PutItemOutput(data, context);
|
|
1824
1824
|
const response = {
|
|
@@ -1831,7 +1831,7 @@ var de_QueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1831
1831
|
if (output.statusCode >= 300) {
|
|
1832
1832
|
return de_CommandError(output, context);
|
|
1833
1833
|
}
|
|
1834
|
-
const data = await
|
|
1834
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1835
1835
|
let contents = {};
|
|
1836
1836
|
contents = de_QueryOutput(data, context);
|
|
1837
1837
|
const response = {
|
|
@@ -1844,7 +1844,7 @@ var de_RestoreTableFromBackupCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1844
1844
|
if (output.statusCode >= 300) {
|
|
1845
1845
|
return de_CommandError(output, context);
|
|
1846
1846
|
}
|
|
1847
|
-
const data = await
|
|
1847
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1848
1848
|
let contents = {};
|
|
1849
1849
|
contents = de_RestoreTableFromBackupOutput(data, context);
|
|
1850
1850
|
const response = {
|
|
@@ -1857,7 +1857,7 @@ var de_RestoreTableToPointInTimeCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1857
1857
|
if (output.statusCode >= 300) {
|
|
1858
1858
|
return de_CommandError(output, context);
|
|
1859
1859
|
}
|
|
1860
|
-
const data = await
|
|
1860
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1861
1861
|
let contents = {};
|
|
1862
1862
|
contents = de_RestoreTableToPointInTimeOutput(data, context);
|
|
1863
1863
|
const response = {
|
|
@@ -1870,7 +1870,7 @@ var de_ScanCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1870
1870
|
if (output.statusCode >= 300) {
|
|
1871
1871
|
return de_CommandError(output, context);
|
|
1872
1872
|
}
|
|
1873
|
-
const data = await
|
|
1873
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1874
1874
|
let contents = {};
|
|
1875
1875
|
contents = de_ScanOutput(data, context);
|
|
1876
1876
|
const response = {
|
|
@@ -1893,7 +1893,7 @@ var de_TransactGetItemsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1893
1893
|
if (output.statusCode >= 300) {
|
|
1894
1894
|
return de_CommandError(output, context);
|
|
1895
1895
|
}
|
|
1896
|
-
const data = await
|
|
1896
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1897
1897
|
let contents = {};
|
|
1898
1898
|
contents = de_TransactGetItemsOutput(data, context);
|
|
1899
1899
|
const response = {
|
|
@@ -1906,7 +1906,7 @@ var de_TransactWriteItemsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1906
1906
|
if (output.statusCode >= 300) {
|
|
1907
1907
|
return de_CommandError(output, context);
|
|
1908
1908
|
}
|
|
1909
|
-
const data = await
|
|
1909
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1910
1910
|
let contents = {};
|
|
1911
1911
|
contents = de_TransactWriteItemsOutput(data, context);
|
|
1912
1912
|
const response = {
|
|
@@ -1929,7 +1929,7 @@ var de_UpdateContinuousBackupsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1929
1929
|
if (output.statusCode >= 300) {
|
|
1930
1930
|
return de_CommandError(output, context);
|
|
1931
1931
|
}
|
|
1932
|
-
const data = await
|
|
1932
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1933
1933
|
let contents = {};
|
|
1934
1934
|
contents = de_UpdateContinuousBackupsOutput(data, context);
|
|
1935
1935
|
const response = {
|
|
@@ -1942,7 +1942,7 @@ var de_UpdateContributorInsightsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1942
1942
|
if (output.statusCode >= 300) {
|
|
1943
1943
|
return de_CommandError(output, context);
|
|
1944
1944
|
}
|
|
1945
|
-
const data = await
|
|
1945
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1946
1946
|
let contents = {};
|
|
1947
1947
|
contents = (0, import_smithy_client._json)(data);
|
|
1948
1948
|
const response = {
|
|
@@ -1955,7 +1955,7 @@ var de_UpdateGlobalTableCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1955
1955
|
if (output.statusCode >= 300) {
|
|
1956
1956
|
return de_CommandError(output, context);
|
|
1957
1957
|
}
|
|
1958
|
-
const data = await
|
|
1958
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1959
1959
|
let contents = {};
|
|
1960
1960
|
contents = de_UpdateGlobalTableOutput(data, context);
|
|
1961
1961
|
const response = {
|
|
@@ -1968,7 +1968,7 @@ var de_UpdateGlobalTableSettingsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1968
1968
|
if (output.statusCode >= 300) {
|
|
1969
1969
|
return de_CommandError(output, context);
|
|
1970
1970
|
}
|
|
1971
|
-
const data = await
|
|
1971
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1972
1972
|
let contents = {};
|
|
1973
1973
|
contents = de_UpdateGlobalTableSettingsOutput(data, context);
|
|
1974
1974
|
const response = {
|
|
@@ -1981,7 +1981,7 @@ var de_UpdateItemCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1981
1981
|
if (output.statusCode >= 300) {
|
|
1982
1982
|
return de_CommandError(output, context);
|
|
1983
1983
|
}
|
|
1984
|
-
const data = await
|
|
1984
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1985
1985
|
let contents = {};
|
|
1986
1986
|
contents = de_UpdateItemOutput(data, context);
|
|
1987
1987
|
const response = {
|
|
@@ -1994,7 +1994,7 @@ var de_UpdateKinesisStreamingDestinationCommand = /* @__PURE__ */ __name(async (
|
|
|
1994
1994
|
if (output.statusCode >= 300) {
|
|
1995
1995
|
return de_CommandError(output, context);
|
|
1996
1996
|
}
|
|
1997
|
-
const data = await
|
|
1997
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
1998
1998
|
let contents = {};
|
|
1999
1999
|
contents = (0, import_smithy_client._json)(data);
|
|
2000
2000
|
const response = {
|
|
@@ -2007,7 +2007,7 @@ var de_UpdateTableCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2007
2007
|
if (output.statusCode >= 300) {
|
|
2008
2008
|
return de_CommandError(output, context);
|
|
2009
2009
|
}
|
|
2010
|
-
const data = await
|
|
2010
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
2011
2011
|
let contents = {};
|
|
2012
2012
|
contents = de_UpdateTableOutput(data, context);
|
|
2013
2013
|
const response = {
|
|
@@ -2020,7 +2020,7 @@ var de_UpdateTableReplicaAutoScalingCommand = /* @__PURE__ */ __name(async (outp
|
|
|
2020
2020
|
if (output.statusCode >= 300) {
|
|
2021
2021
|
return de_CommandError(output, context);
|
|
2022
2022
|
}
|
|
2023
|
-
const data = await
|
|
2023
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
2024
2024
|
let contents = {};
|
|
2025
2025
|
contents = de_UpdateTableReplicaAutoScalingOutput(data, context);
|
|
2026
2026
|
const response = {
|
|
@@ -2033,7 +2033,7 @@ var de_UpdateTimeToLiveCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2033
2033
|
if (output.statusCode >= 300) {
|
|
2034
2034
|
return de_CommandError(output, context);
|
|
2035
2035
|
}
|
|
2036
|
-
const data = await
|
|
2036
|
+
const data = await (0, import_core.parseJsonBody)(output.body, context);
|
|
2037
2037
|
let contents = {};
|
|
2038
2038
|
contents = (0, import_smithy_client._json)(data);
|
|
2039
2039
|
const response = {
|
|
@@ -2045,9 +2045,9 @@ var de_UpdateTimeToLiveCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2045
2045
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2046
2046
|
const parsedOutput = {
|
|
2047
2047
|
...output,
|
|
2048
|
-
body: await
|
|
2048
|
+
body: await (0, import_core.parseJsonErrorBody)(output.body, context)
|
|
2049
2049
|
};
|
|
2050
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2050
|
+
const errorCode = (0, import_core.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
2051
2051
|
switch (errorCode) {
|
|
2052
2052
|
case "InternalServerError":
|
|
2053
2053
|
case "com.amazonaws.dynamodb#InternalServerError":
|
|
@@ -3924,7 +3924,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
3924
3924
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
3925
3925
|
cfId: output.headers["x-amz-cf-id"]
|
|
3926
3926
|
}), "deserializeMetadata");
|
|
3927
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
3928
3927
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(DynamoDBServiceException);
|
|
3929
3928
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
3930
3929
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -3951,46 +3950,6 @@ function sharedHeaders(operation) {
|
|
|
3951
3950
|
};
|
|
3952
3951
|
}
|
|
3953
3952
|
__name(sharedHeaders, "sharedHeaders");
|
|
3954
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3955
|
-
if (encoded.length) {
|
|
3956
|
-
return JSON.parse(encoded);
|
|
3957
|
-
}
|
|
3958
|
-
return {};
|
|
3959
|
-
}), "parseBody");
|
|
3960
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
3961
|
-
const value = await parseBody(errorBody, context);
|
|
3962
|
-
value.message = value.message ?? value.Message;
|
|
3963
|
-
return value;
|
|
3964
|
-
}, "parseErrorBody");
|
|
3965
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
3966
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
3967
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
3968
|
-
let cleanValue = rawValue;
|
|
3969
|
-
if (typeof cleanValue === "number") {
|
|
3970
|
-
cleanValue = cleanValue.toString();
|
|
3971
|
-
}
|
|
3972
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
3973
|
-
cleanValue = cleanValue.split(",")[0];
|
|
3974
|
-
}
|
|
3975
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3976
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3977
|
-
}
|
|
3978
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3979
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3980
|
-
}
|
|
3981
|
-
return cleanValue;
|
|
3982
|
-
}, "sanitizeErrorCode");
|
|
3983
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3984
|
-
if (headerKey !== void 0) {
|
|
3985
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3986
|
-
}
|
|
3987
|
-
if (data.code !== void 0) {
|
|
3988
|
-
return sanitizeErrorCode(data.code);
|
|
3989
|
-
}
|
|
3990
|
-
if (data["__type"] !== void 0) {
|
|
3991
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3992
|
-
}
|
|
3993
|
-
}, "loadRestJsonErrorCode");
|
|
3994
3953
|
|
|
3995
3954
|
// src/commands/DescribeEndpointsCommand.ts
|
|
3996
3955
|
var _DescribeEndpointsCommand = class _DescribeEndpointsCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { awsExpectUnion as __expectUnion } from "@aws-sdk/core";
|
|
1
|
+
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
3
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -3001,43 +3001,3 @@ function sharedHeaders(operation) {
|
|
|
3001
3001
|
"x-amz-target": `DynamoDB_20120810.${operation}`,
|
|
3002
3002
|
};
|
|
3003
3003
|
}
|
|
3004
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
3005
|
-
if (encoded.length) {
|
|
3006
|
-
return JSON.parse(encoded);
|
|
3007
|
-
}
|
|
3008
|
-
return {};
|
|
3009
|
-
});
|
|
3010
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
3011
|
-
const value = await parseBody(errorBody, context);
|
|
3012
|
-
value.message = value.message ?? value.Message;
|
|
3013
|
-
return value;
|
|
3014
|
-
};
|
|
3015
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
3016
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
3017
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
3018
|
-
let cleanValue = rawValue;
|
|
3019
|
-
if (typeof cleanValue === "number") {
|
|
3020
|
-
cleanValue = cleanValue.toString();
|
|
3021
|
-
}
|
|
3022
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
3023
|
-
cleanValue = cleanValue.split(",")[0];
|
|
3024
|
-
}
|
|
3025
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
3026
|
-
cleanValue = cleanValue.split(":")[0];
|
|
3027
|
-
}
|
|
3028
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
3029
|
-
cleanValue = cleanValue.split("#")[1];
|
|
3030
|
-
}
|
|
3031
|
-
return cleanValue;
|
|
3032
|
-
};
|
|
3033
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
3034
|
-
if (headerKey !== undefined) {
|
|
3035
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
3036
|
-
}
|
|
3037
|
-
if (data.code !== undefined) {
|
|
3038
|
-
return sanitizeErrorCode(data.code);
|
|
3039
|
-
}
|
|
3040
|
-
if (data["__type"] !== undefined) {
|
|
3041
|
-
return sanitizeErrorCode(data["__type"]);
|
|
3042
|
-
}
|
|
3043
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-dynamodb",
|
|
3
3
|
"description": "AWS SDK for JavaScript Dynamodb Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.1",
|
|
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-dynamodb",
|
|
@@ -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.1",
|
|
24
|
+
"@aws-sdk/core": "3.529.1",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.1",
|
|
26
26
|
"@aws-sdk/middleware-endpoint-discovery": "3.525.0",
|
|
27
27
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-logger": "3.523.0",
|