@effect-aws/client-ses 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/SESClientInstance.d.ts +2 -2
  4. package/dist/dts/SESClientInstance.d.ts.map +1 -1
  5. package/dist/dts/SESService.d.ts +73 -75
  6. package/dist/dts/SESService.d.ts.map +1 -1
  7. package/dist/dts/SESServiceConfig.d.ts.map +1 -1
  8. package/dist/esm/SESClientInstance.js +3 -3
  9. package/dist/esm/SESClientInstance.js.map +1 -1
  10. package/dist/esm/SESService.js +2 -2
  11. package/dist/esm/SESService.js.map +1 -1
  12. package/dist/esm/SESServiceConfig.js +5 -6
  13. package/dist/esm/SESServiceConfig.js.map +1 -1
  14. package/package.json +8 -14
  15. package/src/SESClientInstance.ts +4 -4
  16. package/src/SESService.ts +74 -74
  17. package/src/SESServiceConfig.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/SESClientInstance.d.ts +0 -24
  23. package/dist/cjs/SESClientInstance.d.ts.map +0 -1
  24. package/dist/cjs/SESClientInstance.js +0 -50
  25. package/dist/cjs/SESClientInstance.js.map +0 -1
  26. package/dist/cjs/SESService.d.ts +0 -330
  27. package/dist/cjs/SESService.d.ts.map +0 -1
  28. package/dist/cjs/SESService.js +0 -130
  29. package/dist/cjs/SESService.js.map +0 -1
  30. package/dist/cjs/SESServiceConfig.d.ts +0 -25
  31. package/dist/cjs/SESServiceConfig.d.ts.map +0 -1
  32. package/dist/cjs/SESServiceConfig.js +0 -35
  33. package/dist/cjs/SESServiceConfig.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/SESService.ts CHANGED
@@ -221,7 +221,7 @@ import {
221
221
  import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
222
222
  import { Service } from "@effect-aws/commons";
223
223
  import type { Cause } from "effect";
224
- import { Effect, Layer } from "effect";
224
+ import { Effect, Layer, ServiceMap } from "effect";
225
225
  import type {
226
226
  AccountSendingPausedError,
227
227
  AlreadyExistsError,
@@ -348,7 +348,7 @@ interface SESService$ {
348
348
  options?: HttpHandlerOptions,
349
349
  ): Effect.Effect<
350
350
  CloneReceiptRuleSetCommandOutput,
351
- Cause.TimeoutException | SdkError | AlreadyExistsError | LimitExceededError | RuleSetDoesNotExistError
351
+ Cause.TimeoutError | SdkError | AlreadyExistsError | LimitExceededError | RuleSetDoesNotExistError
352
352
  >;
353
353
 
354
354
  /**
@@ -359,7 +359,7 @@ interface SESService$ {
359
359
  options?: HttpHandlerOptions,
360
360
  ): Effect.Effect<
361
361
  CreateConfigurationSetCommandOutput,
362
- | Cause.TimeoutException
362
+ | Cause.TimeoutError
363
363
  | SdkError
364
364
  | ConfigurationSetAlreadyExistsError
365
365
  | InvalidConfigurationSetError
@@ -374,7 +374,7 @@ interface SESService$ {
374
374
  options?: HttpHandlerOptions,
375
375
  ): Effect.Effect<
376
376
  CreateConfigurationSetEventDestinationCommandOutput,
377
- | Cause.TimeoutException
377
+ | Cause.TimeoutError
378
378
  | SdkError
379
379
  | ConfigurationSetDoesNotExistError
380
380
  | EventDestinationAlreadyExistsError
@@ -392,7 +392,7 @@ interface SESService$ {
392
392
  options?: HttpHandlerOptions,
393
393
  ): Effect.Effect<
394
394
  CreateConfigurationSetTrackingOptionsCommandOutput,
395
- | Cause.TimeoutException
395
+ | Cause.TimeoutError
396
396
  | SdkError
397
397
  | ConfigurationSetDoesNotExistError
398
398
  | InvalidTrackingOptionsError
@@ -407,7 +407,7 @@ interface SESService$ {
407
407
  options?: HttpHandlerOptions,
408
408
  ): Effect.Effect<
409
409
  CreateCustomVerificationEmailTemplateCommandOutput,
410
- | Cause.TimeoutException
410
+ | Cause.TimeoutError
411
411
  | SdkError
412
412
  | CustomVerificationEmailInvalidContentError
413
413
  | CustomVerificationEmailTemplateAlreadyExistsError
@@ -423,7 +423,7 @@ interface SESService$ {
423
423
  options?: HttpHandlerOptions,
424
424
  ): Effect.Effect<
425
425
  CreateReceiptFilterCommandOutput,
426
- Cause.TimeoutException | SdkError | AlreadyExistsError | LimitExceededError
426
+ Cause.TimeoutError | SdkError | AlreadyExistsError | LimitExceededError
427
427
  >;
428
428
 
429
429
  /**
@@ -434,7 +434,7 @@ interface SESService$ {
434
434
  options?: HttpHandlerOptions,
435
435
  ): Effect.Effect<
436
436
  CreateReceiptRuleCommandOutput,
437
- | Cause.TimeoutException
437
+ | Cause.TimeoutError
438
438
  | SdkError
439
439
  | AlreadyExistsError
440
440
  | InvalidLambdaFunctionError
@@ -453,7 +453,7 @@ interface SESService$ {
453
453
  options?: HttpHandlerOptions,
454
454
  ): Effect.Effect<
455
455
  CreateReceiptRuleSetCommandOutput,
456
- Cause.TimeoutException | SdkError | AlreadyExistsError | LimitExceededError
456
+ Cause.TimeoutError | SdkError | AlreadyExistsError | LimitExceededError
457
457
  >;
458
458
 
459
459
  /**
@@ -464,7 +464,7 @@ interface SESService$ {
464
464
  options?: HttpHandlerOptions,
465
465
  ): Effect.Effect<
466
466
  CreateTemplateCommandOutput,
467
- Cause.TimeoutException | SdkError | AlreadyExistsError | InvalidTemplateError | LimitExceededError
467
+ Cause.TimeoutError | SdkError | AlreadyExistsError | InvalidTemplateError | LimitExceededError
468
468
  >;
469
469
 
470
470
  /**
@@ -475,7 +475,7 @@ interface SESService$ {
475
475
  options?: HttpHandlerOptions,
476
476
  ): Effect.Effect<
477
477
  DeleteConfigurationSetCommandOutput,
478
- Cause.TimeoutException | SdkError | ConfigurationSetDoesNotExistError
478
+ Cause.TimeoutError | SdkError | ConfigurationSetDoesNotExistError
479
479
  >;
480
480
 
481
481
  /**
@@ -486,7 +486,7 @@ interface SESService$ {
486
486
  options?: HttpHandlerOptions,
487
487
  ): Effect.Effect<
488
488
  DeleteConfigurationSetEventDestinationCommandOutput,
489
- Cause.TimeoutException | SdkError | ConfigurationSetDoesNotExistError | EventDestinationDoesNotExistError
489
+ Cause.TimeoutError | SdkError | ConfigurationSetDoesNotExistError | EventDestinationDoesNotExistError
490
490
  >;
491
491
 
492
492
  /**
@@ -497,7 +497,7 @@ interface SESService$ {
497
497
  options?: HttpHandlerOptions,
498
498
  ): Effect.Effect<
499
499
  DeleteConfigurationSetTrackingOptionsCommandOutput,
500
- Cause.TimeoutException | SdkError | ConfigurationSetDoesNotExistError | TrackingOptionsDoesNotExistError
500
+ Cause.TimeoutError | SdkError | ConfigurationSetDoesNotExistError | TrackingOptionsDoesNotExistError
501
501
  >;
502
502
 
503
503
  /**
@@ -508,7 +508,7 @@ interface SESService$ {
508
508
  options?: HttpHandlerOptions,
509
509
  ): Effect.Effect<
510
510
  DeleteCustomVerificationEmailTemplateCommandOutput,
511
- Cause.TimeoutException | SdkError
511
+ Cause.TimeoutError | SdkError
512
512
  >;
513
513
 
514
514
  /**
@@ -519,7 +519,7 @@ interface SESService$ {
519
519
  options?: HttpHandlerOptions,
520
520
  ): Effect.Effect<
521
521
  DeleteIdentityCommandOutput,
522
- Cause.TimeoutException | SdkError
522
+ Cause.TimeoutError | SdkError
523
523
  >;
524
524
 
525
525
  /**
@@ -530,7 +530,7 @@ interface SESService$ {
530
530
  options?: HttpHandlerOptions,
531
531
  ): Effect.Effect<
532
532
  DeleteIdentityPolicyCommandOutput,
533
- Cause.TimeoutException | SdkError
533
+ Cause.TimeoutError | SdkError
534
534
  >;
535
535
 
536
536
  /**
@@ -541,7 +541,7 @@ interface SESService$ {
541
541
  options?: HttpHandlerOptions,
542
542
  ): Effect.Effect<
543
543
  DeleteReceiptFilterCommandOutput,
544
- Cause.TimeoutException | SdkError
544
+ Cause.TimeoutError | SdkError
545
545
  >;
546
546
 
547
547
  /**
@@ -552,7 +552,7 @@ interface SESService$ {
552
552
  options?: HttpHandlerOptions,
553
553
  ): Effect.Effect<
554
554
  DeleteReceiptRuleCommandOutput,
555
- Cause.TimeoutException | SdkError | RuleSetDoesNotExistError
555
+ Cause.TimeoutError | SdkError | RuleSetDoesNotExistError
556
556
  >;
557
557
 
558
558
  /**
@@ -563,7 +563,7 @@ interface SESService$ {
563
563
  options?: HttpHandlerOptions,
564
564
  ): Effect.Effect<
565
565
  DeleteReceiptRuleSetCommandOutput,
566
- Cause.TimeoutException | SdkError | CannotDeleteError
566
+ Cause.TimeoutError | SdkError | CannotDeleteError
567
567
  >;
568
568
 
569
569
  /**
@@ -574,7 +574,7 @@ interface SESService$ {
574
574
  options?: HttpHandlerOptions,
575
575
  ): Effect.Effect<
576
576
  DeleteTemplateCommandOutput,
577
- Cause.TimeoutException | SdkError
577
+ Cause.TimeoutError | SdkError
578
578
  >;
579
579
 
580
580
  /**
@@ -585,7 +585,7 @@ interface SESService$ {
585
585
  options?: HttpHandlerOptions,
586
586
  ): Effect.Effect<
587
587
  DeleteVerifiedEmailAddressCommandOutput,
588
- Cause.TimeoutException | SdkError
588
+ Cause.TimeoutError | SdkError
589
589
  >;
590
590
 
591
591
  /**
@@ -596,7 +596,7 @@ interface SESService$ {
596
596
  options?: HttpHandlerOptions,
597
597
  ): Effect.Effect<
598
598
  DescribeActiveReceiptRuleSetCommandOutput,
599
- Cause.TimeoutException | SdkError
599
+ Cause.TimeoutError | SdkError
600
600
  >;
601
601
 
602
602
  /**
@@ -607,7 +607,7 @@ interface SESService$ {
607
607
  options?: HttpHandlerOptions,
608
608
  ): Effect.Effect<
609
609
  DescribeConfigurationSetCommandOutput,
610
- Cause.TimeoutException | SdkError | ConfigurationSetDoesNotExistError
610
+ Cause.TimeoutError | SdkError | ConfigurationSetDoesNotExistError
611
611
  >;
612
612
 
613
613
  /**
@@ -618,7 +618,7 @@ interface SESService$ {
618
618
  options?: HttpHandlerOptions,
619
619
  ): Effect.Effect<
620
620
  DescribeReceiptRuleCommandOutput,
621
- Cause.TimeoutException | SdkError | RuleDoesNotExistError | RuleSetDoesNotExistError
621
+ Cause.TimeoutError | SdkError | RuleDoesNotExistError | RuleSetDoesNotExistError
622
622
  >;
623
623
 
624
624
  /**
@@ -629,7 +629,7 @@ interface SESService$ {
629
629
  options?: HttpHandlerOptions,
630
630
  ): Effect.Effect<
631
631
  DescribeReceiptRuleSetCommandOutput,
632
- Cause.TimeoutException | SdkError | RuleSetDoesNotExistError
632
+ Cause.TimeoutError | SdkError | RuleSetDoesNotExistError
633
633
  >;
634
634
 
635
635
  /**
@@ -640,7 +640,7 @@ interface SESService$ {
640
640
  options?: HttpHandlerOptions,
641
641
  ): Effect.Effect<
642
642
  GetAccountSendingEnabledCommandOutput,
643
- Cause.TimeoutException | SdkError
643
+ Cause.TimeoutError | SdkError
644
644
  >;
645
645
 
646
646
  /**
@@ -651,7 +651,7 @@ interface SESService$ {
651
651
  options?: HttpHandlerOptions,
652
652
  ): Effect.Effect<
653
653
  GetCustomVerificationEmailTemplateCommandOutput,
654
- Cause.TimeoutException | SdkError | CustomVerificationEmailTemplateDoesNotExistError
654
+ Cause.TimeoutError | SdkError | CustomVerificationEmailTemplateDoesNotExistError
655
655
  >;
656
656
 
657
657
  /**
@@ -662,7 +662,7 @@ interface SESService$ {
662
662
  options?: HttpHandlerOptions,
663
663
  ): Effect.Effect<
664
664
  GetIdentityDkimAttributesCommandOutput,
665
- Cause.TimeoutException | SdkError
665
+ Cause.TimeoutError | SdkError
666
666
  >;
667
667
 
668
668
  /**
@@ -673,7 +673,7 @@ interface SESService$ {
673
673
  options?: HttpHandlerOptions,
674
674
  ): Effect.Effect<
675
675
  GetIdentityMailFromDomainAttributesCommandOutput,
676
- Cause.TimeoutException | SdkError
676
+ Cause.TimeoutError | SdkError
677
677
  >;
678
678
 
679
679
  /**
@@ -684,7 +684,7 @@ interface SESService$ {
684
684
  options?: HttpHandlerOptions,
685
685
  ): Effect.Effect<
686
686
  GetIdentityNotificationAttributesCommandOutput,
687
- Cause.TimeoutException | SdkError
687
+ Cause.TimeoutError | SdkError
688
688
  >;
689
689
 
690
690
  /**
@@ -695,7 +695,7 @@ interface SESService$ {
695
695
  options?: HttpHandlerOptions,
696
696
  ): Effect.Effect<
697
697
  GetIdentityPoliciesCommandOutput,
698
- Cause.TimeoutException | SdkError
698
+ Cause.TimeoutError | SdkError
699
699
  >;
700
700
 
701
701
  /**
@@ -706,7 +706,7 @@ interface SESService$ {
706
706
  options?: HttpHandlerOptions,
707
707
  ): Effect.Effect<
708
708
  GetIdentityVerificationAttributesCommandOutput,
709
- Cause.TimeoutException | SdkError
709
+ Cause.TimeoutError | SdkError
710
710
  >;
711
711
 
712
712
  /**
@@ -717,7 +717,7 @@ interface SESService$ {
717
717
  options?: HttpHandlerOptions,
718
718
  ): Effect.Effect<
719
719
  GetSendQuotaCommandOutput,
720
- Cause.TimeoutException | SdkError
720
+ Cause.TimeoutError | SdkError
721
721
  >;
722
722
 
723
723
  /**
@@ -728,7 +728,7 @@ interface SESService$ {
728
728
  options?: HttpHandlerOptions,
729
729
  ): Effect.Effect<
730
730
  GetSendStatisticsCommandOutput,
731
- Cause.TimeoutException | SdkError
731
+ Cause.TimeoutError | SdkError
732
732
  >;
733
733
 
734
734
  /**
@@ -739,7 +739,7 @@ interface SESService$ {
739
739
  options?: HttpHandlerOptions,
740
740
  ): Effect.Effect<
741
741
  GetTemplateCommandOutput,
742
- Cause.TimeoutException | SdkError | TemplateDoesNotExistError
742
+ Cause.TimeoutError | SdkError | TemplateDoesNotExistError
743
743
  >;
744
744
 
745
745
  /**
@@ -750,7 +750,7 @@ interface SESService$ {
750
750
  options?: HttpHandlerOptions,
751
751
  ): Effect.Effect<
752
752
  ListConfigurationSetsCommandOutput,
753
- Cause.TimeoutException | SdkError
753
+ Cause.TimeoutError | SdkError
754
754
  >;
755
755
 
756
756
  /**
@@ -761,7 +761,7 @@ interface SESService$ {
761
761
  options?: HttpHandlerOptions,
762
762
  ): Effect.Effect<
763
763
  ListCustomVerificationEmailTemplatesCommandOutput,
764
- Cause.TimeoutException | SdkError
764
+ Cause.TimeoutError | SdkError
765
765
  >;
766
766
 
767
767
  /**
@@ -772,7 +772,7 @@ interface SESService$ {
772
772
  options?: HttpHandlerOptions,
773
773
  ): Effect.Effect<
774
774
  ListIdentitiesCommandOutput,
775
- Cause.TimeoutException | SdkError
775
+ Cause.TimeoutError | SdkError
776
776
  >;
777
777
 
778
778
  /**
@@ -783,7 +783,7 @@ interface SESService$ {
783
783
  options?: HttpHandlerOptions,
784
784
  ): Effect.Effect<
785
785
  ListIdentityPoliciesCommandOutput,
786
- Cause.TimeoutException | SdkError
786
+ Cause.TimeoutError | SdkError
787
787
  >;
788
788
 
789
789
  /**
@@ -794,7 +794,7 @@ interface SESService$ {
794
794
  options?: HttpHandlerOptions,
795
795
  ): Effect.Effect<
796
796
  ListReceiptFiltersCommandOutput,
797
- Cause.TimeoutException | SdkError
797
+ Cause.TimeoutError | SdkError
798
798
  >;
799
799
 
800
800
  /**
@@ -805,7 +805,7 @@ interface SESService$ {
805
805
  options?: HttpHandlerOptions,
806
806
  ): Effect.Effect<
807
807
  ListReceiptRuleSetsCommandOutput,
808
- Cause.TimeoutException | SdkError
808
+ Cause.TimeoutError | SdkError
809
809
  >;
810
810
 
811
811
  /**
@@ -816,7 +816,7 @@ interface SESService$ {
816
816
  options?: HttpHandlerOptions,
817
817
  ): Effect.Effect<
818
818
  ListTemplatesCommandOutput,
819
- Cause.TimeoutException | SdkError
819
+ Cause.TimeoutError | SdkError
820
820
  >;
821
821
 
822
822
  /**
@@ -827,7 +827,7 @@ interface SESService$ {
827
827
  options?: HttpHandlerOptions,
828
828
  ): Effect.Effect<
829
829
  ListVerifiedEmailAddressesCommandOutput,
830
- Cause.TimeoutException | SdkError
830
+ Cause.TimeoutError | SdkError
831
831
  >;
832
832
 
833
833
  /**
@@ -838,7 +838,7 @@ interface SESService$ {
838
838
  options?: HttpHandlerOptions,
839
839
  ): Effect.Effect<
840
840
  PutConfigurationSetDeliveryOptionsCommandOutput,
841
- Cause.TimeoutException | SdkError | ConfigurationSetDoesNotExistError | InvalidDeliveryOptionsError
841
+ Cause.TimeoutError | SdkError | ConfigurationSetDoesNotExistError | InvalidDeliveryOptionsError
842
842
  >;
843
843
 
844
844
  /**
@@ -849,7 +849,7 @@ interface SESService$ {
849
849
  options?: HttpHandlerOptions,
850
850
  ): Effect.Effect<
851
851
  PutIdentityPolicyCommandOutput,
852
- Cause.TimeoutException | SdkError | InvalidPolicyError
852
+ Cause.TimeoutError | SdkError | InvalidPolicyError
853
853
  >;
854
854
 
855
855
  /**
@@ -860,7 +860,7 @@ interface SESService$ {
860
860
  options?: HttpHandlerOptions,
861
861
  ): Effect.Effect<
862
862
  ReorderReceiptRuleSetCommandOutput,
863
- Cause.TimeoutException | SdkError | RuleDoesNotExistError | RuleSetDoesNotExistError
863
+ Cause.TimeoutError | SdkError | RuleDoesNotExistError | RuleSetDoesNotExistError
864
864
  >;
865
865
 
866
866
  /**
@@ -871,7 +871,7 @@ interface SESService$ {
871
871
  options?: HttpHandlerOptions,
872
872
  ): Effect.Effect<
873
873
  SendBounceCommandOutput,
874
- Cause.TimeoutException | SdkError | MessageRejectedError
874
+ Cause.TimeoutError | SdkError | MessageRejectedError
875
875
  >;
876
876
 
877
877
  /**
@@ -882,7 +882,7 @@ interface SESService$ {
882
882
  options?: HttpHandlerOptions,
883
883
  ): Effect.Effect<
884
884
  SendBulkTemplatedEmailCommandOutput,
885
- | Cause.TimeoutException
885
+ | Cause.TimeoutError
886
886
  | SdkError
887
887
  | AccountSendingPausedError
888
888
  | ConfigurationSetDoesNotExistError
@@ -900,7 +900,7 @@ interface SESService$ {
900
900
  options?: HttpHandlerOptions,
901
901
  ): Effect.Effect<
902
902
  SendCustomVerificationEmailCommandOutput,
903
- | Cause.TimeoutException
903
+ | Cause.TimeoutError
904
904
  | SdkError
905
905
  | ConfigurationSetDoesNotExistError
906
906
  | CustomVerificationEmailTemplateDoesNotExistError
@@ -917,7 +917,7 @@ interface SESService$ {
917
917
  options?: HttpHandlerOptions,
918
918
  ): Effect.Effect<
919
919
  SendEmailCommandOutput,
920
- | Cause.TimeoutException
920
+ | Cause.TimeoutError
921
921
  | SdkError
922
922
  | AccountSendingPausedError
923
923
  | ConfigurationSetDoesNotExistError
@@ -934,7 +934,7 @@ interface SESService$ {
934
934
  options?: HttpHandlerOptions,
935
935
  ): Effect.Effect<
936
936
  SendRawEmailCommandOutput,
937
- | Cause.TimeoutException
937
+ | Cause.TimeoutError
938
938
  | SdkError
939
939
  | AccountSendingPausedError
940
940
  | ConfigurationSetDoesNotExistError
@@ -951,7 +951,7 @@ interface SESService$ {
951
951
  options?: HttpHandlerOptions,
952
952
  ): Effect.Effect<
953
953
  SendTemplatedEmailCommandOutput,
954
- | Cause.TimeoutException
954
+ | Cause.TimeoutError
955
955
  | SdkError
956
956
  | AccountSendingPausedError
957
957
  | ConfigurationSetDoesNotExistError
@@ -969,7 +969,7 @@ interface SESService$ {
969
969
  options?: HttpHandlerOptions,
970
970
  ): Effect.Effect<
971
971
  SetActiveReceiptRuleSetCommandOutput,
972
- Cause.TimeoutException | SdkError | RuleSetDoesNotExistError
972
+ Cause.TimeoutError | SdkError | RuleSetDoesNotExistError
973
973
  >;
974
974
 
975
975
  /**
@@ -980,7 +980,7 @@ interface SESService$ {
980
980
  options?: HttpHandlerOptions,
981
981
  ): Effect.Effect<
982
982
  SetIdentityDkimEnabledCommandOutput,
983
- Cause.TimeoutException | SdkError
983
+ Cause.TimeoutError | SdkError
984
984
  >;
985
985
 
986
986
  /**
@@ -991,7 +991,7 @@ interface SESService$ {
991
991
  options?: HttpHandlerOptions,
992
992
  ): Effect.Effect<
993
993
  SetIdentityFeedbackForwardingEnabledCommandOutput,
994
- Cause.TimeoutException | SdkError
994
+ Cause.TimeoutError | SdkError
995
995
  >;
996
996
 
997
997
  /**
@@ -1002,7 +1002,7 @@ interface SESService$ {
1002
1002
  options?: HttpHandlerOptions,
1003
1003
  ): Effect.Effect<
1004
1004
  SetIdentityHeadersInNotificationsEnabledCommandOutput,
1005
- Cause.TimeoutException | SdkError
1005
+ Cause.TimeoutError | SdkError
1006
1006
  >;
1007
1007
 
1008
1008
  /**
@@ -1013,7 +1013,7 @@ interface SESService$ {
1013
1013
  options?: HttpHandlerOptions,
1014
1014
  ): Effect.Effect<
1015
1015
  SetIdentityMailFromDomainCommandOutput,
1016
- Cause.TimeoutException | SdkError
1016
+ Cause.TimeoutError | SdkError
1017
1017
  >;
1018
1018
 
1019
1019
  /**
@@ -1024,7 +1024,7 @@ interface SESService$ {
1024
1024
  options?: HttpHandlerOptions,
1025
1025
  ): Effect.Effect<
1026
1026
  SetIdentityNotificationTopicCommandOutput,
1027
- Cause.TimeoutException | SdkError
1027
+ Cause.TimeoutError | SdkError
1028
1028
  >;
1029
1029
 
1030
1030
  /**
@@ -1035,7 +1035,7 @@ interface SESService$ {
1035
1035
  options?: HttpHandlerOptions,
1036
1036
  ): Effect.Effect<
1037
1037
  SetReceiptRulePositionCommandOutput,
1038
- Cause.TimeoutException | SdkError | RuleDoesNotExistError | RuleSetDoesNotExistError
1038
+ Cause.TimeoutError | SdkError | RuleDoesNotExistError | RuleSetDoesNotExistError
1039
1039
  >;
1040
1040
 
1041
1041
  /**
@@ -1046,7 +1046,7 @@ interface SESService$ {
1046
1046
  options?: HttpHandlerOptions,
1047
1047
  ): Effect.Effect<
1048
1048
  TestRenderTemplateCommandOutput,
1049
- | Cause.TimeoutException
1049
+ | Cause.TimeoutError
1050
1050
  | SdkError
1051
1051
  | InvalidRenderingParameterError
1052
1052
  | MissingRenderingAttributeError
@@ -1061,7 +1061,7 @@ interface SESService$ {
1061
1061
  options?: HttpHandlerOptions,
1062
1062
  ): Effect.Effect<
1063
1063
  UpdateAccountSendingEnabledCommandOutput,
1064
- Cause.TimeoutException | SdkError
1064
+ Cause.TimeoutError | SdkError
1065
1065
  >;
1066
1066
 
1067
1067
  /**
@@ -1072,7 +1072,7 @@ interface SESService$ {
1072
1072
  options?: HttpHandlerOptions,
1073
1073
  ): Effect.Effect<
1074
1074
  UpdateConfigurationSetEventDestinationCommandOutput,
1075
- | Cause.TimeoutException
1075
+ | Cause.TimeoutError
1076
1076
  | SdkError
1077
1077
  | ConfigurationSetDoesNotExistError
1078
1078
  | EventDestinationDoesNotExistError
@@ -1089,7 +1089,7 @@ interface SESService$ {
1089
1089
  options?: HttpHandlerOptions,
1090
1090
  ): Effect.Effect<
1091
1091
  UpdateConfigurationSetReputationMetricsEnabledCommandOutput,
1092
- Cause.TimeoutException | SdkError | ConfigurationSetDoesNotExistError
1092
+ Cause.TimeoutError | SdkError | ConfigurationSetDoesNotExistError
1093
1093
  >;
1094
1094
 
1095
1095
  /**
@@ -1100,7 +1100,7 @@ interface SESService$ {
1100
1100
  options?: HttpHandlerOptions,
1101
1101
  ): Effect.Effect<
1102
1102
  UpdateConfigurationSetSendingEnabledCommandOutput,
1103
- Cause.TimeoutException | SdkError | ConfigurationSetDoesNotExistError
1103
+ Cause.TimeoutError | SdkError | ConfigurationSetDoesNotExistError
1104
1104
  >;
1105
1105
 
1106
1106
  /**
@@ -1111,7 +1111,7 @@ interface SESService$ {
1111
1111
  options?: HttpHandlerOptions,
1112
1112
  ): Effect.Effect<
1113
1113
  UpdateConfigurationSetTrackingOptionsCommandOutput,
1114
- | Cause.TimeoutException
1114
+ | Cause.TimeoutError
1115
1115
  | SdkError
1116
1116
  | ConfigurationSetDoesNotExistError
1117
1117
  | InvalidTrackingOptionsError
@@ -1126,7 +1126,7 @@ interface SESService$ {
1126
1126
  options?: HttpHandlerOptions,
1127
1127
  ): Effect.Effect<
1128
1128
  UpdateCustomVerificationEmailTemplateCommandOutput,
1129
- | Cause.TimeoutException
1129
+ | Cause.TimeoutError
1130
1130
  | SdkError
1131
1131
  | CustomVerificationEmailInvalidContentError
1132
1132
  | CustomVerificationEmailTemplateDoesNotExistError
@@ -1141,7 +1141,7 @@ interface SESService$ {
1141
1141
  options?: HttpHandlerOptions,
1142
1142
  ): Effect.Effect<
1143
1143
  UpdateReceiptRuleCommandOutput,
1144
- | Cause.TimeoutException
1144
+ | Cause.TimeoutError
1145
1145
  | SdkError
1146
1146
  | InvalidLambdaFunctionError
1147
1147
  | InvalidS3ConfigurationError
@@ -1159,7 +1159,7 @@ interface SESService$ {
1159
1159
  options?: HttpHandlerOptions,
1160
1160
  ): Effect.Effect<
1161
1161
  UpdateTemplateCommandOutput,
1162
- Cause.TimeoutException | SdkError | InvalidTemplateError | TemplateDoesNotExistError
1162
+ Cause.TimeoutError | SdkError | InvalidTemplateError | TemplateDoesNotExistError
1163
1163
  >;
1164
1164
 
1165
1165
  /**
@@ -1170,7 +1170,7 @@ interface SESService$ {
1170
1170
  options?: HttpHandlerOptions,
1171
1171
  ): Effect.Effect<
1172
1172
  VerifyDomainDkimCommandOutput,
1173
- Cause.TimeoutException | SdkError
1173
+ Cause.TimeoutError | SdkError
1174
1174
  >;
1175
1175
 
1176
1176
  /**
@@ -1181,7 +1181,7 @@ interface SESService$ {
1181
1181
  options?: HttpHandlerOptions,
1182
1182
  ): Effect.Effect<
1183
1183
  VerifyDomainIdentityCommandOutput,
1184
- Cause.TimeoutException | SdkError
1184
+ Cause.TimeoutError | SdkError
1185
1185
  >;
1186
1186
 
1187
1187
  /**
@@ -1192,7 +1192,7 @@ interface SESService$ {
1192
1192
  options?: HttpHandlerOptions,
1193
1193
  ): Effect.Effect<
1194
1194
  VerifyEmailAddressCommandOutput,
1195
- Cause.TimeoutException | SdkError
1195
+ Cause.TimeoutError | SdkError
1196
1196
  >;
1197
1197
 
1198
1198
  /**
@@ -1203,7 +1203,7 @@ interface SESService$ {
1203
1203
  options?: HttpHandlerOptions,
1204
1204
  ): Effect.Effect<
1205
1205
  VerifyEmailIdentityCommandOutput,
1206
- Cause.TimeoutException | SdkError
1206
+ Cause.TimeoutError | SdkError
1207
1207
  >;
1208
1208
  }
1209
1209
 
@@ -1228,10 +1228,10 @@ export const makeSESService = Effect.gen(function*() {
1228
1228
  * @since 1.0.0
1229
1229
  * @category models
1230
1230
  */
1231
- export class SESService extends Effect.Tag("@effect-aws/client-ses/SESService")<
1231
+ export class SESService extends ServiceMap.Service<
1232
1232
  SESService,
1233
1233
  SESService$
1234
- >() {
1234
+ >()("@effect-aws/client-ses/SESService") {
1235
1235
  static readonly defaultLayer = Layer.effect(this, makeSESService).pipe(Layer.provide(Instance.layer));
1236
1236
  static readonly layer = (config: SESService.Config) =>
1237
1237
  Layer.effect(this, makeSESService).pipe(
@@ -3,18 +3,17 @@
3
3
  */
4
4
  import type { SESClientConfig } from "@aws-sdk/client-ses";
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 { SESService } from "./SESService.js";
10
9
 
11
10
  /**
12
11
  * @since 1.0.0
13
12
  * @category ses service config
14
13
  */
15
- const currentSESServiceConfig = globalValue(
14
+ const currentSESServiceConfig = ServiceMap.Reference<SESService.Config>(
16
15
  "@effect-aws/client-ses/currentSESServiceConfig",
17
- () => FiberRef.unsafeMake<SESService.Config>({}),
16
+ { defaultValue: () => ({}) },
18
17
  );
19
18
 
20
19
  /**
@@ -27,21 +26,21 @@ export const withSESServiceConfig: {
27
26
  } = dual(
28
27
  2,
29
28
  <A, E, R>(effect: Effect.Effect<A, E, R>, config: SESService.Config): Effect.Effect<A, E, R> =>
30
- Effect.locally(effect, currentSESServiceConfig, config),
29
+ Effect.provideService(effect, currentSESServiceConfig, config),
31
30
  );
32
31
 
33
32
  /**
34
33
  * @since 1.0.0
35
34
  * @category ses service config
36
35
  */
37
- export const setSESServiceConfig = (config: SESService.Config) => Layer.locallyScoped(currentSESServiceConfig, config);
36
+ export const setSESServiceConfig = (config: SESService.Config) => Layer.succeed(currentSESServiceConfig, config);
38
37
 
39
38
  /**
40
39
  * @since 1.0.0
41
40
  * @category adapters
42
41
  */
43
42
  export const toSESClientConfig: Effect.Effect<SESClientConfig> = Effect.gen(function*() {
44
- const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentSESServiceConfig);
43
+ const { logger: serviceLogger, ...config } = yield* currentSESServiceConfig;
45
44
 
46
45
  const logger = serviceLogger === true
47
46
  ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)