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