@effect-aws/client-elasticache 1.10.3 → 1.11.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 (33) hide show
  1. package/dist/cjs/ElastiCacheClientInstance.d.ts +3 -1
  2. package/dist/cjs/ElastiCacheClientInstance.d.ts.map +1 -1
  3. package/dist/cjs/ElastiCacheClientInstance.js +6 -4
  4. package/dist/cjs/ElastiCacheClientInstance.js.map +1 -1
  5. package/dist/cjs/ElastiCacheService.d.ts +25 -3
  6. package/dist/cjs/ElastiCacheService.d.ts.map +1 -1
  7. package/dist/cjs/ElastiCacheService.js +31 -9
  8. package/dist/cjs/ElastiCacheService.js.map +1 -1
  9. package/dist/cjs/ElastiCacheServiceConfig.d.ts +2 -1
  10. package/dist/cjs/ElastiCacheServiceConfig.d.ts.map +1 -1
  11. package/dist/cjs/ElastiCacheServiceConfig.js +34 -9
  12. package/dist/cjs/ElastiCacheServiceConfig.js.map +1 -1
  13. package/dist/cjs/Errors.d.ts +1 -1
  14. package/dist/cjs/Errors.d.ts.map +1 -1
  15. package/dist/dts/ElastiCacheClientInstance.d.ts +3 -1
  16. package/dist/dts/ElastiCacheClientInstance.d.ts.map +1 -1
  17. package/dist/dts/ElastiCacheService.d.ts +25 -3
  18. package/dist/dts/ElastiCacheService.d.ts.map +1 -1
  19. package/dist/dts/ElastiCacheServiceConfig.d.ts +2 -1
  20. package/dist/dts/ElastiCacheServiceConfig.d.ts.map +1 -1
  21. package/dist/dts/Errors.d.ts +1 -1
  22. package/dist/dts/Errors.d.ts.map +1 -1
  23. package/dist/esm/ElastiCacheClientInstance.js +3 -1
  24. package/dist/esm/ElastiCacheClientInstance.js.map +1 -1
  25. package/dist/esm/ElastiCacheService.js +26 -4
  26. package/dist/esm/ElastiCacheService.js.map +1 -1
  27. package/dist/esm/ElastiCacheServiceConfig.js +4 -2
  28. package/dist/esm/ElastiCacheServiceConfig.js.map +1 -1
  29. package/package.json +2 -2
  30. package/src/ElastiCacheClientInstance.ts +3 -1
  31. package/src/ElastiCacheService.ts +256 -4
  32. package/src/ElastiCacheServiceConfig.ts +4 -2
  33. package/src/Errors.ts +1 -1
@@ -202,6 +202,25 @@ import {
202
202
  ModifyUserGroupCommand,
203
203
  type ModifyUserGroupCommandInput,
204
204
  type ModifyUserGroupCommandOutput,
205
+ paginateDescribeCacheClusters,
206
+ paginateDescribeCacheEngineVersions,
207
+ paginateDescribeCacheParameterGroups,
208
+ paginateDescribeCacheParameters,
209
+ paginateDescribeCacheSecurityGroups,
210
+ paginateDescribeCacheSubnetGroups,
211
+ paginateDescribeEngineDefaultParameters,
212
+ paginateDescribeEvents,
213
+ paginateDescribeGlobalReplicationGroups,
214
+ paginateDescribeReplicationGroups,
215
+ paginateDescribeReservedCacheNodes,
216
+ paginateDescribeReservedCacheNodesOfferings,
217
+ paginateDescribeServerlessCaches,
218
+ paginateDescribeServerlessCacheSnapshots,
219
+ paginateDescribeServiceUpdates,
220
+ paginateDescribeSnapshots,
221
+ paginateDescribeUpdateActions,
222
+ paginateDescribeUserGroups,
223
+ paginateDescribeUsers,
205
224
  PurchaseReservedCacheNodesOfferingCommand,
206
225
  type PurchaseReservedCacheNodesOfferingCommandInput,
207
226
  type PurchaseReservedCacheNodesOfferingCommandOutput,
@@ -230,10 +249,13 @@ import {
230
249
  type TestMigrationCommandInput,
231
250
  type TestMigrationCommandOutput,
232
251
  } from "@aws-sdk/client-elasticache";
233
- import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
234
- import { Service } from "@effect-aws/commons";
235
- import type { Cause } from "effect";
236
- import { Effect, Layer } from "effect";
252
+ import * as Service from "@effect-aws/commons/Service";
253
+ import type * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
254
+ import type { HttpHandlerOptions } from "@effect-aws/commons/Types";
255
+ import type * as Cause from "effect/Cause";
256
+ import * as Effect from "effect/Effect";
257
+ import * as Layer from "effect/Layer";
258
+ import type * as Stream from "effect/Stream";
237
259
  import * as Instance from "./ElastiCacheClientInstance.js";
238
260
  import * as ElastiCacheServiceConfig from "./ElastiCacheServiceConfig.js";
239
261
  import type {
@@ -395,6 +417,28 @@ const commands = {
395
417
  TestMigrationCommand,
396
418
  };
397
419
 
420
+ const paginators = {
421
+ paginateDescribeCacheClusters,
422
+ paginateDescribeCacheEngineVersions,
423
+ paginateDescribeCacheParameterGroups,
424
+ paginateDescribeCacheParameters,
425
+ paginateDescribeCacheSecurityGroups,
426
+ paginateDescribeCacheSubnetGroups,
427
+ paginateDescribeEngineDefaultParameters,
428
+ paginateDescribeEvents,
429
+ paginateDescribeGlobalReplicationGroups,
430
+ paginateDescribeReplicationGroups,
431
+ paginateDescribeReservedCacheNodes,
432
+ paginateDescribeReservedCacheNodesOfferings,
433
+ paginateDescribeServerlessCacheSnapshots,
434
+ paginateDescribeServerlessCaches,
435
+ paginateDescribeServiceUpdates,
436
+ paginateDescribeSnapshots,
437
+ paginateDescribeUpdateActions,
438
+ paginateDescribeUserGroups,
439
+ paginateDescribeUsers,
440
+ };
441
+
398
442
  interface ElastiCacheService$ {
399
443
  readonly _: unique symbol;
400
444
 
@@ -985,6 +1029,18 @@ interface ElastiCacheService$ {
985
1029
  | InvalidParameterValueError
986
1030
  >;
987
1031
 
1032
+ describeCacheClustersStream(
1033
+ args: DescribeCacheClustersCommandInput,
1034
+ options?: HttpHandlerOptions,
1035
+ ): Stream.Stream<
1036
+ DescribeCacheClustersCommandOutput,
1037
+ | Cause.TimeoutException
1038
+ | SdkError
1039
+ | CacheClusterNotFoundFaultError
1040
+ | InvalidParameterCombinationError
1041
+ | InvalidParameterValueError
1042
+ >;
1043
+
988
1044
  /**
989
1045
  * @see {@link DescribeCacheEngineVersionsCommand}
990
1046
  */
@@ -996,6 +1052,11 @@ interface ElastiCacheService$ {
996
1052
  Cause.TimeoutException | SdkError
997
1053
  >;
998
1054
 
1055
+ describeCacheEngineVersionsStream(
1056
+ args: DescribeCacheEngineVersionsCommandInput,
1057
+ options?: HttpHandlerOptions,
1058
+ ): Stream.Stream<DescribeCacheEngineVersionsCommandOutput, Cause.TimeoutException | SdkError>;
1059
+
999
1060
  /**
1000
1061
  * @see {@link DescribeCacheParameterGroupsCommand}
1001
1062
  */
@@ -1011,6 +1072,18 @@ interface ElastiCacheService$ {
1011
1072
  | InvalidParameterValueError
1012
1073
  >;
1013
1074
 
1075
+ describeCacheParameterGroupsStream(
1076
+ args: DescribeCacheParameterGroupsCommandInput,
1077
+ options?: HttpHandlerOptions,
1078
+ ): Stream.Stream<
1079
+ DescribeCacheParameterGroupsCommandOutput,
1080
+ | Cause.TimeoutException
1081
+ | SdkError
1082
+ | CacheParameterGroupNotFoundFaultError
1083
+ | InvalidParameterCombinationError
1084
+ | InvalidParameterValueError
1085
+ >;
1086
+
1014
1087
  /**
1015
1088
  * @see {@link DescribeCacheParametersCommand}
1016
1089
  */
@@ -1026,6 +1099,18 @@ interface ElastiCacheService$ {
1026
1099
  | InvalidParameterValueError
1027
1100
  >;
1028
1101
 
1102
+ describeCacheParametersStream(
1103
+ args: DescribeCacheParametersCommandInput,
1104
+ options?: HttpHandlerOptions,
1105
+ ): Stream.Stream<
1106
+ DescribeCacheParametersCommandOutput,
1107
+ | Cause.TimeoutException
1108
+ | SdkError
1109
+ | CacheParameterGroupNotFoundFaultError
1110
+ | InvalidParameterCombinationError
1111
+ | InvalidParameterValueError
1112
+ >;
1113
+
1029
1114
  /**
1030
1115
  * @see {@link DescribeCacheSecurityGroupsCommand}
1031
1116
  */
@@ -1041,6 +1126,18 @@ interface ElastiCacheService$ {
1041
1126
  | InvalidParameterValueError
1042
1127
  >;
1043
1128
 
1129
+ describeCacheSecurityGroupsStream(
1130
+ args: DescribeCacheSecurityGroupsCommandInput,
1131
+ options?: HttpHandlerOptions,
1132
+ ): Stream.Stream<
1133
+ DescribeCacheSecurityGroupsCommandOutput,
1134
+ | Cause.TimeoutException
1135
+ | SdkError
1136
+ | CacheSecurityGroupNotFoundFaultError
1137
+ | InvalidParameterCombinationError
1138
+ | InvalidParameterValueError
1139
+ >;
1140
+
1044
1141
  /**
1045
1142
  * @see {@link DescribeCacheSubnetGroupsCommand}
1046
1143
  */
@@ -1052,6 +1149,14 @@ interface ElastiCacheService$ {
1052
1149
  Cause.TimeoutException | SdkError | CacheSubnetGroupNotFoundFaultError
1053
1150
  >;
1054
1151
 
1152
+ describeCacheSubnetGroupsStream(
1153
+ args: DescribeCacheSubnetGroupsCommandInput,
1154
+ options?: HttpHandlerOptions,
1155
+ ): Stream.Stream<
1156
+ DescribeCacheSubnetGroupsCommandOutput,
1157
+ Cause.TimeoutException | SdkError | CacheSubnetGroupNotFoundFaultError
1158
+ >;
1159
+
1055
1160
  /**
1056
1161
  * @see {@link DescribeEngineDefaultParametersCommand}
1057
1162
  */
@@ -1063,6 +1168,14 @@ interface ElastiCacheService$ {
1063
1168
  Cause.TimeoutException | SdkError | InvalidParameterCombinationError | InvalidParameterValueError
1064
1169
  >;
1065
1170
 
1171
+ describeEngineDefaultParametersStream(
1172
+ args: DescribeEngineDefaultParametersCommandInput,
1173
+ options?: HttpHandlerOptions,
1174
+ ): Stream.Stream<
1175
+ DescribeEngineDefaultParametersCommandOutput,
1176
+ Cause.TimeoutException | SdkError | InvalidParameterCombinationError | InvalidParameterValueError
1177
+ >;
1178
+
1066
1179
  /**
1067
1180
  * @see {@link DescribeEventsCommand}
1068
1181
  */
@@ -1074,6 +1187,14 @@ interface ElastiCacheService$ {
1074
1187
  Cause.TimeoutException | SdkError | InvalidParameterCombinationError | InvalidParameterValueError
1075
1188
  >;
1076
1189
 
1190
+ describeEventsStream(
1191
+ args: DescribeEventsCommandInput,
1192
+ options?: HttpHandlerOptions,
1193
+ ): Stream.Stream<
1194
+ DescribeEventsCommandOutput,
1195
+ Cause.TimeoutException | SdkError | InvalidParameterCombinationError | InvalidParameterValueError
1196
+ >;
1197
+
1077
1198
  /**
1078
1199
  * @see {@link DescribeGlobalReplicationGroupsCommand}
1079
1200
  */
@@ -1089,6 +1210,18 @@ interface ElastiCacheService$ {
1089
1210
  | InvalidParameterValueError
1090
1211
  >;
1091
1212
 
1213
+ describeGlobalReplicationGroupsStream(
1214
+ args: DescribeGlobalReplicationGroupsCommandInput,
1215
+ options?: HttpHandlerOptions,
1216
+ ): Stream.Stream<
1217
+ DescribeGlobalReplicationGroupsCommandOutput,
1218
+ | Cause.TimeoutException
1219
+ | SdkError
1220
+ | GlobalReplicationGroupNotFoundFaultError
1221
+ | InvalidParameterCombinationError
1222
+ | InvalidParameterValueError
1223
+ >;
1224
+
1092
1225
  /**
1093
1226
  * @see {@link DescribeReplicationGroupsCommand}
1094
1227
  */
@@ -1104,6 +1237,18 @@ interface ElastiCacheService$ {
1104
1237
  | ReplicationGroupNotFoundFaultError
1105
1238
  >;
1106
1239
 
1240
+ describeReplicationGroupsStream(
1241
+ args: DescribeReplicationGroupsCommandInput,
1242
+ options?: HttpHandlerOptions,
1243
+ ): Stream.Stream<
1244
+ DescribeReplicationGroupsCommandOutput,
1245
+ | Cause.TimeoutException
1246
+ | SdkError
1247
+ | InvalidParameterCombinationError
1248
+ | InvalidParameterValueError
1249
+ | ReplicationGroupNotFoundFaultError
1250
+ >;
1251
+
1107
1252
  /**
1108
1253
  * @see {@link DescribeReservedCacheNodesCommand}
1109
1254
  */
@@ -1119,6 +1264,18 @@ interface ElastiCacheService$ {
1119
1264
  | ReservedCacheNodeNotFoundFaultError
1120
1265
  >;
1121
1266
 
1267
+ describeReservedCacheNodesStream(
1268
+ args: DescribeReservedCacheNodesCommandInput,
1269
+ options?: HttpHandlerOptions,
1270
+ ): Stream.Stream<
1271
+ DescribeReservedCacheNodesCommandOutput,
1272
+ | Cause.TimeoutException
1273
+ | SdkError
1274
+ | InvalidParameterCombinationError
1275
+ | InvalidParameterValueError
1276
+ | ReservedCacheNodeNotFoundFaultError
1277
+ >;
1278
+
1122
1279
  /**
1123
1280
  * @see {@link DescribeReservedCacheNodesOfferingsCommand}
1124
1281
  */
@@ -1134,6 +1291,18 @@ interface ElastiCacheService$ {
1134
1291
  | ReservedCacheNodesOfferingNotFoundFaultError
1135
1292
  >;
1136
1293
 
1294
+ describeReservedCacheNodesOfferingsStream(
1295
+ args: DescribeReservedCacheNodesOfferingsCommandInput,
1296
+ options?: HttpHandlerOptions,
1297
+ ): Stream.Stream<
1298
+ DescribeReservedCacheNodesOfferingsCommandOutput,
1299
+ | Cause.TimeoutException
1300
+ | SdkError
1301
+ | InvalidParameterCombinationError
1302
+ | InvalidParameterValueError
1303
+ | ReservedCacheNodesOfferingNotFoundFaultError
1304
+ >;
1305
+
1137
1306
  /**
1138
1307
  * @see {@link DescribeServerlessCacheSnapshotsCommand}
1139
1308
  */
@@ -1150,6 +1319,19 @@ interface ElastiCacheService$ {
1150
1319
  | ServerlessCacheSnapshotNotFoundFaultError
1151
1320
  >;
1152
1321
 
1322
+ describeServerlessCacheSnapshotsStream(
1323
+ args: DescribeServerlessCacheSnapshotsCommandInput,
1324
+ options?: HttpHandlerOptions,
1325
+ ): Stream.Stream<
1326
+ DescribeServerlessCacheSnapshotsCommandOutput,
1327
+ | Cause.TimeoutException
1328
+ | SdkError
1329
+ | InvalidParameterCombinationError
1330
+ | InvalidParameterValueError
1331
+ | ServerlessCacheNotFoundFaultError
1332
+ | ServerlessCacheSnapshotNotFoundFaultError
1333
+ >;
1334
+
1153
1335
  /**
1154
1336
  * @see {@link DescribeServerlessCachesCommand}
1155
1337
  */
@@ -1165,6 +1347,18 @@ interface ElastiCacheService$ {
1165
1347
  | ServerlessCacheNotFoundFaultError
1166
1348
  >;
1167
1349
 
1350
+ describeServerlessCachesStream(
1351
+ args: DescribeServerlessCachesCommandInput,
1352
+ options?: HttpHandlerOptions,
1353
+ ): Stream.Stream<
1354
+ DescribeServerlessCachesCommandOutput,
1355
+ | Cause.TimeoutException
1356
+ | SdkError
1357
+ | InvalidParameterCombinationError
1358
+ | InvalidParameterValueError
1359
+ | ServerlessCacheNotFoundFaultError
1360
+ >;
1361
+
1168
1362
  /**
1169
1363
  * @see {@link DescribeServiceUpdatesCommand}
1170
1364
  */
@@ -1180,6 +1374,18 @@ interface ElastiCacheService$ {
1180
1374
  | ServiceUpdateNotFoundFaultError
1181
1375
  >;
1182
1376
 
1377
+ describeServiceUpdatesStream(
1378
+ args: DescribeServiceUpdatesCommandInput,
1379
+ options?: HttpHandlerOptions,
1380
+ ): Stream.Stream<
1381
+ DescribeServiceUpdatesCommandOutput,
1382
+ | Cause.TimeoutException
1383
+ | SdkError
1384
+ | InvalidParameterCombinationError
1385
+ | InvalidParameterValueError
1386
+ | ServiceUpdateNotFoundFaultError
1387
+ >;
1388
+
1183
1389
  /**
1184
1390
  * @see {@link DescribeSnapshotsCommand}
1185
1391
  */
@@ -1196,6 +1402,19 @@ interface ElastiCacheService$ {
1196
1402
  | SnapshotNotFoundFaultError
1197
1403
  >;
1198
1404
 
1405
+ describeSnapshotsStream(
1406
+ args: DescribeSnapshotsCommandInput,
1407
+ options?: HttpHandlerOptions,
1408
+ ): Stream.Stream<
1409
+ DescribeSnapshotsCommandOutput,
1410
+ | Cause.TimeoutException
1411
+ | SdkError
1412
+ | CacheClusterNotFoundFaultError
1413
+ | InvalidParameterCombinationError
1414
+ | InvalidParameterValueError
1415
+ | SnapshotNotFoundFaultError
1416
+ >;
1417
+
1199
1418
  /**
1200
1419
  * @see {@link DescribeUpdateActionsCommand}
1201
1420
  */
@@ -1207,6 +1426,14 @@ interface ElastiCacheService$ {
1207
1426
  Cause.TimeoutException | SdkError | InvalidParameterCombinationError | InvalidParameterValueError
1208
1427
  >;
1209
1428
 
1429
+ describeUpdateActionsStream(
1430
+ args: DescribeUpdateActionsCommandInput,
1431
+ options?: HttpHandlerOptions,
1432
+ ): Stream.Stream<
1433
+ DescribeUpdateActionsCommandOutput,
1434
+ Cause.TimeoutException | SdkError | InvalidParameterCombinationError | InvalidParameterValueError
1435
+ >;
1436
+
1210
1437
  /**
1211
1438
  * @see {@link DescribeUserGroupsCommand}
1212
1439
  */
@@ -1222,6 +1449,18 @@ interface ElastiCacheService$ {
1222
1449
  | UserGroupNotFoundFaultError
1223
1450
  >;
1224
1451
 
1452
+ describeUserGroupsStream(
1453
+ args: DescribeUserGroupsCommandInput,
1454
+ options?: HttpHandlerOptions,
1455
+ ): Stream.Stream<
1456
+ DescribeUserGroupsCommandOutput,
1457
+ | Cause.TimeoutException
1458
+ | SdkError
1459
+ | InvalidParameterCombinationError
1460
+ | ServiceLinkedRoleNotFoundFaultError
1461
+ | UserGroupNotFoundFaultError
1462
+ >;
1463
+
1225
1464
  /**
1226
1465
  * @see {@link DescribeUsersCommand}
1227
1466
  */
@@ -1237,6 +1476,18 @@ interface ElastiCacheService$ {
1237
1476
  | UserNotFoundFaultError
1238
1477
  >;
1239
1478
 
1479
+ describeUsersStream(
1480
+ args: DescribeUsersCommandInput,
1481
+ options?: HttpHandlerOptions,
1482
+ ): Stream.Stream<
1483
+ DescribeUsersCommandOutput,
1484
+ | Cause.TimeoutException
1485
+ | SdkError
1486
+ | InvalidParameterCombinationError
1487
+ | ServiceLinkedRoleNotFoundFaultError
1488
+ | UserNotFoundFaultError
1489
+ >;
1490
+
1240
1491
  /**
1241
1492
  * @see {@link DisassociateGlobalReplicationGroupCommand}
1242
1493
  */
@@ -1720,6 +1971,7 @@ export const makeElastiCacheService = Effect.gen(function*() {
1720
1971
  errorTags: AllServiceErrors,
1721
1972
  resolveClientConfig: ElastiCacheServiceConfig.toElastiCacheClientConfig,
1722
1973
  },
1974
+ paginators,
1723
1975
  );
1724
1976
  });
1725
1977
 
@@ -2,10 +2,12 @@
2
2
  * @since 1.0.0
3
3
  */
4
4
  import type { ElastiCacheClientConfig } from "@aws-sdk/client-elasticache";
5
- import { ServiceLogger } from "@effect-aws/commons";
6
- import { Effect, FiberRef, Layer } from "effect";
5
+ import * as ServiceLogger from "@effect-aws/commons/ServiceLogger";
6
+ import * as Effect from "effect/Effect";
7
+ import * as FiberRef from "effect/FiberRef";
7
8
  import { dual } from "effect/Function";
8
9
  import { globalValue } from "effect/GlobalValue";
10
+ import * as Layer from "effect/Layer";
9
11
  import type { ElastiCacheService } from "./ElastiCacheService.js";
10
12
 
11
13
  /**
package/src/Errors.ts CHANGED
@@ -76,7 +76,7 @@ import type {
76
76
  UserNotFoundFault,
77
77
  UserQuotaExceededFault,
78
78
  } from "@aws-sdk/client-elasticache";
79
- import type { TaggedException } from "@effect-aws/commons";
79
+ import type { TaggedException } from "@effect-aws/commons/Errors";
80
80
 
81
81
  export const AllServiceErrors = [
82
82
  "APICallRateForCustomerExceededFault",