@aws-sdk/client-auto-scaling 3.957.0 → 3.958.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/README.md +1 -72
- package/dist-cjs/auth/httpAuthSchemeProvider.js +3 -4
- package/dist-cjs/index.js +1098 -1489
- package/dist-cjs/runtimeConfig.browser.js +1 -2
- package/dist-cjs/runtimeConfig.js +2 -4
- package/dist-es/auth/httpAuthSchemeProvider.js +3 -4
- package/dist-es/pagination/index.js +2 -2
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +4 -6
- package/dist-es/schemas/schemas_0.js +1068 -1459
- package/dist-es/waiters/waitForGroupExists.js +4 -4
- package/dist-es/waiters/waitForGroupInService.js +16 -16
- package/dist-es/waiters/waitForGroupNotExists.js +4 -4
- package/dist-types/pagination/index.d.ts +2 -2
- package/dist-types/ts3.4/pagination/index.d.ts +2 -2
- package/package.json +2 -2
|
@@ -6,8 +6,8 @@ const checkState = async (client, input) => {
|
|
|
6
6
|
const result = await client.send(new DescribeAutoScalingGroupsCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
return result.AutoScalingGroups.length > 0.0;
|
|
9
|
+
let returnComparator = () => {
|
|
10
|
+
return (result.AutoScalingGroups.length > 0.0);
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() == true) {
|
|
13
13
|
return { state: WaiterState.SUCCESS, reason };
|
|
@@ -15,8 +15,8 @@ const checkState = async (client, input) => {
|
|
|
15
15
|
}
|
|
16
16
|
catch (e) { }
|
|
17
17
|
try {
|
|
18
|
-
|
|
19
|
-
return result.AutoScalingGroups.length > 0.0;
|
|
18
|
+
let returnComparator = () => {
|
|
19
|
+
return (result.AutoScalingGroups.length > 0.0);
|
|
20
20
|
};
|
|
21
21
|
if (returnComparator() == false) {
|
|
22
22
|
return { state: WaiterState.RETRY, reason };
|
|
@@ -6,18 +6,18 @@ const checkState = async (client, input) => {
|
|
|
6
6
|
const result = await client.send(new DescribeAutoScalingGroupsCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return element_4.LifecycleState == "InService";
|
|
9
|
+
let returnComparator = () => {
|
|
10
|
+
let flat_1 = [].concat(...result.AutoScalingGroups);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
|
+
let filterRes_5 = element_2.Instances.filter((element_4) => {
|
|
13
|
+
return (element_4.LifecycleState == "InService");
|
|
14
14
|
});
|
|
15
|
-
|
|
16
|
-
result_6.push(filterRes_5.length >= element_2.MinSize);
|
|
15
|
+
let result_6 = [];
|
|
16
|
+
result_6.push((filterRes_5.length >= element_2.MinSize));
|
|
17
17
|
element_2 = result_6;
|
|
18
18
|
return element_2;
|
|
19
19
|
});
|
|
20
|
-
|
|
20
|
+
let flat_7 = [].concat(...projection_3);
|
|
21
21
|
return flat_7.includes(false);
|
|
22
22
|
};
|
|
23
23
|
if (returnComparator() == false) {
|
|
@@ -26,18 +26,18 @@ const checkState = async (client, input) => {
|
|
|
26
26
|
}
|
|
27
27
|
catch (e) { }
|
|
28
28
|
try {
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
return element_4.LifecycleState == "InService";
|
|
29
|
+
let returnComparator = () => {
|
|
30
|
+
let flat_1 = [].concat(...result.AutoScalingGroups);
|
|
31
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
32
|
+
let filterRes_5 = element_2.Instances.filter((element_4) => {
|
|
33
|
+
return (element_4.LifecycleState == "InService");
|
|
34
34
|
});
|
|
35
|
-
|
|
36
|
-
result_6.push(filterRes_5.length >= element_2.MinSize);
|
|
35
|
+
let result_6 = [];
|
|
36
|
+
result_6.push((filterRes_5.length >= element_2.MinSize));
|
|
37
37
|
element_2 = result_6;
|
|
38
38
|
return element_2;
|
|
39
39
|
});
|
|
40
|
-
|
|
40
|
+
let flat_7 = [].concat(...projection_3);
|
|
41
41
|
return flat_7.includes(false);
|
|
42
42
|
};
|
|
43
43
|
if (returnComparator() == true) {
|
|
@@ -6,8 +6,8 @@ const checkState = async (client, input) => {
|
|
|
6
6
|
const result = await client.send(new DescribeAutoScalingGroupsCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
return result.AutoScalingGroups.length > 0.0;
|
|
9
|
+
let returnComparator = () => {
|
|
10
|
+
return (result.AutoScalingGroups.length > 0.0);
|
|
11
11
|
};
|
|
12
12
|
if (returnComparator() == false) {
|
|
13
13
|
return { state: WaiterState.SUCCESS, reason };
|
|
@@ -15,8 +15,8 @@ const checkState = async (client, input) => {
|
|
|
15
15
|
}
|
|
16
16
|
catch (e) { }
|
|
17
17
|
try {
|
|
18
|
-
|
|
19
|
-
return result.AutoScalingGroups.length > 0.0;
|
|
18
|
+
let returnComparator = () => {
|
|
19
|
+
return (result.AutoScalingGroups.length > 0.0);
|
|
20
20
|
};
|
|
21
21
|
if (returnComparator() == true) {
|
|
22
22
|
return { state: WaiterState.RETRY, reason };
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
export * from "./Interfaces";
|
|
1
2
|
export * from "./DescribeAutoScalingGroupsPaginator";
|
|
2
3
|
export * from "./DescribeAutoScalingInstancesPaginator";
|
|
3
4
|
export * from "./DescribeInstanceRefreshesPaginator";
|
|
4
5
|
export * from "./DescribeLaunchConfigurationsPaginator";
|
|
5
|
-
export * from "./DescribeLoadBalancerTargetGroupsPaginator";
|
|
6
6
|
export * from "./DescribeLoadBalancersPaginator";
|
|
7
|
+
export * from "./DescribeLoadBalancerTargetGroupsPaginator";
|
|
7
8
|
export * from "./DescribeNotificationConfigurationsPaginator";
|
|
8
9
|
export * from "./DescribePoliciesPaginator";
|
|
9
10
|
export * from "./DescribeScalingActivitiesPaginator";
|
|
10
11
|
export * from "./DescribeScheduledActionsPaginator";
|
|
11
|
-
export * from "./Interfaces";
|
|
12
12
|
export * from "./DescribeTagsPaginator";
|
|
13
13
|
export * from "./DescribeTrafficSourcesPaginator";
|
|
14
14
|
export * from "./DescribeWarmPoolPaginator";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
+
export * from "./Interfaces";
|
|
1
2
|
export * from "./DescribeAutoScalingGroupsPaginator";
|
|
2
3
|
export * from "./DescribeAutoScalingInstancesPaginator";
|
|
3
4
|
export * from "./DescribeInstanceRefreshesPaginator";
|
|
4
5
|
export * from "./DescribeLaunchConfigurationsPaginator";
|
|
5
|
-
export * from "./DescribeLoadBalancerTargetGroupsPaginator";
|
|
6
6
|
export * from "./DescribeLoadBalancersPaginator";
|
|
7
|
+
export * from "./DescribeLoadBalancerTargetGroupsPaginator";
|
|
7
8
|
export * from "./DescribeNotificationConfigurationsPaginator";
|
|
8
9
|
export * from "./DescribePoliciesPaginator";
|
|
9
10
|
export * from "./DescribeScalingActivitiesPaginator";
|
|
10
11
|
export * from "./DescribeScheduledActionsPaginator";
|
|
11
|
-
export * from "./Interfaces";
|
|
12
12
|
export * from "./DescribeTagsPaginator";
|
|
13
13
|
export * from "./DescribeTrafficSourcesPaginator";
|
|
14
14
|
export * from "./DescribeWarmPoolPaginator";
|
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.958.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-auto-scaling",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"@aws-crypto/sha256-browser": "5.2.0",
|
|
23
23
|
"@aws-crypto/sha256-js": "5.2.0",
|
|
24
24
|
"@aws-sdk/core": "3.957.0",
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.958.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.957.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.957.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.957.0",
|