@aws-sdk/client-auto-scaling 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
CHANGED
|
@@ -301,9 +301,9 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
301
301
|
var import_types = require("@smithy/types");
|
|
302
302
|
|
|
303
303
|
// src/protocols/Aws_query.ts
|
|
304
|
+
var import_core2 = require("@aws-sdk/core");
|
|
304
305
|
|
|
305
306
|
|
|
306
|
-
var import_fast_xml_parser = require("fast-xml-parser");
|
|
307
307
|
|
|
308
308
|
// src/models/AutoScalingServiceException.ts
|
|
309
309
|
|
|
@@ -1309,7 +1309,7 @@ var de_AttachLoadBalancersCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1309
1309
|
if (output.statusCode >= 300) {
|
|
1310
1310
|
return de_CommandError(output, context);
|
|
1311
1311
|
}
|
|
1312
|
-
const data = await
|
|
1312
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1313
1313
|
let contents = {};
|
|
1314
1314
|
contents = de_AttachLoadBalancersResultType(data.AttachLoadBalancersResult, context);
|
|
1315
1315
|
const response = {
|
|
@@ -1322,7 +1322,7 @@ var de_AttachLoadBalancerTargetGroupsCommand = /* @__PURE__ */ __name(async (out
|
|
|
1322
1322
|
if (output.statusCode >= 300) {
|
|
1323
1323
|
return de_CommandError(output, context);
|
|
1324
1324
|
}
|
|
1325
|
-
const data = await
|
|
1325
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1326
1326
|
let contents = {};
|
|
1327
1327
|
contents = de_AttachLoadBalancerTargetGroupsResultType(data.AttachLoadBalancerTargetGroupsResult, context);
|
|
1328
1328
|
const response = {
|
|
@@ -1335,7 +1335,7 @@ var de_AttachTrafficSourcesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1335
1335
|
if (output.statusCode >= 300) {
|
|
1336
1336
|
return de_CommandError(output, context);
|
|
1337
1337
|
}
|
|
1338
|
-
const data = await
|
|
1338
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1339
1339
|
let contents = {};
|
|
1340
1340
|
contents = de_AttachTrafficSourcesResultType(data.AttachTrafficSourcesResult, context);
|
|
1341
1341
|
const response = {
|
|
@@ -1348,7 +1348,7 @@ var de_BatchDeleteScheduledActionCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1348
1348
|
if (output.statusCode >= 300) {
|
|
1349
1349
|
return de_CommandError(output, context);
|
|
1350
1350
|
}
|
|
1351
|
-
const data = await
|
|
1351
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1352
1352
|
let contents = {};
|
|
1353
1353
|
contents = de_BatchDeleteScheduledActionAnswer(data.BatchDeleteScheduledActionResult, context);
|
|
1354
1354
|
const response = {
|
|
@@ -1361,7 +1361,7 @@ var de_BatchPutScheduledUpdateGroupActionCommand = /* @__PURE__ */ __name(async
|
|
|
1361
1361
|
if (output.statusCode >= 300) {
|
|
1362
1362
|
return de_CommandError(output, context);
|
|
1363
1363
|
}
|
|
1364
|
-
const data = await
|
|
1364
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1365
1365
|
let contents = {};
|
|
1366
1366
|
contents = de_BatchPutScheduledUpdateGroupActionAnswer(data.BatchPutScheduledUpdateGroupActionResult, context);
|
|
1367
1367
|
const response = {
|
|
@@ -1374,7 +1374,7 @@ var de_CancelInstanceRefreshCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1374
1374
|
if (output.statusCode >= 300) {
|
|
1375
1375
|
return de_CommandError(output, context);
|
|
1376
1376
|
}
|
|
1377
|
-
const data = await
|
|
1377
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1378
1378
|
let contents = {};
|
|
1379
1379
|
contents = de_CancelInstanceRefreshAnswer(data.CancelInstanceRefreshResult, context);
|
|
1380
1380
|
const response = {
|
|
@@ -1387,7 +1387,7 @@ var de_CompleteLifecycleActionCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1387
1387
|
if (output.statusCode >= 300) {
|
|
1388
1388
|
return de_CommandError(output, context);
|
|
1389
1389
|
}
|
|
1390
|
-
const data = await
|
|
1390
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1391
1391
|
let contents = {};
|
|
1392
1392
|
contents = de_CompleteLifecycleActionAnswer(data.CompleteLifecycleActionResult, context);
|
|
1393
1393
|
const response = {
|
|
@@ -1450,7 +1450,7 @@ var de_DeleteLifecycleHookCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1450
1450
|
if (output.statusCode >= 300) {
|
|
1451
1451
|
return de_CommandError(output, context);
|
|
1452
1452
|
}
|
|
1453
|
-
const data = await
|
|
1453
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1454
1454
|
let contents = {};
|
|
1455
1455
|
contents = de_DeleteLifecycleHookAnswer(data.DeleteLifecycleHookResult, context);
|
|
1456
1456
|
const response = {
|
|
@@ -1503,7 +1503,7 @@ var de_DeleteWarmPoolCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1503
1503
|
if (output.statusCode >= 300) {
|
|
1504
1504
|
return de_CommandError(output, context);
|
|
1505
1505
|
}
|
|
1506
|
-
const data = await
|
|
1506
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1507
1507
|
let contents = {};
|
|
1508
1508
|
contents = de_DeleteWarmPoolAnswer(data.DeleteWarmPoolResult, context);
|
|
1509
1509
|
const response = {
|
|
@@ -1516,7 +1516,7 @@ var de_DescribeAccountLimitsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1516
1516
|
if (output.statusCode >= 300) {
|
|
1517
1517
|
return de_CommandError(output, context);
|
|
1518
1518
|
}
|
|
1519
|
-
const data = await
|
|
1519
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1520
1520
|
let contents = {};
|
|
1521
1521
|
contents = de_DescribeAccountLimitsAnswer(data.DescribeAccountLimitsResult, context);
|
|
1522
1522
|
const response = {
|
|
@@ -1529,7 +1529,7 @@ var de_DescribeAdjustmentTypesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1529
1529
|
if (output.statusCode >= 300) {
|
|
1530
1530
|
return de_CommandError(output, context);
|
|
1531
1531
|
}
|
|
1532
|
-
const data = await
|
|
1532
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1533
1533
|
let contents = {};
|
|
1534
1534
|
contents = de_DescribeAdjustmentTypesAnswer(data.DescribeAdjustmentTypesResult, context);
|
|
1535
1535
|
const response = {
|
|
@@ -1542,7 +1542,7 @@ var de_DescribeAutoScalingGroupsCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1542
1542
|
if (output.statusCode >= 300) {
|
|
1543
1543
|
return de_CommandError(output, context);
|
|
1544
1544
|
}
|
|
1545
|
-
const data = await
|
|
1545
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1546
1546
|
let contents = {};
|
|
1547
1547
|
contents = de_AutoScalingGroupsType(data.DescribeAutoScalingGroupsResult, context);
|
|
1548
1548
|
const response = {
|
|
@@ -1555,7 +1555,7 @@ var de_DescribeAutoScalingInstancesCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1555
1555
|
if (output.statusCode >= 300) {
|
|
1556
1556
|
return de_CommandError(output, context);
|
|
1557
1557
|
}
|
|
1558
|
-
const data = await
|
|
1558
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1559
1559
|
let contents = {};
|
|
1560
1560
|
contents = de_AutoScalingInstancesType(data.DescribeAutoScalingInstancesResult, context);
|
|
1561
1561
|
const response = {
|
|
@@ -1568,7 +1568,7 @@ var de_DescribeAutoScalingNotificationTypesCommand = /* @__PURE__ */ __name(asyn
|
|
|
1568
1568
|
if (output.statusCode >= 300) {
|
|
1569
1569
|
return de_CommandError(output, context);
|
|
1570
1570
|
}
|
|
1571
|
-
const data = await
|
|
1571
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1572
1572
|
let contents = {};
|
|
1573
1573
|
contents = de_DescribeAutoScalingNotificationTypesAnswer(data.DescribeAutoScalingNotificationTypesResult, context);
|
|
1574
1574
|
const response = {
|
|
@@ -1581,7 +1581,7 @@ var de_DescribeInstanceRefreshesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1581
1581
|
if (output.statusCode >= 300) {
|
|
1582
1582
|
return de_CommandError(output, context);
|
|
1583
1583
|
}
|
|
1584
|
-
const data = await
|
|
1584
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1585
1585
|
let contents = {};
|
|
1586
1586
|
contents = de_DescribeInstanceRefreshesAnswer(data.DescribeInstanceRefreshesResult, context);
|
|
1587
1587
|
const response = {
|
|
@@ -1594,7 +1594,7 @@ var de_DescribeLaunchConfigurationsCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1594
1594
|
if (output.statusCode >= 300) {
|
|
1595
1595
|
return de_CommandError(output, context);
|
|
1596
1596
|
}
|
|
1597
|
-
const data = await
|
|
1597
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1598
1598
|
let contents = {};
|
|
1599
1599
|
contents = de_LaunchConfigurationsType(data.DescribeLaunchConfigurationsResult, context);
|
|
1600
1600
|
const response = {
|
|
@@ -1607,7 +1607,7 @@ var de_DescribeLifecycleHooksCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1607
1607
|
if (output.statusCode >= 300) {
|
|
1608
1608
|
return de_CommandError(output, context);
|
|
1609
1609
|
}
|
|
1610
|
-
const data = await
|
|
1610
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1611
1611
|
let contents = {};
|
|
1612
1612
|
contents = de_DescribeLifecycleHooksAnswer(data.DescribeLifecycleHooksResult, context);
|
|
1613
1613
|
const response = {
|
|
@@ -1620,7 +1620,7 @@ var de_DescribeLifecycleHookTypesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1620
1620
|
if (output.statusCode >= 300) {
|
|
1621
1621
|
return de_CommandError(output, context);
|
|
1622
1622
|
}
|
|
1623
|
-
const data = await
|
|
1623
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1624
1624
|
let contents = {};
|
|
1625
1625
|
contents = de_DescribeLifecycleHookTypesAnswer(data.DescribeLifecycleHookTypesResult, context);
|
|
1626
1626
|
const response = {
|
|
@@ -1633,7 +1633,7 @@ var de_DescribeLoadBalancersCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1633
1633
|
if (output.statusCode >= 300) {
|
|
1634
1634
|
return de_CommandError(output, context);
|
|
1635
1635
|
}
|
|
1636
|
-
const data = await
|
|
1636
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1637
1637
|
let contents = {};
|
|
1638
1638
|
contents = de_DescribeLoadBalancersResponse(data.DescribeLoadBalancersResult, context);
|
|
1639
1639
|
const response = {
|
|
@@ -1646,7 +1646,7 @@ var de_DescribeLoadBalancerTargetGroupsCommand = /* @__PURE__ */ __name(async (o
|
|
|
1646
1646
|
if (output.statusCode >= 300) {
|
|
1647
1647
|
return de_CommandError(output, context);
|
|
1648
1648
|
}
|
|
1649
|
-
const data = await
|
|
1649
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1650
1650
|
let contents = {};
|
|
1651
1651
|
contents = de_DescribeLoadBalancerTargetGroupsResponse(data.DescribeLoadBalancerTargetGroupsResult, context);
|
|
1652
1652
|
const response = {
|
|
@@ -1659,7 +1659,7 @@ var de_DescribeMetricCollectionTypesCommand = /* @__PURE__ */ __name(async (outp
|
|
|
1659
1659
|
if (output.statusCode >= 300) {
|
|
1660
1660
|
return de_CommandError(output, context);
|
|
1661
1661
|
}
|
|
1662
|
-
const data = await
|
|
1662
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1663
1663
|
let contents = {};
|
|
1664
1664
|
contents = de_DescribeMetricCollectionTypesAnswer(data.DescribeMetricCollectionTypesResult, context);
|
|
1665
1665
|
const response = {
|
|
@@ -1672,7 +1672,7 @@ var de_DescribeNotificationConfigurationsCommand = /* @__PURE__ */ __name(async
|
|
|
1672
1672
|
if (output.statusCode >= 300) {
|
|
1673
1673
|
return de_CommandError(output, context);
|
|
1674
1674
|
}
|
|
1675
|
-
const data = await
|
|
1675
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1676
1676
|
let contents = {};
|
|
1677
1677
|
contents = de_DescribeNotificationConfigurationsAnswer(data.DescribeNotificationConfigurationsResult, context);
|
|
1678
1678
|
const response = {
|
|
@@ -1685,7 +1685,7 @@ var de_DescribePoliciesCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1685
1685
|
if (output.statusCode >= 300) {
|
|
1686
1686
|
return de_CommandError(output, context);
|
|
1687
1687
|
}
|
|
1688
|
-
const data = await
|
|
1688
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1689
1689
|
let contents = {};
|
|
1690
1690
|
contents = de_PoliciesType(data.DescribePoliciesResult, context);
|
|
1691
1691
|
const response = {
|
|
@@ -1698,7 +1698,7 @@ var de_DescribeScalingActivitiesCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1698
1698
|
if (output.statusCode >= 300) {
|
|
1699
1699
|
return de_CommandError(output, context);
|
|
1700
1700
|
}
|
|
1701
|
-
const data = await
|
|
1701
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1702
1702
|
let contents = {};
|
|
1703
1703
|
contents = de_ActivitiesType(data.DescribeScalingActivitiesResult, context);
|
|
1704
1704
|
const response = {
|
|
@@ -1711,7 +1711,7 @@ var de_DescribeScalingProcessTypesCommand = /* @__PURE__ */ __name(async (output
|
|
|
1711
1711
|
if (output.statusCode >= 300) {
|
|
1712
1712
|
return de_CommandError(output, context);
|
|
1713
1713
|
}
|
|
1714
|
-
const data = await
|
|
1714
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1715
1715
|
let contents = {};
|
|
1716
1716
|
contents = de_ProcessesType(data.DescribeScalingProcessTypesResult, context);
|
|
1717
1717
|
const response = {
|
|
@@ -1724,7 +1724,7 @@ var de_DescribeScheduledActionsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1724
1724
|
if (output.statusCode >= 300) {
|
|
1725
1725
|
return de_CommandError(output, context);
|
|
1726
1726
|
}
|
|
1727
|
-
const data = await
|
|
1727
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1728
1728
|
let contents = {};
|
|
1729
1729
|
contents = de_ScheduledActionsType(data.DescribeScheduledActionsResult, context);
|
|
1730
1730
|
const response = {
|
|
@@ -1737,7 +1737,7 @@ var de_DescribeTagsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1737
1737
|
if (output.statusCode >= 300) {
|
|
1738
1738
|
return de_CommandError(output, context);
|
|
1739
1739
|
}
|
|
1740
|
-
const data = await
|
|
1740
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1741
1741
|
let contents = {};
|
|
1742
1742
|
contents = de_TagsType(data.DescribeTagsResult, context);
|
|
1743
1743
|
const response = {
|
|
@@ -1750,7 +1750,7 @@ var de_DescribeTerminationPolicyTypesCommand = /* @__PURE__ */ __name(async (out
|
|
|
1750
1750
|
if (output.statusCode >= 300) {
|
|
1751
1751
|
return de_CommandError(output, context);
|
|
1752
1752
|
}
|
|
1753
|
-
const data = await
|
|
1753
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1754
1754
|
let contents = {};
|
|
1755
1755
|
contents = de_DescribeTerminationPolicyTypesAnswer(data.DescribeTerminationPolicyTypesResult, context);
|
|
1756
1756
|
const response = {
|
|
@@ -1763,7 +1763,7 @@ var de_DescribeTrafficSourcesCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
1763
1763
|
if (output.statusCode >= 300) {
|
|
1764
1764
|
return de_CommandError(output, context);
|
|
1765
1765
|
}
|
|
1766
|
-
const data = await
|
|
1766
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1767
1767
|
let contents = {};
|
|
1768
1768
|
contents = de_DescribeTrafficSourcesResponse(data.DescribeTrafficSourcesResult, context);
|
|
1769
1769
|
const response = {
|
|
@@ -1776,7 +1776,7 @@ var de_DescribeWarmPoolCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1776
1776
|
if (output.statusCode >= 300) {
|
|
1777
1777
|
return de_CommandError(output, context);
|
|
1778
1778
|
}
|
|
1779
|
-
const data = await
|
|
1779
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1780
1780
|
let contents = {};
|
|
1781
1781
|
contents = de_DescribeWarmPoolAnswer(data.DescribeWarmPoolResult, context);
|
|
1782
1782
|
const response = {
|
|
@@ -1789,7 +1789,7 @@ var de_DetachInstancesCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1789
1789
|
if (output.statusCode >= 300) {
|
|
1790
1790
|
return de_CommandError(output, context);
|
|
1791
1791
|
}
|
|
1792
|
-
const data = await
|
|
1792
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1793
1793
|
let contents = {};
|
|
1794
1794
|
contents = de_DetachInstancesAnswer(data.DetachInstancesResult, context);
|
|
1795
1795
|
const response = {
|
|
@@ -1802,7 +1802,7 @@ var de_DetachLoadBalancersCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1802
1802
|
if (output.statusCode >= 300) {
|
|
1803
1803
|
return de_CommandError(output, context);
|
|
1804
1804
|
}
|
|
1805
|
-
const data = await
|
|
1805
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1806
1806
|
let contents = {};
|
|
1807
1807
|
contents = de_DetachLoadBalancersResultType(data.DetachLoadBalancersResult, context);
|
|
1808
1808
|
const response = {
|
|
@@ -1815,7 +1815,7 @@ var de_DetachLoadBalancerTargetGroupsCommand = /* @__PURE__ */ __name(async (out
|
|
|
1815
1815
|
if (output.statusCode >= 300) {
|
|
1816
1816
|
return de_CommandError(output, context);
|
|
1817
1817
|
}
|
|
1818
|
-
const data = await
|
|
1818
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1819
1819
|
let contents = {};
|
|
1820
1820
|
contents = de_DetachLoadBalancerTargetGroupsResultType(data.DetachLoadBalancerTargetGroupsResult, context);
|
|
1821
1821
|
const response = {
|
|
@@ -1828,7 +1828,7 @@ var de_DetachTrafficSourcesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1828
1828
|
if (output.statusCode >= 300) {
|
|
1829
1829
|
return de_CommandError(output, context);
|
|
1830
1830
|
}
|
|
1831
|
-
const data = await
|
|
1831
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1832
1832
|
let contents = {};
|
|
1833
1833
|
contents = de_DetachTrafficSourcesResultType(data.DetachTrafficSourcesResult, context);
|
|
1834
1834
|
const response = {
|
|
@@ -1861,7 +1861,7 @@ var de_EnterStandbyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1861
1861
|
if (output.statusCode >= 300) {
|
|
1862
1862
|
return de_CommandError(output, context);
|
|
1863
1863
|
}
|
|
1864
|
-
const data = await
|
|
1864
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1865
1865
|
let contents = {};
|
|
1866
1866
|
contents = de_EnterStandbyAnswer(data.EnterStandbyResult, context);
|
|
1867
1867
|
const response = {
|
|
@@ -1884,7 +1884,7 @@ var de_ExitStandbyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1884
1884
|
if (output.statusCode >= 300) {
|
|
1885
1885
|
return de_CommandError(output, context);
|
|
1886
1886
|
}
|
|
1887
|
-
const data = await
|
|
1887
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1888
1888
|
let contents = {};
|
|
1889
1889
|
contents = de_ExitStandbyAnswer(data.ExitStandbyResult, context);
|
|
1890
1890
|
const response = {
|
|
@@ -1897,7 +1897,7 @@ var de_GetPredictiveScalingForecastCommand = /* @__PURE__ */ __name(async (outpu
|
|
|
1897
1897
|
if (output.statusCode >= 300) {
|
|
1898
1898
|
return de_CommandError(output, context);
|
|
1899
1899
|
}
|
|
1900
|
-
const data = await
|
|
1900
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1901
1901
|
let contents = {};
|
|
1902
1902
|
contents = de_GetPredictiveScalingForecastAnswer(data.GetPredictiveScalingForecastResult, context);
|
|
1903
1903
|
const response = {
|
|
@@ -1910,7 +1910,7 @@ var de_PutLifecycleHookCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1910
1910
|
if (output.statusCode >= 300) {
|
|
1911
1911
|
return de_CommandError(output, context);
|
|
1912
1912
|
}
|
|
1913
|
-
const data = await
|
|
1913
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1914
1914
|
let contents = {};
|
|
1915
1915
|
contents = de_PutLifecycleHookAnswer(data.PutLifecycleHookResult, context);
|
|
1916
1916
|
const response = {
|
|
@@ -1933,7 +1933,7 @@ var de_PutScalingPolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1933
1933
|
if (output.statusCode >= 300) {
|
|
1934
1934
|
return de_CommandError(output, context);
|
|
1935
1935
|
}
|
|
1936
|
-
const data = await
|
|
1936
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1937
1937
|
let contents = {};
|
|
1938
1938
|
contents = de_PolicyARNType(data.PutScalingPolicyResult, context);
|
|
1939
1939
|
const response = {
|
|
@@ -1956,7 +1956,7 @@ var de_PutWarmPoolCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1956
1956
|
if (output.statusCode >= 300) {
|
|
1957
1957
|
return de_CommandError(output, context);
|
|
1958
1958
|
}
|
|
1959
|
-
const data = await
|
|
1959
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1960
1960
|
let contents = {};
|
|
1961
1961
|
contents = de_PutWarmPoolAnswer(data.PutWarmPoolResult, context);
|
|
1962
1962
|
const response = {
|
|
@@ -1969,7 +1969,7 @@ var de_RecordLifecycleActionHeartbeatCommand = /* @__PURE__ */ __name(async (out
|
|
|
1969
1969
|
if (output.statusCode >= 300) {
|
|
1970
1970
|
return de_CommandError(output, context);
|
|
1971
1971
|
}
|
|
1972
|
-
const data = await
|
|
1972
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1973
1973
|
let contents = {};
|
|
1974
1974
|
contents = de_RecordLifecycleActionHeartbeatAnswer(data.RecordLifecycleActionHeartbeatResult, context);
|
|
1975
1975
|
const response = {
|
|
@@ -1992,7 +1992,7 @@ var de_RollbackInstanceRefreshCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1992
1992
|
if (output.statusCode >= 300) {
|
|
1993
1993
|
return de_CommandError(output, context);
|
|
1994
1994
|
}
|
|
1995
|
-
const data = await
|
|
1995
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
1996
1996
|
let contents = {};
|
|
1997
1997
|
contents = de_RollbackInstanceRefreshAnswer(data.RollbackInstanceRefreshResult, context);
|
|
1998
1998
|
const response = {
|
|
@@ -2025,7 +2025,7 @@ var de_SetInstanceProtectionCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
2025
2025
|
if (output.statusCode >= 300) {
|
|
2026
2026
|
return de_CommandError(output, context);
|
|
2027
2027
|
}
|
|
2028
|
-
const data = await
|
|
2028
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
2029
2029
|
let contents = {};
|
|
2030
2030
|
contents = de_SetInstanceProtectionAnswer(data.SetInstanceProtectionResult, context);
|
|
2031
2031
|
const response = {
|
|
@@ -2038,7 +2038,7 @@ var de_StartInstanceRefreshCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
2038
2038
|
if (output.statusCode >= 300) {
|
|
2039
2039
|
return de_CommandError(output, context);
|
|
2040
2040
|
}
|
|
2041
|
-
const data = await
|
|
2041
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
2042
2042
|
let contents = {};
|
|
2043
2043
|
contents = de_StartInstanceRefreshAnswer(data.StartInstanceRefreshResult, context);
|
|
2044
2044
|
const response = {
|
|
@@ -2061,7 +2061,7 @@ var de_TerminateInstanceInAutoScalingGroupCommand = /* @__PURE__ */ __name(async
|
|
|
2061
2061
|
if (output.statusCode >= 300) {
|
|
2062
2062
|
return de_CommandError(output, context);
|
|
2063
2063
|
}
|
|
2064
|
-
const data = await
|
|
2064
|
+
const data = await (0, import_core2.parseXmlBody)(output.body, context);
|
|
2065
2065
|
let contents = {};
|
|
2066
2066
|
contents = de_ActivityType(data.TerminateInstanceInAutoScalingGroupResult, context);
|
|
2067
2067
|
const response = {
|
|
@@ -2083,7 +2083,7 @@ var de_UpdateAutoScalingGroupCommand = /* @__PURE__ */ __name(async (output, con
|
|
|
2083
2083
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
2084
2084
|
const parsedOutput = {
|
|
2085
2085
|
...output,
|
|
2086
|
-
body: await
|
|
2086
|
+
body: await (0, import_core2.parseXmlErrorBody)(output.body, context)
|
|
2087
2087
|
};
|
|
2088
2088
|
const errorCode = loadQueryErrorCode(output, parsedOutput.body);
|
|
2089
2089
|
switch (errorCode) {
|
|
@@ -7142,7 +7142,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
7142
7142
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
7143
7143
|
cfId: output.headers["x-amz-cf-id"]
|
|
7144
7144
|
}), "deserializeMetadata");
|
|
7145
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
7146
7145
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(AutoScalingServiceException);
|
|
7147
7146
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
7148
7147
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -7523,38 +7522,6 @@ var _WPP = "WarmPoolProgress";
|
|
|
7523
7522
|
var _WPS = "WarmPoolSize";
|
|
7524
7523
|
var _m = "message";
|
|
7525
7524
|
var _me = "member";
|
|
7526
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
7527
|
-
if (encoded.length) {
|
|
7528
|
-
const parser = new import_fast_xml_parser.XMLParser({
|
|
7529
|
-
attributeNamePrefix: "",
|
|
7530
|
-
htmlEntities: true,
|
|
7531
|
-
ignoreAttributes: false,
|
|
7532
|
-
ignoreDeclaration: true,
|
|
7533
|
-
parseTagValue: false,
|
|
7534
|
-
trimValues: false,
|
|
7535
|
-
tagValueProcessor: (_2, val) => val.trim() === "" && val.includes("\n") ? "" : void 0
|
|
7536
|
-
});
|
|
7537
|
-
parser.addEntity("#xD", "\r");
|
|
7538
|
-
parser.addEntity("#10", "\n");
|
|
7539
|
-
const parsedObj = parser.parse(encoded);
|
|
7540
|
-
const textNodeName = "#text";
|
|
7541
|
-
const key = Object.keys(parsedObj)[0];
|
|
7542
|
-
const parsedObjToReturn = parsedObj[key];
|
|
7543
|
-
if (parsedObjToReturn[textNodeName]) {
|
|
7544
|
-
parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
|
|
7545
|
-
delete parsedObjToReturn[textNodeName];
|
|
7546
|
-
}
|
|
7547
|
-
return (0, import_smithy_client.getValueFromTextNode)(parsedObjToReturn);
|
|
7548
|
-
}
|
|
7549
|
-
return {};
|
|
7550
|
-
}), "parseBody");
|
|
7551
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
7552
|
-
const value = await parseBody(errorBody, context);
|
|
7553
|
-
if (value.Error) {
|
|
7554
|
-
value.Error.message = value.Error.message ?? value.Error.Message;
|
|
7555
|
-
}
|
|
7556
|
-
return value;
|
|
7557
|
-
}, "parseErrorBody");
|
|
7558
7525
|
var buildFormUrlencodedString = /* @__PURE__ */ __name((formEntries) => Object.entries(formEntries).map(([key, value]) => (0, import_smithy_client.extendedEncodeURIComponent)(key) + "=" + (0, import_smithy_client.extendedEncodeURIComponent)(value)).join("&"), "buildFormUrlencodedString");
|
|
7559
7526
|
var loadQueryErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
7560
7527
|
var _a;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
+
import { parseXmlBody as parseBody, parseXmlErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
|
-
import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem,
|
|
3
|
-
import { XMLParser } from "fast-xml-parser";
|
|
3
|
+
import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getArrayIfSingleItem as __getArrayIfSingleItem, parseBoolean as __parseBoolean, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, strictParseFloat as __strictParseFloat, strictParseInt32 as __strictParseInt32, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { AutoScalingServiceException as __BaseException } from "../models/AutoScalingServiceException";
|
|
5
5
|
import { ActiveInstanceRefreshNotFoundFault, AlreadyExistsFault, InstanceRefreshInProgressFault, InvalidNextToken, IrreversibleInstanceRefreshFault, LimitExceededFault, ResourceContentionFault, ResourceInUseFault, ScalingActivityInProgressFault, ServiceLinkedRoleFailure, } from "../models/models_0";
|
|
6
6
|
export const se_AttachInstancesCommand = async (input, context) => {
|
|
@@ -6984,38 +6984,6 @@ const _WPP = "WarmPoolProgress";
|
|
|
6984
6984
|
const _WPS = "WarmPoolSize";
|
|
6985
6985
|
const _m = "message";
|
|
6986
6986
|
const _me = "member";
|
|
6987
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
6988
|
-
if (encoded.length) {
|
|
6989
|
-
const parser = new XMLParser({
|
|
6990
|
-
attributeNamePrefix: "",
|
|
6991
|
-
htmlEntities: true,
|
|
6992
|
-
ignoreAttributes: false,
|
|
6993
|
-
ignoreDeclaration: true,
|
|
6994
|
-
parseTagValue: false,
|
|
6995
|
-
trimValues: false,
|
|
6996
|
-
tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined),
|
|
6997
|
-
});
|
|
6998
|
-
parser.addEntity("#xD", "\r");
|
|
6999
|
-
parser.addEntity("#10", "\n");
|
|
7000
|
-
const parsedObj = parser.parse(encoded);
|
|
7001
|
-
const textNodeName = "#text";
|
|
7002
|
-
const key = Object.keys(parsedObj)[0];
|
|
7003
|
-
const parsedObjToReturn = parsedObj[key];
|
|
7004
|
-
if (parsedObjToReturn[textNodeName]) {
|
|
7005
|
-
parsedObjToReturn[key] = parsedObjToReturn[textNodeName];
|
|
7006
|
-
delete parsedObjToReturn[textNodeName];
|
|
7007
|
-
}
|
|
7008
|
-
return __getValueFromTextNode(parsedObjToReturn);
|
|
7009
|
-
}
|
|
7010
|
-
return {};
|
|
7011
|
-
});
|
|
7012
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
7013
|
-
const value = await parseBody(errorBody, context);
|
|
7014
|
-
if (value.Error) {
|
|
7015
|
-
value.Error.message = value.Error.message ?? value.Error.Message;
|
|
7016
|
-
}
|
|
7017
|
-
return value;
|
|
7018
|
-
};
|
|
7019
6987
|
const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries)
|
|
7020
6988
|
.map(([key, value]) => __extendedEncodeURIComponent(key) + "=" + __extendedEncodeURIComponent(value))
|
|
7021
6989
|
.join("&");
|
|
@@ -34,11 +34,8 @@ declare const CreateAutoScalingGroupCommand_base: {
|
|
|
34
34
|
* call the <a>DescribeAccountLimits</a> API. For information about updating
|
|
35
35
|
* this limit, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-quotas.html">Quotas for
|
|
36
36
|
* Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
37
|
-
* <p>
|
|
38
|
-
* Amazon EC2 Auto Scaling</a>
|
|
39
|
-
* scaled and load-balanced application</a> in the
|
|
40
|
-
* <i>Amazon EC2 Auto Scaling User Guide</i>. For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/AutoScalingGroup.html">Auto Scaling
|
|
41
|
-
* groups</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
37
|
+
* <p>If you're new to Amazon EC2 Auto Scaling, see the introductory tutorials in <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/get-started-with-ec2-auto-scaling.html">Get started
|
|
38
|
+
* with Amazon EC2 Auto Scaling</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
42
39
|
* <p>Every Auto Scaling group has three size properties (<code>DesiredCapacity</code>,
|
|
43
40
|
* <code>MaxSize</code>, and <code>MinSize</code>). Usually, you set these sizes based
|
|
44
41
|
* on a specific number of instances. However, if you configure a mixed instances policy
|
|
@@ -1206,18 +1206,19 @@ export interface InstanceRequirements {
|
|
|
1206
1206
|
* types or, failing that, the lowest priced previous generation instance types that match
|
|
1207
1207
|
* your attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will
|
|
1208
1208
|
* exclude instance types whose price exceeds your specified threshold.</p>
|
|
1209
|
-
* <p>The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage
|
|
1210
|
-
* <p>To turn off price protection, specify a high value, such as <code>999999</code>. </p>
|
|
1209
|
+
* <p>The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage. </p>
|
|
1211
1210
|
* <p>If you set <code>DesiredCapacityType</code> to <code>vcpu</code> or
|
|
1212
1211
|
* <code>memory-mib</code>, the price protection threshold is based on the per-vCPU or
|
|
1213
1212
|
* per-memory price instead of the per instance price. </p>
|
|
1214
1213
|
* <note>
|
|
1215
1214
|
* <p>Only one of <code>SpotMaxPricePercentageOverLowestPrice</code> or
|
|
1216
|
-
* <code>MaxSpotPriceAsPercentageOfOptimalOnDemandPrice</code> can be
|
|
1217
|
-
*
|
|
1215
|
+
* <code>MaxSpotPriceAsPercentageOfOptimalOnDemandPrice</code> can be specified. If
|
|
1216
|
+
* you don't specify either, Amazon EC2 Auto Scaling will automatically apply optimal price protection
|
|
1217
|
+
* to consistently select from a wide range of instance types. To indicate no price
|
|
1218
|
+
* protection threshold for Spot Instances, meaning you want to consider all instance
|
|
1219
|
+
* types that match your attributes, include one of these parameters and specify a high
|
|
1220
|
+
* value, such as <code>999999</code>. </p>
|
|
1218
1221
|
* </note>
|
|
1219
|
-
* <p>Default: <code>100</code>
|
|
1220
|
-
* </p>
|
|
1221
1222
|
*/
|
|
1222
1223
|
SpotMaxPricePercentageOverLowestPrice?: number;
|
|
1223
1224
|
/**
|
|
@@ -1231,16 +1232,17 @@ export interface InstanceRequirements {
|
|
|
1231
1232
|
* your attributes. When Amazon EC2 Auto Scaling selects instance types with your attributes, we will
|
|
1232
1233
|
* exclude instance types whose price exceeds your specified threshold.</p>
|
|
1233
1234
|
* <p>The parameter accepts an integer, which Amazon EC2 Auto Scaling interprets as a percentage.</p>
|
|
1234
|
-
* <p>To indicate no price protection threshold, specify a high value, such as
|
|
1235
|
-
* <code>999999</code>. </p>
|
|
1236
1235
|
* <p>If you set <code>DesiredCapacityType</code> to <code>vcpu</code> or
|
|
1237
1236
|
* <code>memory-mib</code>, the price protection threshold is based on the per-vCPU or
|
|
1238
1237
|
* per-memory price instead of the per instance price. </p>
|
|
1239
1238
|
* <note>
|
|
1240
1239
|
* <p>Only one of <code>SpotMaxPricePercentageOverLowestPrice</code> or
|
|
1241
1240
|
* <code>MaxSpotPriceAsPercentageOfOptimalOnDemandPrice</code> can be specified. If
|
|
1242
|
-
* you don't specify either,
|
|
1243
|
-
*
|
|
1241
|
+
* you don't specify either, Amazon EC2 Auto Scaling will automatically apply optimal price protection
|
|
1242
|
+
* to consistently select from a wide range of instance types. To indicate no price
|
|
1243
|
+
* protection threshold for Spot Instances, meaning you want to consider all instance
|
|
1244
|
+
* types that match your attributes, include one of these parameters and specify a high
|
|
1245
|
+
* value, such as <code>999999</code>. </p>
|
|
1244
1246
|
* </note>
|
|
1245
1247
|
*/
|
|
1246
1248
|
MaxSpotPriceAsPercentageOfOptimalOnDemandPrice?: number;
|
|
@@ -5379,7 +5381,7 @@ export interface ScalingPolicy {
|
|
|
5379
5381
|
* </li>
|
|
5380
5382
|
* </ul>
|
|
5381
5383
|
* <p>For more information, see <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-target-tracking.html">Target tracking
|
|
5382
|
-
*
|
|
5384
|
+
* scaling policies</a> and <a href="https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-scaling-simple-step.html">Step and simple scaling
|
|
5383
5385
|
* policies</a> in the <i>Amazon EC2 Auto Scaling User Guide</i>.</p>
|
|
5384
5386
|
*/
|
|
5385
5387
|
PolicyType?: string;
|
|
@@ -5401,7 +5403,7 @@ export interface ScalingPolicy {
|
|
|
5401
5403
|
/**
|
|
5402
5404
|
* @public
|
|
5403
5405
|
* <p>The minimum value to scale by when the adjustment type is
|
|
5404
|
-
*
|
|
5406
|
+
* <code>PercentChangeInCapacity</code>. </p>
|
|
5405
5407
|
*/
|
|
5406
5408
|
MinAdjustmentMagnitude?: number;
|
|
5407
5409
|
/**
|
|
@@ -5425,7 +5427,7 @@ export interface ScalingPolicy {
|
|
|
5425
5427
|
/**
|
|
5426
5428
|
* @public
|
|
5427
5429
|
* <p>The aggregation type for the CloudWatch metrics. The valid values are <code>Minimum</code>,
|
|
5428
|
-
*
|
|
5430
|
+
* <code>Maximum</code>, and <code>Average</code>.</p>
|
|
5429
5431
|
*/
|
|
5430
5432
|
MetricAggregationType?: string;
|
|
5431
5433
|
/**
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-auto-scaling",
|
|
3
3
|
"description": "AWS SDK for JavaScript Auto Scaling 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-auto-scaling",
|
|
@@ -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",
|
|
@@ -58,7 +58,6 @@
|
|
|
58
58
|
"@smithy/util-retry": "^2.1.3",
|
|
59
59
|
"@smithy/util-utf8": "^2.1.1",
|
|
60
60
|
"@smithy/util-waiter": "^2.1.3",
|
|
61
|
-
"fast-xml-parser": "4.2.5",
|
|
62
61
|
"tslib": "^2.5.0"
|
|
63
62
|
},
|
|
64
63
|
"devDependencies": {
|