@effect-aws/client-sns 1.10.3 → 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.
Files changed (37) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +3 -3
  3. package/dist/dts/SNSClientInstance.d.ts +2 -2
  4. package/dist/dts/SNSClientInstance.d.ts.map +1 -1
  5. package/dist/dts/SNSService.d.ts +44 -46
  6. package/dist/dts/SNSService.d.ts.map +1 -1
  7. package/dist/dts/SNSServiceConfig.d.ts.map +1 -1
  8. package/dist/esm/SNSClientInstance.js +3 -3
  9. package/dist/esm/SNSClientInstance.js.map +1 -1
  10. package/dist/esm/SNSService.js +2 -2
  11. package/dist/esm/SNSService.js.map +1 -1
  12. package/dist/esm/SNSServiceConfig.js +5 -6
  13. package/dist/esm/SNSServiceConfig.js.map +1 -1
  14. package/package.json +8 -14
  15. package/src/SNSClientInstance.ts +4 -4
  16. package/src/SNSService.ts +45 -45
  17. package/src/SNSServiceConfig.ts +6 -7
  18. package/dist/cjs/Errors.d.ts +0 -41
  19. package/dist/cjs/Errors.d.ts.map +0 -1
  20. package/dist/cjs/Errors.js +0 -40
  21. package/dist/cjs/Errors.js.map +0 -1
  22. package/dist/cjs/SNSClientInstance.d.ts +0 -24
  23. package/dist/cjs/SNSClientInstance.d.ts.map +0 -1
  24. package/dist/cjs/SNSClientInstance.js +0 -50
  25. package/dist/cjs/SNSClientInstance.js.map +0 -1
  26. package/dist/cjs/SNSService.d.ts +0 -214
  27. package/dist/cjs/SNSService.d.ts.map +0 -1
  28. package/dist/cjs/SNSService.js +0 -101
  29. package/dist/cjs/SNSService.js.map +0 -1
  30. package/dist/cjs/SNSServiceConfig.d.ts +0 -25
  31. package/dist/cjs/SNSServiceConfig.d.ts.map +0 -1
  32. package/dist/cjs/SNSServiceConfig.js +0 -35
  33. package/dist/cjs/SNSServiceConfig.js.map +0 -1
  34. package/dist/cjs/index.d.ts +0 -44
  35. package/dist/cjs/index.d.ts.map +0 -1
  36. package/dist/cjs/index.js +0 -56
  37. package/dist/cjs/index.js.map +0 -1
package/src/SNSService.ts CHANGED
@@ -134,7 +134,7 @@ import {
134
134
  import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
135
135
  import { Service } from "@effect-aws/commons";
136
136
  import type { Cause } from "effect";
137
- import { Effect, Layer } from "effect";
137
+ import { Effect, Layer, ServiceMap } from "effect";
138
138
  import type {
139
139
  AuthorizationError,
140
140
  BatchEntryIdsNotDistinctError,
@@ -232,7 +232,7 @@ interface SNSService$ {
232
232
  options?: HttpHandlerOptions,
233
233
  ): Effect.Effect<
234
234
  AddPermissionCommandOutput,
235
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
235
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
236
236
  >;
237
237
 
238
238
  /**
@@ -243,7 +243,7 @@ interface SNSService$ {
243
243
  options?: HttpHandlerOptions,
244
244
  ): Effect.Effect<
245
245
  CheckIfPhoneNumberIsOptedOutCommandOutput,
246
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError
246
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError
247
247
  >;
248
248
 
249
249
  /**
@@ -254,7 +254,7 @@ interface SNSService$ {
254
254
  options?: HttpHandlerOptions,
255
255
  ): Effect.Effect<
256
256
  ConfirmSubscriptionCommandOutput,
257
- | Cause.TimeoutException
257
+ | Cause.TimeoutError
258
258
  | SdkError
259
259
  | AuthorizationError
260
260
  | FilterPolicyLimitExceededError
@@ -273,7 +273,7 @@ interface SNSService$ {
273
273
  options?: HttpHandlerOptions,
274
274
  ): Effect.Effect<
275
275
  CreatePlatformApplicationCommandOutput,
276
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError
276
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError
277
277
  >;
278
278
 
279
279
  /**
@@ -284,7 +284,7 @@ interface SNSService$ {
284
284
  options?: HttpHandlerOptions,
285
285
  ): Effect.Effect<
286
286
  CreatePlatformEndpointCommandOutput,
287
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
287
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
288
288
  >;
289
289
 
290
290
  /**
@@ -295,7 +295,7 @@ interface SNSService$ {
295
295
  options?: HttpHandlerOptions,
296
296
  ): Effect.Effect<
297
297
  CreateSMSSandboxPhoneNumberCommandOutput,
298
- | Cause.TimeoutException
298
+ | Cause.TimeoutError
299
299
  | SdkError
300
300
  | AuthorizationError
301
301
  | InternalError
@@ -313,7 +313,7 @@ interface SNSService$ {
313
313
  options?: HttpHandlerOptions,
314
314
  ): Effect.Effect<
315
315
  CreateTopicCommandOutput,
316
- | Cause.TimeoutException
316
+ | Cause.TimeoutError
317
317
  | SdkError
318
318
  | AuthorizationError
319
319
  | ConcurrentAccessError
@@ -334,7 +334,7 @@ interface SNSService$ {
334
334
  options?: HttpHandlerOptions,
335
335
  ): Effect.Effect<
336
336
  DeleteEndpointCommandOutput,
337
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError
337
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError
338
338
  >;
339
339
 
340
340
  /**
@@ -345,7 +345,7 @@ interface SNSService$ {
345
345
  options?: HttpHandlerOptions,
346
346
  ): Effect.Effect<
347
347
  DeletePlatformApplicationCommandOutput,
348
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError
348
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError
349
349
  >;
350
350
 
351
351
  /**
@@ -356,7 +356,7 @@ interface SNSService$ {
356
356
  options?: HttpHandlerOptions,
357
357
  ): Effect.Effect<
358
358
  DeleteSMSSandboxPhoneNumberCommandOutput,
359
- | Cause.TimeoutException
359
+ | Cause.TimeoutError
360
360
  | SdkError
361
361
  | AuthorizationError
362
362
  | InternalError
@@ -374,7 +374,7 @@ interface SNSService$ {
374
374
  options?: HttpHandlerOptions,
375
375
  ): Effect.Effect<
376
376
  DeleteTopicCommandOutput,
377
- | Cause.TimeoutException
377
+ | Cause.TimeoutError
378
378
  | SdkError
379
379
  | AuthorizationError
380
380
  | ConcurrentAccessError
@@ -394,7 +394,7 @@ interface SNSService$ {
394
394
  options?: HttpHandlerOptions,
395
395
  ): Effect.Effect<
396
396
  GetDataProtectionPolicyCommandOutput,
397
- | Cause.TimeoutException
397
+ | Cause.TimeoutError
398
398
  | SdkError
399
399
  | AuthorizationError
400
400
  | InternalError
@@ -411,7 +411,7 @@ interface SNSService$ {
411
411
  options?: HttpHandlerOptions,
412
412
  ): Effect.Effect<
413
413
  GetEndpointAttributesCommandOutput,
414
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
414
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
415
415
  >;
416
416
 
417
417
  /**
@@ -422,7 +422,7 @@ interface SNSService$ {
422
422
  options?: HttpHandlerOptions,
423
423
  ): Effect.Effect<
424
424
  GetPlatformApplicationAttributesCommandOutput,
425
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
425
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
426
426
  >;
427
427
 
428
428
  /**
@@ -433,7 +433,7 @@ interface SNSService$ {
433
433
  options?: HttpHandlerOptions,
434
434
  ): Effect.Effect<
435
435
  GetSMSAttributesCommandOutput,
436
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError
436
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError
437
437
  >;
438
438
 
439
439
  /**
@@ -444,7 +444,7 @@ interface SNSService$ {
444
444
  options?: HttpHandlerOptions,
445
445
  ): Effect.Effect<
446
446
  GetSMSSandboxAccountStatusCommandOutput,
447
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | ThrottledError
447
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | ThrottledError
448
448
  >;
449
449
 
450
450
  /**
@@ -455,7 +455,7 @@ interface SNSService$ {
455
455
  options?: HttpHandlerOptions,
456
456
  ): Effect.Effect<
457
457
  GetSubscriptionAttributesCommandOutput,
458
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
458
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
459
459
  >;
460
460
 
461
461
  /**
@@ -466,7 +466,7 @@ interface SNSService$ {
466
466
  options?: HttpHandlerOptions,
467
467
  ): Effect.Effect<
468
468
  GetTopicAttributesCommandOutput,
469
- | Cause.TimeoutException
469
+ | Cause.TimeoutError
470
470
  | SdkError
471
471
  | AuthorizationError
472
472
  | InternalError
@@ -483,7 +483,7 @@ interface SNSService$ {
483
483
  options?: HttpHandlerOptions,
484
484
  ): Effect.Effect<
485
485
  ListEndpointsByPlatformApplicationCommandOutput,
486
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
486
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
487
487
  >;
488
488
 
489
489
  /**
@@ -494,7 +494,7 @@ interface SNSService$ {
494
494
  options?: HttpHandlerOptions,
495
495
  ): Effect.Effect<
496
496
  ListOriginationNumbersCommandOutput,
497
- | Cause.TimeoutException
497
+ | Cause.TimeoutError
498
498
  | SdkError
499
499
  | AuthorizationError
500
500
  | InternalError
@@ -511,7 +511,7 @@ interface SNSService$ {
511
511
  options?: HttpHandlerOptions,
512
512
  ): Effect.Effect<
513
513
  ListPhoneNumbersOptedOutCommandOutput,
514
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError
514
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError
515
515
  >;
516
516
 
517
517
  /**
@@ -522,7 +522,7 @@ interface SNSService$ {
522
522
  options?: HttpHandlerOptions,
523
523
  ): Effect.Effect<
524
524
  ListPlatformApplicationsCommandOutput,
525
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError
525
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError
526
526
  >;
527
527
 
528
528
  /**
@@ -533,7 +533,7 @@ interface SNSService$ {
533
533
  options?: HttpHandlerOptions,
534
534
  ): Effect.Effect<
535
535
  ListSMSSandboxPhoneNumbersCommandOutput,
536
- | Cause.TimeoutException
536
+ | Cause.TimeoutError
537
537
  | SdkError
538
538
  | AuthorizationError
539
539
  | InternalError
@@ -550,7 +550,7 @@ interface SNSService$ {
550
550
  options?: HttpHandlerOptions,
551
551
  ): Effect.Effect<
552
552
  ListSubscriptionsCommandOutput,
553
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError
553
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError
554
554
  >;
555
555
 
556
556
  /**
@@ -561,7 +561,7 @@ interface SNSService$ {
561
561
  options?: HttpHandlerOptions,
562
562
  ): Effect.Effect<
563
563
  ListSubscriptionsByTopicCommandOutput,
564
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
564
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
565
565
  >;
566
566
 
567
567
  /**
@@ -572,7 +572,7 @@ interface SNSService$ {
572
572
  options?: HttpHandlerOptions,
573
573
  ): Effect.Effect<
574
574
  ListTagsForResourceCommandOutput,
575
- | Cause.TimeoutException
575
+ | Cause.TimeoutError
576
576
  | SdkError
577
577
  | AuthorizationError
578
578
  | ConcurrentAccessError
@@ -589,7 +589,7 @@ interface SNSService$ {
589
589
  options?: HttpHandlerOptions,
590
590
  ): Effect.Effect<
591
591
  ListTopicsCommandOutput,
592
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError
592
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError
593
593
  >;
594
594
 
595
595
  /**
@@ -600,7 +600,7 @@ interface SNSService$ {
600
600
  options?: HttpHandlerOptions,
601
601
  ): Effect.Effect<
602
602
  OptInPhoneNumberCommandOutput,
603
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError
603
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError
604
604
  >;
605
605
 
606
606
  /**
@@ -611,7 +611,7 @@ interface SNSService$ {
611
611
  options?: HttpHandlerOptions,
612
612
  ): Effect.Effect<
613
613
  PublishCommandOutput,
614
- | Cause.TimeoutException
614
+ | Cause.TimeoutError
615
615
  | SdkError
616
616
  | AuthorizationError
617
617
  | EndpointDisabledError
@@ -638,7 +638,7 @@ interface SNSService$ {
638
638
  options?: HttpHandlerOptions,
639
639
  ): Effect.Effect<
640
640
  PublishBatchCommandOutput,
641
- | Cause.TimeoutException
641
+ | Cause.TimeoutError
642
642
  | SdkError
643
643
  | AuthorizationError
644
644
  | BatchEntryIdsNotDistinctError
@@ -670,7 +670,7 @@ interface SNSService$ {
670
670
  options?: HttpHandlerOptions,
671
671
  ): Effect.Effect<
672
672
  PutDataProtectionPolicyCommandOutput,
673
- | Cause.TimeoutException
673
+ | Cause.TimeoutError
674
674
  | SdkError
675
675
  | AuthorizationError
676
676
  | InternalError
@@ -687,7 +687,7 @@ interface SNSService$ {
687
687
  options?: HttpHandlerOptions,
688
688
  ): Effect.Effect<
689
689
  RemovePermissionCommandOutput,
690
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
690
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
691
691
  >;
692
692
 
693
693
  /**
@@ -698,7 +698,7 @@ interface SNSService$ {
698
698
  options?: HttpHandlerOptions,
699
699
  ): Effect.Effect<
700
700
  SetEndpointAttributesCommandOutput,
701
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
701
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
702
702
  >;
703
703
 
704
704
  /**
@@ -709,7 +709,7 @@ interface SNSService$ {
709
709
  options?: HttpHandlerOptions,
710
710
  ): Effect.Effect<
711
711
  SetPlatformApplicationAttributesCommandOutput,
712
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
712
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | NotFoundError
713
713
  >;
714
714
 
715
715
  /**
@@ -720,7 +720,7 @@ interface SNSService$ {
720
720
  options?: HttpHandlerOptions,
721
721
  ): Effect.Effect<
722
722
  SetSMSAttributesCommandOutput,
723
- Cause.TimeoutException | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError
723
+ Cause.TimeoutError | SdkError | AuthorizationError | InternalError | InvalidParameterError | ThrottledError
724
724
  >;
725
725
 
726
726
  /**
@@ -731,7 +731,7 @@ interface SNSService$ {
731
731
  options?: HttpHandlerOptions,
732
732
  ): Effect.Effect<
733
733
  SetSubscriptionAttributesCommandOutput,
734
- | Cause.TimeoutException
734
+ | Cause.TimeoutError
735
735
  | SdkError
736
736
  | AuthorizationError
737
737
  | FilterPolicyLimitExceededError
@@ -749,7 +749,7 @@ interface SNSService$ {
749
749
  options?: HttpHandlerOptions,
750
750
  ): Effect.Effect<
751
751
  SetTopicAttributesCommandOutput,
752
- | Cause.TimeoutException
752
+ | Cause.TimeoutError
753
753
  | SdkError
754
754
  | AuthorizationError
755
755
  | InternalError
@@ -766,7 +766,7 @@ interface SNSService$ {
766
766
  options?: HttpHandlerOptions,
767
767
  ): Effect.Effect<
768
768
  SubscribeCommandOutput,
769
- | Cause.TimeoutException
769
+ | Cause.TimeoutError
770
770
  | SdkError
771
771
  | AuthorizationError
772
772
  | FilterPolicyLimitExceededError
@@ -786,7 +786,7 @@ interface SNSService$ {
786
786
  options?: HttpHandlerOptions,
787
787
  ): Effect.Effect<
788
788
  TagResourceCommandOutput,
789
- | Cause.TimeoutException
789
+ | Cause.TimeoutError
790
790
  | SdkError
791
791
  | AuthorizationError
792
792
  | ConcurrentAccessError
@@ -805,7 +805,7 @@ interface SNSService$ {
805
805
  options?: HttpHandlerOptions,
806
806
  ): Effect.Effect<
807
807
  UnsubscribeCommandOutput,
808
- | Cause.TimeoutException
808
+ | Cause.TimeoutError
809
809
  | SdkError
810
810
  | AuthorizationError
811
811
  | InternalError
@@ -822,7 +822,7 @@ interface SNSService$ {
822
822
  options?: HttpHandlerOptions,
823
823
  ): Effect.Effect<
824
824
  UntagResourceCommandOutput,
825
- | Cause.TimeoutException
825
+ | Cause.TimeoutError
826
826
  | SdkError
827
827
  | AuthorizationError
828
828
  | ConcurrentAccessError
@@ -841,7 +841,7 @@ interface SNSService$ {
841
841
  options?: HttpHandlerOptions,
842
842
  ): Effect.Effect<
843
843
  VerifySMSSandboxPhoneNumberCommandOutput,
844
- | Cause.TimeoutException
844
+ | Cause.TimeoutError
845
845
  | SdkError
846
846
  | AuthorizationError
847
847
  | InternalError
@@ -873,10 +873,10 @@ export const makeSNSService = Effect.gen(function*() {
873
873
  * @since 1.0.0
874
874
  * @category models
875
875
  */
876
- export class SNSService extends Effect.Tag("@effect-aws/client-sns/SNSService")<
876
+ export class SNSService extends ServiceMap.Service<
877
877
  SNSService,
878
878
  SNSService$
879
- >() {
879
+ >()("@effect-aws/client-sns/SNSService") {
880
880
  static readonly defaultLayer = Layer.effect(this, makeSNSService).pipe(Layer.provide(Instance.layer));
881
881
  static readonly layer = (config: SNSService.Config) =>
882
882
  Layer.effect(this, makeSNSService).pipe(
@@ -3,18 +3,17 @@
3
3
  */
4
4
  import type { SNSClientConfig } from "@aws-sdk/client-sns";
5
5
  import { ServiceLogger } from "@effect-aws/commons";
6
- import { Effect, FiberRef, Layer } from "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 { SNSService } from "./SNSService.js";
10
9
 
11
10
  /**
12
11
  * @since 1.0.0
13
12
  * @category sns service config
14
13
  */
15
- const currentSNSServiceConfig = globalValue(
14
+ const currentSNSServiceConfig = ServiceMap.Reference<SNSService.Config>(
16
15
  "@effect-aws/client-sns/currentSNSServiceConfig",
17
- () => FiberRef.unsafeMake<SNSService.Config>({}),
16
+ { defaultValue: () => ({}) },
18
17
  );
19
18
 
20
19
  /**
@@ -27,21 +26,21 @@ export const withSNSServiceConfig: {
27
26
  } = dual(
28
27
  2,
29
28
  <A, E, R>(effect: Effect.Effect<A, E, R>, config: SNSService.Config): Effect.Effect<A, E, R> =>
30
- Effect.locally(effect, currentSNSServiceConfig, config),
29
+ Effect.provideService(effect, currentSNSServiceConfig, config),
31
30
  );
32
31
 
33
32
  /**
34
33
  * @since 1.0.0
35
34
  * @category sns service config
36
35
  */
37
- export const setSNSServiceConfig = (config: SNSService.Config) => Layer.locallyScoped(currentSNSServiceConfig, config);
36
+ export const setSNSServiceConfig = (config: SNSService.Config) => Layer.succeed(currentSNSServiceConfig, config);
38
37
 
39
38
  /**
40
39
  * @since 1.0.0
41
40
  * @category adapters
42
41
  */
43
42
  export const toSNSClientConfig: Effect.Effect<SNSClientConfig> = Effect.gen(function*() {
44
- const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentSNSServiceConfig);
43
+ const { logger: serviceLogger, ...config } = yield* currentSNSServiceConfig;
45
44
 
46
45
  const logger = serviceLogger === true
47
46
  ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)
@@ -1,41 +0,0 @@
1
- import type { AuthorizationErrorException, BatchEntryIdsNotDistinctException, BatchRequestTooLongException, ConcurrentAccessException, EmptyBatchRequestException, EndpointDisabledException, FilterPolicyLimitExceededException, InternalErrorException, InvalidBatchEntryIdException, InvalidParameterException, InvalidParameterValueException, InvalidSecurityException, InvalidStateException, KMSAccessDeniedException, KMSDisabledException, KMSInvalidStateException, KMSNotFoundException, KMSOptInRequired, KMSThrottlingException, NotFoundException, OptedOutException, PlatformApplicationDisabledException, ReplayLimitExceededException, ResourceNotFoundException, StaleTagException, SubscriptionLimitExceededException, TagLimitExceededException, TagPolicyException, ThrottledException, TooManyEntriesInBatchRequestException, TopicLimitExceededException, UserErrorException, ValidationException, VerificationException } from "@aws-sdk/client-sns";
2
- import type { TaggedException } from "@effect-aws/commons";
3
- export declare const AllServiceErrors: readonly ["AuthorizationErrorException", "BatchEntryIdsNotDistinctException", "BatchRequestTooLongException", "ConcurrentAccessException", "EmptyBatchRequestException", "EndpointDisabledException", "FilterPolicyLimitExceededException", "InternalErrorException", "InvalidBatchEntryIdException", "InvalidParameterException", "InvalidParameterValueException", "InvalidSecurityException", "InvalidStateException", "KMSAccessDeniedException", "KMSDisabledException", "KMSInvalidStateException", "KMSNotFoundException", "KMSOptInRequired", "KMSThrottlingException", "NotFoundException", "OptedOutException", "PlatformApplicationDisabledException", "ReplayLimitExceededException", "ResourceNotFoundException", "StaleTagException", "SubscriptionLimitExceededException", "TagLimitExceededException", "TagPolicyException", "ThrottledException", "TooManyEntriesInBatchRequestException", "TopicLimitExceededException", "UserErrorException", "ValidationException", "VerificationException"];
4
- export type AuthorizationError = TaggedException<AuthorizationErrorException>;
5
- export type BatchEntryIdsNotDistinctError = TaggedException<BatchEntryIdsNotDistinctException>;
6
- export type BatchRequestTooLongError = TaggedException<BatchRequestTooLongException>;
7
- export type ConcurrentAccessError = TaggedException<ConcurrentAccessException>;
8
- export type EmptyBatchRequestError = TaggedException<EmptyBatchRequestException>;
9
- export type EndpointDisabledError = TaggedException<EndpointDisabledException>;
10
- export type FilterPolicyLimitExceededError = TaggedException<FilterPolicyLimitExceededException>;
11
- export type InternalError = TaggedException<InternalErrorException>;
12
- export type InvalidBatchEntryIdError = TaggedException<InvalidBatchEntryIdException>;
13
- export type InvalidParameterError = TaggedException<InvalidParameterException>;
14
- export type InvalidParameterValueError = TaggedException<InvalidParameterValueException>;
15
- export type InvalidSecurityError = TaggedException<InvalidSecurityException>;
16
- export type InvalidStateError = TaggedException<InvalidStateException>;
17
- export type KMSAccessDeniedError = TaggedException<KMSAccessDeniedException>;
18
- export type KMSDisabledError = TaggedException<KMSDisabledException>;
19
- export type KMSInvalidStateError = TaggedException<KMSInvalidStateException>;
20
- export type KMSNotFoundError = TaggedException<KMSNotFoundException>;
21
- export type KMSOptInRequiredError = TaggedException<KMSOptInRequired>;
22
- export type KMSThrottlingError = TaggedException<KMSThrottlingException>;
23
- export type NotFoundError = TaggedException<NotFoundException>;
24
- export type OptedOutError = TaggedException<OptedOutException>;
25
- export type PlatformApplicationDisabledError = TaggedException<PlatformApplicationDisabledException>;
26
- export type ReplayLimitExceededError = TaggedException<ReplayLimitExceededException>;
27
- export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
28
- export type StaleTagError = TaggedException<StaleTagException>;
29
- export type SubscriptionLimitExceededError = TaggedException<SubscriptionLimitExceededException>;
30
- export type TagLimitExceededError = TaggedException<TagLimitExceededException>;
31
- export type TagPolicyError = TaggedException<TagPolicyException>;
32
- export type ThrottledError = TaggedException<ThrottledException>;
33
- export type TooManyEntriesInBatchRequestError = TaggedException<TooManyEntriesInBatchRequestException>;
34
- export type TopicLimitExceededError = TaggedException<TopicLimitExceededException>;
35
- export type UserError = TaggedException<UserErrorException>;
36
- export type ValidationError = TaggedException<ValidationException>;
37
- export type VerificationError = TaggedException<VerificationException>;
38
- export type SdkError = TaggedException<Error & {
39
- name: "SdkError";
40
- }>;
41
- //# 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,2BAA2B,EAC3B,iCAAiC,EACjC,4BAA4B,EAC5B,yBAAyB,EACzB,0BAA0B,EAC1B,yBAAyB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AAC,qCAAqC,CAAC,CAAC;AACvG,MAAM,MAAM,uBAAuB,GAAG,eAAe,CAAC,2BAA2B,CAAC,CAAC;AACnF,MAAM,MAAM,SAAS,GAAG,eAAe,CAAC,kBAAkB,CAAC,CAAC;AAC5D,MAAM,MAAM,eAAe,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AACnE,MAAM,MAAM,iBAAiB,GAAG,eAAe,CAAC,qBAAqB,CAAC,CAAC;AACvE,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAC,KAAK,GAAG;IAAE,IAAI,EAAE,UAAU,CAAA;CAAE,CAAC,CAAC"}
@@ -1,40 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AllServiceErrors = void 0;
4
- exports.AllServiceErrors = [
5
- "AuthorizationErrorException",
6
- "BatchEntryIdsNotDistinctException",
7
- "BatchRequestTooLongException",
8
- "ConcurrentAccessException",
9
- "EmptyBatchRequestException",
10
- "EndpointDisabledException",
11
- "FilterPolicyLimitExceededException",
12
- "InternalErrorException",
13
- "InvalidBatchEntryIdException",
14
- "InvalidParameterException",
15
- "InvalidParameterValueException",
16
- "InvalidSecurityException",
17
- "InvalidStateException",
18
- "KMSAccessDeniedException",
19
- "KMSDisabledException",
20
- "KMSInvalidStateException",
21
- "KMSNotFoundException",
22
- "KMSOptInRequired",
23
- "KMSThrottlingException",
24
- "NotFoundException",
25
- "OptedOutException",
26
- "PlatformApplicationDisabledException",
27
- "ReplayLimitExceededException",
28
- "ResourceNotFoundException",
29
- "StaleTagException",
30
- "SubscriptionLimitExceededException",
31
- "TagLimitExceededException",
32
- "TagPolicyException",
33
- "ThrottledException",
34
- "TooManyEntriesInBatchRequestException",
35
- "TopicLimitExceededException",
36
- "UserErrorException",
37
- "ValidationException",
38
- "VerificationException",
39
- ];
40
- //# sourceMappingURL=Errors.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Errors.js","sourceRoot":"","sources":["../../src/Errors.ts"],"names":[],"mappings":";;;AAsCa,QAAA,gBAAgB,GAAG;IAC9B,6BAA6B;IAC7B,mCAAmC;IACnC,8BAA8B;IAC9B,2BAA2B;IAC3B,4BAA4B;IAC5B,2BAA2B;IAC3B,oCAAoC;IACpC,wBAAwB;IACxB,8BAA8B;IAC9B,2BAA2B;IAC3B,gCAAgC;IAChC,0BAA0B;IAC1B,uBAAuB;IACvB,0BAA0B;IAC1B,sBAAsB;IACtB,0BAA0B;IAC1B,sBAAsB;IACtB,kBAAkB;IAClB,wBAAwB;IACxB,mBAAmB;IACnB,mBAAmB;IACnB,sCAAsC;IACtC,8BAA8B;IAC9B,2BAA2B;IAC3B,mBAAmB;IACnB,oCAAoC;IACpC,2BAA2B;IAC3B,oBAAoB;IACpB,oBAAoB;IACpB,uCAAuC;IACvC,6BAA6B;IAC7B,oBAAoB;IACpB,qBAAqB;IACrB,uBAAuB;CACf,CAAC"}
@@ -1,24 +0,0 @@
1
- /**
2
- * @since 1.0.0
3
- */
4
- import { SNSClient } from "@aws-sdk/client-sns";
5
- import { Context, Effect, Layer } from "effect";
6
- declare const SNSClientInstance_base: Context.TagClass<SNSClientInstance, "@effect-aws/client-sns/SNSClientInstance", SNSClient>;
7
- /**
8
- * @since 1.0.0
9
- * @category tags
10
- */
11
- export declare class SNSClientInstance extends SNSClientInstance_base {
12
- }
13
- /**
14
- * @since 1.0.0
15
- * @category constructors
16
- */
17
- export declare const make: Effect.Effect<SNSClient, never, import("effect/Scope").Scope>;
18
- /**
19
- * @since 1.0.0
20
- * @category layers
21
- */
22
- export declare const layer: Layer.Layer<SNSClientInstance, never, never>;
23
- export {};
24
- //# sourceMappingURL=SNSClientInstance.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SNSClientInstance.d.ts","sourceRoot":"","sources":["../../src/SNSClientInstance.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,SAAS,EAAE,MAAM,qBAAqB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,QAAQ,CAAC;;AAGhD;;;GAGG;AACH,qBAAa,iBAAkB,SAAQ,sBAEN;CAAG;AAEpC;;;GAGG;AACH,eAAO,MAAM,IAAI,+DAOhB,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,KAAK,8CAAwC,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.SNSClientInstance = void 0;
27
- /**
28
- * @since 1.0.0
29
- */
30
- const client_sns_1 = require("@aws-sdk/client-sns");
31
- const effect_1 = require("effect");
32
- const SNSServiceConfig = __importStar(require("./SNSServiceConfig.js"));
33
- /**
34
- * @since 1.0.0
35
- * @category tags
36
- */
37
- class SNSClientInstance extends effect_1.Context.Tag("@effect-aws/client-sns/SNSClientInstance")() {
38
- }
39
- exports.SNSClientInstance = SNSClientInstance;
40
- /**
41
- * @since 1.0.0
42
- * @category constructors
43
- */
44
- exports.make = effect_1.Effect.flatMap(SNSServiceConfig.toSNSClientConfig, (config) => effect_1.Effect.acquireRelease(effect_1.Effect.sync(() => new client_sns_1.SNSClient(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(SNSClientInstance, exports.make);
50
- //# sourceMappingURL=SNSClientInstance.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SNSClientInstance.js","sourceRoot":"","sources":["../../src/SNSClientInstance.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;;GAEG;AACH,oDAAgD;AAChD,mCAAgD;AAChD,wEAA0D;AAE1D;;;GAGG;AACH,MAAa,iBAAkB,SAAQ,gBAAO,CAAC,GAAG,CAChD,0CAA0C,CAC3C,EAAgC;CAAG;AAFpC,8CAEoC;AAEpC;;;GAGG;AACU,QAAA,IAAI,GAAG,eAAM,CAAC,OAAO,CAChC,gBAAgB,CAAC,iBAAiB,EAClC,CAAC,MAAM,EAAE,EAAE,CACT,eAAM,CAAC,cAAc,CACnB,eAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,IAAI,sBAAS,CAAC,MAAM,CAAC,CAAC,EACxC,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,iBAAiB,EAAE,YAAI,CAAC,CAAC"}