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