@effect-aws/client-kinesis 1.10.9 → 2.0.0-beta.1

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 (38) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -3
  3. package/dist/dts/KinesisClientInstance.d.ts +4 -2
  4. package/dist/dts/KinesisClientInstance.d.ts.map +1 -1
  5. package/dist/dts/KinesisService.d.ts +44 -44
  6. package/dist/dts/KinesisService.d.ts.map +1 -1
  7. package/dist/dts/KinesisServiceConfig.d.ts +2 -1
  8. package/dist/dts/KinesisServiceConfig.d.ts.map +1 -1
  9. package/dist/esm/KinesisClientInstance.js +5 -3
  10. package/dist/esm/KinesisClientInstance.js.map +1 -1
  11. package/dist/esm/KinesisService.js +4 -2
  12. package/dist/esm/KinesisService.js.map +1 -1
  13. package/dist/esm/KinesisServiceConfig.js +7 -6
  14. package/dist/esm/KinesisServiceConfig.js.map +1 -1
  15. package/package.json +8 -14
  16. package/src/KinesisClientInstance.ts +6 -4
  17. package/src/KinesisService.ts +45 -43
  18. package/src/KinesisServiceConfig.ts +8 -7
  19. package/dist/cjs/Errors.d.ts +0 -23
  20. package/dist/cjs/Errors.d.ts.map +0 -1
  21. package/dist/cjs/Errors.js +0 -22
  22. package/dist/cjs/Errors.js.map +0 -1
  23. package/dist/cjs/KinesisClientInstance.d.ts +0 -24
  24. package/dist/cjs/KinesisClientInstance.d.ts.map +0 -1
  25. package/dist/cjs/KinesisClientInstance.js +0 -50
  26. package/dist/cjs/KinesisClientInstance.js.map +0 -1
  27. package/dist/cjs/KinesisService.d.ts +0 -202
  28. package/dist/cjs/KinesisService.d.ts.map +0 -1
  29. package/dist/cjs/KinesisService.js +0 -98
  30. package/dist/cjs/KinesisService.js.map +0 -1
  31. package/dist/cjs/KinesisServiceConfig.d.ts +0 -25
  32. package/dist/cjs/KinesisServiceConfig.d.ts.map +0 -1
  33. package/dist/cjs/KinesisServiceConfig.js +0 -35
  34. package/dist/cjs/KinesisServiceConfig.js.map +0 -1
  35. package/dist/cjs/index.d.ts +0 -44
  36. package/dist/cjs/index.d.ts.map +0 -1
  37. package/dist/cjs/index.js +0 -56
  38. package/dist/cjs/index.js.map +0 -1
@@ -124,8 +124,10 @@ import {
124
124
  } from "@aws-sdk/client-kinesis";
125
125
  import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
126
126
  import { Service } from "@effect-aws/commons";
127
- import type { Cause } from "effect";
128
- import { Effect, Layer } from "effect";
127
+ import type * as Cause from "effect/Cause";
128
+ import * as Effect from "effect/Effect";
129
+ import * as Layer from "effect/Layer";
130
+ import * as ServiceMap from "effect/ServiceMap";
129
131
  import type {
130
132
  AccessDeniedError,
131
133
  ExpiredIteratorError,
@@ -202,7 +204,7 @@ interface KinesisService$ {
202
204
  options?: HttpHandlerOptions,
203
205
  ): Effect.Effect<
204
206
  AddTagsToStreamCommandOutput,
205
- | Cause.TimeoutException
207
+ | Cause.TimeoutError
206
208
  | SdkError
207
209
  | AccessDeniedError
208
210
  | InvalidArgumentError
@@ -219,7 +221,7 @@ interface KinesisService$ {
219
221
  options?: HttpHandlerOptions,
220
222
  ): Effect.Effect<
221
223
  CreateStreamCommandOutput,
222
- Cause.TimeoutException | SdkError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ValidationError
224
+ Cause.TimeoutError | SdkError | InvalidArgumentError | LimitExceededError | ResourceInUseError | ValidationError
223
225
  >;
224
226
 
225
227
  /**
@@ -230,7 +232,7 @@ interface KinesisService$ {
230
232
  options?: HttpHandlerOptions,
231
233
  ): Effect.Effect<
232
234
  DecreaseStreamRetentionPeriodCommandOutput,
233
- | Cause.TimeoutException
235
+ | Cause.TimeoutError
234
236
  | SdkError
235
237
  | AccessDeniedError
236
238
  | InvalidArgumentError
@@ -247,7 +249,7 @@ interface KinesisService$ {
247
249
  options?: HttpHandlerOptions,
248
250
  ): Effect.Effect<
249
251
  DeleteResourcePolicyCommandOutput,
250
- | Cause.TimeoutException
252
+ | Cause.TimeoutError
251
253
  | SdkError
252
254
  | AccessDeniedError
253
255
  | InvalidArgumentError
@@ -264,7 +266,7 @@ interface KinesisService$ {
264
266
  options?: HttpHandlerOptions,
265
267
  ): Effect.Effect<
266
268
  DeleteStreamCommandOutput,
267
- | Cause.TimeoutException
269
+ | Cause.TimeoutError
268
270
  | SdkError
269
271
  | AccessDeniedError
270
272
  | InvalidArgumentError
@@ -281,7 +283,7 @@ interface KinesisService$ {
281
283
  options?: HttpHandlerOptions,
282
284
  ): Effect.Effect<
283
285
  DeregisterStreamConsumerCommandOutput,
284
- Cause.TimeoutException | SdkError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError
286
+ Cause.TimeoutError | SdkError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError
285
287
  >;
286
288
 
287
289
  /**
@@ -292,7 +294,7 @@ interface KinesisService$ {
292
294
  options?: HttpHandlerOptions,
293
295
  ): Effect.Effect<
294
296
  DescribeAccountSettingsCommandOutput,
295
- Cause.TimeoutException | SdkError | LimitExceededError
297
+ Cause.TimeoutError | SdkError | LimitExceededError
296
298
  >;
297
299
 
298
300
  /**
@@ -303,7 +305,7 @@ interface KinesisService$ {
303
305
  options?: HttpHandlerOptions,
304
306
  ): Effect.Effect<
305
307
  DescribeLimitsCommandOutput,
306
- Cause.TimeoutException | SdkError | LimitExceededError
308
+ Cause.TimeoutError | SdkError | LimitExceededError
307
309
  >;
308
310
 
309
311
  /**
@@ -314,7 +316,7 @@ interface KinesisService$ {
314
316
  options?: HttpHandlerOptions,
315
317
  ): Effect.Effect<
316
318
  DescribeStreamCommandOutput,
317
- | Cause.TimeoutException
319
+ | Cause.TimeoutError
318
320
  | SdkError
319
321
  | AccessDeniedError
320
322
  | InvalidArgumentError
@@ -330,7 +332,7 @@ interface KinesisService$ {
330
332
  options?: HttpHandlerOptions,
331
333
  ): Effect.Effect<
332
334
  DescribeStreamConsumerCommandOutput,
333
- Cause.TimeoutException | SdkError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError
335
+ Cause.TimeoutError | SdkError | InvalidArgumentError | LimitExceededError | ResourceNotFoundError
334
336
  >;
335
337
 
336
338
  /**
@@ -341,7 +343,7 @@ interface KinesisService$ {
341
343
  options?: HttpHandlerOptions,
342
344
  ): Effect.Effect<
343
345
  DescribeStreamSummaryCommandOutput,
344
- | Cause.TimeoutException
346
+ | Cause.TimeoutError
345
347
  | SdkError
346
348
  | AccessDeniedError
347
349
  | InvalidArgumentError
@@ -357,7 +359,7 @@ interface KinesisService$ {
357
359
  options?: HttpHandlerOptions,
358
360
  ): Effect.Effect<
359
361
  DisableEnhancedMonitoringCommandOutput,
360
- | Cause.TimeoutException
362
+ | Cause.TimeoutError
361
363
  | SdkError
362
364
  | AccessDeniedError
363
365
  | InvalidArgumentError
@@ -374,7 +376,7 @@ interface KinesisService$ {
374
376
  options?: HttpHandlerOptions,
375
377
  ): Effect.Effect<
376
378
  EnableEnhancedMonitoringCommandOutput,
377
- | Cause.TimeoutException
379
+ | Cause.TimeoutError
378
380
  | SdkError
379
381
  | AccessDeniedError
380
382
  | InvalidArgumentError
@@ -391,7 +393,7 @@ interface KinesisService$ {
391
393
  options?: HttpHandlerOptions,
392
394
  ): Effect.Effect<
393
395
  GetRecordsCommandOutput,
394
- | Cause.TimeoutException
396
+ | Cause.TimeoutError
395
397
  | SdkError
396
398
  | AccessDeniedError
397
399
  | ExpiredIteratorError
@@ -415,7 +417,7 @@ interface KinesisService$ {
415
417
  options?: HttpHandlerOptions,
416
418
  ): Effect.Effect<
417
419
  GetResourcePolicyCommandOutput,
418
- | Cause.TimeoutException
420
+ | Cause.TimeoutError
419
421
  | SdkError
420
422
  | AccessDeniedError
421
423
  | InvalidArgumentError
@@ -432,7 +434,7 @@ interface KinesisService$ {
432
434
  options?: HttpHandlerOptions,
433
435
  ): Effect.Effect<
434
436
  GetShardIteratorCommandOutput,
435
- | Cause.TimeoutException
437
+ | Cause.TimeoutError
436
438
  | SdkError
437
439
  | AccessDeniedError
438
440
  | InternalFailureError
@@ -449,7 +451,7 @@ interface KinesisService$ {
449
451
  options?: HttpHandlerOptions,
450
452
  ): Effect.Effect<
451
453
  IncreaseStreamRetentionPeriodCommandOutput,
452
- | Cause.TimeoutException
454
+ | Cause.TimeoutError
453
455
  | SdkError
454
456
  | AccessDeniedError
455
457
  | InvalidArgumentError
@@ -466,7 +468,7 @@ interface KinesisService$ {
466
468
  options?: HttpHandlerOptions,
467
469
  ): Effect.Effect<
468
470
  ListShardsCommandOutput,
469
- | Cause.TimeoutException
471
+ | Cause.TimeoutError
470
472
  | SdkError
471
473
  | AccessDeniedError
472
474
  | ExpiredNextTokenError
@@ -484,7 +486,7 @@ interface KinesisService$ {
484
486
  options?: HttpHandlerOptions,
485
487
  ): Effect.Effect<
486
488
  ListStreamConsumersCommandOutput,
487
- | Cause.TimeoutException
489
+ | Cause.TimeoutError
488
490
  | SdkError
489
491
  | ExpiredNextTokenError
490
492
  | InvalidArgumentError
@@ -501,7 +503,7 @@ interface KinesisService$ {
501
503
  options?: HttpHandlerOptions,
502
504
  ): Effect.Effect<
503
505
  ListStreamsCommandOutput,
504
- Cause.TimeoutException | SdkError | ExpiredNextTokenError | InvalidArgumentError | LimitExceededError
506
+ Cause.TimeoutError | SdkError | ExpiredNextTokenError | InvalidArgumentError | LimitExceededError
505
507
  >;
506
508
 
507
509
  /**
@@ -512,7 +514,7 @@ interface KinesisService$ {
512
514
  options?: HttpHandlerOptions,
513
515
  ): Effect.Effect<
514
516
  ListTagsForResourceCommandOutput,
515
- | Cause.TimeoutException
517
+ | Cause.TimeoutError
516
518
  | SdkError
517
519
  | AccessDeniedError
518
520
  | InvalidArgumentError
@@ -529,7 +531,7 @@ interface KinesisService$ {
529
531
  options?: HttpHandlerOptions,
530
532
  ): Effect.Effect<
531
533
  ListTagsForStreamCommandOutput,
532
- | Cause.TimeoutException
534
+ | Cause.TimeoutError
533
535
  | SdkError
534
536
  | AccessDeniedError
535
537
  | InvalidArgumentError
@@ -545,7 +547,7 @@ interface KinesisService$ {
545
547
  options?: HttpHandlerOptions,
546
548
  ): Effect.Effect<
547
549
  MergeShardsCommandOutput,
548
- | Cause.TimeoutException
550
+ | Cause.TimeoutError
549
551
  | SdkError
550
552
  | AccessDeniedError
551
553
  | InvalidArgumentError
@@ -563,7 +565,7 @@ interface KinesisService$ {
563
565
  options?: HttpHandlerOptions,
564
566
  ): Effect.Effect<
565
567
  PutRecordCommandOutput,
566
- | Cause.TimeoutException
568
+ | Cause.TimeoutError
567
569
  | SdkError
568
570
  | AccessDeniedError
569
571
  | InternalFailureError
@@ -586,7 +588,7 @@ interface KinesisService$ {
586
588
  options?: HttpHandlerOptions,
587
589
  ): Effect.Effect<
588
590
  PutRecordsCommandOutput,
589
- | Cause.TimeoutException
591
+ | Cause.TimeoutError
590
592
  | SdkError
591
593
  | AccessDeniedError
592
594
  | InternalFailureError
@@ -609,7 +611,7 @@ interface KinesisService$ {
609
611
  options?: HttpHandlerOptions,
610
612
  ): Effect.Effect<
611
613
  PutResourcePolicyCommandOutput,
612
- | Cause.TimeoutException
614
+ | Cause.TimeoutError
613
615
  | SdkError
614
616
  | AccessDeniedError
615
617
  | InvalidArgumentError
@@ -626,7 +628,7 @@ interface KinesisService$ {
626
628
  options?: HttpHandlerOptions,
627
629
  ): Effect.Effect<
628
630
  RegisterStreamConsumerCommandOutput,
629
- | Cause.TimeoutException
631
+ | Cause.TimeoutError
630
632
  | SdkError
631
633
  | InvalidArgumentError
632
634
  | LimitExceededError
@@ -642,7 +644,7 @@ interface KinesisService$ {
642
644
  options?: HttpHandlerOptions,
643
645
  ): Effect.Effect<
644
646
  RemoveTagsFromStreamCommandOutput,
645
- | Cause.TimeoutException
647
+ | Cause.TimeoutError
646
648
  | SdkError
647
649
  | AccessDeniedError
648
650
  | InvalidArgumentError
@@ -659,7 +661,7 @@ interface KinesisService$ {
659
661
  options?: HttpHandlerOptions,
660
662
  ): Effect.Effect<
661
663
  SplitShardCommandOutput,
662
- | Cause.TimeoutException
664
+ | Cause.TimeoutError
663
665
  | SdkError
664
666
  | AccessDeniedError
665
667
  | InvalidArgumentError
@@ -677,7 +679,7 @@ interface KinesisService$ {
677
679
  options?: HttpHandlerOptions,
678
680
  ): Effect.Effect<
679
681
  StartStreamEncryptionCommandOutput,
680
- | Cause.TimeoutException
682
+ | Cause.TimeoutError
681
683
  | SdkError
682
684
  | AccessDeniedError
683
685
  | InvalidArgumentError
@@ -700,7 +702,7 @@ interface KinesisService$ {
700
702
  options?: HttpHandlerOptions,
701
703
  ): Effect.Effect<
702
704
  StopStreamEncryptionCommandOutput,
703
- | Cause.TimeoutException
705
+ | Cause.TimeoutError
704
706
  | SdkError
705
707
  | AccessDeniedError
706
708
  | InvalidArgumentError
@@ -717,7 +719,7 @@ interface KinesisService$ {
717
719
  options?: HttpHandlerOptions,
718
720
  ): Effect.Effect<
719
721
  SubscribeToShardCommandOutput,
720
- | Cause.TimeoutException
722
+ | Cause.TimeoutError
721
723
  | SdkError
722
724
  | AccessDeniedError
723
725
  | InvalidArgumentError
@@ -734,7 +736,7 @@ interface KinesisService$ {
734
736
  options?: HttpHandlerOptions,
735
737
  ): Effect.Effect<
736
738
  TagResourceCommandOutput,
737
- | Cause.TimeoutException
739
+ | Cause.TimeoutError
738
740
  | SdkError
739
741
  | AccessDeniedError
740
742
  | InvalidArgumentError
@@ -751,7 +753,7 @@ interface KinesisService$ {
751
753
  options?: HttpHandlerOptions,
752
754
  ): Effect.Effect<
753
755
  UntagResourceCommandOutput,
754
- | Cause.TimeoutException
756
+ | Cause.TimeoutError
755
757
  | SdkError
756
758
  | AccessDeniedError
757
759
  | InvalidArgumentError
@@ -768,7 +770,7 @@ interface KinesisService$ {
768
770
  options?: HttpHandlerOptions,
769
771
  ): Effect.Effect<
770
772
  UpdateAccountSettingsCommandOutput,
771
- Cause.TimeoutException | SdkError | InvalidArgumentError | LimitExceededError | ValidationError
773
+ Cause.TimeoutError | SdkError | InvalidArgumentError | LimitExceededError | ValidationError
772
774
  >;
773
775
 
774
776
  /**
@@ -779,7 +781,7 @@ interface KinesisService$ {
779
781
  options?: HttpHandlerOptions,
780
782
  ): Effect.Effect<
781
783
  UpdateMaxRecordSizeCommandOutput,
782
- | Cause.TimeoutException
784
+ | Cause.TimeoutError
783
785
  | SdkError
784
786
  | AccessDeniedError
785
787
  | InvalidArgumentError
@@ -797,7 +799,7 @@ interface KinesisService$ {
797
799
  options?: HttpHandlerOptions,
798
800
  ): Effect.Effect<
799
801
  UpdateShardCountCommandOutput,
800
- | Cause.TimeoutException
802
+ | Cause.TimeoutError
801
803
  | SdkError
802
804
  | AccessDeniedError
803
805
  | InvalidArgumentError
@@ -815,7 +817,7 @@ interface KinesisService$ {
815
817
  options?: HttpHandlerOptions,
816
818
  ): Effect.Effect<
817
819
  UpdateStreamModeCommandOutput,
818
- | Cause.TimeoutException
820
+ | Cause.TimeoutError
819
821
  | SdkError
820
822
  | InvalidArgumentError
821
823
  | LimitExceededError
@@ -832,7 +834,7 @@ interface KinesisService$ {
832
834
  options?: HttpHandlerOptions,
833
835
  ): Effect.Effect<
834
836
  UpdateStreamWarmThroughputCommandOutput,
835
- | Cause.TimeoutException
837
+ | Cause.TimeoutError
836
838
  | SdkError
837
839
  | AccessDeniedError
838
840
  | InvalidArgumentError
@@ -864,10 +866,10 @@ export const makeKinesisService = Effect.gen(function*() {
864
866
  * @since 1.0.0
865
867
  * @category models
866
868
  */
867
- export class KinesisService extends Effect.Tag("@effect-aws/client-kinesis/KinesisService")<
869
+ export class KinesisService extends ServiceMap.Service<
868
870
  KinesisService,
869
871
  KinesisService$
870
- >() {
872
+ >()("@effect-aws/client-kinesis/KinesisService") {
871
873
  static readonly defaultLayer = Layer.effect(this, makeKinesisService).pipe(Layer.provide(Instance.layer));
872
874
  static readonly layer = (config: KinesisService.Config) =>
873
875
  Layer.effect(this, makeKinesisService).pipe(
@@ -3,18 +3,19 @@
3
3
  */
4
4
  import type { KinesisClientConfig } from "@aws-sdk/client-kinesis";
5
5
  import { ServiceLogger } from "@effect-aws/commons";
6
- import { Effect, FiberRef, Layer } from "effect";
6
+ import * as Effect from "effect/Effect";
7
7
  import { dual } from "effect/Function";
8
- import { globalValue } from "effect/GlobalValue";
8
+ import * as Layer from "effect/Layer";
9
+ import * as ServiceMap from "effect/ServiceMap";
9
10
  import type { KinesisService } from "./KinesisService.js";
10
11
 
11
12
  /**
12
13
  * @since 1.0.0
13
14
  * @category kinesis service config
14
15
  */
15
- const currentKinesisServiceConfig = globalValue(
16
+ const currentKinesisServiceConfig = ServiceMap.Reference<KinesisService.Config>(
16
17
  "@effect-aws/client-kinesis/currentKinesisServiceConfig",
17
- () => FiberRef.unsafeMake<KinesisService.Config>({}),
18
+ { defaultValue: () => ({}) },
18
19
  );
19
20
 
20
21
  /**
@@ -27,7 +28,7 @@ export const withKinesisServiceConfig: {
27
28
  } = dual(
28
29
  2,
29
30
  <A, E, R>(effect: Effect.Effect<A, E, R>, config: KinesisService.Config): Effect.Effect<A, E, R> =>
30
- Effect.locally(effect, currentKinesisServiceConfig, config),
31
+ Effect.provideService(effect, currentKinesisServiceConfig, config),
31
32
  );
32
33
 
33
34
  /**
@@ -35,14 +36,14 @@ export const withKinesisServiceConfig: {
35
36
  * @category kinesis service config
36
37
  */
37
38
  export const setKinesisServiceConfig = (config: KinesisService.Config) =>
38
- Layer.locallyScoped(currentKinesisServiceConfig, config);
39
+ Layer.succeed(currentKinesisServiceConfig, config);
39
40
 
40
41
  /**
41
42
  * @since 1.0.0
42
43
  * @category adapters
43
44
  */
44
45
  export const toKinesisClientConfig: Effect.Effect<KinesisClientConfig> = Effect.gen(function*() {
45
- const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentKinesisServiceConfig);
46
+ const { logger: serviceLogger, ...config } = yield* currentKinesisServiceConfig;
46
47
 
47
48
  const logger = serviceLogger === true
48
49
  ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
@@ -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
@@ -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"}
@@ -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
@@ -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"}