@aws-sdk/client-cloudwatch-logs 3.525.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 +51 -91
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -309,6 +309,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
309
309
|
var import_types = require("@smithy/types");
|
|
310
310
|
|
|
311
311
|
// src/protocols/Aws_json1_1.ts
|
|
312
|
+
var import_core2 = require("@aws-sdk/core");
|
|
312
313
|
|
|
313
314
|
|
|
314
315
|
var import_uuid = require("uuid");
|
|
@@ -1282,7 +1283,7 @@ var de_CreateDeliveryCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1282
1283
|
if (output.statusCode >= 300) {
|
|
1283
1284
|
return de_CommandError(output, context);
|
|
1284
1285
|
}
|
|
1285
|
-
const data = await
|
|
1286
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1286
1287
|
let contents = {};
|
|
1287
1288
|
contents = (0, import_smithy_client._json)(data);
|
|
1288
1289
|
const response = {
|
|
@@ -1295,7 +1296,7 @@ var de_CreateExportTaskCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1295
1296
|
if (output.statusCode >= 300) {
|
|
1296
1297
|
return de_CommandError(output, context);
|
|
1297
1298
|
}
|
|
1298
|
-
const data = await
|
|
1299
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1299
1300
|
let contents = {};
|
|
1300
1301
|
contents = (0, import_smithy_client._json)(data);
|
|
1301
1302
|
const response = {
|
|
@@ -1308,7 +1309,7 @@ var de_CreateLogAnomalyDetectorCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1308
1309
|
if (output.statusCode >= 300) {
|
|
1309
1310
|
return de_CommandError(output, context);
|
|
1310
1311
|
}
|
|
1311
|
-
const data = await
|
|
1312
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1312
1313
|
let contents = {};
|
|
1313
1314
|
contents = (0, import_smithy_client._json)(data);
|
|
1314
1315
|
const response = {
|
|
@@ -1451,7 +1452,7 @@ var de_DeleteQueryDefinitionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1451
1452
|
if (output.statusCode >= 300) {
|
|
1452
1453
|
return de_CommandError(output, context);
|
|
1453
1454
|
}
|
|
1454
|
-
const data = await
|
|
1455
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1455
1456
|
let contents = {};
|
|
1456
1457
|
contents = (0, import_smithy_client._json)(data);
|
|
1457
1458
|
const response = {
|
|
@@ -1494,7 +1495,7 @@ var de_DescribeAccountPoliciesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1494
1495
|
if (output.statusCode >= 300) {
|
|
1495
1496
|
return de_CommandError(output, context);
|
|
1496
1497
|
}
|
|
1497
|
-
const data = await
|
|
1498
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1498
1499
|
let contents = {};
|
|
1499
1500
|
contents = (0, import_smithy_client._json)(data);
|
|
1500
1501
|
const response = {
|
|
@@ -1507,7 +1508,7 @@ var de_DescribeDeliveriesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1507
1508
|
if (output.statusCode >= 300) {
|
|
1508
1509
|
return de_CommandError(output, context);
|
|
1509
1510
|
}
|
|
1510
|
-
const data = await
|
|
1511
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1511
1512
|
let contents = {};
|
|
1512
1513
|
contents = (0, import_smithy_client._json)(data);
|
|
1513
1514
|
const response = {
|
|
@@ -1520,7 +1521,7 @@ var de_DescribeDeliveryDestinationsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1520
1521
|
if (output.statusCode >= 300) {
|
|
1521
1522
|
return de_CommandError(output, context);
|
|
1522
1523
|
}
|
|
1523
|
-
const data = await
|
|
1524
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1524
1525
|
let contents = {};
|
|
1525
1526
|
contents = (0, import_smithy_client._json)(data);
|
|
1526
1527
|
const response = {
|
|
@@ -1533,7 +1534,7 @@ var de_DescribeDeliverySourcesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1533
1534
|
if (output.statusCode >= 300) {
|
|
1534
1535
|
return de_CommandError(output, context);
|
|
1535
1536
|
}
|
|
1536
|
-
const data = await
|
|
1537
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1537
1538
|
let contents = {};
|
|
1538
1539
|
contents = (0, import_smithy_client._json)(data);
|
|
1539
1540
|
const response = {
|
|
@@ -1546,7 +1547,7 @@ var de_DescribeDestinationsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1546
1547
|
if (output.statusCode >= 300) {
|
|
1547
1548
|
return de_CommandError(output, context);
|
|
1548
1549
|
}
|
|
1549
|
-
const data = await
|
|
1550
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1550
1551
|
let contents = {};
|
|
1551
1552
|
contents = (0, import_smithy_client._json)(data);
|
|
1552
1553
|
const response = {
|
|
@@ -1559,7 +1560,7 @@ var de_DescribeExportTasksCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1559
1560
|
if (output.statusCode >= 300) {
|
|
1560
1561
|
return de_CommandError(output, context);
|
|
1561
1562
|
}
|
|
1562
|
-
const data = await
|
|
1563
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1563
1564
|
let contents = {};
|
|
1564
1565
|
contents = (0, import_smithy_client._json)(data);
|
|
1565
1566
|
const response = {
|
|
@@ -1572,7 +1573,7 @@ var de_DescribeLogGroupsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1572
1573
|
if (output.statusCode >= 300) {
|
|
1573
1574
|
return de_CommandError(output, context);
|
|
1574
1575
|
}
|
|
1575
|
-
const data = await
|
|
1576
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1576
1577
|
let contents = {};
|
|
1577
1578
|
contents = (0, import_smithy_client._json)(data);
|
|
1578
1579
|
const response = {
|
|
@@ -1585,7 +1586,7 @@ var de_DescribeLogStreamsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1585
1586
|
if (output.statusCode >= 300) {
|
|
1586
1587
|
return de_CommandError(output, context);
|
|
1587
1588
|
}
|
|
1588
|
-
const data = await
|
|
1589
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1589
1590
|
let contents = {};
|
|
1590
1591
|
contents = (0, import_smithy_client._json)(data);
|
|
1591
1592
|
const response = {
|
|
@@ -1598,7 +1599,7 @@ var de_DescribeMetricFiltersCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1598
1599
|
if (output.statusCode >= 300) {
|
|
1599
1600
|
return de_CommandError(output, context);
|
|
1600
1601
|
}
|
|
1601
|
-
const data = await
|
|
1602
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1602
1603
|
let contents = {};
|
|
1603
1604
|
contents = de_DescribeMetricFiltersResponse(data, context);
|
|
1604
1605
|
const response = {
|
|
@@ -1611,7 +1612,7 @@ var de_DescribeQueriesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1611
1612
|
if (output.statusCode >= 300) {
|
|
1612
1613
|
return de_CommandError(output, context);
|
|
1613
1614
|
}
|
|
1614
|
-
const data = await
|
|
1615
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1615
1616
|
let contents = {};
|
|
1616
1617
|
contents = (0, import_smithy_client._json)(data);
|
|
1617
1618
|
const response = {
|
|
@@ -1624,7 +1625,7 @@ var de_DescribeQueryDefinitionsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1624
1625
|
if (output.statusCode >= 300) {
|
|
1625
1626
|
return de_CommandError(output, context);
|
|
1626
1627
|
}
|
|
1627
|
-
const data = await
|
|
1628
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1628
1629
|
let contents = {};
|
|
1629
1630
|
contents = (0, import_smithy_client._json)(data);
|
|
1630
1631
|
const response = {
|
|
@@ -1637,7 +1638,7 @@ var de_DescribeResourcePoliciesCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1637
1638
|
if (output.statusCode >= 300) {
|
|
1638
1639
|
return de_CommandError(output, context);
|
|
1639
1640
|
}
|
|
1640
|
-
const data = await
|
|
1641
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1641
1642
|
let contents = {};
|
|
1642
1643
|
contents = (0, import_smithy_client._json)(data);
|
|
1643
1644
|
const response = {
|
|
@@ -1650,7 +1651,7 @@ var de_DescribeSubscriptionFiltersCommand = /* @__PURE__ */ __name(async (output
|
|
|
1650
1651
|
if (output.statusCode >= 300) {
|
|
1651
1652
|
return de_CommandError(output, context);
|
|
1652
1653
|
}
|
|
1653
|
-
const data = await
|
|
1654
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1654
1655
|
let contents = {};
|
|
1655
1656
|
contents = (0, import_smithy_client._json)(data);
|
|
1656
1657
|
const response = {
|
|
@@ -1673,7 +1674,7 @@ var de_FilterLogEventsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1673
1674
|
if (output.statusCode >= 300) {
|
|
1674
1675
|
return de_CommandError(output, context);
|
|
1675
1676
|
}
|
|
1676
|
-
const data = await
|
|
1677
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1677
1678
|
let contents = {};
|
|
1678
1679
|
contents = (0, import_smithy_client._json)(data);
|
|
1679
1680
|
const response = {
|
|
@@ -1686,7 +1687,7 @@ var de_GetDataProtectionPolicyCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1686
1687
|
if (output.statusCode >= 300) {
|
|
1687
1688
|
return de_CommandError(output, context);
|
|
1688
1689
|
}
|
|
1689
|
-
const data = await
|
|
1690
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1690
1691
|
let contents = {};
|
|
1691
1692
|
contents = (0, import_smithy_client._json)(data);
|
|
1692
1693
|
const response = {
|
|
@@ -1699,7 +1700,7 @@ var de_GetDeliveryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1699
1700
|
if (output.statusCode >= 300) {
|
|
1700
1701
|
return de_CommandError(output, context);
|
|
1701
1702
|
}
|
|
1702
|
-
const data = await
|
|
1703
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1703
1704
|
let contents = {};
|
|
1704
1705
|
contents = (0, import_smithy_client._json)(data);
|
|
1705
1706
|
const response = {
|
|
@@ -1712,7 +1713,7 @@ var de_GetDeliveryDestinationCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1712
1713
|
if (output.statusCode >= 300) {
|
|
1713
1714
|
return de_CommandError(output, context);
|
|
1714
1715
|
}
|
|
1715
|
-
const data = await
|
|
1716
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1716
1717
|
let contents = {};
|
|
1717
1718
|
contents = (0, import_smithy_client._json)(data);
|
|
1718
1719
|
const response = {
|
|
@@ -1725,7 +1726,7 @@ var de_GetDeliveryDestinationPolicyCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1725
1726
|
if (output.statusCode >= 300) {
|
|
1726
1727
|
return de_CommandError(output, context);
|
|
1727
1728
|
}
|
|
1728
|
-
const data = await
|
|
1729
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1729
1730
|
let contents = {};
|
|
1730
1731
|
contents = (0, import_smithy_client._json)(data);
|
|
1731
1732
|
const response = {
|
|
@@ -1738,7 +1739,7 @@ var de_GetDeliverySourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1738
1739
|
if (output.statusCode >= 300) {
|
|
1739
1740
|
return de_CommandError(output, context);
|
|
1740
1741
|
}
|
|
1741
|
-
const data = await
|
|
1742
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1742
1743
|
let contents = {};
|
|
1743
1744
|
contents = (0, import_smithy_client._json)(data);
|
|
1744
1745
|
const response = {
|
|
@@ -1751,7 +1752,7 @@ var de_GetLogAnomalyDetectorCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1751
1752
|
if (output.statusCode >= 300) {
|
|
1752
1753
|
return de_CommandError(output, context);
|
|
1753
1754
|
}
|
|
1754
|
-
const data = await
|
|
1755
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1755
1756
|
let contents = {};
|
|
1756
1757
|
contents = (0, import_smithy_client._json)(data);
|
|
1757
1758
|
const response = {
|
|
@@ -1764,7 +1765,7 @@ var de_GetLogEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1764
1765
|
if (output.statusCode >= 300) {
|
|
1765
1766
|
return de_CommandError(output, context);
|
|
1766
1767
|
}
|
|
1767
|
-
const data = await
|
|
1768
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1768
1769
|
let contents = {};
|
|
1769
1770
|
contents = (0, import_smithy_client._json)(data);
|
|
1770
1771
|
const response = {
|
|
@@ -1777,7 +1778,7 @@ var de_GetLogGroupFieldsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1777
1778
|
if (output.statusCode >= 300) {
|
|
1778
1779
|
return de_CommandError(output, context);
|
|
1779
1780
|
}
|
|
1780
|
-
const data = await
|
|
1781
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1781
1782
|
let contents = {};
|
|
1782
1783
|
contents = (0, import_smithy_client._json)(data);
|
|
1783
1784
|
const response = {
|
|
@@ -1790,7 +1791,7 @@ var de_GetLogRecordCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1790
1791
|
if (output.statusCode >= 300) {
|
|
1791
1792
|
return de_CommandError(output, context);
|
|
1792
1793
|
}
|
|
1793
|
-
const data = await
|
|
1794
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1794
1795
|
let contents = {};
|
|
1795
1796
|
contents = (0, import_smithy_client._json)(data);
|
|
1796
1797
|
const response = {
|
|
@@ -1803,7 +1804,7 @@ var de_GetQueryResultsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1803
1804
|
if (output.statusCode >= 300) {
|
|
1804
1805
|
return de_CommandError(output, context);
|
|
1805
1806
|
}
|
|
1806
|
-
const data = await
|
|
1807
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1807
1808
|
let contents = {};
|
|
1808
1809
|
contents = de_GetQueryResultsResponse(data, context);
|
|
1809
1810
|
const response = {
|
|
@@ -1816,7 +1817,7 @@ var de_ListAnomaliesCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1816
1817
|
if (output.statusCode >= 300) {
|
|
1817
1818
|
return de_CommandError(output, context);
|
|
1818
1819
|
}
|
|
1819
|
-
const data = await
|
|
1820
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1820
1821
|
let contents = {};
|
|
1821
1822
|
contents = (0, import_smithy_client._json)(data);
|
|
1822
1823
|
const response = {
|
|
@@ -1829,7 +1830,7 @@ var de_ListLogAnomalyDetectorsCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1829
1830
|
if (output.statusCode >= 300) {
|
|
1830
1831
|
return de_CommandError(output, context);
|
|
1831
1832
|
}
|
|
1832
|
-
const data = await
|
|
1833
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1833
1834
|
let contents = {};
|
|
1834
1835
|
contents = (0, import_smithy_client._json)(data);
|
|
1835
1836
|
const response = {
|
|
@@ -1842,7 +1843,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1842
1843
|
if (output.statusCode >= 300) {
|
|
1843
1844
|
return de_CommandError(output, context);
|
|
1844
1845
|
}
|
|
1845
|
-
const data = await
|
|
1846
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1846
1847
|
let contents = {};
|
|
1847
1848
|
contents = (0, import_smithy_client._json)(data);
|
|
1848
1849
|
const response = {
|
|
@@ -1855,7 +1856,7 @@ var de_ListTagsLogGroupCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1855
1856
|
if (output.statusCode >= 300) {
|
|
1856
1857
|
return de_CommandError(output, context);
|
|
1857
1858
|
}
|
|
1858
|
-
const data = await
|
|
1859
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1859
1860
|
let contents = {};
|
|
1860
1861
|
contents = (0, import_smithy_client._json)(data);
|
|
1861
1862
|
const response = {
|
|
@@ -1868,7 +1869,7 @@ var de_PutAccountPolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1868
1869
|
if (output.statusCode >= 300) {
|
|
1869
1870
|
return de_CommandError(output, context);
|
|
1870
1871
|
}
|
|
1871
|
-
const data = await
|
|
1872
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1872
1873
|
let contents = {};
|
|
1873
1874
|
contents = (0, import_smithy_client._json)(data);
|
|
1874
1875
|
const response = {
|
|
@@ -1881,7 +1882,7 @@ var de_PutDataProtectionPolicyCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1881
1882
|
if (output.statusCode >= 300) {
|
|
1882
1883
|
return de_CommandError(output, context);
|
|
1883
1884
|
}
|
|
1884
|
-
const data = await
|
|
1885
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1885
1886
|
let contents = {};
|
|
1886
1887
|
contents = (0, import_smithy_client._json)(data);
|
|
1887
1888
|
const response = {
|
|
@@ -1894,7 +1895,7 @@ var de_PutDeliveryDestinationCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1894
1895
|
if (output.statusCode >= 300) {
|
|
1895
1896
|
return de_CommandError(output, context);
|
|
1896
1897
|
}
|
|
1897
|
-
const data = await
|
|
1898
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1898
1899
|
let contents = {};
|
|
1899
1900
|
contents = (0, import_smithy_client._json)(data);
|
|
1900
1901
|
const response = {
|
|
@@ -1907,7 +1908,7 @@ var de_PutDeliveryDestinationPolicyCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1907
1908
|
if (output.statusCode >= 300) {
|
|
1908
1909
|
return de_CommandError(output, context);
|
|
1909
1910
|
}
|
|
1910
|
-
const data = await
|
|
1911
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1911
1912
|
let contents = {};
|
|
1912
1913
|
contents = (0, import_smithy_client._json)(data);
|
|
1913
1914
|
const response = {
|
|
@@ -1920,7 +1921,7 @@ var de_PutDeliverySourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1920
1921
|
if (output.statusCode >= 300) {
|
|
1921
1922
|
return de_CommandError(output, context);
|
|
1922
1923
|
}
|
|
1923
|
-
const data = await
|
|
1924
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1924
1925
|
let contents = {};
|
|
1925
1926
|
contents = (0, import_smithy_client._json)(data);
|
|
1926
1927
|
const response = {
|
|
@@ -1933,7 +1934,7 @@ var de_PutDestinationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1933
1934
|
if (output.statusCode >= 300) {
|
|
1934
1935
|
return de_CommandError(output, context);
|
|
1935
1936
|
}
|
|
1936
|
-
const data = await
|
|
1937
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1937
1938
|
let contents = {};
|
|
1938
1939
|
contents = (0, import_smithy_client._json)(data);
|
|
1939
1940
|
const response = {
|
|
@@ -1956,7 +1957,7 @@ var de_PutLogEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1956
1957
|
if (output.statusCode >= 300) {
|
|
1957
1958
|
return de_CommandError(output, context);
|
|
1958
1959
|
}
|
|
1959
|
-
const data = await
|
|
1960
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1960
1961
|
let contents = {};
|
|
1961
1962
|
contents = (0, import_smithy_client._json)(data);
|
|
1962
1963
|
const response = {
|
|
@@ -1979,7 +1980,7 @@ var de_PutQueryDefinitionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1979
1980
|
if (output.statusCode >= 300) {
|
|
1980
1981
|
return de_CommandError(output, context);
|
|
1981
1982
|
}
|
|
1982
|
-
const data = await
|
|
1983
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1983
1984
|
let contents = {};
|
|
1984
1985
|
contents = (0, import_smithy_client._json)(data);
|
|
1985
1986
|
const response = {
|
|
@@ -1992,7 +1993,7 @@ var de_PutResourcePolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1992
1993
|
if (output.statusCode >= 300) {
|
|
1993
1994
|
return de_CommandError(output, context);
|
|
1994
1995
|
}
|
|
1995
|
-
const data = await
|
|
1996
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1996
1997
|
let contents = {};
|
|
1997
1998
|
contents = (0, import_smithy_client._json)(data);
|
|
1998
1999
|
const response = {
|
|
@@ -2036,7 +2037,7 @@ var de_StartQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2036
2037
|
if (output.statusCode >= 300) {
|
|
2037
2038
|
return de_CommandError(output, context);
|
|
2038
2039
|
}
|
|
2039
|
-
const data = await
|
|
2040
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2040
2041
|
let contents = {};
|
|
2041
2042
|
contents = (0, import_smithy_client._json)(data);
|
|
2042
2043
|
const response = {
|
|
@@ -2049,7 +2050,7 @@ var de_StopQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2049
2050
|
if (output.statusCode >= 300) {
|
|
2050
2051
|
return de_CommandError(output, context);
|
|
2051
2052
|
}
|
|
2052
|
-
const data = await
|
|
2053
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2053
2054
|
let contents = {};
|
|
2054
2055
|
contents = (0, import_smithy_client._json)(data);
|
|
2055
2056
|
const response = {
|
|
@@ -2082,7 +2083,7 @@ var de_TestMetricFilterCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2082
2083
|
if (output.statusCode >= 300) {
|
|
2083
2084
|
return de_CommandError(output, context);
|
|
2084
2085
|
}
|
|
2085
|
-
const data = await
|
|
2086
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2086
2087
|
let contents = {};
|
|
2087
2088
|
contents = (0, import_smithy_client._json)(data);
|
|
2088
2089
|
const response = {
|
|
@@ -2134,9 +2135,9 @@ var de_UpdateLogAnomalyDetectorCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
2134
2135
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2135
2136
|
const parsedOutput = {
|
|
2136
2137
|
...output,
|
|
2137
|
-
body: await
|
|
2138
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
2138
2139
|
};
|
|
2139
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2140
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
2140
2141
|
switch (errorCode) {
|
|
2141
2142
|
case "InvalidParameterException":
|
|
2142
2143
|
case "com.amazonaws.cloudwatchlogs#InvalidParameterException":
|
|
@@ -2381,27 +2382,27 @@ var de_StartLiveTailResponseStream = /* @__PURE__ */ __name((output, context) =>
|
|
|
2381
2382
|
}, "de_StartLiveTailResponseStream");
|
|
2382
2383
|
var de_LiveTailSessionStart_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
2383
2384
|
const contents = {};
|
|
2384
|
-
const data = await
|
|
2385
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2385
2386
|
Object.assign(contents, (0, import_smithy_client._json)(data));
|
|
2386
2387
|
return contents;
|
|
2387
2388
|
}, "de_LiveTailSessionStart_event");
|
|
2388
2389
|
var de_LiveTailSessionUpdate_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
2389
2390
|
const contents = {};
|
|
2390
|
-
const data = await
|
|
2391
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2391
2392
|
Object.assign(contents, (0, import_smithy_client._json)(data));
|
|
2392
2393
|
return contents;
|
|
2393
2394
|
}, "de_LiveTailSessionUpdate_event");
|
|
2394
2395
|
var de_SessionStreamingException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
2395
2396
|
const parsedOutput = {
|
|
2396
2397
|
...output,
|
|
2397
|
-
body: await
|
|
2398
|
+
body: await (0, import_core2.parseJsonBody)(output.body, context)
|
|
2398
2399
|
};
|
|
2399
2400
|
return de_SessionStreamingExceptionRes(parsedOutput, context);
|
|
2400
2401
|
}, "de_SessionStreamingException_event");
|
|
2401
2402
|
var de_SessionTimeoutException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
2402
2403
|
const parsedOutput = {
|
|
2403
2404
|
...output,
|
|
2404
|
-
body: await
|
|
2405
|
+
body: await (0, import_core2.parseJsonBody)(output.body, context)
|
|
2405
2406
|
};
|
|
2406
2407
|
return de_SessionTimeoutExceptionRes(parsedOutput, context);
|
|
2407
2408
|
}, "de_SessionTimeoutException_event");
|
|
@@ -2513,7 +2514,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
2513
2514
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2514
2515
|
cfId: output.headers["x-amz-cf-id"]
|
|
2515
2516
|
}), "deserializeMetadata");
|
|
2516
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
2517
2517
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(CloudWatchLogsServiceException);
|
|
2518
2518
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
2519
2519
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -2540,46 +2540,6 @@ function sharedHeaders(operation) {
|
|
|
2540
2540
|
};
|
|
2541
2541
|
}
|
|
2542
2542
|
__name(sharedHeaders, "sharedHeaders");
|
|
2543
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
2544
|
-
if (encoded.length) {
|
|
2545
|
-
return JSON.parse(encoded);
|
|
2546
|
-
}
|
|
2547
|
-
return {};
|
|
2548
|
-
}), "parseBody");
|
|
2549
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
2550
|
-
const value = await parseBody(errorBody, context);
|
|
2551
|
-
value.message = value.message ?? value.Message;
|
|
2552
|
-
return value;
|
|
2553
|
-
}, "parseErrorBody");
|
|
2554
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
2555
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
2556
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
2557
|
-
let cleanValue = rawValue;
|
|
2558
|
-
if (typeof cleanValue === "number") {
|
|
2559
|
-
cleanValue = cleanValue.toString();
|
|
2560
|
-
}
|
|
2561
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
2562
|
-
cleanValue = cleanValue.split(",")[0];
|
|
2563
|
-
}
|
|
2564
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
2565
|
-
cleanValue = cleanValue.split(":")[0];
|
|
2566
|
-
}
|
|
2567
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
2568
|
-
cleanValue = cleanValue.split("#")[1];
|
|
2569
|
-
}
|
|
2570
|
-
return cleanValue;
|
|
2571
|
-
}, "sanitizeErrorCode");
|
|
2572
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
2573
|
-
if (headerKey !== void 0) {
|
|
2574
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
2575
|
-
}
|
|
2576
|
-
if (data.code !== void 0) {
|
|
2577
|
-
return sanitizeErrorCode(data.code);
|
|
2578
|
-
}
|
|
2579
|
-
if (data["__type"] !== void 0) {
|
|
2580
|
-
return sanitizeErrorCode(data["__type"]);
|
|
2581
|
-
}
|
|
2582
|
-
}, "loadRestJsonErrorCode");
|
|
2583
2543
|
|
|
2584
2544
|
// src/commands/AssociateKmsKeyCommand.ts
|
|
2585
2545
|
var _AssociateKmsKeyCommand = class _AssociateKmsKeyCommand 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 { HttpRequest as __HttpRequest, isValidHostname as __isValidHostname, } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectString as __expectString, limitedParseDouble as __limitedParseDouble, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -1738,43 +1739,3 @@ function sharedHeaders(operation) {
|
|
|
1738
1739
|
"x-amz-target": `Logs_20140328.${operation}`,
|
|
1739
1740
|
};
|
|
1740
1741
|
}
|
|
1741
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1742
|
-
if (encoded.length) {
|
|
1743
|
-
return JSON.parse(encoded);
|
|
1744
|
-
}
|
|
1745
|
-
return {};
|
|
1746
|
-
});
|
|
1747
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1748
|
-
const value = await parseBody(errorBody, context);
|
|
1749
|
-
value.message = value.message ?? value.Message;
|
|
1750
|
-
return value;
|
|
1751
|
-
};
|
|
1752
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1753
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1754
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1755
|
-
let cleanValue = rawValue;
|
|
1756
|
-
if (typeof cleanValue === "number") {
|
|
1757
|
-
cleanValue = cleanValue.toString();
|
|
1758
|
-
}
|
|
1759
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1760
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1761
|
-
}
|
|
1762
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1763
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1764
|
-
}
|
|
1765
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1766
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1767
|
-
}
|
|
1768
|
-
return cleanValue;
|
|
1769
|
-
};
|
|
1770
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1771
|
-
if (headerKey !== undefined) {
|
|
1772
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1773
|
-
}
|
|
1774
|
-
if (data.code !== undefined) {
|
|
1775
|
-
return sanitizeErrorCode(data.code);
|
|
1776
|
-
}
|
|
1777
|
-
if (data["__type"] !== undefined) {
|
|
1778
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1779
|
-
}
|
|
1780
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudwatch-logs",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudwatch Logs 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-cloudwatch-logs",
|
|
@@ -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-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|