@effect-aws/client-athena 1.10.7 → 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/AthenaClientInstance.d.ts +2 -2
  4. package/dist/dts/AthenaClientInstance.d.ts.map +1 -1
  5. package/dist/dts/AthenaService.d.ts +72 -74
  6. package/dist/dts/AthenaService.d.ts.map +1 -1
  7. package/dist/dts/AthenaServiceConfig.d.ts.map +1 -1
  8. package/dist/esm/AthenaClientInstance.js +3 -3
  9. package/dist/esm/AthenaClientInstance.js.map +1 -1
  10. package/dist/esm/AthenaService.js +2 -2
  11. package/dist/esm/AthenaService.js.map +1 -1
  12. package/dist/esm/AthenaServiceConfig.js +5 -6
  13. package/dist/esm/AthenaServiceConfig.js.map +1 -1
  14. package/package.json +8 -14
  15. package/src/AthenaClientInstance.ts +4 -4
  16. package/src/AthenaService.ts +73 -73
  17. package/src/AthenaServiceConfig.ts +6 -7
  18. package/dist/cjs/AthenaClientInstance.d.ts +0 -24
  19. package/dist/cjs/AthenaClientInstance.d.ts.map +0 -1
  20. package/dist/cjs/AthenaClientInstance.js +0 -50
  21. package/dist/cjs/AthenaClientInstance.js.map +0 -1
  22. package/dist/cjs/AthenaService.d.ts +0 -326
  23. package/dist/cjs/AthenaService.d.ts.map +0 -1
  24. package/dist/cjs/AthenaService.js +0 -129
  25. package/dist/cjs/AthenaService.js.map +0 -1
  26. package/dist/cjs/AthenaServiceConfig.d.ts +0 -25
  27. package/dist/cjs/AthenaServiceConfig.d.ts.map +0 -1
  28. package/dist/cjs/AthenaServiceConfig.js +0 -35
  29. package/dist/cjs/AthenaServiceConfig.js.map +0 -1
  30. package/dist/cjs/Errors.d.ts +0 -13
  31. package/dist/cjs/Errors.d.ts.map +0 -1
  32. package/dist/cjs/Errors.js +0 -12
  33. package/dist/cjs/Errors.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
@@ -218,7 +218,7 @@ import {
218
218
  import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
219
219
  import { Service } from "@effect-aws/commons";
220
220
  import type { Cause } from "effect";
221
- import { Effect, Layer } from "effect";
221
+ import { Effect, Layer, ServiceMap } from "effect";
222
222
  import * as Instance from "./AthenaClientInstance.js";
223
223
  import * as AthenaServiceConfig from "./AthenaServiceConfig.js";
224
224
  import type {
@@ -316,7 +316,7 @@ interface AthenaService$ {
316
316
  options?: HttpHandlerOptions,
317
317
  ): Effect.Effect<
318
318
  BatchGetNamedQueryCommandOutput,
319
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
319
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
320
320
  >;
321
321
 
322
322
  /**
@@ -327,7 +327,7 @@ interface AthenaService$ {
327
327
  options?: HttpHandlerOptions,
328
328
  ): Effect.Effect<
329
329
  BatchGetPreparedStatementCommandOutput,
330
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
330
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
331
331
  >;
332
332
 
333
333
  /**
@@ -338,7 +338,7 @@ interface AthenaService$ {
338
338
  options?: HttpHandlerOptions,
339
339
  ): Effect.Effect<
340
340
  BatchGetQueryExecutionCommandOutput,
341
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
341
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
342
342
  >;
343
343
 
344
344
  /**
@@ -349,7 +349,7 @@ interface AthenaService$ {
349
349
  options?: HttpHandlerOptions,
350
350
  ): Effect.Effect<
351
351
  CancelCapacityReservationCommandOutput,
352
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
352
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
353
353
  >;
354
354
 
355
355
  /**
@@ -360,7 +360,7 @@ interface AthenaService$ {
360
360
  options?: HttpHandlerOptions,
361
361
  ): Effect.Effect<
362
362
  CreateCapacityReservationCommandOutput,
363
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
363
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
364
364
  >;
365
365
 
366
366
  /**
@@ -371,7 +371,7 @@ interface AthenaService$ {
371
371
  options?: HttpHandlerOptions,
372
372
  ): Effect.Effect<
373
373
  CreateDataCatalogCommandOutput,
374
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
374
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
375
375
  >;
376
376
 
377
377
  /**
@@ -382,7 +382,7 @@ interface AthenaService$ {
382
382
  options?: HttpHandlerOptions,
383
383
  ): Effect.Effect<
384
384
  CreateNamedQueryCommandOutput,
385
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
385
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
386
386
  >;
387
387
 
388
388
  /**
@@ -393,7 +393,7 @@ interface AthenaService$ {
393
393
  options?: HttpHandlerOptions,
394
394
  ): Effect.Effect<
395
395
  CreateNotebookCommandOutput,
396
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
396
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
397
397
  >;
398
398
 
399
399
  /**
@@ -404,7 +404,7 @@ interface AthenaService$ {
404
404
  options?: HttpHandlerOptions,
405
405
  ): Effect.Effect<
406
406
  CreatePreparedStatementCommandOutput,
407
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
407
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
408
408
  >;
409
409
 
410
410
  /**
@@ -415,7 +415,7 @@ interface AthenaService$ {
415
415
  options?: HttpHandlerOptions,
416
416
  ): Effect.Effect<
417
417
  CreatePresignedNotebookUrlCommandOutput,
418
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
418
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
419
419
  >;
420
420
 
421
421
  /**
@@ -426,7 +426,7 @@ interface AthenaService$ {
426
426
  options?: HttpHandlerOptions,
427
427
  ): Effect.Effect<
428
428
  CreateWorkGroupCommandOutput,
429
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
429
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
430
430
  >;
431
431
 
432
432
  /**
@@ -437,7 +437,7 @@ interface AthenaService$ {
437
437
  options?: HttpHandlerOptions,
438
438
  ): Effect.Effect<
439
439
  DeleteCapacityReservationCommandOutput,
440
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
440
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
441
441
  >;
442
442
 
443
443
  /**
@@ -448,7 +448,7 @@ interface AthenaService$ {
448
448
  options?: HttpHandlerOptions,
449
449
  ): Effect.Effect<
450
450
  DeleteDataCatalogCommandOutput,
451
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
451
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
452
452
  >;
453
453
 
454
454
  /**
@@ -459,7 +459,7 @@ interface AthenaService$ {
459
459
  options?: HttpHandlerOptions,
460
460
  ): Effect.Effect<
461
461
  DeleteNamedQueryCommandOutput,
462
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
462
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
463
463
  >;
464
464
 
465
465
  /**
@@ -470,7 +470,7 @@ interface AthenaService$ {
470
470
  options?: HttpHandlerOptions,
471
471
  ): Effect.Effect<
472
472
  DeleteNotebookCommandOutput,
473
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
473
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
474
474
  >;
475
475
 
476
476
  /**
@@ -481,7 +481,7 @@ interface AthenaService$ {
481
481
  options?: HttpHandlerOptions,
482
482
  ): Effect.Effect<
483
483
  DeletePreparedStatementCommandOutput,
484
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
484
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
485
485
  >;
486
486
 
487
487
  /**
@@ -492,7 +492,7 @@ interface AthenaService$ {
492
492
  options?: HttpHandlerOptions,
493
493
  ): Effect.Effect<
494
494
  DeleteWorkGroupCommandOutput,
495
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
495
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
496
496
  >;
497
497
 
498
498
  /**
@@ -503,7 +503,7 @@ interface AthenaService$ {
503
503
  options?: HttpHandlerOptions,
504
504
  ): Effect.Effect<
505
505
  ExportNotebookCommandOutput,
506
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
506
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
507
507
  >;
508
508
 
509
509
  /**
@@ -514,7 +514,7 @@ interface AthenaService$ {
514
514
  options?: HttpHandlerOptions,
515
515
  ): Effect.Effect<
516
516
  GetCalculationExecutionCommandOutput,
517
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
517
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
518
518
  >;
519
519
 
520
520
  /**
@@ -525,7 +525,7 @@ interface AthenaService$ {
525
525
  options?: HttpHandlerOptions,
526
526
  ): Effect.Effect<
527
527
  GetCalculationExecutionCodeCommandOutput,
528
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
528
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
529
529
  >;
530
530
 
531
531
  /**
@@ -536,7 +536,7 @@ interface AthenaService$ {
536
536
  options?: HttpHandlerOptions,
537
537
  ): Effect.Effect<
538
538
  GetCalculationExecutionStatusCommandOutput,
539
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
539
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
540
540
  >;
541
541
 
542
542
  /**
@@ -547,7 +547,7 @@ interface AthenaService$ {
547
547
  options?: HttpHandlerOptions,
548
548
  ): Effect.Effect<
549
549
  GetCapacityAssignmentConfigurationCommandOutput,
550
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
550
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
551
551
  >;
552
552
 
553
553
  /**
@@ -558,7 +558,7 @@ interface AthenaService$ {
558
558
  options?: HttpHandlerOptions,
559
559
  ): Effect.Effect<
560
560
  GetCapacityReservationCommandOutput,
561
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
561
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
562
562
  >;
563
563
 
564
564
  /**
@@ -569,7 +569,7 @@ interface AthenaService$ {
569
569
  options?: HttpHandlerOptions,
570
570
  ): Effect.Effect<
571
571
  GetDataCatalogCommandOutput,
572
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
572
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
573
573
  >;
574
574
 
575
575
  /**
@@ -580,7 +580,7 @@ interface AthenaService$ {
580
580
  options?: HttpHandlerOptions,
581
581
  ): Effect.Effect<
582
582
  GetDatabaseCommandOutput,
583
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | MetadataError
583
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | MetadataError
584
584
  >;
585
585
 
586
586
  /**
@@ -591,7 +591,7 @@ interface AthenaService$ {
591
591
  options?: HttpHandlerOptions,
592
592
  ): Effect.Effect<
593
593
  GetNamedQueryCommandOutput,
594
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
594
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
595
595
  >;
596
596
 
597
597
  /**
@@ -602,7 +602,7 @@ interface AthenaService$ {
602
602
  options?: HttpHandlerOptions,
603
603
  ): Effect.Effect<
604
604
  GetNotebookMetadataCommandOutput,
605
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
605
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
606
606
  >;
607
607
 
608
608
  /**
@@ -613,7 +613,7 @@ interface AthenaService$ {
613
613
  options?: HttpHandlerOptions,
614
614
  ): Effect.Effect<
615
615
  GetPreparedStatementCommandOutput,
616
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
616
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
617
617
  >;
618
618
 
619
619
  /**
@@ -624,7 +624,7 @@ interface AthenaService$ {
624
624
  options?: HttpHandlerOptions,
625
625
  ): Effect.Effect<
626
626
  GetQueryExecutionCommandOutput,
627
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
627
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
628
628
  >;
629
629
 
630
630
  /**
@@ -635,7 +635,7 @@ interface AthenaService$ {
635
635
  options?: HttpHandlerOptions,
636
636
  ): Effect.Effect<
637
637
  GetQueryResultsCommandOutput,
638
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
638
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
639
639
  >;
640
640
 
641
641
  /**
@@ -646,7 +646,7 @@ interface AthenaService$ {
646
646
  options?: HttpHandlerOptions,
647
647
  ): Effect.Effect<
648
648
  GetQueryRuntimeStatisticsCommandOutput,
649
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
649
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
650
650
  >;
651
651
 
652
652
  /**
@@ -657,7 +657,7 @@ interface AthenaService$ {
657
657
  options?: HttpHandlerOptions,
658
658
  ): Effect.Effect<
659
659
  GetResourceDashboardCommandOutput,
660
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
660
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
661
661
  >;
662
662
 
663
663
  /**
@@ -668,7 +668,7 @@ interface AthenaService$ {
668
668
  options?: HttpHandlerOptions,
669
669
  ): Effect.Effect<
670
670
  GetSessionCommandOutput,
671
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
671
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
672
672
  >;
673
673
 
674
674
  /**
@@ -679,7 +679,7 @@ interface AthenaService$ {
679
679
  options?: HttpHandlerOptions,
680
680
  ): Effect.Effect<
681
681
  GetSessionEndpointCommandOutput,
682
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
682
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
683
683
  >;
684
684
 
685
685
  /**
@@ -690,7 +690,7 @@ interface AthenaService$ {
690
690
  options?: HttpHandlerOptions,
691
691
  ): Effect.Effect<
692
692
  GetSessionStatusCommandOutput,
693
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
693
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
694
694
  >;
695
695
 
696
696
  /**
@@ -701,7 +701,7 @@ interface AthenaService$ {
701
701
  options?: HttpHandlerOptions,
702
702
  ): Effect.Effect<
703
703
  GetTableMetadataCommandOutput,
704
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | MetadataError
704
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | MetadataError
705
705
  >;
706
706
 
707
707
  /**
@@ -712,7 +712,7 @@ interface AthenaService$ {
712
712
  options?: HttpHandlerOptions,
713
713
  ): Effect.Effect<
714
714
  GetWorkGroupCommandOutput,
715
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
715
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
716
716
  >;
717
717
 
718
718
  /**
@@ -723,7 +723,7 @@ interface AthenaService$ {
723
723
  options?: HttpHandlerOptions,
724
724
  ): Effect.Effect<
725
725
  ImportNotebookCommandOutput,
726
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
726
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
727
727
  >;
728
728
 
729
729
  /**
@@ -734,7 +734,7 @@ interface AthenaService$ {
734
734
  options?: HttpHandlerOptions,
735
735
  ): Effect.Effect<
736
736
  ListApplicationDPUSizesCommandOutput,
737
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
737
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
738
738
  >;
739
739
 
740
740
  /**
@@ -745,7 +745,7 @@ interface AthenaService$ {
745
745
  options?: HttpHandlerOptions,
746
746
  ): Effect.Effect<
747
747
  ListCalculationExecutionsCommandOutput,
748
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
748
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
749
749
  >;
750
750
 
751
751
  /**
@@ -756,7 +756,7 @@ interface AthenaService$ {
756
756
  options?: HttpHandlerOptions,
757
757
  ): Effect.Effect<
758
758
  ListCapacityReservationsCommandOutput,
759
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
759
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
760
760
  >;
761
761
 
762
762
  /**
@@ -767,7 +767,7 @@ interface AthenaService$ {
767
767
  options?: HttpHandlerOptions,
768
768
  ): Effect.Effect<
769
769
  ListDataCatalogsCommandOutput,
770
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
770
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
771
771
  >;
772
772
 
773
773
  /**
@@ -778,7 +778,7 @@ interface AthenaService$ {
778
778
  options?: HttpHandlerOptions,
779
779
  ): Effect.Effect<
780
780
  ListDatabasesCommandOutput,
781
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | MetadataError
781
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | MetadataError
782
782
  >;
783
783
 
784
784
  /**
@@ -789,7 +789,7 @@ interface AthenaService$ {
789
789
  options?: HttpHandlerOptions,
790
790
  ): Effect.Effect<
791
791
  ListEngineVersionsCommandOutput,
792
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
792
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
793
793
  >;
794
794
 
795
795
  /**
@@ -800,7 +800,7 @@ interface AthenaService$ {
800
800
  options?: HttpHandlerOptions,
801
801
  ): Effect.Effect<
802
802
  ListExecutorsCommandOutput,
803
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
803
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
804
804
  >;
805
805
 
806
806
  /**
@@ -811,7 +811,7 @@ interface AthenaService$ {
811
811
  options?: HttpHandlerOptions,
812
812
  ): Effect.Effect<
813
813
  ListNamedQueriesCommandOutput,
814
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
814
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
815
815
  >;
816
816
 
817
817
  /**
@@ -822,7 +822,7 @@ interface AthenaService$ {
822
822
  options?: HttpHandlerOptions,
823
823
  ): Effect.Effect<
824
824
  ListNotebookMetadataCommandOutput,
825
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
825
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
826
826
  >;
827
827
 
828
828
  /**
@@ -833,7 +833,7 @@ interface AthenaService$ {
833
833
  options?: HttpHandlerOptions,
834
834
  ): Effect.Effect<
835
835
  ListNotebookSessionsCommandOutput,
836
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
836
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
837
837
  >;
838
838
 
839
839
  /**
@@ -844,7 +844,7 @@ interface AthenaService$ {
844
844
  options?: HttpHandlerOptions,
845
845
  ): Effect.Effect<
846
846
  ListPreparedStatementsCommandOutput,
847
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
847
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
848
848
  >;
849
849
 
850
850
  /**
@@ -855,7 +855,7 @@ interface AthenaService$ {
855
855
  options?: HttpHandlerOptions,
856
856
  ): Effect.Effect<
857
857
  ListQueryExecutionsCommandOutput,
858
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
858
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
859
859
  >;
860
860
 
861
861
  /**
@@ -866,7 +866,7 @@ interface AthenaService$ {
866
866
  options?: HttpHandlerOptions,
867
867
  ): Effect.Effect<
868
868
  ListSessionsCommandOutput,
869
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
869
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
870
870
  >;
871
871
 
872
872
  /**
@@ -877,7 +877,7 @@ interface AthenaService$ {
877
877
  options?: HttpHandlerOptions,
878
878
  ): Effect.Effect<
879
879
  ListTableMetadataCommandOutput,
880
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | MetadataError
880
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | MetadataError
881
881
  >;
882
882
 
883
883
  /**
@@ -888,7 +888,7 @@ interface AthenaService$ {
888
888
  options?: HttpHandlerOptions,
889
889
  ): Effect.Effect<
890
890
  ListTagsForResourceCommandOutput,
891
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
891
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
892
892
  >;
893
893
 
894
894
  /**
@@ -899,7 +899,7 @@ interface AthenaService$ {
899
899
  options?: HttpHandlerOptions,
900
900
  ): Effect.Effect<
901
901
  ListWorkGroupsCommandOutput,
902
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
902
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
903
903
  >;
904
904
 
905
905
  /**
@@ -910,7 +910,7 @@ interface AthenaService$ {
910
910
  options?: HttpHandlerOptions,
911
911
  ): Effect.Effect<
912
912
  PutCapacityAssignmentConfigurationCommandOutput,
913
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
913
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
914
914
  >;
915
915
 
916
916
  /**
@@ -921,7 +921,7 @@ interface AthenaService$ {
921
921
  options?: HttpHandlerOptions,
922
922
  ): Effect.Effect<
923
923
  StartCalculationExecutionCommandOutput,
924
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
924
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
925
925
  >;
926
926
 
927
927
  /**
@@ -932,7 +932,7 @@ interface AthenaService$ {
932
932
  options?: HttpHandlerOptions,
933
933
  ): Effect.Effect<
934
934
  StartQueryExecutionCommandOutput,
935
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
935
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
936
936
  >;
937
937
 
938
938
  /**
@@ -943,7 +943,7 @@ interface AthenaService$ {
943
943
  options?: HttpHandlerOptions,
944
944
  ): Effect.Effect<
945
945
  StartSessionCommandOutput,
946
- | Cause.TimeoutException
946
+ | Cause.TimeoutError
947
947
  | SdkError
948
948
  | InternalServerError
949
949
  | InvalidRequestError
@@ -960,7 +960,7 @@ interface AthenaService$ {
960
960
  options?: HttpHandlerOptions,
961
961
  ): Effect.Effect<
962
962
  StopCalculationExecutionCommandOutput,
963
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
963
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
964
964
  >;
965
965
 
966
966
  /**
@@ -971,7 +971,7 @@ interface AthenaService$ {
971
971
  options?: HttpHandlerOptions,
972
972
  ): Effect.Effect<
973
973
  StopQueryExecutionCommandOutput,
974
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
974
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
975
975
  >;
976
976
 
977
977
  /**
@@ -982,7 +982,7 @@ interface AthenaService$ {
982
982
  options?: HttpHandlerOptions,
983
983
  ): Effect.Effect<
984
984
  TagResourceCommandOutput,
985
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
985
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
986
986
  >;
987
987
 
988
988
  /**
@@ -993,7 +993,7 @@ interface AthenaService$ {
993
993
  options?: HttpHandlerOptions,
994
994
  ): Effect.Effect<
995
995
  TerminateSessionCommandOutput,
996
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
996
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
997
997
  >;
998
998
 
999
999
  /**
@@ -1004,7 +1004,7 @@ interface AthenaService$ {
1004
1004
  options?: HttpHandlerOptions,
1005
1005
  ): Effect.Effect<
1006
1006
  UntagResourceCommandOutput,
1007
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
1007
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
1008
1008
  >;
1009
1009
 
1010
1010
  /**
@@ -1015,7 +1015,7 @@ interface AthenaService$ {
1015
1015
  options?: HttpHandlerOptions,
1016
1016
  ): Effect.Effect<
1017
1017
  UpdateCapacityReservationCommandOutput,
1018
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
1018
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
1019
1019
  >;
1020
1020
 
1021
1021
  /**
@@ -1026,7 +1026,7 @@ interface AthenaService$ {
1026
1026
  options?: HttpHandlerOptions,
1027
1027
  ): Effect.Effect<
1028
1028
  UpdateDataCatalogCommandOutput,
1029
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
1029
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
1030
1030
  >;
1031
1031
 
1032
1032
  /**
@@ -1037,7 +1037,7 @@ interface AthenaService$ {
1037
1037
  options?: HttpHandlerOptions,
1038
1038
  ): Effect.Effect<
1039
1039
  UpdateNamedQueryCommandOutput,
1040
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
1040
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
1041
1041
  >;
1042
1042
 
1043
1043
  /**
@@ -1048,7 +1048,7 @@ interface AthenaService$ {
1048
1048
  options?: HttpHandlerOptions,
1049
1049
  ): Effect.Effect<
1050
1050
  UpdateNotebookCommandOutput,
1051
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
1051
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
1052
1052
  >;
1053
1053
 
1054
1054
  /**
@@ -1059,7 +1059,7 @@ interface AthenaService$ {
1059
1059
  options?: HttpHandlerOptions,
1060
1060
  ): Effect.Effect<
1061
1061
  UpdateNotebookMetadataCommandOutput,
1062
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
1062
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
1063
1063
  >;
1064
1064
 
1065
1065
  /**
@@ -1070,7 +1070,7 @@ interface AthenaService$ {
1070
1070
  options?: HttpHandlerOptions,
1071
1071
  ): Effect.Effect<
1072
1072
  UpdatePreparedStatementCommandOutput,
1073
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
1073
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
1074
1074
  >;
1075
1075
 
1076
1076
  /**
@@ -1081,7 +1081,7 @@ interface AthenaService$ {
1081
1081
  options?: HttpHandlerOptions,
1082
1082
  ): Effect.Effect<
1083
1083
  UpdateWorkGroupCommandOutput,
1084
- Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
1084
+ Cause.TimeoutError | SdkError | InternalServerError | InvalidRequestError
1085
1085
  >;
1086
1086
  }
1087
1087
 
@@ -1106,10 +1106,10 @@ export const makeAthenaService = Effect.gen(function*() {
1106
1106
  * @since 1.0.0
1107
1107
  * @category models
1108
1108
  */
1109
- export class AthenaService extends Effect.Tag("@effect-aws/client-athena/AthenaService")<
1109
+ export class AthenaService extends ServiceMap.Service<
1110
1110
  AthenaService,
1111
1111
  AthenaService$
1112
- >() {
1112
+ >()("@effect-aws/client-athena/AthenaService") {
1113
1113
  static readonly defaultLayer = Layer.effect(this, makeAthenaService).pipe(Layer.provide(Instance.layer));
1114
1114
  static readonly layer = (config: AthenaService.Config) =>
1115
1115
  Layer.effect(this, makeAthenaService).pipe(
@@ -3,18 +3,17 @@
3
3
  */
4
4
  import type { AthenaClientConfig } from "@aws-sdk/client-athena";
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 { AthenaService } from "./AthenaService.js";
10
9
 
11
10
  /**
12
11
  * @since 1.0.0
13
12
  * @category athena service config
14
13
  */
15
- const currentAthenaServiceConfig = globalValue(
14
+ const currentAthenaServiceConfig = ServiceMap.Reference<AthenaService.Config>(
16
15
  "@effect-aws/client-athena/currentAthenaServiceConfig",
17
- () => FiberRef.unsafeMake<AthenaService.Config>({}),
16
+ { defaultValue: () => ({}) },
18
17
  );
19
18
 
20
19
  /**
@@ -27,7 +26,7 @@ export const withAthenaServiceConfig: {
27
26
  } = dual(
28
27
  2,
29
28
  <A, E, R>(effect: Effect.Effect<A, E, R>, config: AthenaService.Config): Effect.Effect<A, E, R> =>
30
- Effect.locally(effect, currentAthenaServiceConfig, config),
29
+ Effect.provideService(effect, currentAthenaServiceConfig, config),
31
30
  );
32
31
 
33
32
  /**
@@ -35,14 +34,14 @@ export const withAthenaServiceConfig: {
35
34
  * @category athena service config
36
35
  */
37
36
  export const setAthenaServiceConfig = (config: AthenaService.Config) =>
38
- Layer.locallyScoped(currentAthenaServiceConfig, config);
37
+ Layer.succeed(currentAthenaServiceConfig, config);
39
38
 
40
39
  /**
41
40
  * @since 1.0.0
42
41
  * @category adapters
43
42
  */
44
43
  export const toAthenaClientConfig: Effect.Effect<AthenaClientConfig> = Effect.gen(function*() {
45
- const { logger: serviceLogger, ...config } = yield* FiberRef.get(currentAthenaServiceConfig);
44
+ const { logger: serviceLogger, ...config } = yield* currentAthenaServiceConfig;
46
45
 
47
46
  const logger = serviceLogger === true
48
47
  ? yield* ServiceLogger.toClientLogger(ServiceLogger.defaultServiceLogger)