@effect-aws/client-kinesis 1.10.9 → 2.0.0-beta.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/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/dts/KinesisClientInstance.d.ts +2 -2
- package/dist/dts/KinesisClientInstance.d.ts.map +1 -1
- package/dist/dts/KinesisService.d.ts +41 -43
- package/dist/dts/KinesisService.d.ts.map +1 -1
- package/dist/dts/KinesisServiceConfig.d.ts.map +1 -1
- package/dist/esm/KinesisClientInstance.js +3 -3
- package/dist/esm/KinesisClientInstance.js.map +1 -1
- package/dist/esm/KinesisService.js +2 -2
- package/dist/esm/KinesisService.js.map +1 -1
- package/dist/esm/KinesisServiceConfig.js +5 -6
- package/dist/esm/KinesisServiceConfig.js.map +1 -1
- package/package.json +8 -14
- package/src/KinesisClientInstance.ts +4 -4
- package/src/KinesisService.ts +42 -42
- package/src/KinesisServiceConfig.ts +6 -7
- package/dist/cjs/Errors.d.ts +0 -23
- package/dist/cjs/Errors.d.ts.map +0 -1
- package/dist/cjs/Errors.js +0 -22
- package/dist/cjs/Errors.js.map +0 -1
- package/dist/cjs/KinesisClientInstance.d.ts +0 -24
- package/dist/cjs/KinesisClientInstance.d.ts.map +0 -1
- package/dist/cjs/KinesisClientInstance.js +0 -50
- package/dist/cjs/KinesisClientInstance.js.map +0 -1
- package/dist/cjs/KinesisService.d.ts +0 -202
- package/dist/cjs/KinesisService.d.ts.map +0 -1
- package/dist/cjs/KinesisService.js +0 -98
- package/dist/cjs/KinesisService.js.map +0 -1
- package/dist/cjs/KinesisServiceConfig.d.ts +0 -25
- package/dist/cjs/KinesisServiceConfig.d.ts.map +0 -1
- package/dist/cjs/KinesisServiceConfig.js +0 -35
- package/dist/cjs/KinesisServiceConfig.js.map +0 -1
- package/dist/cjs/index.d.ts +0 -44
- package/dist/cjs/index.d.ts.map +0 -1
- package/dist/cjs/index.js +0 -56
- package/dist/cjs/index.js.map +0 -1
package/src/KinesisService.ts
CHANGED
|
@@ -125,7 +125,7 @@ import {
|
|
|
125
125
|
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
126
126
|
import { Service } from "@effect-aws/commons";
|
|
127
127
|
import type { Cause } from "effect";
|
|
128
|
-
import { Effect, Layer } from "effect";
|
|
128
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
129
129
|
import type {
|
|
130
130
|
AccessDeniedError,
|
|
131
131
|
ExpiredIteratorError,
|
|
@@ -202,7 +202,7 @@ interface KinesisService$ {
|
|
|
202
202
|
options?: HttpHandlerOptions,
|
|
203
203
|
): Effect.Effect<
|
|
204
204
|
AddTagsToStreamCommandOutput,
|
|
205
|
-
| Cause.
|
|
205
|
+
| Cause.TimeoutError
|
|
206
206
|
| SdkError
|
|
207
207
|
| AccessDeniedError
|
|
208
208
|
| InvalidArgumentError
|
|
@@ -219,7 +219,7 @@ interface KinesisService$ {
|
|
|
219
219
|
options?: HttpHandlerOptions,
|
|
220
220
|
): Effect.Effect<
|
|
221
221
|
CreateStreamCommandOutput,
|
|
222
|
-
Cause.
|
|
222
|
+
Cause.TimeoutError | SdkError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ValidationError
|
|
223
223
|
>;
|
|
224
224
|
|
|
225
225
|
/**
|
|
@@ -230,7 +230,7 @@ interface KinesisService$ {
|
|
|
230
230
|
options?: HttpHandlerOptions,
|
|
231
231
|
): Effect.Effect<
|
|
232
232
|
DecreaseStreamRetentionPeriodCommandOutput,
|
|
233
|
-
| Cause.
|
|
233
|
+
| Cause.TimeoutError
|
|
234
234
|
| SdkError
|
|
235
235
|
| AccessDeniedError
|
|
236
236
|
| InvalidArgumentError
|
|
@@ -247,7 +247,7 @@ interface KinesisService$ {
|
|
|
247
247
|
options?: HttpHandlerOptions,
|
|
248
248
|
): Effect.Effect<
|
|
249
249
|
DeleteResourcePolicyCommandOutput,
|
|
250
|
-
| Cause.
|
|
250
|
+
| Cause.TimeoutError
|
|
251
251
|
| SdkError
|
|
252
252
|
| AccessDeniedError
|
|
253
253
|
| InvalidArgumentError
|
|
@@ -264,7 +264,7 @@ interface KinesisService$ {
|
|
|
264
264
|
options?: HttpHandlerOptions,
|
|
265
265
|
): Effect.Effect<
|
|
266
266
|
DeleteStreamCommandOutput,
|
|
267
|
-
| Cause.
|
|
267
|
+
| Cause.TimeoutError
|
|
268
268
|
| SdkError
|
|
269
269
|
| AccessDeniedError
|
|
270
270
|
| InvalidArgumentError
|
|
@@ -281,7 +281,7 @@ interface KinesisService$ {
|
|
|
281
281
|
options?: HttpHandlerOptions,
|
|
282
282
|
): Effect.Effect<
|
|
283
283
|
DeregisterStreamConsumerCommandOutput,
|
|
284
|
-
Cause.
|
|
284
|
+
Cause.TimeoutError | SdkError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError
|
|
285
285
|
>;
|
|
286
286
|
|
|
287
287
|
/**
|
|
@@ -292,7 +292,7 @@ interface KinesisService$ {
|
|
|
292
292
|
options?: HttpHandlerOptions,
|
|
293
293
|
): Effect.Effect<
|
|
294
294
|
DescribeAccountSettingsCommandOutput,
|
|
295
|
-
Cause.
|
|
295
|
+
Cause.TimeoutError | SdkError | LimitExceededError
|
|
296
296
|
>;
|
|
297
297
|
|
|
298
298
|
/**
|
|
@@ -303,7 +303,7 @@ interface KinesisService$ {
|
|
|
303
303
|
options?: HttpHandlerOptions,
|
|
304
304
|
): Effect.Effect<
|
|
305
305
|
DescribeLimitsCommandOutput,
|
|
306
|
-
Cause.
|
|
306
|
+
Cause.TimeoutError | SdkError | LimitExceededError
|
|
307
307
|
>;
|
|
308
308
|
|
|
309
309
|
/**
|
|
@@ -314,7 +314,7 @@ interface KinesisService$ {
|
|
|
314
314
|
options?: HttpHandlerOptions,
|
|
315
315
|
): Effect.Effect<
|
|
316
316
|
DescribeStreamCommandOutput,
|
|
317
|
-
| Cause.
|
|
317
|
+
| Cause.TimeoutError
|
|
318
318
|
| SdkError
|
|
319
319
|
| AccessDeniedError
|
|
320
320
|
| InvalidArgumentError
|
|
@@ -330,7 +330,7 @@ interface KinesisService$ {
|
|
|
330
330
|
options?: HttpHandlerOptions,
|
|
331
331
|
): Effect.Effect<
|
|
332
332
|
DescribeStreamConsumerCommandOutput,
|
|
333
|
-
Cause.
|
|
333
|
+
Cause.TimeoutError | SdkError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError
|
|
334
334
|
>;
|
|
335
335
|
|
|
336
336
|
/**
|
|
@@ -341,7 +341,7 @@ interface KinesisService$ {
|
|
|
341
341
|
options?: HttpHandlerOptions,
|
|
342
342
|
): Effect.Effect<
|
|
343
343
|
DescribeStreamSummaryCommandOutput,
|
|
344
|
-
| Cause.
|
|
344
|
+
| Cause.TimeoutError
|
|
345
345
|
| SdkError
|
|
346
346
|
| AccessDeniedError
|
|
347
347
|
| InvalidArgumentError
|
|
@@ -357,7 +357,7 @@ interface KinesisService$ {
|
|
|
357
357
|
options?: HttpHandlerOptions,
|
|
358
358
|
): Effect.Effect<
|
|
359
359
|
DisableEnhancedMonitoringCommandOutput,
|
|
360
|
-
| Cause.
|
|
360
|
+
| Cause.TimeoutError
|
|
361
361
|
| SdkError
|
|
362
362
|
| AccessDeniedError
|
|
363
363
|
| InvalidArgumentError
|
|
@@ -374,7 +374,7 @@ interface KinesisService$ {
|
|
|
374
374
|
options?: HttpHandlerOptions,
|
|
375
375
|
): Effect.Effect<
|
|
376
376
|
EnableEnhancedMonitoringCommandOutput,
|
|
377
|
-
| Cause.
|
|
377
|
+
| Cause.TimeoutError
|
|
378
378
|
| SdkError
|
|
379
379
|
| AccessDeniedError
|
|
380
380
|
| InvalidArgumentError
|
|
@@ -391,7 +391,7 @@ interface KinesisService$ {
|
|
|
391
391
|
options?: HttpHandlerOptions,
|
|
392
392
|
): Effect.Effect<
|
|
393
393
|
GetRecordsCommandOutput,
|
|
394
|
-
| Cause.
|
|
394
|
+
| Cause.TimeoutError
|
|
395
395
|
| SdkError
|
|
396
396
|
| AccessDeniedError
|
|
397
397
|
| ExpiredIteratorError
|
|
@@ -415,7 +415,7 @@ interface KinesisService$ {
|
|
|
415
415
|
options?: HttpHandlerOptions,
|
|
416
416
|
): Effect.Effect<
|
|
417
417
|
GetResourcePolicyCommandOutput,
|
|
418
|
-
| Cause.
|
|
418
|
+
| Cause.TimeoutError
|
|
419
419
|
| SdkError
|
|
420
420
|
| AccessDeniedError
|
|
421
421
|
| InvalidArgumentError
|
|
@@ -432,7 +432,7 @@ interface KinesisService$ {
|
|
|
432
432
|
options?: HttpHandlerOptions,
|
|
433
433
|
): Effect.Effect<
|
|
434
434
|
GetShardIteratorCommandOutput,
|
|
435
|
-
| Cause.
|
|
435
|
+
| Cause.TimeoutError
|
|
436
436
|
| SdkError
|
|
437
437
|
| AccessDeniedError
|
|
438
438
|
| InternalFailureError
|
|
@@ -449,7 +449,7 @@ interface KinesisService$ {
|
|
|
449
449
|
options?: HttpHandlerOptions,
|
|
450
450
|
): Effect.Effect<
|
|
451
451
|
IncreaseStreamRetentionPeriodCommandOutput,
|
|
452
|
-
| Cause.
|
|
452
|
+
| Cause.TimeoutError
|
|
453
453
|
| SdkError
|
|
454
454
|
| AccessDeniedError
|
|
455
455
|
| InvalidArgumentError
|
|
@@ -466,7 +466,7 @@ interface KinesisService$ {
|
|
|
466
466
|
options?: HttpHandlerOptions,
|
|
467
467
|
): Effect.Effect<
|
|
468
468
|
ListShardsCommandOutput,
|
|
469
|
-
| Cause.
|
|
469
|
+
| Cause.TimeoutError
|
|
470
470
|
| SdkError
|
|
471
471
|
| AccessDeniedError
|
|
472
472
|
| ExpiredNextTokenError
|
|
@@ -484,7 +484,7 @@ interface KinesisService$ {
|
|
|
484
484
|
options?: HttpHandlerOptions,
|
|
485
485
|
): Effect.Effect<
|
|
486
486
|
ListStreamConsumersCommandOutput,
|
|
487
|
-
| Cause.
|
|
487
|
+
| Cause.TimeoutError
|
|
488
488
|
| SdkError
|
|
489
489
|
| ExpiredNextTokenError
|
|
490
490
|
| InvalidArgumentError
|
|
@@ -501,7 +501,7 @@ interface KinesisService$ {
|
|
|
501
501
|
options?: HttpHandlerOptions,
|
|
502
502
|
): Effect.Effect<
|
|
503
503
|
ListStreamsCommandOutput,
|
|
504
|
-
Cause.
|
|
504
|
+
Cause.TimeoutError | SdkError | ExpiredNextTokenError | InvalidArgumentError | LimitExceededError
|
|
505
505
|
>;
|
|
506
506
|
|
|
507
507
|
/**
|
|
@@ -512,7 +512,7 @@ interface KinesisService$ {
|
|
|
512
512
|
options?: HttpHandlerOptions,
|
|
513
513
|
): Effect.Effect<
|
|
514
514
|
ListTagsForResourceCommandOutput,
|
|
515
|
-
| Cause.
|
|
515
|
+
| Cause.TimeoutError
|
|
516
516
|
| SdkError
|
|
517
517
|
| AccessDeniedError
|
|
518
518
|
| InvalidArgumentError
|
|
@@ -529,7 +529,7 @@ interface KinesisService$ {
|
|
|
529
529
|
options?: HttpHandlerOptions,
|
|
530
530
|
): Effect.Effect<
|
|
531
531
|
ListTagsForStreamCommandOutput,
|
|
532
|
-
| Cause.
|
|
532
|
+
| Cause.TimeoutError
|
|
533
533
|
| SdkError
|
|
534
534
|
| AccessDeniedError
|
|
535
535
|
| InvalidArgumentError
|
|
@@ -545,7 +545,7 @@ interface KinesisService$ {
|
|
|
545
545
|
options?: HttpHandlerOptions,
|
|
546
546
|
): Effect.Effect<
|
|
547
547
|
MergeShardsCommandOutput,
|
|
548
|
-
| Cause.
|
|
548
|
+
| Cause.TimeoutError
|
|
549
549
|
| SdkError
|
|
550
550
|
| AccessDeniedError
|
|
551
551
|
| InvalidArgumentError
|
|
@@ -563,7 +563,7 @@ interface KinesisService$ {
|
|
|
563
563
|
options?: HttpHandlerOptions,
|
|
564
564
|
): Effect.Effect<
|
|
565
565
|
PutRecordCommandOutput,
|
|
566
|
-
| Cause.
|
|
566
|
+
| Cause.TimeoutError
|
|
567
567
|
| SdkError
|
|
568
568
|
| AccessDeniedError
|
|
569
569
|
| InternalFailureError
|
|
@@ -586,7 +586,7 @@ interface KinesisService$ {
|
|
|
586
586
|
options?: HttpHandlerOptions,
|
|
587
587
|
): Effect.Effect<
|
|
588
588
|
PutRecordsCommandOutput,
|
|
589
|
-
| Cause.
|
|
589
|
+
| Cause.TimeoutError
|
|
590
590
|
| SdkError
|
|
591
591
|
| AccessDeniedError
|
|
592
592
|
| InternalFailureError
|
|
@@ -609,7 +609,7 @@ interface KinesisService$ {
|
|
|
609
609
|
options?: HttpHandlerOptions,
|
|
610
610
|
): Effect.Effect<
|
|
611
611
|
PutResourcePolicyCommandOutput,
|
|
612
|
-
| Cause.
|
|
612
|
+
| Cause.TimeoutError
|
|
613
613
|
| SdkError
|
|
614
614
|
| AccessDeniedError
|
|
615
615
|
| InvalidArgumentError
|
|
@@ -626,7 +626,7 @@ interface KinesisService$ {
|
|
|
626
626
|
options?: HttpHandlerOptions,
|
|
627
627
|
): Effect.Effect<
|
|
628
628
|
RegisterStreamConsumerCommandOutput,
|
|
629
|
-
| Cause.
|
|
629
|
+
| Cause.TimeoutError
|
|
630
630
|
| SdkError
|
|
631
631
|
| InvalidArgumentError
|
|
632
632
|
| LimitExceededError
|
|
@@ -642,7 +642,7 @@ interface KinesisService$ {
|
|
|
642
642
|
options?: HttpHandlerOptions,
|
|
643
643
|
): Effect.Effect<
|
|
644
644
|
RemoveTagsFromStreamCommandOutput,
|
|
645
|
-
| Cause.
|
|
645
|
+
| Cause.TimeoutError
|
|
646
646
|
| SdkError
|
|
647
647
|
| AccessDeniedError
|
|
648
648
|
| InvalidArgumentError
|
|
@@ -659,7 +659,7 @@ interface KinesisService$ {
|
|
|
659
659
|
options?: HttpHandlerOptions,
|
|
660
660
|
): Effect.Effect<
|
|
661
661
|
SplitShardCommandOutput,
|
|
662
|
-
| Cause.
|
|
662
|
+
| Cause.TimeoutError
|
|
663
663
|
| SdkError
|
|
664
664
|
| AccessDeniedError
|
|
665
665
|
| InvalidArgumentError
|
|
@@ -677,7 +677,7 @@ interface KinesisService$ {
|
|
|
677
677
|
options?: HttpHandlerOptions,
|
|
678
678
|
): Effect.Effect<
|
|
679
679
|
StartStreamEncryptionCommandOutput,
|
|
680
|
-
| Cause.
|
|
680
|
+
| Cause.TimeoutError
|
|
681
681
|
| SdkError
|
|
682
682
|
| AccessDeniedError
|
|
683
683
|
| InvalidArgumentError
|
|
@@ -700,7 +700,7 @@ interface KinesisService$ {
|
|
|
700
700
|
options?: HttpHandlerOptions,
|
|
701
701
|
): Effect.Effect<
|
|
702
702
|
StopStreamEncryptionCommandOutput,
|
|
703
|
-
| Cause.
|
|
703
|
+
| Cause.TimeoutError
|
|
704
704
|
| SdkError
|
|
705
705
|
| AccessDeniedError
|
|
706
706
|
| InvalidArgumentError
|
|
@@ -717,7 +717,7 @@ interface KinesisService$ {
|
|
|
717
717
|
options?: HttpHandlerOptions,
|
|
718
718
|
): Effect.Effect<
|
|
719
719
|
SubscribeToShardCommandOutput,
|
|
720
|
-
| Cause.
|
|
720
|
+
| Cause.TimeoutError
|
|
721
721
|
| SdkError
|
|
722
722
|
| AccessDeniedError
|
|
723
723
|
| InvalidArgumentError
|
|
@@ -734,7 +734,7 @@ interface KinesisService$ {
|
|
|
734
734
|
options?: HttpHandlerOptions,
|
|
735
735
|
): Effect.Effect<
|
|
736
736
|
TagResourceCommandOutput,
|
|
737
|
-
| Cause.
|
|
737
|
+
| Cause.TimeoutError
|
|
738
738
|
| SdkError
|
|
739
739
|
| AccessDeniedError
|
|
740
740
|
| InvalidArgumentError
|
|
@@ -751,7 +751,7 @@ interface KinesisService$ {
|
|
|
751
751
|
options?: HttpHandlerOptions,
|
|
752
752
|
): Effect.Effect<
|
|
753
753
|
UntagResourceCommandOutput,
|
|
754
|
-
| Cause.
|
|
754
|
+
| Cause.TimeoutError
|
|
755
755
|
| SdkError
|
|
756
756
|
| AccessDeniedError
|
|
757
757
|
| InvalidArgumentError
|
|
@@ -768,7 +768,7 @@ interface KinesisService$ {
|
|
|
768
768
|
options?: HttpHandlerOptions,
|
|
769
769
|
): Effect.Effect<
|
|
770
770
|
UpdateAccountSettingsCommandOutput,
|
|
771
|
-
Cause.
|
|
771
|
+
Cause.TimeoutError | SdkError | InvalidArgumentError | LimitExceededError | ValidationError
|
|
772
772
|
>;
|
|
773
773
|
|
|
774
774
|
/**
|
|
@@ -779,7 +779,7 @@ interface KinesisService$ {
|
|
|
779
779
|
options?: HttpHandlerOptions,
|
|
780
780
|
): Effect.Effect<
|
|
781
781
|
UpdateMaxRecordSizeCommandOutput,
|
|
782
|
-
| Cause.
|
|
782
|
+
| Cause.TimeoutError
|
|
783
783
|
| SdkError
|
|
784
784
|
| AccessDeniedError
|
|
785
785
|
| InvalidArgumentError
|
|
@@ -797,7 +797,7 @@ interface KinesisService$ {
|
|
|
797
797
|
options?: HttpHandlerOptions,
|
|
798
798
|
): Effect.Effect<
|
|
799
799
|
UpdateShardCountCommandOutput,
|
|
800
|
-
| Cause.
|
|
800
|
+
| Cause.TimeoutError
|
|
801
801
|
| SdkError
|
|
802
802
|
| AccessDeniedError
|
|
803
803
|
| InvalidArgumentError
|
|
@@ -815,7 +815,7 @@ interface KinesisService$ {
|
|
|
815
815
|
options?: HttpHandlerOptions,
|
|
816
816
|
): Effect.Effect<
|
|
817
817
|
UpdateStreamModeCommandOutput,
|
|
818
|
-
| Cause.
|
|
818
|
+
| Cause.TimeoutError
|
|
819
819
|
| SdkError
|
|
820
820
|
| InvalidArgumentError
|
|
821
821
|
| LimitExceededError
|
|
@@ -832,7 +832,7 @@ interface KinesisService$ {
|
|
|
832
832
|
options?: HttpHandlerOptions,
|
|
833
833
|
): Effect.Effect<
|
|
834
834
|
UpdateStreamWarmThroughputCommandOutput,
|
|
835
|
-
| Cause.
|
|
835
|
+
| Cause.TimeoutError
|
|
836
836
|
| SdkError
|
|
837
837
|
| AccessDeniedError
|
|
838
838
|
| InvalidArgumentError
|
|
@@ -864,10 +864,10 @@ export const makeKinesisService = Effect.gen(function*() {
|
|
|
864
864
|
* @since 1.0.0
|
|
865
865
|
* @category models
|
|
866
866
|
*/
|
|
867
|
-
export class KinesisService extends
|
|
867
|
+
export class KinesisService extends ServiceMap.Service<
|
|
868
868
|
KinesisService,
|
|
869
869
|
KinesisService$
|
|
870
|
-
>() {
|
|
870
|
+
>()("@effect-aws/client-kinesis/KinesisService") {
|
|
871
871
|
static readonly defaultLayer = Layer.effect(this, makeKinesisService).pipe(Layer.provide(Instance.layer));
|
|
872
872
|
static readonly layer = (config: KinesisService.Config) =>
|
|
873
873
|
Layer.effect(this, makeKinesisService).pipe(
|
|
@@ -3,18 +3,17 @@
|
|
|
3
3
|
*/
|
|
4
4
|
import type { KinesisClientConfig } from "@aws-sdk/client-kinesis";
|
|
5
5
|
import { ServiceLogger } from "@effect-aws/commons";
|
|
6
|
-
import { Effect,
|
|
6
|
+
import { Effect, Layer, ServiceMap } from "effect";
|
|
7
7
|
import { dual } from "effect/Function";
|
|
8
|
-
import { globalValue } from "effect/GlobalValue";
|
|
9
8
|
import type { KinesisService } from "./KinesisService.js";
|
|
10
9
|
|
|
11
10
|
/**
|
|
12
11
|
* @since 1.0.0
|
|
13
12
|
* @category kinesis service config
|
|
14
13
|
*/
|
|
15
|
-
const currentKinesisServiceConfig =
|
|
14
|
+
const currentKinesisServiceConfig = ServiceMap.Reference<KinesisService.Config>(
|
|
16
15
|
"@effect-aws/client-kinesis/currentKinesisServiceConfig",
|
|
17
|
-
() =>
|
|
16
|
+
{ defaultValue: () => ({}) },
|
|
18
17
|
);
|
|
19
18
|
|
|
20
19
|
/**
|
|
@@ -27,7 +26,7 @@ export const withKinesisServiceConfig: {
|
|
|
27
26
|
} = dual(
|
|
28
27
|
2,
|
|
29
28
|
<A, E, R>(effect: Effect.Effect<A, E, R>, config: KinesisService.Config): Effect.Effect<A, E, R> =>
|
|
30
|
-
Effect.
|
|
29
|
+
Effect.provideService(effect, currentKinesisServiceConfig, config),
|
|
31
30
|
);
|
|
32
31
|
|
|
33
32
|
/**
|
|
@@ -35,14 +34,14 @@ export const withKinesisServiceConfig: {
|
|
|
35
34
|
* @category kinesis service config
|
|
36
35
|
*/
|
|
37
36
|
export const setKinesisServiceConfig = (config: KinesisService.Config) =>
|
|
38
|
-
Layer.
|
|
37
|
+
Layer.succeed(currentKinesisServiceConfig, config);
|
|
39
38
|
|
|
40
39
|
/**
|
|
41
40
|
* @since 1.0.0
|
|
42
41
|
* @category adapters
|
|
43
42
|
*/
|
|
44
43
|
export const toKinesisClientConfig: Effect.Effect<KinesisClientConfig> = Effect.gen(function*() {
|
|
45
|
-
const { logger: serviceLogger, ...config } = yield*
|
|
44
|
+
const { logger: serviceLogger, ...config } = yield* currentKinesisServiceConfig;
|
|
46
45
|
|
|
47
46
|
const logger = serviceLogger === true
|
|
48
47
|
? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
|
package/dist/cjs/Errors.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { AccessDeniedException, ExpiredIteratorException, ExpiredNextTokenException, InternalFailureException, InvalidArgumentException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, LimitExceededException, ProvisionedThroughputExceededException, ResourceInUseException, ResourceNotFoundException, ValidationException } from "@aws-sdk/client-kinesis";
|
|
2
|
-
import type { TaggedException } from "@effect-aws/commons";
|
|
3
|
-
export declare const AllServiceErrors: readonly ["AccessDeniedException", "ExpiredIteratorException", "ExpiredNextTokenException", "InternalFailureException", "InvalidArgumentException", "KMSAccessDeniedException", "KMSDisabledException", "KMSInvalidStateException", "KMSNotFoundException", "KMSOptInRequired", "KMSThrottlingException", "LimitExceededException", "ProvisionedThroughputExceededException", "ResourceInUseException", "ResourceNotFoundException", "ValidationException"];
|
|
4
|
-
export type AccessDeniedError = TaggedException<AccessDeniedException>;
|
|
5
|
-
export type ExpiredIteratorError = TaggedException<ExpiredIteratorException>;
|
|
6
|
-
export type ExpiredNextTokenError = TaggedException<ExpiredNextTokenException>;
|
|
7
|
-
export type InternalFailureError = TaggedException<InternalFailureException>;
|
|
8
|
-
export type InvalidArgumentError = TaggedException<InvalidArgumentException>;
|
|
9
|
-
export type KMSAccessDeniedError = TaggedException<KMSAccessDeniedException>;
|
|
10
|
-
export type KMSDisabledError = TaggedException<KMSDisabledException>;
|
|
11
|
-
export type KMSInvalidStateError = TaggedException<KMSInvalidStateException>;
|
|
12
|
-
export type KMSNotFoundError = TaggedException<KMSNotFoundException>;
|
|
13
|
-
export type KMSOptInRequiredError = TaggedException<KMSOptInRequired>;
|
|
14
|
-
export type KMSThrottlingError = TaggedException<KMSThrottlingException>;
|
|
15
|
-
export type LimitExceededError = TaggedException<LimitExceededException>;
|
|
16
|
-
export type ProvisionedThroughputExceededError = TaggedException<ProvisionedThroughputExceededException>;
|
|
17
|
-
export type ResourceInUseError = TaggedException<ResourceInUseException>;
|
|
18
|
-
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
19
|
-
export type ValidationError = TaggedException<ValidationException>;
|
|
20
|
-
export type SdkError = TaggedException<Error & {
|
|
21
|
-
name: "SdkError";
|
|
22
|
-
}>;
|
|
23
|
-
//# sourceMappingURL=Errors.d.ts.map
|
package/dist/cjs/Errors.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.d.ts","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,qBAAqB,EACrB,wBAAwB,EACxB,yBAAyB,EACzB,wBAAwB,EACxB,wBAAwB,EACxB,wBAAwB,EACxB,oBAAoB,EACpB,wBAAwB,EACxB,oBAAoB,EACpB,gBAAgB,EAChB,sBAAsB,EACtB,sBAAsB,EACtB,sCAAsC,EACtC,sBAAsB,EACtB,yBAAyB,EACzB,mBAAmB,EACpB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAE3D,eAAO,MAAM,gBAAgB,6bAiBnB,CAAC;AAEX,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;AACrE,MAAM,MAAM,oBAAoB,GAAG,eAAe,CAAC,wBAAwB,CAAC,CAAC;AAC7E,MAAM,MAAM,gBAAgB,GAAG,eAAe,CAAC,oBAAoB,CAAC,CAAC;AACrE,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,gBAAgB,CAAC,CAAC;AACtE,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,kCAAkC,GAAG,eAAe,CAAC,sCAAsC,CAAC,CAAC;AACzG,MAAM,MAAM,kBAAkB,GAAG,eAAe,CAAC,sBAAsB,CAAC,CAAC;AACzE,MAAM,MAAM,qBAAqB,GAAG,eAAe,CAAC,yBAAyB,CAAC,CAAC;AAC/E,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
|
package/dist/cjs/Errors.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AllServiceErrors = void 0;
|
|
4
|
-
exports.AllServiceErrors = [
|
|
5
|
-
"AccessDeniedException",
|
|
6
|
-
"ExpiredIteratorException",
|
|
7
|
-
"ExpiredNextTokenException",
|
|
8
|
-
"InternalFailureException",
|
|
9
|
-
"InvalidArgumentException",
|
|
10
|
-
"KMSAccessDeniedException",
|
|
11
|
-
"KMSDisabledException",
|
|
12
|
-
"KMSInvalidStateException",
|
|
13
|
-
"KMSNotFoundException",
|
|
14
|
-
"KMSOptInRequired",
|
|
15
|
-
"KMSThrottlingException",
|
|
16
|
-
"LimitExceededException",
|
|
17
|
-
"ProvisionedThroughputExceededException",
|
|
18
|
-
"ResourceInUseException",
|
|
19
|
-
"ResourceNotFoundException",
|
|
20
|
-
"ValidationException",
|
|
21
|
-
];
|
|
22
|
-
//# sourceMappingURL=Errors.js.map
|
package/dist/cjs/Errors.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAoBa,QAAA,gBAAgB,GAAG;IAC9B,uBAAuB;IACvB,0BAA0B;IAC1B,2BAA2B;IAC3B,0BAA0B;IAC1B,0BAA0B;IAC1B,0BAA0B;IAC1B,sBAAsB;IACtB,0BAA0B;IAC1B,sBAAsB;IACtB,kBAAkB;IAClB,wBAAwB;IACxB,wBAAwB;IACxB,wCAAwC;IACxC,wBAAwB;IACxB,2BAA2B;IAC3B,qBAAqB;CACb,CAAC"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import { KinesisClient } from "@aws-sdk/client-kinesis";
|
|
5
|
-
import { Context, Effect, Layer } from "effect";
|
|
6
|
-
declare const KinesisClientInstance_base: Context.TagClass<KinesisClientInstance, "@effect-aws/client-kinesis/KinesisClientInstance", KinesisClient>;
|
|
7
|
-
/**
|
|
8
|
-
* @since 1.0.0
|
|
9
|
-
* @category tags
|
|
10
|
-
*/
|
|
11
|
-
export declare class KinesisClientInstance extends KinesisClientInstance_base {
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @since 1.0.0
|
|
15
|
-
* @category constructors
|
|
16
|
-
*/
|
|
17
|
-
export declare const make: Effect.Effect<KinesisClient, never, import("effect/Scope").Scope>;
|
|
18
|
-
/**
|
|
19
|
-
* @since 1.0.0
|
|
20
|
-
* @category layers
|
|
21
|
-
*/
|
|
22
|
-
export declare const layer: Layer.Layer<KinesisClientInstance, never, never>;
|
|
23
|
-
export {};
|
|
24
|
-
//# sourceMappingURL=KinesisClientInstance.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KinesisClientInstance.d.ts","sourceRoot":"","sources":["../../src/KinesisClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,qBAAsB,SAAQ,0BAEF;CAAG;AAE5C;;;GAGG;AACH,eAAO,MAAM,IAAI,mEAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,kDAA4C,CAAC"}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.layer = exports.make = exports.KinesisClientInstance = void 0;
|
|
27
|
-
/**
|
|
28
|
-
* @since 1.0.0
|
|
29
|
-
*/
|
|
30
|
-
const client_kinesis_1 = require("@aws-sdk/client-kinesis");
|
|
31
|
-
const effect_1 = require("effect");
|
|
32
|
-
const KinesisServiceConfig = __importStar(require("./KinesisServiceConfig.js"));
|
|
33
|
-
/**
|
|
34
|
-
* @since 1.0.0
|
|
35
|
-
* @category tags
|
|
36
|
-
*/
|
|
37
|
-
class KinesisClientInstance extends effect_1.Context.Tag("@effect-aws/client-kinesis/KinesisClientInstance")() {
|
|
38
|
-
}
|
|
39
|
-
exports.KinesisClientInstance = KinesisClientInstance;
|
|
40
|
-
/**
|
|
41
|
-
* @since 1.0.0
|
|
42
|
-
* @category constructors
|
|
43
|
-
*/
|
|
44
|
-
exports.make = effect_1.Effect.flatMap(KinesisServiceConfig.toKinesisClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_kinesis_1.KinesisClient(config)), (client) => effect_1.Effect.sync(() => client.destroy())));
|
|
45
|
-
/**
|
|
46
|
-
* @since 1.0.0
|
|
47
|
-
* @category layers
|
|
48
|
-
*/
|
|
49
|
-
exports.layer = effect_1.Layer.scoped(KinesisClientInstance, exports.make);
|
|
50
|
-
//# sourceMappingURL=KinesisClientInstance.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"KinesisClientInstance.js","sourceRoot":"","sources":["../../src/KinesisClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,4DAAwD;AACxD,mCAAgD;AAChD,gFAAkE;AAElE;;;GAGG;AACH,MAAa,qBAAsB,SAAQ,gBAAO,CAAC,GAAG,CACpD,kDAAkD,CACnD,EAAwC;CAAG;AAF5C,sDAE4C;AAE5C;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,oBAAoB,CAAC,qBAAqB,EAC1C,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,8BAAa,CAAC,MAAM,CAAC,CAAC,EAC5C,CAAC,MAAM,EAAE,EAAE,CAAC,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC,CAChD,CACJ,CAAC;AAEF;;;GAGG;AACU,QAAA,KAAK,GAAG,cAAK,CAAC,MAAM,CAAC,qBAAqB,EAAE,YAAI,CAAC,CAAC"}
|