@effect-aws/client-kinesis 1.2.0 → 1.9.3

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 (69) hide show
  1. package/Errors/package.json +6 -0
  2. package/KinesisClientInstance/package.json +6 -0
  3. package/KinesisService/package.json +6 -0
  4. package/KinesisServiceConfig/package.json +6 -0
  5. package/{lib → dist/cjs}/Errors.d.ts +6 -11
  6. package/dist/cjs/Errors.d.ts.map +1 -0
  7. package/dist/cjs/Errors.js +24 -0
  8. package/dist/cjs/Errors.js.map +1 -0
  9. package/dist/cjs/KinesisClientInstance.d.ts +24 -0
  10. package/dist/cjs/KinesisClientInstance.d.ts.map +1 -0
  11. package/dist/cjs/KinesisClientInstance.js +50 -0
  12. package/dist/cjs/KinesisClientInstance.js.map +1 -0
  13. package/dist/cjs/KinesisService.d.ts +169 -0
  14. package/dist/cjs/KinesisService.d.ts.map +1 -0
  15. package/dist/cjs/KinesisService.js +91 -0
  16. package/dist/cjs/KinesisService.js.map +1 -0
  17. package/dist/cjs/KinesisServiceConfig.d.ts +25 -0
  18. package/dist/cjs/KinesisServiceConfig.d.ts.map +1 -0
  19. package/dist/cjs/KinesisServiceConfig.js +35 -0
  20. package/dist/cjs/KinesisServiceConfig.js.map +1 -0
  21. package/dist/cjs/index.d.ts +39 -0
  22. package/dist/cjs/index.d.ts.map +1 -0
  23. package/dist/cjs/index.js +56 -0
  24. package/dist/cjs/index.js.map +1 -0
  25. package/dist/dts/Errors.d.ts +23 -0
  26. package/dist/dts/Errors.d.ts.map +1 -0
  27. package/dist/dts/KinesisClientInstance.d.ts +24 -0
  28. package/dist/dts/KinesisClientInstance.d.ts.map +1 -0
  29. package/dist/dts/KinesisService.d.ts +169 -0
  30. package/dist/dts/KinesisService.d.ts.map +1 -0
  31. package/dist/dts/KinesisServiceConfig.d.ts +25 -0
  32. package/dist/dts/KinesisServiceConfig.d.ts.map +1 -0
  33. package/dist/dts/index.d.ts +39 -0
  34. package/dist/dts/index.d.ts.map +1 -0
  35. package/dist/esm/Errors.js +21 -0
  36. package/dist/esm/Errors.js.map +1 -0
  37. package/dist/esm/KinesisClientInstance.js +23 -0
  38. package/dist/esm/KinesisClientInstance.js.map +1 -0
  39. package/dist/esm/KinesisService.js +64 -0
  40. package/dist/esm/KinesisService.js.map +1 -0
  41. package/dist/esm/KinesisServiceConfig.js +31 -0
  42. package/dist/esm/KinesisServiceConfig.js.map +1 -0
  43. package/dist/esm/index.js +27 -0
  44. package/dist/esm/index.js.map +1 -0
  45. package/dist/esm/package.json +4 -0
  46. package/package.json +60 -43
  47. package/src/Errors.ts +59 -0
  48. package/src/KinesisClientInstance.ts +33 -0
  49. package/src/KinesisService.ts +704 -0
  50. package/src/KinesisServiceConfig.ts +52 -0
  51. package/src/index.ts +44 -0
  52. package/CHANGELOG.md +0 -25
  53. package/docgen.json +0 -8
  54. package/lib/Errors.js +0 -24
  55. package/lib/KinesisClientInstance.d.ts +0 -31
  56. package/lib/KinesisClientInstance.js +0 -57
  57. package/lib/KinesisClientInstanceConfig.d.ts +0 -23
  58. package/lib/KinesisClientInstanceConfig.js +0 -44
  59. package/lib/KinesisService.d.ts +0 -225
  60. package/lib/KinesisService.js +0 -120
  61. package/lib/esm/Errors.js +0 -21
  62. package/lib/esm/KinesisClientInstance.js +0 -30
  63. package/lib/esm/KinesisClientInstanceConfig.js +0 -40
  64. package/lib/esm/KinesisService.js +0 -116
  65. package/lib/esm/index.js +0 -5
  66. package/lib/index.d.ts +0 -4
  67. package/lib/index.js +0 -21
  68. package/project.json +0 -77
  69. package/vitest.config.ts +0 -3
@@ -0,0 +1,704 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import {
5
+ AddTagsToStreamCommand,
6
+ type AddTagsToStreamCommandInput,
7
+ type AddTagsToStreamCommandOutput,
8
+ CreateStreamCommand,
9
+ type CreateStreamCommandInput,
10
+ type CreateStreamCommandOutput,
11
+ DecreaseStreamRetentionPeriodCommand,
12
+ type DecreaseStreamRetentionPeriodCommandInput,
13
+ type DecreaseStreamRetentionPeriodCommandOutput,
14
+ DeleteResourcePolicyCommand,
15
+ type DeleteResourcePolicyCommandInput,
16
+ type DeleteResourcePolicyCommandOutput,
17
+ DeleteStreamCommand,
18
+ type DeleteStreamCommandInput,
19
+ type DeleteStreamCommandOutput,
20
+ DeregisterStreamConsumerCommand,
21
+ type DeregisterStreamConsumerCommandInput,
22
+ type DeregisterStreamConsumerCommandOutput,
23
+ DescribeLimitsCommand,
24
+ type DescribeLimitsCommandInput,
25
+ type DescribeLimitsCommandOutput,
26
+ DescribeStreamCommand,
27
+ type DescribeStreamCommandInput,
28
+ type DescribeStreamCommandOutput,
29
+ DescribeStreamConsumerCommand,
30
+ type DescribeStreamConsumerCommandInput,
31
+ type DescribeStreamConsumerCommandOutput,
32
+ DescribeStreamSummaryCommand,
33
+ type DescribeStreamSummaryCommandInput,
34
+ type DescribeStreamSummaryCommandOutput,
35
+ DisableEnhancedMonitoringCommand,
36
+ type DisableEnhancedMonitoringCommandInput,
37
+ type DisableEnhancedMonitoringCommandOutput,
38
+ EnableEnhancedMonitoringCommand,
39
+ type EnableEnhancedMonitoringCommandInput,
40
+ type EnableEnhancedMonitoringCommandOutput,
41
+ GetRecordsCommand,
42
+ type GetRecordsCommandInput,
43
+ type GetRecordsCommandOutput,
44
+ GetResourcePolicyCommand,
45
+ type GetResourcePolicyCommandInput,
46
+ type GetResourcePolicyCommandOutput,
47
+ GetShardIteratorCommand,
48
+ type GetShardIteratorCommandInput,
49
+ type GetShardIteratorCommandOutput,
50
+ IncreaseStreamRetentionPeriodCommand,
51
+ type IncreaseStreamRetentionPeriodCommandInput,
52
+ type IncreaseStreamRetentionPeriodCommandOutput,
53
+ type KinesisClient,
54
+ type KinesisClientConfig,
55
+ ListShardsCommand,
56
+ type ListShardsCommandInput,
57
+ type ListShardsCommandOutput,
58
+ ListStreamConsumersCommand,
59
+ type ListStreamConsumersCommandInput,
60
+ type ListStreamConsumersCommandOutput,
61
+ ListStreamsCommand,
62
+ type ListStreamsCommandInput,
63
+ type ListStreamsCommandOutput,
64
+ ListTagsForStreamCommand,
65
+ type ListTagsForStreamCommandInput,
66
+ type ListTagsForStreamCommandOutput,
67
+ MergeShardsCommand,
68
+ type MergeShardsCommandInput,
69
+ type MergeShardsCommandOutput,
70
+ PutRecordCommand,
71
+ type PutRecordCommandInput,
72
+ type PutRecordCommandOutput,
73
+ PutRecordsCommand,
74
+ type PutRecordsCommandInput,
75
+ type PutRecordsCommandOutput,
76
+ PutResourcePolicyCommand,
77
+ type PutResourcePolicyCommandInput,
78
+ type PutResourcePolicyCommandOutput,
79
+ RegisterStreamConsumerCommand,
80
+ type RegisterStreamConsumerCommandInput,
81
+ type RegisterStreamConsumerCommandOutput,
82
+ RemoveTagsFromStreamCommand,
83
+ type RemoveTagsFromStreamCommandInput,
84
+ type RemoveTagsFromStreamCommandOutput,
85
+ SplitShardCommand,
86
+ type SplitShardCommandInput,
87
+ type SplitShardCommandOutput,
88
+ StartStreamEncryptionCommand,
89
+ type StartStreamEncryptionCommandInput,
90
+ type StartStreamEncryptionCommandOutput,
91
+ StopStreamEncryptionCommand,
92
+ type StopStreamEncryptionCommandInput,
93
+ type StopStreamEncryptionCommandOutput,
94
+ SubscribeToShardCommand,
95
+ type SubscribeToShardCommandInput,
96
+ type SubscribeToShardCommandOutput,
97
+ UpdateShardCountCommand,
98
+ type UpdateShardCountCommandInput,
99
+ type UpdateShardCountCommandOutput,
100
+ UpdateStreamModeCommand,
101
+ type UpdateStreamModeCommandInput,
102
+ type UpdateStreamModeCommandOutput,
103
+ } from "@aws-sdk/client-kinesis";
104
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
105
+ import { Service } from "@effect-aws/commons";
106
+ import { Effect, Layer } from "effect";
107
+ import type {
108
+ AccessDeniedError,
109
+ ExpiredIteratorError,
110
+ ExpiredNextTokenError,
111
+ InvalidArgumentError,
112
+ KMSAccessDeniedError,
113
+ KMSDisabledError,
114
+ KMSInvalidStateError,
115
+ KMSNotFoundError,
116
+ KMSOptInRequiredError,
117
+ KMSThrottlingError,
118
+ LimitExceededError,
119
+ ProvisionedThroughputExceededError,
120
+ ResourceInUseError,
121
+ ResourceNotFoundError,
122
+ ValidationError,
123
+ } from "./Errors.js";
124
+ import { AllServiceErrors } from "./Errors.js";
125
+ import * as Instance from "./KinesisClientInstance.js";
126
+ import * as KinesisServiceConfig from "./KinesisServiceConfig.js";
127
+
128
+ const commands = {
129
+ AddTagsToStreamCommand,
130
+ CreateStreamCommand,
131
+ DecreaseStreamRetentionPeriodCommand,
132
+ DeleteResourcePolicyCommand,
133
+ DeleteStreamCommand,
134
+ DeregisterStreamConsumerCommand,
135
+ DescribeLimitsCommand,
136
+ DescribeStreamCommand,
137
+ DescribeStreamConsumerCommand,
138
+ DescribeStreamSummaryCommand,
139
+ DisableEnhancedMonitoringCommand,
140
+ EnableEnhancedMonitoringCommand,
141
+ GetRecordsCommand,
142
+ GetResourcePolicyCommand,
143
+ GetShardIteratorCommand,
144
+ IncreaseStreamRetentionPeriodCommand,
145
+ ListShardsCommand,
146
+ ListStreamConsumersCommand,
147
+ ListStreamsCommand,
148
+ ListTagsForStreamCommand,
149
+ MergeShardsCommand,
150
+ PutRecordCommand,
151
+ PutRecordsCommand,
152
+ PutResourcePolicyCommand,
153
+ RegisterStreamConsumerCommand,
154
+ RemoveTagsFromStreamCommand,
155
+ SplitShardCommand,
156
+ StartStreamEncryptionCommand,
157
+ StopStreamEncryptionCommand,
158
+ SubscribeToShardCommand,
159
+ UpdateShardCountCommand,
160
+ UpdateStreamModeCommand,
161
+ };
162
+
163
+ interface KinesisService$ {
164
+ readonly _: unique symbol;
165
+
166
+ /**
167
+ * @see {@link AddTagsToStreamCommand}
168
+ */
169
+ addTagsToStream(
170
+ args: AddTagsToStreamCommandInput,
171
+ options?: HttpHandlerOptions,
172
+ ): Effect.Effect<
173
+ AddTagsToStreamCommandOutput,
174
+ | SdkError
175
+ | AccessDeniedError
176
+ | InvalidArgumentError
177
+ | LimitExceededError
178
+ | ResourceInUseError
179
+ | ResourceNotFoundError
180
+ >;
181
+
182
+ /**
183
+ * @see {@link CreateStreamCommand}
184
+ */
185
+ createStream(
186
+ args: CreateStreamCommandInput,
187
+ options?: HttpHandlerOptions,
188
+ ): Effect.Effect<
189
+ CreateStreamCommandOutput,
190
+ SdkError | InvalidArgumentError | LimitExceededError | ResourceInUseError
191
+ >;
192
+
193
+ /**
194
+ * @see {@link DecreaseStreamRetentionPeriodCommand}
195
+ */
196
+ decreaseStreamRetentionPeriod(
197
+ args: DecreaseStreamRetentionPeriodCommandInput,
198
+ options?: HttpHandlerOptions,
199
+ ): Effect.Effect<
200
+ DecreaseStreamRetentionPeriodCommandOutput,
201
+ | SdkError
202
+ | AccessDeniedError
203
+ | InvalidArgumentError
204
+ | LimitExceededError
205
+ | ResourceInUseError
206
+ | ResourceNotFoundError
207
+ >;
208
+
209
+ /**
210
+ * @see {@link DeleteResourcePolicyCommand}
211
+ */
212
+ deleteResourcePolicy(
213
+ args: DeleteResourcePolicyCommandInput,
214
+ options?: HttpHandlerOptions,
215
+ ): Effect.Effect<
216
+ DeleteResourcePolicyCommandOutput,
217
+ | SdkError
218
+ | AccessDeniedError
219
+ | InvalidArgumentError
220
+ | LimitExceededError
221
+ | ResourceInUseError
222
+ | ResourceNotFoundError
223
+ >;
224
+
225
+ /**
226
+ * @see {@link DeleteStreamCommand}
227
+ */
228
+ deleteStream(
229
+ args: DeleteStreamCommandInput,
230
+ options?: HttpHandlerOptions,
231
+ ): Effect.Effect<
232
+ DeleteStreamCommandOutput,
233
+ | SdkError
234
+ | AccessDeniedError
235
+ | InvalidArgumentError
236
+ | LimitExceededError
237
+ | ResourceInUseError
238
+ | ResourceNotFoundError
239
+ >;
240
+
241
+ /**
242
+ * @see {@link DeregisterStreamConsumerCommand}
243
+ */
244
+ deregisterStreamConsumer(
245
+ args: DeregisterStreamConsumerCommandInput,
246
+ options?: HttpHandlerOptions,
247
+ ): Effect.Effect<
248
+ DeregisterStreamConsumerCommandOutput,
249
+ SdkError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError
250
+ >;
251
+
252
+ /**
253
+ * @see {@link DescribeLimitsCommand}
254
+ */
255
+ describeLimits(
256
+ args: DescribeLimitsCommandInput,
257
+ options?: HttpHandlerOptions,
258
+ ): Effect.Effect<
259
+ DescribeLimitsCommandOutput,
260
+ SdkError | LimitExceededError
261
+ >;
262
+
263
+ /**
264
+ * @see {@link DescribeStreamCommand}
265
+ */
266
+ describeStream(
267
+ args: DescribeStreamCommandInput,
268
+ options?: HttpHandlerOptions,
269
+ ): Effect.Effect<
270
+ DescribeStreamCommandOutput,
271
+ SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError
272
+ >;
273
+
274
+ /**
275
+ * @see {@link DescribeStreamConsumerCommand}
276
+ */
277
+ describeStreamConsumer(
278
+ args: DescribeStreamConsumerCommandInput,
279
+ options?: HttpHandlerOptions,
280
+ ): Effect.Effect<
281
+ DescribeStreamConsumerCommandOutput,
282
+ SdkError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError
283
+ >;
284
+
285
+ /**
286
+ * @see {@link DescribeStreamSummaryCommand}
287
+ */
288
+ describeStreamSummary(
289
+ args: DescribeStreamSummaryCommandInput,
290
+ options?: HttpHandlerOptions,
291
+ ): Effect.Effect<
292
+ DescribeStreamSummaryCommandOutput,
293
+ SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError
294
+ >;
295
+
296
+ /**
297
+ * @see {@link DisableEnhancedMonitoringCommand}
298
+ */
299
+ disableEnhancedMonitoring(
300
+ args: DisableEnhancedMonitoringCommandInput,
301
+ options?: HttpHandlerOptions,
302
+ ): Effect.Effect<
303
+ DisableEnhancedMonitoringCommandOutput,
304
+ | SdkError
305
+ | AccessDeniedError
306
+ | InvalidArgumentError
307
+ | LimitExceededError
308
+ | ResourceInUseError
309
+ | ResourceNotFoundError
310
+ >;
311
+
312
+ /**
313
+ * @see {@link EnableEnhancedMonitoringCommand}
314
+ */
315
+ enableEnhancedMonitoring(
316
+ args: EnableEnhancedMonitoringCommandInput,
317
+ options?: HttpHandlerOptions,
318
+ ): Effect.Effect<
319
+ EnableEnhancedMonitoringCommandOutput,
320
+ | SdkError
321
+ | AccessDeniedError
322
+ | InvalidArgumentError
323
+ | LimitExceededError
324
+ | ResourceInUseError
325
+ | ResourceNotFoundError
326
+ >;
327
+
328
+ /**
329
+ * @see {@link GetRecordsCommand}
330
+ */
331
+ getRecords(
332
+ args: GetRecordsCommandInput,
333
+ options?: HttpHandlerOptions,
334
+ ): Effect.Effect<
335
+ GetRecordsCommandOutput,
336
+ | SdkError
337
+ | AccessDeniedError
338
+ | ExpiredIteratorError
339
+ | InvalidArgumentError
340
+ | KMSAccessDeniedError
341
+ | KMSDisabledError
342
+ | KMSInvalidStateError
343
+ | KMSNotFoundError
344
+ | KMSOptInRequiredError
345
+ | KMSThrottlingError
346
+ | ProvisionedThroughputExceededError
347
+ | ResourceNotFoundError
348
+ >;
349
+
350
+ /**
351
+ * @see {@link GetResourcePolicyCommand}
352
+ */
353
+ getResourcePolicy(
354
+ args: GetResourcePolicyCommandInput,
355
+ options?: HttpHandlerOptions,
356
+ ): Effect.Effect<
357
+ GetResourcePolicyCommandOutput,
358
+ | SdkError
359
+ | AccessDeniedError
360
+ | InvalidArgumentError
361
+ | LimitExceededError
362
+ | ResourceInUseError
363
+ | ResourceNotFoundError
364
+ >;
365
+
366
+ /**
367
+ * @see {@link GetShardIteratorCommand}
368
+ */
369
+ getShardIterator(
370
+ args: GetShardIteratorCommandInput,
371
+ options?: HttpHandlerOptions,
372
+ ): Effect.Effect<
373
+ GetShardIteratorCommandOutput,
374
+ SdkError | AccessDeniedError | InvalidArgumentError | ProvisionedThroughputExceededError | ResourceNotFoundError
375
+ >;
376
+
377
+ /**
378
+ * @see {@link IncreaseStreamRetentionPeriodCommand}
379
+ */
380
+ increaseStreamRetentionPeriod(
381
+ args: IncreaseStreamRetentionPeriodCommandInput,
382
+ options?: HttpHandlerOptions,
383
+ ): Effect.Effect<
384
+ IncreaseStreamRetentionPeriodCommandOutput,
385
+ | SdkError
386
+ | AccessDeniedError
387
+ | InvalidArgumentError
388
+ | LimitExceededError
389
+ | ResourceInUseError
390
+ | ResourceNotFoundError
391
+ >;
392
+
393
+ /**
394
+ * @see {@link ListShardsCommand}
395
+ */
396
+ listShards(
397
+ args: ListShardsCommandInput,
398
+ options?: HttpHandlerOptions,
399
+ ): Effect.Effect<
400
+ ListShardsCommandOutput,
401
+ | SdkError
402
+ | AccessDeniedError
403
+ | ExpiredNextTokenError
404
+ | InvalidArgumentError
405
+ | LimitExceededError
406
+ | ResourceInUseError
407
+ | ResourceNotFoundError
408
+ >;
409
+
410
+ /**
411
+ * @see {@link ListStreamConsumersCommand}
412
+ */
413
+ listStreamConsumers(
414
+ args: ListStreamConsumersCommandInput,
415
+ options?: HttpHandlerOptions,
416
+ ): Effect.Effect<
417
+ ListStreamConsumersCommandOutput,
418
+ | SdkError
419
+ | ExpiredNextTokenError
420
+ | InvalidArgumentError
421
+ | LimitExceededError
422
+ | ResourceInUseError
423
+ | ResourceNotFoundError
424
+ >;
425
+
426
+ /**
427
+ * @see {@link ListStreamsCommand}
428
+ */
429
+ listStreams(
430
+ args: ListStreamsCommandInput,
431
+ options?: HttpHandlerOptions,
432
+ ): Effect.Effect<
433
+ ListStreamsCommandOutput,
434
+ SdkError | ExpiredNextTokenError | InvalidArgumentError | LimitExceededError
435
+ >;
436
+
437
+ /**
438
+ * @see {@link ListTagsForStreamCommand}
439
+ */
440
+ listTagsForStream(
441
+ args: ListTagsForStreamCommandInput,
442
+ options?: HttpHandlerOptions,
443
+ ): Effect.Effect<
444
+ ListTagsForStreamCommandOutput,
445
+ SdkError | AccessDeniedError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError
446
+ >;
447
+
448
+ /**
449
+ * @see {@link MergeShardsCommand}
450
+ */
451
+ mergeShards(
452
+ args: MergeShardsCommandInput,
453
+ options?: HttpHandlerOptions,
454
+ ): Effect.Effect<
455
+ MergeShardsCommandOutput,
456
+ | SdkError
457
+ | AccessDeniedError
458
+ | InvalidArgumentError
459
+ | LimitExceededError
460
+ | ResourceInUseError
461
+ | ResourceNotFoundError
462
+ | ValidationError
463
+ >;
464
+
465
+ /**
466
+ * @see {@link PutRecordCommand}
467
+ */
468
+ putRecord(
469
+ args: PutRecordCommandInput,
470
+ options?: HttpHandlerOptions,
471
+ ): Effect.Effect<
472
+ PutRecordCommandOutput,
473
+ | SdkError
474
+ | AccessDeniedError
475
+ | InvalidArgumentError
476
+ | KMSAccessDeniedError
477
+ | KMSDisabledError
478
+ | KMSInvalidStateError
479
+ | KMSNotFoundError
480
+ | KMSOptInRequiredError
481
+ | KMSThrottlingError
482
+ | ProvisionedThroughputExceededError
483
+ | ResourceNotFoundError
484
+ >;
485
+
486
+ /**
487
+ * @see {@link PutRecordsCommand}
488
+ */
489
+ putRecords(
490
+ args: PutRecordsCommandInput,
491
+ options?: HttpHandlerOptions,
492
+ ): Effect.Effect<
493
+ PutRecordsCommandOutput,
494
+ | SdkError
495
+ | AccessDeniedError
496
+ | InvalidArgumentError
497
+ | KMSAccessDeniedError
498
+ | KMSDisabledError
499
+ | KMSInvalidStateError
500
+ | KMSNotFoundError
501
+ | KMSOptInRequiredError
502
+ | KMSThrottlingError
503
+ | ProvisionedThroughputExceededError
504
+ | ResourceNotFoundError
505
+ >;
506
+
507
+ /**
508
+ * @see {@link PutResourcePolicyCommand}
509
+ */
510
+ putResourcePolicy(
511
+ args: PutResourcePolicyCommandInput,
512
+ options?: HttpHandlerOptions,
513
+ ): Effect.Effect<
514
+ PutResourcePolicyCommandOutput,
515
+ | SdkError
516
+ | AccessDeniedError
517
+ | InvalidArgumentError
518
+ | LimitExceededError
519
+ | ResourceInUseError
520
+ | ResourceNotFoundError
521
+ >;
522
+
523
+ /**
524
+ * @see {@link RegisterStreamConsumerCommand}
525
+ */
526
+ registerStreamConsumer(
527
+ args: RegisterStreamConsumerCommandInput,
528
+ options?: HttpHandlerOptions,
529
+ ): Effect.Effect<
530
+ RegisterStreamConsumerCommandOutput,
531
+ SdkError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError
532
+ >;
533
+
534
+ /**
535
+ * @see {@link RemoveTagsFromStreamCommand}
536
+ */
537
+ removeTagsFromStream(
538
+ args: RemoveTagsFromStreamCommandInput,
539
+ options?: HttpHandlerOptions,
540
+ ): Effect.Effect<
541
+ RemoveTagsFromStreamCommandOutput,
542
+ | SdkError
543
+ | AccessDeniedError
544
+ | InvalidArgumentError
545
+ | LimitExceededError
546
+ | ResourceInUseError
547
+ | ResourceNotFoundError
548
+ >;
549
+
550
+ /**
551
+ * @see {@link SplitShardCommand}
552
+ */
553
+ splitShard(
554
+ args: SplitShardCommandInput,
555
+ options?: HttpHandlerOptions,
556
+ ): Effect.Effect<
557
+ SplitShardCommandOutput,
558
+ | SdkError
559
+ | AccessDeniedError
560
+ | InvalidArgumentError
561
+ | LimitExceededError
562
+ | ResourceInUseError
563
+ | ResourceNotFoundError
564
+ | ValidationError
565
+ >;
566
+
567
+ /**
568
+ * @see {@link StartStreamEncryptionCommand}
569
+ */
570
+ startStreamEncryption(
571
+ args: StartStreamEncryptionCommandInput,
572
+ options?: HttpHandlerOptions,
573
+ ): Effect.Effect<
574
+ StartStreamEncryptionCommandOutput,
575
+ | SdkError
576
+ | AccessDeniedError
577
+ | InvalidArgumentError
578
+ | KMSAccessDeniedError
579
+ | KMSDisabledError
580
+ | KMSInvalidStateError
581
+ | KMSNotFoundError
582
+ | KMSOptInRequiredError
583
+ | KMSThrottlingError
584
+ | LimitExceededError
585
+ | ResourceInUseError
586
+ | ResourceNotFoundError
587
+ >;
588
+
589
+ /**
590
+ * @see {@link StopStreamEncryptionCommand}
591
+ */
592
+ stopStreamEncryption(
593
+ args: StopStreamEncryptionCommandInput,
594
+ options?: HttpHandlerOptions,
595
+ ): Effect.Effect<
596
+ StopStreamEncryptionCommandOutput,
597
+ | SdkError
598
+ | AccessDeniedError
599
+ | InvalidArgumentError
600
+ | LimitExceededError
601
+ | ResourceInUseError
602
+ | ResourceNotFoundError
603
+ >;
604
+
605
+ /**
606
+ * @see {@link SubscribeToShardCommand}
607
+ */
608
+ subscribeToShard(
609
+ args: SubscribeToShardCommandInput,
610
+ options?: HttpHandlerOptions,
611
+ ): Effect.Effect<
612
+ SubscribeToShardCommandOutput,
613
+ | SdkError
614
+ | AccessDeniedError
615
+ | InvalidArgumentError
616
+ | LimitExceededError
617
+ | ResourceInUseError
618
+ | ResourceNotFoundError
619
+ >;
620
+
621
+ /**
622
+ * @see {@link UpdateShardCountCommand}
623
+ */
624
+ updateShardCount(
625
+ args: UpdateShardCountCommandInput,
626
+ options?: HttpHandlerOptions,
627
+ ): Effect.Effect<
628
+ UpdateShardCountCommandOutput,
629
+ | SdkError
630
+ | AccessDeniedError
631
+ | InvalidArgumentError
632
+ | LimitExceededError
633
+ | ResourceInUseError
634
+ | ResourceNotFoundError
635
+ | ValidationError
636
+ >;
637
+
638
+ /**
639
+ * @see {@link UpdateStreamModeCommand}
640
+ */
641
+ updateStreamMode(
642
+ args: UpdateStreamModeCommandInput,
643
+ options?: HttpHandlerOptions,
644
+ ): Effect.Effect<
645
+ UpdateStreamModeCommandOutput,
646
+ SdkError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ResourceNotFoundError
647
+ >;
648
+ }
649
+
650
+ /**
651
+ * @since 1.0.0
652
+ * @category constructors
653
+ */
654
+ export const makeKinesisService = Effect.gen(function*() {
655
+ const client = yield* Instance.KinesisClientInstance;
656
+
657
+ return Service.fromClientAndCommands<KinesisService$>(
658
+ client,
659
+ commands,
660
+ {
661
+ errorTags: AllServiceErrors,
662
+ resolveClientConfig: KinesisServiceConfig.toKinesisClientConfig,
663
+ },
664
+ );
665
+ });
666
+
667
+ /**
668
+ * @since 1.0.0
669
+ * @category models
670
+ */
671
+ export class KinesisService extends Effect.Tag("@effect-aws/client-kinesis/KinesisService")<
672
+ KinesisService,
673
+ KinesisService$
674
+ >() {
675
+ static readonly defaultLayer = Layer.effect(this, makeKinesisService).pipe(Layer.provide(Instance.layer));
676
+ static readonly layer = (config: KinesisService.Config) =>
677
+ Layer.effect(this, makeKinesisService).pipe(
678
+ Layer.provide(Instance.layer),
679
+ Layer.provide(KinesisServiceConfig.setKinesisServiceConfig(config)),
680
+ );
681
+ static readonly baseLayer = (
682
+ evaluate: (defaultConfig: KinesisClientConfig) => KinesisClient,
683
+ ) =>
684
+ Layer.effect(this, makeKinesisService).pipe(
685
+ Layer.provide(
686
+ Layer.effect(
687
+ Instance.KinesisClientInstance,
688
+ Effect.map(KinesisServiceConfig.toKinesisClientConfig, evaluate),
689
+ ),
690
+ ),
691
+ );
692
+ }
693
+
694
+ /**
695
+ * @since 1.0.0
696
+ */
697
+ export declare namespace KinesisService {
698
+ /**
699
+ * @since 1.0.0
700
+ */
701
+ export interface Config extends Omit<KinesisClientConfig, "logger"> {
702
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
703
+ }
704
+ }