@aws-sdk/client-ec2 3.957.0 → 3.962.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.
Files changed (55) hide show
  1. package/README.md +1 -755
  2. package/dist-cjs/auth/httpAuthSchemeProvider.js +3 -4
  3. package/dist-cjs/index.js +16377 -26910
  4. package/dist-cjs/runtimeConfig.browser.js +1 -2
  5. package/dist-cjs/runtimeConfig.js +2 -4
  6. package/dist-es/auth/httpAuthSchemeProvider.js +3 -4
  7. package/dist-es/pagination/index.js +16 -16
  8. package/dist-es/runtimeConfig.browser.js +1 -2
  9. package/dist-es/runtimeConfig.js +4 -6
  10. package/dist-es/schemas/schemas_0.js +15770 -26303
  11. package/dist-es/waiters/index.js +6 -6
  12. package/dist-es/waiters/waitForBundleTaskComplete.js +9 -9
  13. package/dist-es/waiters/waitForConversionTaskCancelled.js +6 -6
  14. package/dist-es/waiters/waitForConversionTaskCompleted.js +12 -12
  15. package/dist-es/waiters/waitForConversionTaskDeleted.js +6 -6
  16. package/dist-es/waiters/waitForCustomerGatewayAvailable.js +12 -12
  17. package/dist-es/waiters/waitForExportTaskCancelled.js +6 -6
  18. package/dist-es/waiters/waitForExportTaskCompleted.js +6 -6
  19. package/dist-es/waiters/waitForImageAvailable.js +9 -9
  20. package/dist-es/waiters/waitForImageExists.js +3 -3
  21. package/dist-es/waiters/waitForImageUsageReportAvailable.js +9 -9
  22. package/dist-es/waiters/waitForInstanceExists.js +3 -3
  23. package/dist-es/waiters/waitForInstanceRunning.js +23 -23
  24. package/dist-es/waiters/waitForInstanceStatusOk.js +6 -6
  25. package/dist-es/waiters/waitForInstanceStopped.js +18 -18
  26. package/dist-es/waiters/waitForInstanceTerminated.js +18 -18
  27. package/dist-es/waiters/waitForInternetGatewayExists.js +4 -4
  28. package/dist-es/waiters/waitForKeyPairExists.js +4 -4
  29. package/dist-es/waiters/waitForNatGatewayAvailable.js +15 -15
  30. package/dist-es/waiters/waitForNatGatewayDeleted.js +6 -6
  31. package/dist-es/waiters/waitForNetworkInterfaceAvailable.js +6 -6
  32. package/dist-es/waiters/waitForPasswordDataAvailable.js +2 -2
  33. package/dist-es/waiters/waitForSecurityGroupExists.js +4 -4
  34. package/dist-es/waiters/waitForSecurityGroupVpcAssociationAssociated.js +12 -12
  35. package/dist-es/waiters/waitForSecurityGroupVpcAssociationDisassociated.js +14 -14
  36. package/dist-es/waiters/waitForSnapshotCompleted.js +9 -9
  37. package/dist-es/waiters/waitForSnapshotImported.js +9 -9
  38. package/dist-es/waiters/waitForSpotInstanceRequestFulfilled.js +23 -23
  39. package/dist-es/waiters/waitForStoreImageTaskComplete.js +12 -12
  40. package/dist-es/waiters/waitForSubnetAvailable.js +6 -6
  41. package/dist-es/waiters/waitForSystemStatusOk.js +6 -6
  42. package/dist-es/waiters/waitForVolumeAvailable.js +9 -9
  43. package/dist-es/waiters/waitForVolumeDeleted.js +6 -6
  44. package/dist-es/waiters/waitForVolumeInUse.js +9 -9
  45. package/dist-es/waiters/waitForVpcAvailable.js +6 -6
  46. package/dist-es/waiters/waitForVpcExists.js +1 -1
  47. package/dist-es/waiters/waitForVpcPeeringConnectionDeleted.js +6 -6
  48. package/dist-es/waiters/waitForVpcPeeringConnectionExists.js +1 -1
  49. package/dist-es/waiters/waitForVpnConnectionAvailable.js +12 -12
  50. package/dist-es/waiters/waitForVpnConnectionDeleted.js +9 -9
  51. package/dist-types/pagination/index.d.ts +16 -16
  52. package/dist-types/ts3.4/pagination/index.d.ts +16 -16
  53. package/dist-types/ts3.4/waiters/index.d.ts +6 -6
  54. package/dist-types/waiters/index.d.ts +6 -6
  55. package/package.json +2 -2
@@ -3,23 +3,23 @@ import { DescribeInstancesCommand } from "../commands/DescribeInstancesCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
6
- const result = await client.send(new DescribeInstancesCommand(input));
6
+ let result = await client.send(new DescribeInstancesCommand(input));
7
7
  reason = result;
8
8
  try {
9
9
  const returnComparator = () => {
10
- const flat_1 = [].concat(...result.Reservations);
11
- const projection_3 = flat_1.map((element_2) => {
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
- const flat_4 = [].concat(...projection_3);
15
- const projection_6 = flat_4.map((element_5) => {
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 (const element_7 of returnComparator()) {
22
- allStringEq_8 = allStringEq_8 && element_7 == "terminated";
20
+ let allStringEq_8 = (returnComparator().length > 0);
21
+ for (let element_7 of returnComparator()) {
22
+ allStringEq_8 = allStringEq_8 && (element_7 == "terminated");
23
23
  }
24
24
  if (allStringEq_8) {
25
25
  return { state: WaiterState.SUCCESS, reason };
@@ -28,17 +28,17 @@ const checkState = async (client, input) => {
28
28
  catch (e) { }
29
29
  try {
30
30
  const returnComparator = () => {
31
- const flat_1 = [].concat(...result.Reservations);
32
- const projection_3 = flat_1.map((element_2) => {
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
- const flat_4 = [].concat(...projection_3);
36
- const projection_6 = flat_4.map((element_5) => {
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 (const anyStringEq_7 of returnComparator()) {
41
+ for (let anyStringEq_7 of returnComparator()) {
42
42
  if (anyStringEq_7 == "pending") {
43
43
  return { state: WaiterState.FAILURE, reason };
44
44
  }
@@ -47,17 +47,17 @@ const checkState = async (client, input) => {
47
47
  catch (e) { }
48
48
  try {
49
49
  const returnComparator = () => {
50
- const flat_1 = [].concat(...result.Reservations);
51
- const projection_3 = flat_1.map((element_2) => {
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
- const flat_4 = [].concat(...projection_3);
55
- const projection_6 = flat_4.map((element_5) => {
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 (const anyStringEq_7 of returnComparator()) {
60
+ for (let anyStringEq_7 of returnComparator()) {
61
61
  if (anyStringEq_7 == "stopping") {
62
62
  return { state: WaiterState.FAILURE, reason };
63
63
  }
@@ -3,15 +3,15 @@ import { DescribeInternetGatewaysCommand, } from "../commands/DescribeInternetGa
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
6
- const result = await client.send(new DescribeInternetGatewaysCommand(input));
6
+ let result = await client.send(new DescribeInternetGatewaysCommand(input));
7
7
  reason = result;
8
8
  try {
9
9
  const returnComparator = () => {
10
- const flat_1 = [].concat(...result.InternetGateways);
11
- const projection_3 = flat_1.map((element_2) => {
10
+ let flat_1 = [].concat(...result.InternetGateways);
11
+ let projection_3 = flat_1.map((element_2) => {
12
12
  return element_2.InternetGatewayId;
13
13
  });
14
- return projection_3.length > 0.0;
14
+ return (projection_3.length > 0.0);
15
15
  };
16
16
  if (returnComparator() == true) {
17
17
  return { state: WaiterState.SUCCESS, reason };
@@ -3,15 +3,15 @@ import { DescribeKeyPairsCommand } from "../commands/DescribeKeyPairsCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
6
- const result = await client.send(new DescribeKeyPairsCommand(input));
6
+ let result = await client.send(new DescribeKeyPairsCommand(input));
7
7
  reason = result;
8
8
  try {
9
9
  const returnComparator = () => {
10
- const flat_1 = [].concat(...result.KeyPairs);
11
- const projection_3 = flat_1.map((element_2) => {
10
+ let flat_1 = [].concat(...result.KeyPairs);
11
+ let projection_3 = flat_1.map((element_2) => {
12
12
  return element_2.KeyName;
13
13
  });
14
- return projection_3.length > 0.0;
14
+ return (projection_3.length > 0.0);
15
15
  };
16
16
  if (returnComparator() == true) {
17
17
  return { state: WaiterState.SUCCESS, reason };
@@ -3,19 +3,19 @@ import { DescribeNatGatewaysCommand } from "../commands/DescribeNatGatewaysComma
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
6
- const result = await client.send(new DescribeNatGatewaysCommand(input));
6
+ let result = await client.send(new DescribeNatGatewaysCommand(input));
7
7
  reason = result;
8
8
  try {
9
9
  const returnComparator = () => {
10
- const flat_1 = [].concat(...result.NatGateways);
11
- const projection_3 = flat_1.map((element_2) => {
10
+ let flat_1 = [].concat(...result.NatGateways);
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 (const element_4 of returnComparator()) {
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 };
@@ -24,13 +24,13 @@ const checkState = async (client, input) => {
24
24
  catch (e) { }
25
25
  try {
26
26
  const returnComparator = () => {
27
- const flat_1 = [].concat(...result.NatGateways);
28
- const projection_3 = flat_1.map((element_2) => {
27
+ let flat_1 = [].concat(...result.NatGateways);
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 (const anyStringEq_4 of returnComparator()) {
33
+ for (let anyStringEq_4 of returnComparator()) {
34
34
  if (anyStringEq_4 == "failed") {
35
35
  return { state: WaiterState.FAILURE, reason };
36
36
  }
@@ -39,13 +39,13 @@ const checkState = async (client, input) => {
39
39
  catch (e) { }
40
40
  try {
41
41
  const returnComparator = () => {
42
- const flat_1 = [].concat(...result.NatGateways);
43
- const projection_3 = flat_1.map((element_2) => {
42
+ let flat_1 = [].concat(...result.NatGateways);
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 (const anyStringEq_4 of returnComparator()) {
48
+ for (let anyStringEq_4 of returnComparator()) {
49
49
  if (anyStringEq_4 == "deleting") {
50
50
  return { state: WaiterState.FAILURE, reason };
51
51
  }
@@ -54,13 +54,13 @@ const checkState = async (client, input) => {
54
54
  catch (e) { }
55
55
  try {
56
56
  const returnComparator = () => {
57
- const flat_1 = [].concat(...result.NatGateways);
58
- const projection_3 = flat_1.map((element_2) => {
57
+ let flat_1 = [].concat(...result.NatGateways);
58
+ let projection_3 = flat_1.map((element_2) => {
59
59
  return element_2.State;
60
60
  });
61
61
  return projection_3;
62
62
  };
63
- for (const anyStringEq_4 of returnComparator()) {
63
+ for (let anyStringEq_4 of returnComparator()) {
64
64
  if (anyStringEq_4 == "deleted") {
65
65
  return { state: WaiterState.FAILURE, reason };
66
66
  }
@@ -3,19 +3,19 @@ import { DescribeNatGatewaysCommand } from "../commands/DescribeNatGatewaysComma
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
6
- const result = await client.send(new DescribeNatGatewaysCommand(input));
6
+ let result = await client.send(new DescribeNatGatewaysCommand(input));
7
7
  reason = result;
8
8
  try {
9
9
  const returnComparator = () => {
10
- const flat_1 = [].concat(...result.NatGateways);
11
- const projection_3 = flat_1.map((element_2) => {
10
+ let flat_1 = [].concat(...result.NatGateways);
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 (const element_4 of returnComparator()) {
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 };
@@ -3,19 +3,19 @@ import { DescribeNetworkInterfacesCommand, } from "../commands/DescribeNetworkIn
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
6
- const result = await client.send(new DescribeNetworkInterfacesCommand(input));
6
+ let result = await client.send(new DescribeNetworkInterfacesCommand(input));
7
7
  reason = result;
8
8
  try {
9
9
  const returnComparator = () => {
10
- const flat_1 = [].concat(...result.NetworkInterfaces);
11
- const projection_3 = flat_1.map((element_2) => {
10
+ let flat_1 = [].concat(...result.NetworkInterfaces);
11
+ let projection_3 = flat_1.map((element_2) => {
12
12
  return element_2.Status;
13
13
  });
14
14
  return projection_3;
15
15
  };
16
- let allStringEq_5 = returnComparator().length > 0;
17
- for (const element_4 of returnComparator()) {
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 };
@@ -3,11 +3,11 @@ import { GetPasswordDataCommand } from "../commands/GetPasswordDataCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
6
- const result = await client.send(new GetPasswordDataCommand(input));
6
+ let result = await client.send(new GetPasswordDataCommand(input));
7
7
  reason = result;
8
8
  try {
9
9
  const returnComparator = () => {
10
- return result.PasswordData.length > 0.0;
10
+ return (result.PasswordData.length > 0.0);
11
11
  };
12
12
  if (returnComparator() == true) {
13
13
  return { state: WaiterState.SUCCESS, reason };
@@ -3,15 +3,15 @@ import { DescribeSecurityGroupsCommand, } from "../commands/DescribeSecurityGrou
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
6
- const result = await client.send(new DescribeSecurityGroupsCommand(input));
6
+ let result = await client.send(new DescribeSecurityGroupsCommand(input));
7
7
  reason = result;
8
8
  try {
9
9
  const returnComparator = () => {
10
- const flat_1 = [].concat(...result.SecurityGroups);
11
- const projection_3 = flat_1.map((element_2) => {
10
+ let flat_1 = [].concat(...result.SecurityGroups);
11
+ let projection_3 = flat_1.map((element_2) => {
12
12
  return element_2.GroupId;
13
13
  });
14
- return projection_3.length > 0.0;
14
+ return (projection_3.length > 0.0);
15
15
  };
16
16
  if (returnComparator() == true) {
17
17
  return { state: WaiterState.SUCCESS, reason };
@@ -3,19 +3,19 @@ import { DescribeSecurityGroupVpcAssociationsCommand, } from "../commands/Descri
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
6
- const result = await client.send(new DescribeSecurityGroupVpcAssociationsCommand(input));
6
+ let result = await client.send(new DescribeSecurityGroupVpcAssociationsCommand(input));
7
7
  reason = result;
8
8
  try {
9
9
  const returnComparator = () => {
10
- const flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
11
- const projection_3 = flat_1.map((element_2) => {
10
+ let flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
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 (const element_4 of returnComparator()) {
18
- allStringEq_5 = allStringEq_5 && element_4 == "associated";
16
+ let allStringEq_5 = (returnComparator().length > 0);
17
+ for (let element_4 of returnComparator()) {
18
+ allStringEq_5 = allStringEq_5 && (element_4 == "associated");
19
19
  }
20
20
  if (allStringEq_5) {
21
21
  return { state: WaiterState.SUCCESS, reason };
@@ -24,13 +24,13 @@ const checkState = async (client, input) => {
24
24
  catch (e) { }
25
25
  try {
26
26
  const returnComparator = () => {
27
- const flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
28
- const projection_3 = flat_1.map((element_2) => {
27
+ let flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
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 (const anyStringEq_4 of returnComparator()) {
33
+ for (let anyStringEq_4 of returnComparator()) {
34
34
  if (anyStringEq_4 == "associating") {
35
35
  return { state: WaiterState.RETRY, reason };
36
36
  }
@@ -39,13 +39,13 @@ const checkState = async (client, input) => {
39
39
  catch (e) { }
40
40
  try {
41
41
  const returnComparator = () => {
42
- const flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
43
- const projection_3 = flat_1.map((element_2) => {
42
+ let flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
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 (const anyStringEq_4 of returnComparator()) {
48
+ for (let anyStringEq_4 of returnComparator()) {
49
49
  if (anyStringEq_4 == "association-failed") {
50
50
  return { state: WaiterState.FAILURE, reason };
51
51
  }
@@ -3,19 +3,19 @@ import { DescribeSecurityGroupVpcAssociationsCommand, } from "../commands/Descri
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
6
- const result = await client.send(new DescribeSecurityGroupVpcAssociationsCommand(input));
6
+ let result = await client.send(new DescribeSecurityGroupVpcAssociationsCommand(input));
7
7
  reason = result;
8
8
  try {
9
9
  const returnComparator = () => {
10
- const flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
11
- const projection_3 = flat_1.map((element_2) => {
10
+ let flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
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 (const element_4 of returnComparator()) {
18
- allStringEq_5 = allStringEq_5 && element_4 == "disassociated";
16
+ let allStringEq_5 = (returnComparator().length > 0);
17
+ for (let element_4 of returnComparator()) {
18
+ allStringEq_5 = allStringEq_5 && (element_4 == "disassociated");
19
19
  }
20
20
  if (allStringEq_5) {
21
21
  return { state: WaiterState.SUCCESS, reason };
@@ -24,13 +24,13 @@ const checkState = async (client, input) => {
24
24
  catch (e) { }
25
25
  try {
26
26
  const returnComparator = () => {
27
- const flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
28
- const projection_3 = flat_1.map((element_2) => {
27
+ let flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
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 (const anyStringEq_4 of returnComparator()) {
33
+ for (let anyStringEq_4 of returnComparator()) {
34
34
  if (anyStringEq_4 == "disassociating") {
35
35
  return { state: WaiterState.RETRY, reason };
36
36
  }
@@ -39,13 +39,13 @@ const checkState = async (client, input) => {
39
39
  catch (e) { }
40
40
  try {
41
41
  const returnComparator = () => {
42
- const flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
43
- const projection_3 = flat_1.map((element_2) => {
42
+ let flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
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 (const anyStringEq_4 of returnComparator()) {
48
+ for (let anyStringEq_4 of returnComparator()) {
49
49
  if (anyStringEq_4 == "disassociation-failed") {
50
50
  return { state: WaiterState.FAILURE, reason };
51
51
  }
@@ -54,8 +54,8 @@ const checkState = async (client, input) => {
54
54
  catch (e) { }
55
55
  try {
56
56
  const returnComparator = () => {
57
- const flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
58
- return flat_1.length == 0.0;
57
+ let flat_1 = [].concat(...result.SecurityGroupVpcAssociations);
58
+ return (flat_1.length == 0.0);
59
59
  };
60
60
  if (returnComparator() == true) {
61
61
  return { state: WaiterState.SUCCESS, reason };
@@ -3,19 +3,19 @@ import { DescribeSnapshotsCommand } from "../commands/DescribeSnapshotsCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
6
- const result = await client.send(new DescribeSnapshotsCommand(input));
6
+ let result = await client.send(new DescribeSnapshotsCommand(input));
7
7
  reason = result;
8
8
  try {
9
9
  const returnComparator = () => {
10
- const flat_1 = [].concat(...result.Snapshots);
11
- const projection_3 = flat_1.map((element_2) => {
10
+ let flat_1 = [].concat(...result.Snapshots);
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 (const element_4 of returnComparator()) {
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 };
@@ -24,13 +24,13 @@ const checkState = async (client, input) => {
24
24
  catch (e) { }
25
25
  try {
26
26
  const returnComparator = () => {
27
- const flat_1 = [].concat(...result.Snapshots);
28
- const projection_3 = flat_1.map((element_2) => {
27
+ let flat_1 = [].concat(...result.Snapshots);
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 (const anyStringEq_4 of returnComparator()) {
33
+ for (let anyStringEq_4 of returnComparator()) {
34
34
  if (anyStringEq_4 == "error") {
35
35
  return { state: WaiterState.FAILURE, reason };
36
36
  }
@@ -3,19 +3,19 @@ import { DescribeImportSnapshotTasksCommand, } from "../commands/DescribeImportS
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
6
- const result = await client.send(new DescribeImportSnapshotTasksCommand(input));
6
+ let result = await client.send(new DescribeImportSnapshotTasksCommand(input));
7
7
  reason = result;
8
8
  try {
9
9
  const returnComparator = () => {
10
- const flat_1 = [].concat(...result.ImportSnapshotTasks);
11
- const projection_3 = flat_1.map((element_2) => {
10
+ let flat_1 = [].concat(...result.ImportSnapshotTasks);
11
+ let projection_3 = flat_1.map((element_2) => {
12
12
  return element_2.SnapshotTaskDetail.Status;
13
13
  });
14
14
  return projection_3;
15
15
  };
16
- let allStringEq_5 = returnComparator().length > 0;
17
- for (const element_4 of returnComparator()) {
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 };
@@ -24,13 +24,13 @@ const checkState = async (client, input) => {
24
24
  catch (e) { }
25
25
  try {
26
26
  const returnComparator = () => {
27
- const flat_1 = [].concat(...result.ImportSnapshotTasks);
28
- const projection_3 = flat_1.map((element_2) => {
27
+ let flat_1 = [].concat(...result.ImportSnapshotTasks);
28
+ let projection_3 = flat_1.map((element_2) => {
29
29
  return element_2.SnapshotTaskDetail.Status;
30
30
  });
31
31
  return projection_3;
32
32
  };
33
- for (const anyStringEq_4 of returnComparator()) {
33
+ for (let anyStringEq_4 of returnComparator()) {
34
34
  if (anyStringEq_4 == "error") {
35
35
  return { state: WaiterState.FAILURE, reason };
36
36
  }
@@ -3,19 +3,19 @@ import { DescribeSpotInstanceRequestsCommand, } from "../commands/DescribeSpotIn
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
6
- const result = await client.send(new DescribeSpotInstanceRequestsCommand(input));
6
+ let result = await client.send(new DescribeSpotInstanceRequestsCommand(input));
7
7
  reason = result;
8
8
  try {
9
9
  const returnComparator = () => {
10
- const flat_1 = [].concat(...result.SpotInstanceRequests);
11
- const projection_3 = flat_1.map((element_2) => {
10
+ let flat_1 = [].concat(...result.SpotInstanceRequests);
11
+ let projection_3 = flat_1.map((element_2) => {
12
12
  return element_2.Status.Code;
13
13
  });
14
14
  return projection_3;
15
15
  };
16
- let allStringEq_5 = returnComparator().length > 0;
17
- for (const element_4 of returnComparator()) {
18
- allStringEq_5 = allStringEq_5 && element_4 == "fulfilled";
16
+ let allStringEq_5 = (returnComparator().length > 0);
17
+ for (let element_4 of returnComparator()) {
18
+ allStringEq_5 = allStringEq_5 && (element_4 == "fulfilled");
19
19
  }
20
20
  if (allStringEq_5) {
21
21
  return { state: WaiterState.SUCCESS, reason };
@@ -24,15 +24,15 @@ const checkState = async (client, input) => {
24
24
  catch (e) { }
25
25
  try {
26
26
  const returnComparator = () => {
27
- const flat_1 = [].concat(...result.SpotInstanceRequests);
28
- const projection_3 = flat_1.map((element_2) => {
27
+ let flat_1 = [].concat(...result.SpotInstanceRequests);
28
+ let projection_3 = flat_1.map((element_2) => {
29
29
  return element_2.Status.Code;
30
30
  });
31
31
  return projection_3;
32
32
  };
33
- let allStringEq_5 = returnComparator().length > 0;
34
- for (const element_4 of returnComparator()) {
35
- allStringEq_5 = allStringEq_5 && element_4 == "request-canceled-and-instance-running";
33
+ let allStringEq_5 = (returnComparator().length > 0);
34
+ for (let element_4 of returnComparator()) {
35
+ allStringEq_5 = allStringEq_5 && (element_4 == "request-canceled-and-instance-running");
36
36
  }
37
37
  if (allStringEq_5) {
38
38
  return { state: WaiterState.SUCCESS, reason };
@@ -41,13 +41,13 @@ const checkState = async (client, input) => {
41
41
  catch (e) { }
42
42
  try {
43
43
  const returnComparator = () => {
44
- const flat_1 = [].concat(...result.SpotInstanceRequests);
45
- const projection_3 = flat_1.map((element_2) => {
44
+ let flat_1 = [].concat(...result.SpotInstanceRequests);
45
+ let projection_3 = flat_1.map((element_2) => {
46
46
  return element_2.Status.Code;
47
47
  });
48
48
  return projection_3;
49
49
  };
50
- for (const anyStringEq_4 of returnComparator()) {
50
+ for (let anyStringEq_4 of returnComparator()) {
51
51
  if (anyStringEq_4 == "schedule-expired") {
52
52
  return { state: WaiterState.FAILURE, reason };
53
53
  }
@@ -56,13 +56,13 @@ const checkState = async (client, input) => {
56
56
  catch (e) { }
57
57
  try {
58
58
  const returnComparator = () => {
59
- const flat_1 = [].concat(...result.SpotInstanceRequests);
60
- const projection_3 = flat_1.map((element_2) => {
59
+ let flat_1 = [].concat(...result.SpotInstanceRequests);
60
+ let projection_3 = flat_1.map((element_2) => {
61
61
  return element_2.Status.Code;
62
62
  });
63
63
  return projection_3;
64
64
  };
65
- for (const anyStringEq_4 of returnComparator()) {
65
+ for (let anyStringEq_4 of returnComparator()) {
66
66
  if (anyStringEq_4 == "canceled-before-fulfillment") {
67
67
  return { state: WaiterState.FAILURE, reason };
68
68
  }
@@ -71,13 +71,13 @@ const checkState = async (client, input) => {
71
71
  catch (e) { }
72
72
  try {
73
73
  const returnComparator = () => {
74
- const flat_1 = [].concat(...result.SpotInstanceRequests);
75
- const projection_3 = flat_1.map((element_2) => {
74
+ let flat_1 = [].concat(...result.SpotInstanceRequests);
75
+ let projection_3 = flat_1.map((element_2) => {
76
76
  return element_2.Status.Code;
77
77
  });
78
78
  return projection_3;
79
79
  };
80
- for (const anyStringEq_4 of returnComparator()) {
80
+ for (let anyStringEq_4 of returnComparator()) {
81
81
  if (anyStringEq_4 == "bad-parameters") {
82
82
  return { state: WaiterState.FAILURE, reason };
83
83
  }
@@ -86,13 +86,13 @@ const checkState = async (client, input) => {
86
86
  catch (e) { }
87
87
  try {
88
88
  const returnComparator = () => {
89
- const flat_1 = [].concat(...result.SpotInstanceRequests);
90
- const projection_3 = flat_1.map((element_2) => {
89
+ let flat_1 = [].concat(...result.SpotInstanceRequests);
90
+ let projection_3 = flat_1.map((element_2) => {
91
91
  return element_2.Status.Code;
92
92
  });
93
93
  return projection_3;
94
94
  };
95
- for (const anyStringEq_4 of returnComparator()) {
95
+ for (let anyStringEq_4 of returnComparator()) {
96
96
  if (anyStringEq_4 == "system-error") {
97
97
  return { state: WaiterState.FAILURE, reason };
98
98
  }