@aws-sdk/client-ec2 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 -755
- package/dist-cjs/auth/httpAuthSchemeProvider.js +3 -4
- package/dist-cjs/index.js +16410 -26943
- 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 +16 -16
- package/dist-es/runtimeConfig.browser.js +1 -2
- package/dist-es/runtimeConfig.js +4 -6
- package/dist-es/schemas/schemas_0.js +15770 -26303
- package/dist-es/waiters/index.js +6 -6
- package/dist-es/waiters/waitForBundleTaskComplete.js +10 -10
- package/dist-es/waiters/waitForConversionTaskCancelled.js +6 -6
- package/dist-es/waiters/waitForConversionTaskCompleted.js +14 -14
- package/dist-es/waiters/waitForConversionTaskDeleted.js +6 -6
- package/dist-es/waiters/waitForCustomerGatewayAvailable.js +14 -14
- package/dist-es/waiters/waitForExportTaskCancelled.js +6 -6
- package/dist-es/waiters/waitForExportTaskCompleted.js +6 -6
- package/dist-es/waiters/waitForImageAvailable.js +10 -10
- package/dist-es/waiters/waitForImageExists.js +3 -3
- package/dist-es/waiters/waitForImageUsageReportAvailable.js +10 -10
- package/dist-es/waiters/waitForInstanceExists.js +3 -3
- package/dist-es/waiters/waitForInstanceRunning.js +26 -26
- package/dist-es/waiters/waitForInstanceStatusOk.js +6 -6
- package/dist-es/waiters/waitForInstanceStopped.js +20 -20
- package/dist-es/waiters/waitForInstanceTerminated.js +20 -20
- package/dist-es/waiters/waitForInternetGatewayExists.js +4 -4
- package/dist-es/waiters/waitForKeyPairExists.js +4 -4
- package/dist-es/waiters/waitForNatGatewayAvailable.js +18 -18
- package/dist-es/waiters/waitForNatGatewayDeleted.js +6 -6
- package/dist-es/waiters/waitForNetworkInterfaceAvailable.js +6 -6
- package/dist-es/waiters/waitForPasswordDataAvailable.js +2 -2
- package/dist-es/waiters/waitForSecurityGroupExists.js +4 -4
- package/dist-es/waiters/waitForSecurityGroupVpcAssociationAssociated.js +14 -14
- package/dist-es/waiters/waitForSecurityGroupVpcAssociationDisassociated.js +17 -17
- package/dist-es/waiters/waitForSnapshotCompleted.js +10 -10
- package/dist-es/waiters/waitForSnapshotImported.js +10 -10
- package/dist-es/waiters/waitForSpotInstanceRequestFulfilled.js +28 -28
- package/dist-es/waiters/waitForStoreImageTaskComplete.js +14 -14
- package/dist-es/waiters/waitForSubnetAvailable.js +6 -6
- package/dist-es/waiters/waitForSystemStatusOk.js +6 -6
- package/dist-es/waiters/waitForVolumeAvailable.js +10 -10
- package/dist-es/waiters/waitForVolumeDeleted.js +6 -6
- package/dist-es/waiters/waitForVolumeInUse.js +10 -10
- package/dist-es/waiters/waitForVpcAvailable.js +6 -6
- package/dist-es/waiters/waitForVpcPeeringConnectionDeleted.js +6 -6
- package/dist-es/waiters/waitForVpnConnectionAvailable.js +14 -14
- package/dist-es/waiters/waitForVpnConnectionDeleted.js +10 -10
- package/dist-types/pagination/index.d.ts +16 -16
- package/dist-types/ts3.4/pagination/index.d.ts +16 -16
- package/dist-types/ts3.4/waiters/index.d.ts +6 -6
- package/dist-types/waiters/index.d.ts +6 -6
- package/package.json +2 -2
package/dist-es/waiters/index.js
CHANGED
|
@@ -8,32 +8,32 @@ export * from "./waitForExportTaskCompleted";
|
|
|
8
8
|
export * from "./waitForImageAvailable";
|
|
9
9
|
export * from "./waitForImageExists";
|
|
10
10
|
export * from "./waitForImageUsageReportAvailable";
|
|
11
|
+
export * from "./waitForSnapshotImported";
|
|
11
12
|
export * from "./waitForInstanceExists";
|
|
12
13
|
export * from "./waitForInstanceRunning";
|
|
13
|
-
export * from "./waitForInstanceStatusOk";
|
|
14
14
|
export * from "./waitForInstanceStopped";
|
|
15
15
|
export * from "./waitForInstanceTerminated";
|
|
16
|
+
export * from "./waitForInstanceStatusOk";
|
|
17
|
+
export * from "./waitForSystemStatusOk";
|
|
16
18
|
export * from "./waitForInternetGatewayExists";
|
|
17
19
|
export * from "./waitForKeyPairExists";
|
|
18
20
|
export * from "./waitForNatGatewayAvailable";
|
|
19
21
|
export * from "./waitForNatGatewayDeleted";
|
|
20
22
|
export * from "./waitForNetworkInterfaceAvailable";
|
|
21
|
-
export * from "./waitForSnapshotImported";
|
|
22
23
|
export * from "./waitForSecurityGroupExists";
|
|
23
24
|
export * from "./waitForSecurityGroupVpcAssociationAssociated";
|
|
24
25
|
export * from "./waitForSecurityGroupVpcAssociationDisassociated";
|
|
25
26
|
export * from "./waitForSnapshotCompleted";
|
|
26
27
|
export * from "./waitForSpotInstanceRequestFulfilled";
|
|
27
|
-
export * from "./waitForSystemStatusOk";
|
|
28
28
|
export * from "./waitForStoreImageTaskComplete";
|
|
29
|
-
export * from "./waitForPasswordDataAvailable";
|
|
30
29
|
export * from "./waitForSubnetAvailable";
|
|
31
30
|
export * from "./waitForVolumeAvailable";
|
|
32
31
|
export * from "./waitForVolumeDeleted";
|
|
33
32
|
export * from "./waitForVolumeInUse";
|
|
34
|
-
export * from "./waitForVpcAvailable";
|
|
35
|
-
export * from "./waitForVpcExists";
|
|
36
33
|
export * from "./waitForVpcPeeringConnectionDeleted";
|
|
37
34
|
export * from "./waitForVpcPeeringConnectionExists";
|
|
35
|
+
export * from "./waitForVpcAvailable";
|
|
36
|
+
export * from "./waitForVpcExists";
|
|
38
37
|
export * from "./waitForVpnConnectionAvailable";
|
|
39
38
|
export * from "./waitForVpnConnectionDeleted";
|
|
39
|
+
export * from "./waitForPasswordDataAvailable";
|
|
@@ -6,16 +6,16 @@ const checkState = async (client, input) => {
|
|
|
6
6
|
const result = await client.send(new DescribeBundleTasksCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
let returnComparator = () => {
|
|
10
|
+
let flat_1 = [].concat(...result.BundleTasks);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
12
|
return element_2.State;
|
|
13
13
|
});
|
|
14
14
|
return projection_3;
|
|
15
15
|
};
|
|
16
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
17
|
-
for (
|
|
18
|
-
allStringEq_5 = allStringEq_5 && element_4 == "complete";
|
|
16
|
+
let allStringEq_5 = (returnComparator().length > 0);
|
|
17
|
+
for (let element_4 of returnComparator()) {
|
|
18
|
+
allStringEq_5 = allStringEq_5 && (element_4 == "complete");
|
|
19
19
|
}
|
|
20
20
|
if (allStringEq_5) {
|
|
21
21
|
return { state: WaiterState.SUCCESS, reason };
|
|
@@ -23,14 +23,14 @@ const checkState = async (client, input) => {
|
|
|
23
23
|
}
|
|
24
24
|
catch (e) { }
|
|
25
25
|
try {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
let returnComparator = () => {
|
|
27
|
+
let flat_1 = [].concat(...result.BundleTasks);
|
|
28
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
29
29
|
return element_2.State;
|
|
30
30
|
});
|
|
31
31
|
return projection_3;
|
|
32
32
|
};
|
|
33
|
-
for (
|
|
33
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
34
34
|
if (anyStringEq_4 == "failed") {
|
|
35
35
|
return { state: WaiterState.FAILURE, reason };
|
|
36
36
|
}
|
|
@@ -6,16 +6,16 @@ const checkState = async (client, input) => {
|
|
|
6
6
|
const result = await client.send(new DescribeConversionTasksCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
let returnComparator = () => {
|
|
10
|
+
let flat_1 = [].concat(...result.ConversionTasks);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
12
|
return element_2.State;
|
|
13
13
|
});
|
|
14
14
|
return projection_3;
|
|
15
15
|
};
|
|
16
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
17
|
-
for (
|
|
18
|
-
allStringEq_5 = allStringEq_5 && element_4 == "cancelled";
|
|
16
|
+
let allStringEq_5 = (returnComparator().length > 0);
|
|
17
|
+
for (let element_4 of returnComparator()) {
|
|
18
|
+
allStringEq_5 = allStringEq_5 && (element_4 == "cancelled");
|
|
19
19
|
}
|
|
20
20
|
if (allStringEq_5) {
|
|
21
21
|
return { state: WaiterState.SUCCESS, reason };
|
|
@@ -6,16 +6,16 @@ const checkState = async (client, input) => {
|
|
|
6
6
|
const result = await client.send(new DescribeConversionTasksCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
let returnComparator = () => {
|
|
10
|
+
let flat_1 = [].concat(...result.ConversionTasks);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
12
|
return element_2.State;
|
|
13
13
|
});
|
|
14
14
|
return projection_3;
|
|
15
15
|
};
|
|
16
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
17
|
-
for (
|
|
18
|
-
allStringEq_5 = allStringEq_5 && element_4 == "completed";
|
|
16
|
+
let allStringEq_5 = (returnComparator().length > 0);
|
|
17
|
+
for (let element_4 of returnComparator()) {
|
|
18
|
+
allStringEq_5 = allStringEq_5 && (element_4 == "completed");
|
|
19
19
|
}
|
|
20
20
|
if (allStringEq_5) {
|
|
21
21
|
return { state: WaiterState.SUCCESS, reason };
|
|
@@ -23,14 +23,14 @@ const checkState = async (client, input) => {
|
|
|
23
23
|
}
|
|
24
24
|
catch (e) { }
|
|
25
25
|
try {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
let returnComparator = () => {
|
|
27
|
+
let flat_1 = [].concat(...result.ConversionTasks);
|
|
28
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
29
29
|
return element_2.State;
|
|
30
30
|
});
|
|
31
31
|
return projection_3;
|
|
32
32
|
};
|
|
33
|
-
for (
|
|
33
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
34
34
|
if (anyStringEq_4 == "cancelled") {
|
|
35
35
|
return { state: WaiterState.FAILURE, reason };
|
|
36
36
|
}
|
|
@@ -38,14 +38,14 @@ const checkState = async (client, input) => {
|
|
|
38
38
|
}
|
|
39
39
|
catch (e) { }
|
|
40
40
|
try {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
let returnComparator = () => {
|
|
42
|
+
let flat_1 = [].concat(...result.ConversionTasks);
|
|
43
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
44
44
|
return element_2.State;
|
|
45
45
|
});
|
|
46
46
|
return projection_3;
|
|
47
47
|
};
|
|
48
|
-
for (
|
|
48
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
49
49
|
if (anyStringEq_4 == "cancelling") {
|
|
50
50
|
return { state: WaiterState.FAILURE, reason };
|
|
51
51
|
}
|
|
@@ -6,16 +6,16 @@ const checkState = async (client, input) => {
|
|
|
6
6
|
const result = await client.send(new DescribeConversionTasksCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
let returnComparator = () => {
|
|
10
|
+
let flat_1 = [].concat(...result.ConversionTasks);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
12
|
return element_2.State;
|
|
13
13
|
});
|
|
14
14
|
return projection_3;
|
|
15
15
|
};
|
|
16
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
17
|
-
for (
|
|
18
|
-
allStringEq_5 = allStringEq_5 && element_4 == "deleted";
|
|
16
|
+
let allStringEq_5 = (returnComparator().length > 0);
|
|
17
|
+
for (let element_4 of returnComparator()) {
|
|
18
|
+
allStringEq_5 = allStringEq_5 && (element_4 == "deleted");
|
|
19
19
|
}
|
|
20
20
|
if (allStringEq_5) {
|
|
21
21
|
return { state: WaiterState.SUCCESS, reason };
|
|
@@ -6,16 +6,16 @@ const checkState = async (client, input) => {
|
|
|
6
6
|
const result = await client.send(new DescribeCustomerGatewaysCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
let returnComparator = () => {
|
|
10
|
+
let flat_1 = [].concat(...result.CustomerGateways);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
12
|
return element_2.State;
|
|
13
13
|
});
|
|
14
14
|
return projection_3;
|
|
15
15
|
};
|
|
16
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
17
|
-
for (
|
|
18
|
-
allStringEq_5 = allStringEq_5 && element_4 == "available";
|
|
16
|
+
let allStringEq_5 = (returnComparator().length > 0);
|
|
17
|
+
for (let element_4 of returnComparator()) {
|
|
18
|
+
allStringEq_5 = allStringEq_5 && (element_4 == "available");
|
|
19
19
|
}
|
|
20
20
|
if (allStringEq_5) {
|
|
21
21
|
return { state: WaiterState.SUCCESS, reason };
|
|
@@ -23,14 +23,14 @@ const checkState = async (client, input) => {
|
|
|
23
23
|
}
|
|
24
24
|
catch (e) { }
|
|
25
25
|
try {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
let returnComparator = () => {
|
|
27
|
+
let flat_1 = [].concat(...result.CustomerGateways);
|
|
28
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
29
29
|
return element_2.State;
|
|
30
30
|
});
|
|
31
31
|
return projection_3;
|
|
32
32
|
};
|
|
33
|
-
for (
|
|
33
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
34
34
|
if (anyStringEq_4 == "deleted") {
|
|
35
35
|
return { state: WaiterState.FAILURE, reason };
|
|
36
36
|
}
|
|
@@ -38,14 +38,14 @@ const checkState = async (client, input) => {
|
|
|
38
38
|
}
|
|
39
39
|
catch (e) { }
|
|
40
40
|
try {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
let returnComparator = () => {
|
|
42
|
+
let flat_1 = [].concat(...result.CustomerGateways);
|
|
43
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
44
44
|
return element_2.State;
|
|
45
45
|
});
|
|
46
46
|
return projection_3;
|
|
47
47
|
};
|
|
48
|
-
for (
|
|
48
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
49
49
|
if (anyStringEq_4 == "deleting") {
|
|
50
50
|
return { state: WaiterState.FAILURE, reason };
|
|
51
51
|
}
|
|
@@ -6,16 +6,16 @@ const checkState = async (client, input) => {
|
|
|
6
6
|
const result = await client.send(new DescribeExportTasksCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
let returnComparator = () => {
|
|
10
|
+
let flat_1 = [].concat(...result.ExportTasks);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
12
|
return element_2.State;
|
|
13
13
|
});
|
|
14
14
|
return projection_3;
|
|
15
15
|
};
|
|
16
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
17
|
-
for (
|
|
18
|
-
allStringEq_5 = allStringEq_5 && element_4 == "cancelled";
|
|
16
|
+
let allStringEq_5 = (returnComparator().length > 0);
|
|
17
|
+
for (let element_4 of returnComparator()) {
|
|
18
|
+
allStringEq_5 = allStringEq_5 && (element_4 == "cancelled");
|
|
19
19
|
}
|
|
20
20
|
if (allStringEq_5) {
|
|
21
21
|
return { state: WaiterState.SUCCESS, reason };
|
|
@@ -6,16 +6,16 @@ const checkState = async (client, input) => {
|
|
|
6
6
|
const result = await client.send(new DescribeExportTasksCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
let returnComparator = () => {
|
|
10
|
+
let flat_1 = [].concat(...result.ExportTasks);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
12
|
return element_2.State;
|
|
13
13
|
});
|
|
14
14
|
return projection_3;
|
|
15
15
|
};
|
|
16
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
17
|
-
for (
|
|
18
|
-
allStringEq_5 = allStringEq_5 && element_4 == "completed";
|
|
16
|
+
let allStringEq_5 = (returnComparator().length > 0);
|
|
17
|
+
for (let element_4 of returnComparator()) {
|
|
18
|
+
allStringEq_5 = allStringEq_5 && (element_4 == "completed");
|
|
19
19
|
}
|
|
20
20
|
if (allStringEq_5) {
|
|
21
21
|
return { state: WaiterState.SUCCESS, reason };
|
|
@@ -6,16 +6,16 @@ const checkState = async (client, input) => {
|
|
|
6
6
|
const result = await client.send(new DescribeImagesCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
let returnComparator = () => {
|
|
10
|
+
let flat_1 = [].concat(...result.Images);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
12
|
return element_2.State;
|
|
13
13
|
});
|
|
14
14
|
return projection_3;
|
|
15
15
|
};
|
|
16
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
17
|
-
for (
|
|
18
|
-
allStringEq_5 = allStringEq_5 && element_4 == "available";
|
|
16
|
+
let allStringEq_5 = (returnComparator().length > 0);
|
|
17
|
+
for (let element_4 of returnComparator()) {
|
|
18
|
+
allStringEq_5 = allStringEq_5 && (element_4 == "available");
|
|
19
19
|
}
|
|
20
20
|
if (allStringEq_5) {
|
|
21
21
|
return { state: WaiterState.SUCCESS, reason };
|
|
@@ -23,14 +23,14 @@ const checkState = async (client, input) => {
|
|
|
23
23
|
}
|
|
24
24
|
catch (e) { }
|
|
25
25
|
try {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
let returnComparator = () => {
|
|
27
|
+
let flat_1 = [].concat(...result.Images);
|
|
28
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
29
29
|
return element_2.State;
|
|
30
30
|
});
|
|
31
31
|
return projection_3;
|
|
32
32
|
};
|
|
33
|
-
for (
|
|
33
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
34
34
|
if (anyStringEq_4 == "failed") {
|
|
35
35
|
return { state: WaiterState.FAILURE, reason };
|
|
36
36
|
}
|
|
@@ -6,9 +6,9 @@ const checkState = async (client, input) => {
|
|
|
6
6
|
const result = await client.send(new DescribeImagesCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return flat_1.length > 0.0;
|
|
9
|
+
let returnComparator = () => {
|
|
10
|
+
let flat_1 = [].concat(...result.Images);
|
|
11
|
+
return (flat_1.length > 0.0);
|
|
12
12
|
};
|
|
13
13
|
if (returnComparator() == true) {
|
|
14
14
|
return { state: WaiterState.SUCCESS, reason };
|
|
@@ -6,16 +6,16 @@ const checkState = async (client, input) => {
|
|
|
6
6
|
const result = await client.send(new DescribeImageUsageReportsCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
let returnComparator = () => {
|
|
10
|
+
let flat_1 = [].concat(...result.ImageUsageReports);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
12
|
return element_2.State;
|
|
13
13
|
});
|
|
14
14
|
return projection_3;
|
|
15
15
|
};
|
|
16
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
17
|
-
for (
|
|
18
|
-
allStringEq_5 = allStringEq_5 && element_4 == "available";
|
|
16
|
+
let allStringEq_5 = (returnComparator().length > 0);
|
|
17
|
+
for (let element_4 of returnComparator()) {
|
|
18
|
+
allStringEq_5 = allStringEq_5 && (element_4 == "available");
|
|
19
19
|
}
|
|
20
20
|
if (allStringEq_5) {
|
|
21
21
|
return { state: WaiterState.SUCCESS, reason };
|
|
@@ -23,14 +23,14 @@ const checkState = async (client, input) => {
|
|
|
23
23
|
}
|
|
24
24
|
catch (e) { }
|
|
25
25
|
try {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
26
|
+
let returnComparator = () => {
|
|
27
|
+
let flat_1 = [].concat(...result.ImageUsageReports);
|
|
28
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
29
29
|
return element_2.State;
|
|
30
30
|
});
|
|
31
31
|
return projection_3;
|
|
32
32
|
};
|
|
33
|
-
for (
|
|
33
|
+
for (let anyStringEq_4 of returnComparator()) {
|
|
34
34
|
if (anyStringEq_4 == "failed") {
|
|
35
35
|
return { state: WaiterState.FAILURE, reason };
|
|
36
36
|
}
|
|
@@ -6,9 +6,9 @@ const checkState = async (client, input) => {
|
|
|
6
6
|
const result = await client.send(new DescribeInstancesCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
return flat_1.length > 0.0;
|
|
9
|
+
let returnComparator = () => {
|
|
10
|
+
let flat_1 = [].concat(...result.Reservations);
|
|
11
|
+
return (flat_1.length > 0.0);
|
|
12
12
|
};
|
|
13
13
|
if (returnComparator() == true) {
|
|
14
14
|
return { state: WaiterState.SUCCESS, reason };
|
|
@@ -6,20 +6,20 @@ const checkState = async (client, input) => {
|
|
|
6
6
|
const result = await client.send(new DescribeInstancesCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
let returnComparator = () => {
|
|
10
|
+
let flat_1 = [].concat(...result.Reservations);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
12
|
return element_2.Instances;
|
|
13
13
|
});
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
let flat_4 = [].concat(...projection_3);
|
|
15
|
+
let projection_6 = flat_4.map((element_5) => {
|
|
16
16
|
return element_5.State.Name;
|
|
17
17
|
});
|
|
18
18
|
return projection_6;
|
|
19
19
|
};
|
|
20
|
-
let allStringEq_8 = returnComparator().length > 0;
|
|
21
|
-
for (
|
|
22
|
-
allStringEq_8 = allStringEq_8 && element_7 == "running";
|
|
20
|
+
let allStringEq_8 = (returnComparator().length > 0);
|
|
21
|
+
for (let element_7 of returnComparator()) {
|
|
22
|
+
allStringEq_8 = allStringEq_8 && (element_7 == "running");
|
|
23
23
|
}
|
|
24
24
|
if (allStringEq_8) {
|
|
25
25
|
return { state: WaiterState.SUCCESS, reason };
|
|
@@ -27,18 +27,18 @@ const checkState = async (client, input) => {
|
|
|
27
27
|
}
|
|
28
28
|
catch (e) { }
|
|
29
29
|
try {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
let returnComparator = () => {
|
|
31
|
+
let flat_1 = [].concat(...result.Reservations);
|
|
32
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
33
33
|
return element_2.Instances;
|
|
34
34
|
});
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
let flat_4 = [].concat(...projection_3);
|
|
36
|
+
let projection_6 = flat_4.map((element_5) => {
|
|
37
37
|
return element_5.State.Name;
|
|
38
38
|
});
|
|
39
39
|
return projection_6;
|
|
40
40
|
};
|
|
41
|
-
for (
|
|
41
|
+
for (let anyStringEq_7 of returnComparator()) {
|
|
42
42
|
if (anyStringEq_7 == "shutting-down") {
|
|
43
43
|
return { state: WaiterState.FAILURE, reason };
|
|
44
44
|
}
|
|
@@ -46,18 +46,18 @@ const checkState = async (client, input) => {
|
|
|
46
46
|
}
|
|
47
47
|
catch (e) { }
|
|
48
48
|
try {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
let returnComparator = () => {
|
|
50
|
+
let flat_1 = [].concat(...result.Reservations);
|
|
51
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
52
52
|
return element_2.Instances;
|
|
53
53
|
});
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
let flat_4 = [].concat(...projection_3);
|
|
55
|
+
let projection_6 = flat_4.map((element_5) => {
|
|
56
56
|
return element_5.State.Name;
|
|
57
57
|
});
|
|
58
58
|
return projection_6;
|
|
59
59
|
};
|
|
60
|
-
for (
|
|
60
|
+
for (let anyStringEq_7 of returnComparator()) {
|
|
61
61
|
if (anyStringEq_7 == "terminated") {
|
|
62
62
|
return { state: WaiterState.FAILURE, reason };
|
|
63
63
|
}
|
|
@@ -65,18 +65,18 @@ const checkState = async (client, input) => {
|
|
|
65
65
|
}
|
|
66
66
|
catch (e) { }
|
|
67
67
|
try {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
68
|
+
let returnComparator = () => {
|
|
69
|
+
let flat_1 = [].concat(...result.Reservations);
|
|
70
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
71
71
|
return element_2.Instances;
|
|
72
72
|
});
|
|
73
|
-
|
|
74
|
-
|
|
73
|
+
let flat_4 = [].concat(...projection_3);
|
|
74
|
+
let projection_6 = flat_4.map((element_5) => {
|
|
75
75
|
return element_5.State.Name;
|
|
76
76
|
});
|
|
77
77
|
return projection_6;
|
|
78
78
|
};
|
|
79
|
-
for (
|
|
79
|
+
for (let anyStringEq_7 of returnComparator()) {
|
|
80
80
|
if (anyStringEq_7 == "stopping") {
|
|
81
81
|
return { state: WaiterState.FAILURE, reason };
|
|
82
82
|
}
|
|
@@ -6,16 +6,16 @@ const checkState = async (client, input) => {
|
|
|
6
6
|
const result = await client.send(new DescribeInstanceStatusCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
let returnComparator = () => {
|
|
10
|
+
let flat_1 = [].concat(...result.InstanceStatuses);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
12
|
return element_2.InstanceStatus.Status;
|
|
13
13
|
});
|
|
14
14
|
return projection_3;
|
|
15
15
|
};
|
|
16
|
-
let allStringEq_5 = returnComparator().length > 0;
|
|
17
|
-
for (
|
|
18
|
-
allStringEq_5 = allStringEq_5 && element_4 == "ok";
|
|
16
|
+
let allStringEq_5 = (returnComparator().length > 0);
|
|
17
|
+
for (let element_4 of returnComparator()) {
|
|
18
|
+
allStringEq_5 = allStringEq_5 && (element_4 == "ok");
|
|
19
19
|
}
|
|
20
20
|
if (allStringEq_5) {
|
|
21
21
|
return { state: WaiterState.SUCCESS, reason };
|
|
@@ -6,20 +6,20 @@ const checkState = async (client, input) => {
|
|
|
6
6
|
const result = await client.send(new DescribeInstancesCommand(input));
|
|
7
7
|
reason = result;
|
|
8
8
|
try {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
let returnComparator = () => {
|
|
10
|
+
let flat_1 = [].concat(...result.Reservations);
|
|
11
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
12
12
|
return element_2.Instances;
|
|
13
13
|
});
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
let flat_4 = [].concat(...projection_3);
|
|
15
|
+
let projection_6 = flat_4.map((element_5) => {
|
|
16
16
|
return element_5.State.Name;
|
|
17
17
|
});
|
|
18
18
|
return projection_6;
|
|
19
19
|
};
|
|
20
|
-
let allStringEq_8 = returnComparator().length > 0;
|
|
21
|
-
for (
|
|
22
|
-
allStringEq_8 = allStringEq_8 && element_7 == "stopped";
|
|
20
|
+
let allStringEq_8 = (returnComparator().length > 0);
|
|
21
|
+
for (let element_7 of returnComparator()) {
|
|
22
|
+
allStringEq_8 = allStringEq_8 && (element_7 == "stopped");
|
|
23
23
|
}
|
|
24
24
|
if (allStringEq_8) {
|
|
25
25
|
return { state: WaiterState.SUCCESS, reason };
|
|
@@ -27,18 +27,18 @@ const checkState = async (client, input) => {
|
|
|
27
27
|
}
|
|
28
28
|
catch (e) { }
|
|
29
29
|
try {
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
let returnComparator = () => {
|
|
31
|
+
let flat_1 = [].concat(...result.Reservations);
|
|
32
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
33
33
|
return element_2.Instances;
|
|
34
34
|
});
|
|
35
|
-
|
|
36
|
-
|
|
35
|
+
let flat_4 = [].concat(...projection_3);
|
|
36
|
+
let projection_6 = flat_4.map((element_5) => {
|
|
37
37
|
return element_5.State.Name;
|
|
38
38
|
});
|
|
39
39
|
return projection_6;
|
|
40
40
|
};
|
|
41
|
-
for (
|
|
41
|
+
for (let anyStringEq_7 of returnComparator()) {
|
|
42
42
|
if (anyStringEq_7 == "pending") {
|
|
43
43
|
return { state: WaiterState.FAILURE, reason };
|
|
44
44
|
}
|
|
@@ -46,18 +46,18 @@ const checkState = async (client, input) => {
|
|
|
46
46
|
}
|
|
47
47
|
catch (e) { }
|
|
48
48
|
try {
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
49
|
+
let returnComparator = () => {
|
|
50
|
+
let flat_1 = [].concat(...result.Reservations);
|
|
51
|
+
let projection_3 = flat_1.map((element_2) => {
|
|
52
52
|
return element_2.Instances;
|
|
53
53
|
});
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
let flat_4 = [].concat(...projection_3);
|
|
55
|
+
let projection_6 = flat_4.map((element_5) => {
|
|
56
56
|
return element_5.State.Name;
|
|
57
57
|
});
|
|
58
58
|
return projection_6;
|
|
59
59
|
};
|
|
60
|
-
for (
|
|
60
|
+
for (let anyStringEq_7 of returnComparator()) {
|
|
61
61
|
if (anyStringEq_7 == "terminated") {
|
|
62
62
|
return { state: WaiterState.FAILURE, reason };
|
|
63
63
|
}
|