@effect-aws/client-s3 1.9.5 → 1.10.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/src/S3Service.ts CHANGED
@@ -301,8 +301,9 @@ import {
301
301
  } from "@aws-sdk/client-s3";
302
302
  import { getSignedUrl } from "@aws-sdk/s3-request-presigner";
303
303
  import type { RequestPresigningArguments } from "@aws-sdk/types";
304
- import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
304
+ import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
305
305
  import { Service } from "@effect-aws/commons";
306
+ import type { Cause } from "effect";
306
307
  import { Effect, Layer } from "effect";
307
308
  import type {
308
309
  BucketAlreadyExistsError,
@@ -318,6 +319,7 @@ import type {
318
319
  ObjectAlreadyInActiveTierError,
319
320
  ObjectNotInActiveTierError,
320
321
  S3ServiceError,
322
+ SdkError,
321
323
  TooManyPartsError,
322
324
  } from "./Errors.js";
323
325
  import { AllServiceErrors } from "./Errors.js";
@@ -436,7 +438,7 @@ interface S3Service$ {
436
438
  options?: HttpHandlerOptions,
437
439
  ): Effect.Effect<
438
440
  AbortMultipartUploadCommandOutput,
439
- SdkError | NoSuchUploadError
441
+ Cause.TimeoutException | SdkError | NoSuchUploadError
440
442
  >;
441
443
 
442
444
  /**
@@ -447,7 +449,7 @@ interface S3Service$ {
447
449
  options?: HttpHandlerOptions,
448
450
  ): Effect.Effect<
449
451
  CompleteMultipartUploadCommandOutput,
450
- SdkError | S3ServiceError
452
+ Cause.TimeoutException | SdkError
451
453
  >;
452
454
 
453
455
  /**
@@ -458,7 +460,7 @@ interface S3Service$ {
458
460
  options?: HttpHandlerOptions,
459
461
  ): Effect.Effect<
460
462
  CopyObjectCommandOutput,
461
- SdkError | ObjectNotInActiveTierError
463
+ Cause.TimeoutException | SdkError | ObjectNotInActiveTierError
462
464
  >;
463
465
 
464
466
  /**
@@ -469,7 +471,7 @@ interface S3Service$ {
469
471
  options?: HttpHandlerOptions,
470
472
  ): Effect.Effect<
471
473
  CreateBucketCommandOutput,
472
- SdkError | BucketAlreadyExistsError | BucketAlreadyOwnedByYouError
474
+ Cause.TimeoutException | SdkError | BucketAlreadyExistsError | BucketAlreadyOwnedByYouError
473
475
  >;
474
476
 
475
477
  /**
@@ -480,7 +482,7 @@ interface S3Service$ {
480
482
  options?: HttpHandlerOptions,
481
483
  ): Effect.Effect<
482
484
  CreateBucketMetadataTableConfigurationCommandOutput,
483
- SdkError | S3ServiceError
485
+ Cause.TimeoutException | SdkError | S3ServiceError
484
486
  >;
485
487
 
486
488
  /**
@@ -491,7 +493,7 @@ interface S3Service$ {
491
493
  options?: HttpHandlerOptions,
492
494
  ): Effect.Effect<
493
495
  CreateMultipartUploadCommandOutput,
494
- SdkError | S3ServiceError
496
+ Cause.TimeoutException | SdkError | S3ServiceError
495
497
  >;
496
498
 
497
499
  /**
@@ -502,7 +504,7 @@ interface S3Service$ {
502
504
  options?: HttpHandlerOptions,
503
505
  ): Effect.Effect<
504
506
  CreateSessionCommandOutput,
505
- SdkError | NoSuchBucketError
507
+ Cause.TimeoutException | SdkError | NoSuchBucketError
506
508
  >;
507
509
 
508
510
  /**
@@ -513,7 +515,7 @@ interface S3Service$ {
513
515
  options?: HttpHandlerOptions,
514
516
  ): Effect.Effect<
515
517
  DeleteBucketCommandOutput,
516
- SdkError | S3ServiceError
518
+ Cause.TimeoutException | SdkError | S3ServiceError
517
519
  >;
518
520
 
519
521
  /**
@@ -524,7 +526,7 @@ interface S3Service$ {
524
526
  options?: HttpHandlerOptions,
525
527
  ): Effect.Effect<
526
528
  DeleteBucketAnalyticsConfigurationCommandOutput,
527
- SdkError | S3ServiceError
529
+ Cause.TimeoutException | SdkError | S3ServiceError
528
530
  >;
529
531
 
530
532
  /**
@@ -535,7 +537,7 @@ interface S3Service$ {
535
537
  options?: HttpHandlerOptions,
536
538
  ): Effect.Effect<
537
539
  DeleteBucketCorsCommandOutput,
538
- SdkError | S3ServiceError
540
+ Cause.TimeoutException | SdkError | S3ServiceError
539
541
  >;
540
542
 
541
543
  /**
@@ -546,7 +548,7 @@ interface S3Service$ {
546
548
  options?: HttpHandlerOptions,
547
549
  ): Effect.Effect<
548
550
  DeleteBucketEncryptionCommandOutput,
549
- SdkError | S3ServiceError
551
+ Cause.TimeoutException | SdkError | S3ServiceError
550
552
  >;
551
553
 
552
554
  /**
@@ -557,7 +559,7 @@ interface S3Service$ {
557
559
  options?: HttpHandlerOptions,
558
560
  ): Effect.Effect<
559
561
  DeleteBucketIntelligentTieringConfigurationCommandOutput,
560
- SdkError | S3ServiceError
562
+ Cause.TimeoutException | SdkError | S3ServiceError
561
563
  >;
562
564
 
563
565
  /**
@@ -568,7 +570,7 @@ interface S3Service$ {
568
570
  options?: HttpHandlerOptions,
569
571
  ): Effect.Effect<
570
572
  DeleteBucketInventoryConfigurationCommandOutput,
571
- SdkError | S3ServiceError
573
+ Cause.TimeoutException | SdkError | S3ServiceError
572
574
  >;
573
575
 
574
576
  /**
@@ -579,7 +581,7 @@ interface S3Service$ {
579
581
  options?: HttpHandlerOptions,
580
582
  ): Effect.Effect<
581
583
  DeleteBucketLifecycleCommandOutput,
582
- SdkError | S3ServiceError
584
+ Cause.TimeoutException | SdkError | S3ServiceError
583
585
  >;
584
586
 
585
587
  /**
@@ -590,7 +592,7 @@ interface S3Service$ {
590
592
  options?: HttpHandlerOptions,
591
593
  ): Effect.Effect<
592
594
  DeleteBucketMetadataTableConfigurationCommandOutput,
593
- SdkError | S3ServiceError
595
+ Cause.TimeoutException | SdkError | S3ServiceError
594
596
  >;
595
597
 
596
598
  /**
@@ -601,7 +603,7 @@ interface S3Service$ {
601
603
  options?: HttpHandlerOptions,
602
604
  ): Effect.Effect<
603
605
  DeleteBucketMetricsConfigurationCommandOutput,
604
- SdkError | S3ServiceError
606
+ Cause.TimeoutException | SdkError | S3ServiceError
605
607
  >;
606
608
 
607
609
  /**
@@ -612,7 +614,7 @@ interface S3Service$ {
612
614
  options?: HttpHandlerOptions,
613
615
  ): Effect.Effect<
614
616
  DeleteBucketOwnershipControlsCommandOutput,
615
- SdkError | S3ServiceError
617
+ Cause.TimeoutException | SdkError | S3ServiceError
616
618
  >;
617
619
 
618
620
  /**
@@ -623,7 +625,7 @@ interface S3Service$ {
623
625
  options?: HttpHandlerOptions,
624
626
  ): Effect.Effect<
625
627
  DeleteBucketPolicyCommandOutput,
626
- SdkError | S3ServiceError
628
+ Cause.TimeoutException | SdkError | S3ServiceError
627
629
  >;
628
630
 
629
631
  /**
@@ -634,7 +636,7 @@ interface S3Service$ {
634
636
  options?: HttpHandlerOptions,
635
637
  ): Effect.Effect<
636
638
  DeleteBucketReplicationCommandOutput,
637
- SdkError | S3ServiceError
639
+ Cause.TimeoutException | SdkError | S3ServiceError
638
640
  >;
639
641
 
640
642
  /**
@@ -645,7 +647,7 @@ interface S3Service$ {
645
647
  options?: HttpHandlerOptions,
646
648
  ): Effect.Effect<
647
649
  DeleteBucketTaggingCommandOutput,
648
- SdkError | S3ServiceError
650
+ Cause.TimeoutException | SdkError | S3ServiceError
649
651
  >;
650
652
 
651
653
  /**
@@ -656,7 +658,7 @@ interface S3Service$ {
656
658
  options?: HttpHandlerOptions,
657
659
  ): Effect.Effect<
658
660
  DeleteBucketWebsiteCommandOutput,
659
- SdkError | S3ServiceError
661
+ Cause.TimeoutException | SdkError | S3ServiceError
660
662
  >;
661
663
 
662
664
  /**
@@ -667,7 +669,7 @@ interface S3Service$ {
667
669
  options?: HttpHandlerOptions,
668
670
  ): Effect.Effect<
669
671
  DeleteObjectCommandOutput,
670
- SdkError | S3ServiceError
672
+ Cause.TimeoutException | SdkError | S3ServiceError
671
673
  >;
672
674
 
673
675
  /**
@@ -678,7 +680,7 @@ interface S3Service$ {
678
680
  options?: HttpHandlerOptions,
679
681
  ): Effect.Effect<
680
682
  DeleteObjectTaggingCommandOutput,
681
- SdkError | S3ServiceError
683
+ Cause.TimeoutException | SdkError | S3ServiceError
682
684
  >;
683
685
 
684
686
  /**
@@ -689,7 +691,7 @@ interface S3Service$ {
689
691
  options?: HttpHandlerOptions,
690
692
  ): Effect.Effect<
691
693
  DeleteObjectsCommandOutput,
692
- SdkError | S3ServiceError
694
+ Cause.TimeoutException | SdkError | S3ServiceError
693
695
  >;
694
696
 
695
697
  /**
@@ -700,7 +702,7 @@ interface S3Service$ {
700
702
  options?: HttpHandlerOptions,
701
703
  ): Effect.Effect<
702
704
  DeletePublicAccessBlockCommandOutput,
703
- SdkError | S3ServiceError
705
+ Cause.TimeoutException | SdkError | S3ServiceError
704
706
  >;
705
707
 
706
708
  /**
@@ -711,7 +713,7 @@ interface S3Service$ {
711
713
  options?: HttpHandlerOptions,
712
714
  ): Effect.Effect<
713
715
  GetBucketAccelerateConfigurationCommandOutput,
714
- SdkError | S3ServiceError
716
+ Cause.TimeoutException | SdkError | S3ServiceError
715
717
  >;
716
718
 
717
719
  /**
@@ -722,7 +724,7 @@ interface S3Service$ {
722
724
  options?: HttpHandlerOptions,
723
725
  ): Effect.Effect<
724
726
  GetBucketAclCommandOutput,
725
- SdkError | S3ServiceError
727
+ Cause.TimeoutException | SdkError | S3ServiceError
726
728
  >;
727
729
 
728
730
  /**
@@ -733,7 +735,7 @@ interface S3Service$ {
733
735
  options?: HttpHandlerOptions,
734
736
  ): Effect.Effect<
735
737
  GetBucketAnalyticsConfigurationCommandOutput,
736
- SdkError | S3ServiceError
738
+ Cause.TimeoutException | SdkError | S3ServiceError
737
739
  >;
738
740
 
739
741
  /**
@@ -744,7 +746,7 @@ interface S3Service$ {
744
746
  options?: HttpHandlerOptions,
745
747
  ): Effect.Effect<
746
748
  GetBucketCorsCommandOutput,
747
- SdkError | S3ServiceError
749
+ Cause.TimeoutException | SdkError | S3ServiceError
748
750
  >;
749
751
 
750
752
  /**
@@ -755,7 +757,7 @@ interface S3Service$ {
755
757
  options?: HttpHandlerOptions,
756
758
  ): Effect.Effect<
757
759
  GetBucketEncryptionCommandOutput,
758
- SdkError | S3ServiceError
760
+ Cause.TimeoutException | SdkError | S3ServiceError
759
761
  >;
760
762
 
761
763
  /**
@@ -766,7 +768,7 @@ interface S3Service$ {
766
768
  options?: HttpHandlerOptions,
767
769
  ): Effect.Effect<
768
770
  GetBucketIntelligentTieringConfigurationCommandOutput,
769
- SdkError | S3ServiceError
771
+ Cause.TimeoutException | SdkError | S3ServiceError
770
772
  >;
771
773
 
772
774
  /**
@@ -777,7 +779,7 @@ interface S3Service$ {
777
779
  options?: HttpHandlerOptions,
778
780
  ): Effect.Effect<
779
781
  GetBucketInventoryConfigurationCommandOutput,
780
- SdkError | S3ServiceError
782
+ Cause.TimeoutException | SdkError | S3ServiceError
781
783
  >;
782
784
 
783
785
  /**
@@ -788,7 +790,7 @@ interface S3Service$ {
788
790
  options?: HttpHandlerOptions,
789
791
  ): Effect.Effect<
790
792
  GetBucketLifecycleConfigurationCommandOutput,
791
- SdkError | S3ServiceError
793
+ Cause.TimeoutException | SdkError | S3ServiceError
792
794
  >;
793
795
 
794
796
  /**
@@ -799,7 +801,7 @@ interface S3Service$ {
799
801
  options?: HttpHandlerOptions,
800
802
  ): Effect.Effect<
801
803
  GetBucketLocationCommandOutput,
802
- SdkError | S3ServiceError
804
+ Cause.TimeoutException | SdkError | S3ServiceError
803
805
  >;
804
806
 
805
807
  /**
@@ -810,7 +812,7 @@ interface S3Service$ {
810
812
  options?: HttpHandlerOptions,
811
813
  ): Effect.Effect<
812
814
  GetBucketLoggingCommandOutput,
813
- SdkError | S3ServiceError
815
+ Cause.TimeoutException | SdkError | S3ServiceError
814
816
  >;
815
817
 
816
818
  /**
@@ -821,7 +823,7 @@ interface S3Service$ {
821
823
  options?: HttpHandlerOptions,
822
824
  ): Effect.Effect<
823
825
  GetBucketMetadataTableConfigurationCommandOutput,
824
- SdkError | S3ServiceError
826
+ Cause.TimeoutException | SdkError | S3ServiceError
825
827
  >;
826
828
 
827
829
  /**
@@ -832,7 +834,7 @@ interface S3Service$ {
832
834
  options?: HttpHandlerOptions,
833
835
  ): Effect.Effect<
834
836
  GetBucketMetricsConfigurationCommandOutput,
835
- SdkError | S3ServiceError
837
+ Cause.TimeoutException | SdkError | S3ServiceError
836
838
  >;
837
839
 
838
840
  /**
@@ -843,7 +845,7 @@ interface S3Service$ {
843
845
  options?: HttpHandlerOptions,
844
846
  ): Effect.Effect<
845
847
  GetBucketNotificationConfigurationCommandOutput,
846
- SdkError | S3ServiceError
848
+ Cause.TimeoutException | SdkError | S3ServiceError
847
849
  >;
848
850
 
849
851
  /**
@@ -854,7 +856,7 @@ interface S3Service$ {
854
856
  options?: HttpHandlerOptions,
855
857
  ): Effect.Effect<
856
858
  GetBucketOwnershipControlsCommandOutput,
857
- SdkError | S3ServiceError
859
+ Cause.TimeoutException | SdkError | S3ServiceError
858
860
  >;
859
861
 
860
862
  /**
@@ -865,7 +867,7 @@ interface S3Service$ {
865
867
  options?: HttpHandlerOptions,
866
868
  ): Effect.Effect<
867
869
  GetBucketPolicyCommandOutput,
868
- SdkError | S3ServiceError
870
+ Cause.TimeoutException | SdkError | S3ServiceError
869
871
  >;
870
872
 
871
873
  /**
@@ -876,7 +878,7 @@ interface S3Service$ {
876
878
  options?: HttpHandlerOptions,
877
879
  ): Effect.Effect<
878
880
  GetBucketPolicyStatusCommandOutput,
879
- SdkError | S3ServiceError
881
+ Cause.TimeoutException | SdkError | S3ServiceError
880
882
  >;
881
883
 
882
884
  /**
@@ -887,7 +889,7 @@ interface S3Service$ {
887
889
  options?: HttpHandlerOptions,
888
890
  ): Effect.Effect<
889
891
  GetBucketReplicationCommandOutput,
890
- SdkError | S3ServiceError
892
+ Cause.TimeoutException | SdkError | S3ServiceError
891
893
  >;
892
894
 
893
895
  /**
@@ -898,7 +900,7 @@ interface S3Service$ {
898
900
  options?: HttpHandlerOptions,
899
901
  ): Effect.Effect<
900
902
  GetBucketRequestPaymentCommandOutput,
901
- SdkError | S3ServiceError
903
+ Cause.TimeoutException | SdkError | S3ServiceError
902
904
  >;
903
905
 
904
906
  /**
@@ -909,7 +911,7 @@ interface S3Service$ {
909
911
  options?: HttpHandlerOptions,
910
912
  ): Effect.Effect<
911
913
  GetBucketTaggingCommandOutput,
912
- SdkError | S3ServiceError
914
+ Cause.TimeoutException | SdkError | S3ServiceError
913
915
  >;
914
916
 
915
917
  /**
@@ -920,7 +922,7 @@ interface S3Service$ {
920
922
  options?: HttpHandlerOptions,
921
923
  ): Effect.Effect<
922
924
  GetBucketVersioningCommandOutput,
923
- SdkError | S3ServiceError
925
+ Cause.TimeoutException | SdkError | S3ServiceError
924
926
  >;
925
927
 
926
928
  /**
@@ -931,7 +933,7 @@ interface S3Service$ {
931
933
  options?: HttpHandlerOptions,
932
934
  ): Effect.Effect<
933
935
  GetBucketWebsiteCommandOutput,
934
- SdkError | S3ServiceError
936
+ Cause.TimeoutException | SdkError | S3ServiceError
935
937
  >;
936
938
 
937
939
  /**
@@ -942,7 +944,7 @@ interface S3Service$ {
942
944
  options?: { readonly presigned?: false } & HttpHandlerOptions,
943
945
  ): Effect.Effect<
944
946
  GetObjectCommandOutput,
945
- SdkError | InvalidObjectStateError | NoSuchKeyError
947
+ Cause.TimeoutException | SdkError | InvalidObjectStateError | NoSuchKeyError
946
948
  >;
947
949
  getObject(
948
950
  args: GetObjectCommandInput,
@@ -957,7 +959,7 @@ interface S3Service$ {
957
959
  options?: HttpHandlerOptions,
958
960
  ): Effect.Effect<
959
961
  GetObjectAclCommandOutput,
960
- SdkError | NoSuchKeyError
962
+ Cause.TimeoutException | SdkError | NoSuchKeyError
961
963
  >;
962
964
 
963
965
  /**
@@ -968,7 +970,7 @@ interface S3Service$ {
968
970
  options?: HttpHandlerOptions,
969
971
  ): Effect.Effect<
970
972
  GetObjectAttributesCommandOutput,
971
- SdkError | NoSuchKeyError
973
+ Cause.TimeoutException | SdkError | NoSuchKeyError
972
974
  >;
973
975
 
974
976
  /**
@@ -979,7 +981,7 @@ interface S3Service$ {
979
981
  options?: HttpHandlerOptions,
980
982
  ): Effect.Effect<
981
983
  GetObjectLegalHoldCommandOutput,
982
- SdkError | S3ServiceError
984
+ Cause.TimeoutException | SdkError | S3ServiceError
983
985
  >;
984
986
 
985
987
  /**
@@ -990,7 +992,7 @@ interface S3Service$ {
990
992
  options?: HttpHandlerOptions,
991
993
  ): Effect.Effect<
992
994
  GetObjectLockConfigurationCommandOutput,
993
- SdkError | S3ServiceError
995
+ Cause.TimeoutException | SdkError | S3ServiceError
994
996
  >;
995
997
 
996
998
  /**
@@ -1001,7 +1003,7 @@ interface S3Service$ {
1001
1003
  options?: HttpHandlerOptions,
1002
1004
  ): Effect.Effect<
1003
1005
  GetObjectRetentionCommandOutput,
1004
- SdkError | S3ServiceError
1006
+ Cause.TimeoutException | SdkError | S3ServiceError
1005
1007
  >;
1006
1008
 
1007
1009
  /**
@@ -1012,7 +1014,7 @@ interface S3Service$ {
1012
1014
  options?: HttpHandlerOptions,
1013
1015
  ): Effect.Effect<
1014
1016
  GetObjectTaggingCommandOutput,
1015
- SdkError | S3ServiceError
1017
+ Cause.TimeoutException | SdkError | S3ServiceError
1016
1018
  >;
1017
1019
 
1018
1020
  /**
@@ -1023,7 +1025,7 @@ interface S3Service$ {
1023
1025
  options?: HttpHandlerOptions,
1024
1026
  ): Effect.Effect<
1025
1027
  GetObjectTorrentCommandOutput,
1026
- SdkError | S3ServiceError
1028
+ Cause.TimeoutException | SdkError | S3ServiceError
1027
1029
  >;
1028
1030
 
1029
1031
  /**
@@ -1034,7 +1036,7 @@ interface S3Service$ {
1034
1036
  options?: HttpHandlerOptions,
1035
1037
  ): Effect.Effect<
1036
1038
  GetPublicAccessBlockCommandOutput,
1037
- SdkError | S3ServiceError
1039
+ Cause.TimeoutException | SdkError | S3ServiceError
1038
1040
  >;
1039
1041
 
1040
1042
  /**
@@ -1045,7 +1047,7 @@ interface S3Service$ {
1045
1047
  options?: HttpHandlerOptions,
1046
1048
  ): Effect.Effect<
1047
1049
  HeadBucketCommandOutput,
1048
- SdkError | NotFoundError
1050
+ Cause.TimeoutException | SdkError | NotFoundError
1049
1051
  >;
1050
1052
 
1051
1053
  /**
@@ -1056,7 +1058,7 @@ interface S3Service$ {
1056
1058
  options?: HttpHandlerOptions,
1057
1059
  ): Effect.Effect<
1058
1060
  HeadObjectCommandOutput,
1059
- SdkError | NotFoundError
1061
+ Cause.TimeoutException | SdkError | NotFoundError
1060
1062
  >;
1061
1063
 
1062
1064
  /**
@@ -1067,7 +1069,7 @@ interface S3Service$ {
1067
1069
  options?: HttpHandlerOptions,
1068
1070
  ): Effect.Effect<
1069
1071
  ListBucketAnalyticsConfigurationsCommandOutput,
1070
- SdkError | S3ServiceError
1072
+ Cause.TimeoutException | SdkError | S3ServiceError
1071
1073
  >;
1072
1074
 
1073
1075
  /**
@@ -1078,7 +1080,7 @@ interface S3Service$ {
1078
1080
  options?: HttpHandlerOptions,
1079
1081
  ): Effect.Effect<
1080
1082
  ListBucketIntelligentTieringConfigurationsCommandOutput,
1081
- SdkError | S3ServiceError
1083
+ Cause.TimeoutException | SdkError | S3ServiceError
1082
1084
  >;
1083
1085
 
1084
1086
  /**
@@ -1089,7 +1091,7 @@ interface S3Service$ {
1089
1091
  options?: HttpHandlerOptions,
1090
1092
  ): Effect.Effect<
1091
1093
  ListBucketInventoryConfigurationsCommandOutput,
1092
- SdkError | S3ServiceError
1094
+ Cause.TimeoutException | SdkError | S3ServiceError
1093
1095
  >;
1094
1096
 
1095
1097
  /**
@@ -1100,7 +1102,7 @@ interface S3Service$ {
1100
1102
  options?: HttpHandlerOptions,
1101
1103
  ): Effect.Effect<
1102
1104
  ListBucketMetricsConfigurationsCommandOutput,
1103
- SdkError | S3ServiceError
1105
+ Cause.TimeoutException | SdkError | S3ServiceError
1104
1106
  >;
1105
1107
 
1106
1108
  /**
@@ -1111,7 +1113,7 @@ interface S3Service$ {
1111
1113
  options?: HttpHandlerOptions,
1112
1114
  ): Effect.Effect<
1113
1115
  ListBucketsCommandOutput,
1114
- SdkError | S3ServiceError
1116
+ Cause.TimeoutException | SdkError | S3ServiceError
1115
1117
  >;
1116
1118
 
1117
1119
  /**
@@ -1122,7 +1124,7 @@ interface S3Service$ {
1122
1124
  options?: HttpHandlerOptions,
1123
1125
  ): Effect.Effect<
1124
1126
  ListDirectoryBucketsCommandOutput,
1125
- SdkError | S3ServiceError
1127
+ Cause.TimeoutException | SdkError | S3ServiceError
1126
1128
  >;
1127
1129
 
1128
1130
  /**
@@ -1133,7 +1135,7 @@ interface S3Service$ {
1133
1135
  options?: HttpHandlerOptions,
1134
1136
  ): Effect.Effect<
1135
1137
  ListMultipartUploadsCommandOutput,
1136
- SdkError | S3ServiceError
1138
+ Cause.TimeoutException | SdkError | S3ServiceError
1137
1139
  >;
1138
1140
 
1139
1141
  /**
@@ -1144,7 +1146,7 @@ interface S3Service$ {
1144
1146
  options?: HttpHandlerOptions,
1145
1147
  ): Effect.Effect<
1146
1148
  ListObjectVersionsCommandOutput,
1147
- SdkError | S3ServiceError
1149
+ Cause.TimeoutException | SdkError | S3ServiceError
1148
1150
  >;
1149
1151
 
1150
1152
  /**
@@ -1155,7 +1157,7 @@ interface S3Service$ {
1155
1157
  options?: HttpHandlerOptions,
1156
1158
  ): Effect.Effect<
1157
1159
  ListObjectsCommandOutput,
1158
- SdkError | NoSuchBucketError
1160
+ Cause.TimeoutException | SdkError | NoSuchBucketError
1159
1161
  >;
1160
1162
 
1161
1163
  /**
@@ -1166,7 +1168,7 @@ interface S3Service$ {
1166
1168
  options?: HttpHandlerOptions,
1167
1169
  ): Effect.Effect<
1168
1170
  ListObjectsV2CommandOutput,
1169
- SdkError | NoSuchBucketError
1171
+ Cause.TimeoutException | SdkError | NoSuchBucketError
1170
1172
  >;
1171
1173
 
1172
1174
  /**
@@ -1177,7 +1179,7 @@ interface S3Service$ {
1177
1179
  options?: HttpHandlerOptions,
1178
1180
  ): Effect.Effect<
1179
1181
  ListPartsCommandOutput,
1180
- SdkError | S3ServiceError
1182
+ Cause.TimeoutException | SdkError | S3ServiceError
1181
1183
  >;
1182
1184
 
1183
1185
  /**
@@ -1188,7 +1190,7 @@ interface S3Service$ {
1188
1190
  options?: HttpHandlerOptions,
1189
1191
  ): Effect.Effect<
1190
1192
  PutBucketAccelerateConfigurationCommandOutput,
1191
- SdkError | S3ServiceError
1193
+ Cause.TimeoutException | SdkError | S3ServiceError
1192
1194
  >;
1193
1195
 
1194
1196
  /**
@@ -1199,7 +1201,7 @@ interface S3Service$ {
1199
1201
  options?: HttpHandlerOptions,
1200
1202
  ): Effect.Effect<
1201
1203
  PutBucketAclCommandOutput,
1202
- SdkError | S3ServiceError
1204
+ Cause.TimeoutException | SdkError | S3ServiceError
1203
1205
  >;
1204
1206
 
1205
1207
  /**
@@ -1210,7 +1212,7 @@ interface S3Service$ {
1210
1212
  options?: HttpHandlerOptions,
1211
1213
  ): Effect.Effect<
1212
1214
  PutBucketAnalyticsConfigurationCommandOutput,
1213
- SdkError | S3ServiceError
1215
+ Cause.TimeoutException | SdkError | S3ServiceError
1214
1216
  >;
1215
1217
 
1216
1218
  /**
@@ -1221,7 +1223,7 @@ interface S3Service$ {
1221
1223
  options?: HttpHandlerOptions,
1222
1224
  ): Effect.Effect<
1223
1225
  PutBucketCorsCommandOutput,
1224
- SdkError | S3ServiceError
1226
+ Cause.TimeoutException | SdkError | S3ServiceError
1225
1227
  >;
1226
1228
 
1227
1229
  /**
@@ -1232,7 +1234,7 @@ interface S3Service$ {
1232
1234
  options?: HttpHandlerOptions,
1233
1235
  ): Effect.Effect<
1234
1236
  PutBucketEncryptionCommandOutput,
1235
- SdkError | S3ServiceError
1237
+ Cause.TimeoutException | SdkError | S3ServiceError
1236
1238
  >;
1237
1239
 
1238
1240
  /**
@@ -1243,7 +1245,7 @@ interface S3Service$ {
1243
1245
  options?: HttpHandlerOptions,
1244
1246
  ): Effect.Effect<
1245
1247
  PutBucketIntelligentTieringConfigurationCommandOutput,
1246
- SdkError | S3ServiceError
1248
+ Cause.TimeoutException | SdkError | S3ServiceError
1247
1249
  >;
1248
1250
 
1249
1251
  /**
@@ -1254,7 +1256,7 @@ interface S3Service$ {
1254
1256
  options?: HttpHandlerOptions,
1255
1257
  ): Effect.Effect<
1256
1258
  PutBucketInventoryConfigurationCommandOutput,
1257
- SdkError | S3ServiceError
1259
+ Cause.TimeoutException | SdkError | S3ServiceError
1258
1260
  >;
1259
1261
 
1260
1262
  /**
@@ -1265,7 +1267,7 @@ interface S3Service$ {
1265
1267
  options?: HttpHandlerOptions,
1266
1268
  ): Effect.Effect<
1267
1269
  PutBucketLifecycleConfigurationCommandOutput,
1268
- SdkError | S3ServiceError
1270
+ Cause.TimeoutException | SdkError | S3ServiceError
1269
1271
  >;
1270
1272
 
1271
1273
  /**
@@ -1276,7 +1278,7 @@ interface S3Service$ {
1276
1278
  options?: HttpHandlerOptions,
1277
1279
  ): Effect.Effect<
1278
1280
  PutBucketLoggingCommandOutput,
1279
- SdkError | S3ServiceError
1281
+ Cause.TimeoutException | SdkError | S3ServiceError
1280
1282
  >;
1281
1283
 
1282
1284
  /**
@@ -1287,7 +1289,7 @@ interface S3Service$ {
1287
1289
  options?: HttpHandlerOptions,
1288
1290
  ): Effect.Effect<
1289
1291
  PutBucketMetricsConfigurationCommandOutput,
1290
- SdkError | S3ServiceError
1292
+ Cause.TimeoutException | SdkError | S3ServiceError
1291
1293
  >;
1292
1294
 
1293
1295
  /**
@@ -1298,7 +1300,7 @@ interface S3Service$ {
1298
1300
  options?: HttpHandlerOptions,
1299
1301
  ): Effect.Effect<
1300
1302
  PutBucketNotificationConfigurationCommandOutput,
1301
- SdkError | S3ServiceError
1303
+ Cause.TimeoutException | SdkError | S3ServiceError
1302
1304
  >;
1303
1305
 
1304
1306
  /**
@@ -1309,7 +1311,7 @@ interface S3Service$ {
1309
1311
  options?: HttpHandlerOptions,
1310
1312
  ): Effect.Effect<
1311
1313
  PutBucketOwnershipControlsCommandOutput,
1312
- SdkError | S3ServiceError
1314
+ Cause.TimeoutException | SdkError | S3ServiceError
1313
1315
  >;
1314
1316
 
1315
1317
  /**
@@ -1320,7 +1322,7 @@ interface S3Service$ {
1320
1322
  options?: HttpHandlerOptions,
1321
1323
  ): Effect.Effect<
1322
1324
  PutBucketPolicyCommandOutput,
1323
- SdkError | S3ServiceError
1325
+ Cause.TimeoutException | SdkError | S3ServiceError
1324
1326
  >;
1325
1327
 
1326
1328
  /**
@@ -1331,7 +1333,7 @@ interface S3Service$ {
1331
1333
  options?: HttpHandlerOptions,
1332
1334
  ): Effect.Effect<
1333
1335
  PutBucketReplicationCommandOutput,
1334
- SdkError | S3ServiceError
1336
+ Cause.TimeoutException | SdkError | S3ServiceError
1335
1337
  >;
1336
1338
 
1337
1339
  /**
@@ -1342,7 +1344,7 @@ interface S3Service$ {
1342
1344
  options?: HttpHandlerOptions,
1343
1345
  ): Effect.Effect<
1344
1346
  PutBucketRequestPaymentCommandOutput,
1345
- SdkError | S3ServiceError
1347
+ Cause.TimeoutException | SdkError | S3ServiceError
1346
1348
  >;
1347
1349
 
1348
1350
  /**
@@ -1353,7 +1355,7 @@ interface S3Service$ {
1353
1355
  options?: HttpHandlerOptions,
1354
1356
  ): Effect.Effect<
1355
1357
  PutBucketTaggingCommandOutput,
1356
- SdkError | S3ServiceError
1358
+ Cause.TimeoutException | SdkError | S3ServiceError
1357
1359
  >;
1358
1360
 
1359
1361
  /**
@@ -1364,7 +1366,7 @@ interface S3Service$ {
1364
1366
  options?: HttpHandlerOptions,
1365
1367
  ): Effect.Effect<
1366
1368
  PutBucketVersioningCommandOutput,
1367
- SdkError | S3ServiceError
1369
+ Cause.TimeoutException | SdkError | S3ServiceError
1368
1370
  >;
1369
1371
 
1370
1372
  /**
@@ -1375,7 +1377,7 @@ interface S3Service$ {
1375
1377
  options?: HttpHandlerOptions,
1376
1378
  ): Effect.Effect<
1377
1379
  PutBucketWebsiteCommandOutput,
1378
- SdkError | S3ServiceError
1380
+ Cause.TimeoutException | SdkError | S3ServiceError
1379
1381
  >;
1380
1382
 
1381
1383
  /**
@@ -1386,7 +1388,12 @@ interface S3Service$ {
1386
1388
  options?: { readonly presigned?: false } & HttpHandlerOptions,
1387
1389
  ): Effect.Effect<
1388
1390
  PutObjectCommandOutput,
1389
- SdkError | EncryptionTypeMismatchError | InvalidRequestError | InvalidWriteOffsetError | TooManyPartsError
1391
+ | Cause.TimeoutException
1392
+ | SdkError
1393
+ | EncryptionTypeMismatchError
1394
+ | InvalidRequestError
1395
+ | InvalidWriteOffsetError
1396
+ | TooManyPartsError
1390
1397
  >;
1391
1398
  putObject(
1392
1399
  args: PutObjectCommandInput,
@@ -1401,7 +1408,7 @@ interface S3Service$ {
1401
1408
  options?: HttpHandlerOptions,
1402
1409
  ): Effect.Effect<
1403
1410
  PutObjectAclCommandOutput,
1404
- SdkError | NoSuchKeyError
1411
+ Cause.TimeoutException | SdkError | NoSuchKeyError
1405
1412
  >;
1406
1413
 
1407
1414
  /**
@@ -1412,7 +1419,7 @@ interface S3Service$ {
1412
1419
  options?: HttpHandlerOptions,
1413
1420
  ): Effect.Effect<
1414
1421
  PutObjectLegalHoldCommandOutput,
1415
- SdkError | S3ServiceError
1422
+ Cause.TimeoutException | SdkError | S3ServiceError
1416
1423
  >;
1417
1424
 
1418
1425
  /**
@@ -1423,7 +1430,7 @@ interface S3Service$ {
1423
1430
  options?: HttpHandlerOptions,
1424
1431
  ): Effect.Effect<
1425
1432
  PutObjectLockConfigurationCommandOutput,
1426
- SdkError | S3ServiceError
1433
+ Cause.TimeoutException | SdkError | S3ServiceError
1427
1434
  >;
1428
1435
 
1429
1436
  /**
@@ -1434,7 +1441,7 @@ interface S3Service$ {
1434
1441
  options?: HttpHandlerOptions,
1435
1442
  ): Effect.Effect<
1436
1443
  PutObjectRetentionCommandOutput,
1437
- SdkError | S3ServiceError
1444
+ Cause.TimeoutException | SdkError | S3ServiceError
1438
1445
  >;
1439
1446
 
1440
1447
  /**
@@ -1445,7 +1452,7 @@ interface S3Service$ {
1445
1452
  options?: HttpHandlerOptions,
1446
1453
  ): Effect.Effect<
1447
1454
  PutObjectTaggingCommandOutput,
1448
- SdkError | S3ServiceError
1455
+ Cause.TimeoutException | SdkError | S3ServiceError
1449
1456
  >;
1450
1457
 
1451
1458
  /**
@@ -1456,7 +1463,7 @@ interface S3Service$ {
1456
1463
  options?: HttpHandlerOptions,
1457
1464
  ): Effect.Effect<
1458
1465
  PutPublicAccessBlockCommandOutput,
1459
- SdkError | S3ServiceError
1466
+ Cause.TimeoutException | SdkError | S3ServiceError
1460
1467
  >;
1461
1468
 
1462
1469
  /**
@@ -1467,7 +1474,7 @@ interface S3Service$ {
1467
1474
  options?: HttpHandlerOptions,
1468
1475
  ): Effect.Effect<
1469
1476
  RestoreObjectCommandOutput,
1470
- SdkError | ObjectAlreadyInActiveTierError
1477
+ Cause.TimeoutException | SdkError | ObjectAlreadyInActiveTierError
1471
1478
  >;
1472
1479
 
1473
1480
  /**
@@ -1478,7 +1485,7 @@ interface S3Service$ {
1478
1485
  options?: HttpHandlerOptions,
1479
1486
  ): Effect.Effect<
1480
1487
  SelectObjectContentCommandOutput,
1481
- SdkError | S3ServiceError
1488
+ Cause.TimeoutException | SdkError | S3ServiceError
1482
1489
  >;
1483
1490
 
1484
1491
  /**
@@ -1489,7 +1496,7 @@ interface S3Service$ {
1489
1496
  options?: HttpHandlerOptions,
1490
1497
  ): Effect.Effect<
1491
1498
  UploadPartCommandOutput,
1492
- SdkError | S3ServiceError
1499
+ Cause.TimeoutException | SdkError | S3ServiceError
1493
1500
  >;
1494
1501
 
1495
1502
  /**
@@ -1500,7 +1507,7 @@ interface S3Service$ {
1500
1507
  options?: HttpHandlerOptions,
1501
1508
  ): Effect.Effect<
1502
1509
  UploadPartCopyCommandOutput,
1503
- SdkError | S3ServiceError
1510
+ Cause.TimeoutException | SdkError | S3ServiceError
1504
1511
  >;
1505
1512
 
1506
1513
  /**
@@ -1511,7 +1518,7 @@ interface S3Service$ {
1511
1518
  options?: HttpHandlerOptions,
1512
1519
  ): Effect.Effect<
1513
1520
  WriteGetObjectResponseCommandOutput,
1514
- SdkError | S3ServiceError
1521
+ Cause.TimeoutException | SdkError | S3ServiceError
1515
1522
  >;
1516
1523
  }
1517
1524
 
@@ -1522,7 +1529,7 @@ interface S3Service$ {
1522
1529
  export const makeS3Service = Effect.gen(function*() {
1523
1530
  const client = yield* Instance.S3ClientInstance;
1524
1531
 
1525
- return Service.fromCommandsAndServiceFn<S3Service$>(commands, (CommandCtor) =>
1532
+ return yield* Service.fromCommandsAndServiceFn<S3Service$>(commands, (CommandCtor) =>
1526
1533
  (
1527
1534
  args: any,
1528
1535
  options?: