@aws-sdk/client-elasticache 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.
@@ -3,19 +3,19 @@ import { DescribeCacheClustersCommand, } from "../commands/DescribeCacheClusters
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
6
- const result = await client.send(new DescribeCacheClustersCommand(input));
6
+ let result = await client.send(new DescribeCacheClustersCommand(input));
7
7
  reason = result;
8
8
  try {
9
9
  const returnComparator = () => {
10
- const flat_1 = [].concat(...result.CacheClusters);
11
- const projection_3 = flat_1.map((element_2) => {
10
+ let flat_1 = [].concat(...result.CacheClusters);
11
+ let projection_3 = flat_1.map((element_2) => {
12
12
  return element_2.CacheClusterStatus;
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.CacheClusters);
28
- const projection_3 = flat_1.map((element_2) => {
27
+ let flat_1 = [].concat(...result.CacheClusters);
28
+ let projection_3 = flat_1.map((element_2) => {
29
29
  return element_2.CacheClusterStatus;
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 == "deleted") {
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.CacheClusters);
43
- const projection_3 = flat_1.map((element_2) => {
42
+ let flat_1 = [].concat(...result.CacheClusters);
43
+ let projection_3 = flat_1.map((element_2) => {
44
44
  return element_2.CacheClusterStatus;
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.CacheClusters);
58
- const projection_3 = flat_1.map((element_2) => {
57
+ let flat_1 = [].concat(...result.CacheClusters);
58
+ let projection_3 = flat_1.map((element_2) => {
59
59
  return element_2.CacheClusterStatus;
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 == "incompatible-network") {
65
65
  return { state: WaiterState.FAILURE, reason };
66
66
  }
@@ -69,13 +69,13 @@ const checkState = async (client, input) => {
69
69
  catch (e) { }
70
70
  try {
71
71
  const returnComparator = () => {
72
- const flat_1 = [].concat(...result.CacheClusters);
73
- const projection_3 = flat_1.map((element_2) => {
72
+ let flat_1 = [].concat(...result.CacheClusters);
73
+ let projection_3 = flat_1.map((element_2) => {
74
74
  return element_2.CacheClusterStatus;
75
75
  });
76
76
  return projection_3;
77
77
  };
78
- for (const anyStringEq_4 of returnComparator()) {
78
+ for (let anyStringEq_4 of returnComparator()) {
79
79
  if (anyStringEq_4 == "restore-failed") {
80
80
  return { state: WaiterState.FAILURE, reason };
81
81
  }
@@ -3,19 +3,19 @@ import { DescribeCacheClustersCommand, } from "../commands/DescribeCacheClusters
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
6
- const result = await client.send(new DescribeCacheClustersCommand(input));
6
+ let result = await client.send(new DescribeCacheClustersCommand(input));
7
7
  reason = result;
8
8
  try {
9
9
  const returnComparator = () => {
10
- const flat_1 = [].concat(...result.CacheClusters);
11
- const projection_3 = flat_1.map((element_2) => {
10
+ let flat_1 = [].concat(...result.CacheClusters);
11
+ let projection_3 = flat_1.map((element_2) => {
12
12
  return element_2.CacheClusterStatus;
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 };
@@ -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.CacheClusters);
28
- const projection_3 = flat_1.map((element_2) => {
27
+ let flat_1 = [].concat(...result.CacheClusters);
28
+ let projection_3 = flat_1.map((element_2) => {
29
29
  return element_2.CacheClusterStatus;
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 == "available") {
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.CacheClusters);
43
- const projection_3 = flat_1.map((element_2) => {
42
+ let flat_1 = [].concat(...result.CacheClusters);
43
+ let projection_3 = flat_1.map((element_2) => {
44
44
  return element_2.CacheClusterStatus;
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 == "creating") {
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.CacheClusters);
58
- const projection_3 = flat_1.map((element_2) => {
57
+ let flat_1 = [].concat(...result.CacheClusters);
58
+ let projection_3 = flat_1.map((element_2) => {
59
59
  return element_2.CacheClusterStatus;
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 == "incompatible-network") {
65
65
  return { state: WaiterState.FAILURE, reason };
66
66
  }
@@ -69,13 +69,13 @@ const checkState = async (client, input) => {
69
69
  catch (e) { }
70
70
  try {
71
71
  const returnComparator = () => {
72
- const flat_1 = [].concat(...result.CacheClusters);
73
- const projection_3 = flat_1.map((element_2) => {
72
+ let flat_1 = [].concat(...result.CacheClusters);
73
+ let projection_3 = flat_1.map((element_2) => {
74
74
  return element_2.CacheClusterStatus;
75
75
  });
76
76
  return projection_3;
77
77
  };
78
- for (const anyStringEq_4 of returnComparator()) {
78
+ for (let anyStringEq_4 of returnComparator()) {
79
79
  if (anyStringEq_4 == "modifying") {
80
80
  return { state: WaiterState.FAILURE, reason };
81
81
  }
@@ -84,13 +84,13 @@ const checkState = async (client, input) => {
84
84
  catch (e) { }
85
85
  try {
86
86
  const returnComparator = () => {
87
- const flat_1 = [].concat(...result.CacheClusters);
88
- const projection_3 = flat_1.map((element_2) => {
87
+ let flat_1 = [].concat(...result.CacheClusters);
88
+ let projection_3 = flat_1.map((element_2) => {
89
89
  return element_2.CacheClusterStatus;
90
90
  });
91
91
  return projection_3;
92
92
  };
93
- for (const anyStringEq_4 of returnComparator()) {
93
+ for (let anyStringEq_4 of returnComparator()) {
94
94
  if (anyStringEq_4 == "restore-failed") {
95
95
  return { state: WaiterState.FAILURE, reason };
96
96
  }
@@ -99,13 +99,13 @@ const checkState = async (client, input) => {
99
99
  catch (e) { }
100
100
  try {
101
101
  const returnComparator = () => {
102
- const flat_1 = [].concat(...result.CacheClusters);
103
- const projection_3 = flat_1.map((element_2) => {
102
+ let flat_1 = [].concat(...result.CacheClusters);
103
+ let projection_3 = flat_1.map((element_2) => {
104
104
  return element_2.CacheClusterStatus;
105
105
  });
106
106
  return projection_3;
107
107
  };
108
- for (const anyStringEq_4 of returnComparator()) {
108
+ for (let anyStringEq_4 of returnComparator()) {
109
109
  if (anyStringEq_4 == "snapshotting") {
110
110
  return { state: WaiterState.FAILURE, reason };
111
111
  }
@@ -3,19 +3,19 @@ import { DescribeReplicationGroupsCommand, } from "../commands/DescribeReplicati
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
6
- const result = await client.send(new DescribeReplicationGroupsCommand(input));
6
+ let result = await client.send(new DescribeReplicationGroupsCommand(input));
7
7
  reason = result;
8
8
  try {
9
9
  const returnComparator = () => {
10
- const flat_1 = [].concat(...result.ReplicationGroups);
11
- const projection_3 = flat_1.map((element_2) => {
10
+ let flat_1 = [].concat(...result.ReplicationGroups);
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 };
@@ -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.ReplicationGroups);
28
- const projection_3 = flat_1.map((element_2) => {
27
+ let flat_1 = [].concat(...result.ReplicationGroups);
28
+ let projection_3 = flat_1.map((element_2) => {
29
29
  return element_2.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 == "deleted") {
35
35
  return { state: WaiterState.FAILURE, reason };
36
36
  }
@@ -3,19 +3,19 @@ import { DescribeReplicationGroupsCommand, } from "../commands/DescribeReplicati
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
5
5
  try {
6
- const result = await client.send(new DescribeReplicationGroupsCommand(input));
6
+ let result = await client.send(new DescribeReplicationGroupsCommand(input));
7
7
  reason = result;
8
8
  try {
9
9
  const returnComparator = () => {
10
- const flat_1 = [].concat(...result.ReplicationGroups);
11
- const projection_3 = flat_1.map((element_2) => {
10
+ let flat_1 = [].concat(...result.ReplicationGroups);
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 == "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 };
@@ -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.ReplicationGroups);
28
- const projection_3 = flat_1.map((element_2) => {
27
+ let flat_1 = [].concat(...result.ReplicationGroups);
28
+ let projection_3 = flat_1.map((element_2) => {
29
29
  return element_2.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 == "available") {
35
35
  return { state: WaiterState.FAILURE, reason };
36
36
  }
@@ -1,3 +1,4 @@
1
+ export * from "./Interfaces";
1
2
  export * from "./DescribeCacheClustersPaginator";
2
3
  export * from "./DescribeCacheEngineVersionsPaginator";
3
4
  export * from "./DescribeCacheParameterGroupsPaginator";
@@ -8,11 +9,10 @@ export * from "./DescribeEngineDefaultParametersPaginator";
8
9
  export * from "./DescribeEventsPaginator";
9
10
  export * from "./DescribeGlobalReplicationGroupsPaginator";
10
11
  export * from "./DescribeReplicationGroupsPaginator";
11
- export * from "./Interfaces";
12
- export * from "./DescribeReservedCacheNodesOfferingsPaginator";
13
12
  export * from "./DescribeReservedCacheNodesPaginator";
14
- export * from "./DescribeServerlessCacheSnapshotsPaginator";
13
+ export * from "./DescribeReservedCacheNodesOfferingsPaginator";
15
14
  export * from "./DescribeServerlessCachesPaginator";
15
+ export * from "./DescribeServerlessCacheSnapshotsPaginator";
16
16
  export * from "./DescribeServiceUpdatesPaginator";
17
17
  export * from "./DescribeSnapshotsPaginator";
18
18
  export * from "./DescribeUpdateActionsPaginator";
@@ -1,3 +1,4 @@
1
+ export * from "./Interfaces";
1
2
  export * from "./DescribeCacheClustersPaginator";
2
3
  export * from "./DescribeCacheEngineVersionsPaginator";
3
4
  export * from "./DescribeCacheParameterGroupsPaginator";
@@ -8,11 +9,10 @@ export * from "./DescribeEngineDefaultParametersPaginator";
8
9
  export * from "./DescribeEventsPaginator";
9
10
  export * from "./DescribeGlobalReplicationGroupsPaginator";
10
11
  export * from "./DescribeReplicationGroupsPaginator";
11
- export * from "./Interfaces";
12
- export * from "./DescribeReservedCacheNodesOfferingsPaginator";
13
12
  export * from "./DescribeReservedCacheNodesPaginator";
14
- export * from "./DescribeServerlessCacheSnapshotsPaginator";
13
+ export * from "./DescribeReservedCacheNodesOfferingsPaginator";
15
14
  export * from "./DescribeServerlessCachesPaginator";
15
+ export * from "./DescribeServerlessCacheSnapshotsPaginator";
16
16
  export * from "./DescribeServiceUpdatesPaginator";
17
17
  export * from "./DescribeSnapshotsPaginator";
18
18
  export * from "./DescribeUpdateActionsPaginator";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-elasticache",
3
3
  "description": "AWS SDK for JavaScript Elasticache Client for Node.js, Browser and React Native",
4
- "version": "3.957.0",
4
+ "version": "3.962.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-elasticache",
@@ -24,7 +24,7 @@
24
24
  "@aws-crypto/sha256-browser": "5.2.0",
25
25
  "@aws-crypto/sha256-js": "5.2.0",
26
26
  "@aws-sdk/core": "3.957.0",
27
- "@aws-sdk/credential-provider-node": "3.957.0",
27
+ "@aws-sdk/credential-provider-node": "3.962.0",
28
28
  "@aws-sdk/middleware-host-header": "3.957.0",
29
29
  "@aws-sdk/middleware-logger": "3.957.0",
30
30
  "@aws-sdk/middleware-recursion-detection": "3.957.0",