@effect-aws/client-athena 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/dist/cjs/AthenaService.d.ts +72 -71
- package/dist/cjs/AthenaService.d.ts.map +1 -1
- package/dist/cjs/AthenaService.js +1 -1
- package/dist/cjs/AthenaService.js.map +1 -1
- package/dist/cjs/Errors.d.ts +3 -3
- package/dist/cjs/Errors.d.ts.map +1 -1
- package/dist/cjs/Errors.js +1 -3
- package/dist/cjs/Errors.js.map +1 -1
- package/dist/dts/AthenaService.d.ts +72 -71
- package/dist/dts/AthenaService.d.ts.map +1 -1
- package/dist/dts/Errors.d.ts +3 -3
- package/dist/dts/Errors.d.ts.map +1 -1
- package/dist/esm/AthenaService.js +1 -1
- package/dist/esm/AthenaService.js.map +1 -1
- package/dist/esm/Errors.js +0 -2
- package/dist/esm/Errors.js.map +1 -1
- package/package.json +2 -2
- package/src/AthenaService.ts +72 -69
- package/src/Errors.ts +1 -4
package/src/AthenaService.ts
CHANGED
|
@@ -209,8 +209,9 @@ import {
|
|
|
209
209
|
type UpdateWorkGroupCommandInput,
|
|
210
210
|
type UpdateWorkGroupCommandOutput,
|
|
211
211
|
} from "@aws-sdk/client-athena";
|
|
212
|
-
import type { HttpHandlerOptions,
|
|
212
|
+
import type { HttpHandlerOptions, ServiceLogger } from "@effect-aws/commons";
|
|
213
213
|
import { Service } from "@effect-aws/commons";
|
|
214
|
+
import type { Cause } from "effect";
|
|
214
215
|
import { Effect, Layer } from "effect";
|
|
215
216
|
import * as Instance from "./AthenaClientInstance.js";
|
|
216
217
|
import * as AthenaServiceConfig from "./AthenaServiceConfig.js";
|
|
@@ -219,6 +220,7 @@ import type {
|
|
|
219
220
|
InvalidRequestError,
|
|
220
221
|
MetadataError,
|
|
221
222
|
ResourceNotFoundError,
|
|
223
|
+
SdkError,
|
|
222
224
|
SessionAlreadyExistsError,
|
|
223
225
|
TooManyRequestsError,
|
|
224
226
|
} from "./Errors.js";
|
|
@@ -306,7 +308,7 @@ interface AthenaService$ {
|
|
|
306
308
|
options?: HttpHandlerOptions,
|
|
307
309
|
): Effect.Effect<
|
|
308
310
|
BatchGetNamedQueryCommandOutput,
|
|
309
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
311
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
310
312
|
>;
|
|
311
313
|
|
|
312
314
|
/**
|
|
@@ -317,7 +319,7 @@ interface AthenaService$ {
|
|
|
317
319
|
options?: HttpHandlerOptions,
|
|
318
320
|
): Effect.Effect<
|
|
319
321
|
BatchGetPreparedStatementCommandOutput,
|
|
320
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
322
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
321
323
|
>;
|
|
322
324
|
|
|
323
325
|
/**
|
|
@@ -328,7 +330,7 @@ interface AthenaService$ {
|
|
|
328
330
|
options?: HttpHandlerOptions,
|
|
329
331
|
): Effect.Effect<
|
|
330
332
|
BatchGetQueryExecutionCommandOutput,
|
|
331
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
333
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
332
334
|
>;
|
|
333
335
|
|
|
334
336
|
/**
|
|
@@ -339,7 +341,7 @@ interface AthenaService$ {
|
|
|
339
341
|
options?: HttpHandlerOptions,
|
|
340
342
|
): Effect.Effect<
|
|
341
343
|
CancelCapacityReservationCommandOutput,
|
|
342
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
344
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
343
345
|
>;
|
|
344
346
|
|
|
345
347
|
/**
|
|
@@ -350,7 +352,7 @@ interface AthenaService$ {
|
|
|
350
352
|
options?: HttpHandlerOptions,
|
|
351
353
|
): Effect.Effect<
|
|
352
354
|
CreateCapacityReservationCommandOutput,
|
|
353
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
355
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
354
356
|
>;
|
|
355
357
|
|
|
356
358
|
/**
|
|
@@ -361,7 +363,7 @@ interface AthenaService$ {
|
|
|
361
363
|
options?: HttpHandlerOptions,
|
|
362
364
|
): Effect.Effect<
|
|
363
365
|
CreateDataCatalogCommandOutput,
|
|
364
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
366
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
365
367
|
>;
|
|
366
368
|
|
|
367
369
|
/**
|
|
@@ -372,7 +374,7 @@ interface AthenaService$ {
|
|
|
372
374
|
options?: HttpHandlerOptions,
|
|
373
375
|
): Effect.Effect<
|
|
374
376
|
CreateNamedQueryCommandOutput,
|
|
375
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
377
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
376
378
|
>;
|
|
377
379
|
|
|
378
380
|
/**
|
|
@@ -383,7 +385,7 @@ interface AthenaService$ {
|
|
|
383
385
|
options?: HttpHandlerOptions,
|
|
384
386
|
): Effect.Effect<
|
|
385
387
|
CreateNotebookCommandOutput,
|
|
386
|
-
SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
388
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
387
389
|
>;
|
|
388
390
|
|
|
389
391
|
/**
|
|
@@ -394,7 +396,7 @@ interface AthenaService$ {
|
|
|
394
396
|
options?: HttpHandlerOptions,
|
|
395
397
|
): Effect.Effect<
|
|
396
398
|
CreatePreparedStatementCommandOutput,
|
|
397
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
399
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
398
400
|
>;
|
|
399
401
|
|
|
400
402
|
/**
|
|
@@ -405,7 +407,7 @@ interface AthenaService$ {
|
|
|
405
407
|
options?: HttpHandlerOptions,
|
|
406
408
|
): Effect.Effect<
|
|
407
409
|
CreatePresignedNotebookUrlCommandOutput,
|
|
408
|
-
SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
410
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
409
411
|
>;
|
|
410
412
|
|
|
411
413
|
/**
|
|
@@ -416,7 +418,7 @@ interface AthenaService$ {
|
|
|
416
418
|
options?: HttpHandlerOptions,
|
|
417
419
|
): Effect.Effect<
|
|
418
420
|
CreateWorkGroupCommandOutput,
|
|
419
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
421
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
420
422
|
>;
|
|
421
423
|
|
|
422
424
|
/**
|
|
@@ -427,7 +429,7 @@ interface AthenaService$ {
|
|
|
427
429
|
options?: HttpHandlerOptions,
|
|
428
430
|
): Effect.Effect<
|
|
429
431
|
DeleteCapacityReservationCommandOutput,
|
|
430
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
432
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
431
433
|
>;
|
|
432
434
|
|
|
433
435
|
/**
|
|
@@ -438,7 +440,7 @@ interface AthenaService$ {
|
|
|
438
440
|
options?: HttpHandlerOptions,
|
|
439
441
|
): Effect.Effect<
|
|
440
442
|
DeleteDataCatalogCommandOutput,
|
|
441
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
443
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
442
444
|
>;
|
|
443
445
|
|
|
444
446
|
/**
|
|
@@ -449,7 +451,7 @@ interface AthenaService$ {
|
|
|
449
451
|
options?: HttpHandlerOptions,
|
|
450
452
|
): Effect.Effect<
|
|
451
453
|
DeleteNamedQueryCommandOutput,
|
|
452
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
454
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
453
455
|
>;
|
|
454
456
|
|
|
455
457
|
/**
|
|
@@ -460,7 +462,7 @@ interface AthenaService$ {
|
|
|
460
462
|
options?: HttpHandlerOptions,
|
|
461
463
|
): Effect.Effect<
|
|
462
464
|
DeleteNotebookCommandOutput,
|
|
463
|
-
SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
465
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
464
466
|
>;
|
|
465
467
|
|
|
466
468
|
/**
|
|
@@ -471,7 +473,7 @@ interface AthenaService$ {
|
|
|
471
473
|
options?: HttpHandlerOptions,
|
|
472
474
|
): Effect.Effect<
|
|
473
475
|
DeletePreparedStatementCommandOutput,
|
|
474
|
-
SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
476
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
475
477
|
>;
|
|
476
478
|
|
|
477
479
|
/**
|
|
@@ -482,7 +484,7 @@ interface AthenaService$ {
|
|
|
482
484
|
options?: HttpHandlerOptions,
|
|
483
485
|
): Effect.Effect<
|
|
484
486
|
DeleteWorkGroupCommandOutput,
|
|
485
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
487
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
486
488
|
>;
|
|
487
489
|
|
|
488
490
|
/**
|
|
@@ -493,7 +495,7 @@ interface AthenaService$ {
|
|
|
493
495
|
options?: HttpHandlerOptions,
|
|
494
496
|
): Effect.Effect<
|
|
495
497
|
ExportNotebookCommandOutput,
|
|
496
|
-
SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
498
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
497
499
|
>;
|
|
498
500
|
|
|
499
501
|
/**
|
|
@@ -504,7 +506,7 @@ interface AthenaService$ {
|
|
|
504
506
|
options?: HttpHandlerOptions,
|
|
505
507
|
): Effect.Effect<
|
|
506
508
|
GetCalculationExecutionCommandOutput,
|
|
507
|
-
SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
509
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
508
510
|
>;
|
|
509
511
|
|
|
510
512
|
/**
|
|
@@ -515,7 +517,7 @@ interface AthenaService$ {
|
|
|
515
517
|
options?: HttpHandlerOptions,
|
|
516
518
|
): Effect.Effect<
|
|
517
519
|
GetCalculationExecutionCodeCommandOutput,
|
|
518
|
-
SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
520
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
519
521
|
>;
|
|
520
522
|
|
|
521
523
|
/**
|
|
@@ -526,7 +528,7 @@ interface AthenaService$ {
|
|
|
526
528
|
options?: HttpHandlerOptions,
|
|
527
529
|
): Effect.Effect<
|
|
528
530
|
GetCalculationExecutionStatusCommandOutput,
|
|
529
|
-
SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
531
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
530
532
|
>;
|
|
531
533
|
|
|
532
534
|
/**
|
|
@@ -537,7 +539,7 @@ interface AthenaService$ {
|
|
|
537
539
|
options?: HttpHandlerOptions,
|
|
538
540
|
): Effect.Effect<
|
|
539
541
|
GetCapacityAssignmentConfigurationCommandOutput,
|
|
540
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
542
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
541
543
|
>;
|
|
542
544
|
|
|
543
545
|
/**
|
|
@@ -548,7 +550,7 @@ interface AthenaService$ {
|
|
|
548
550
|
options?: HttpHandlerOptions,
|
|
549
551
|
): Effect.Effect<
|
|
550
552
|
GetCapacityReservationCommandOutput,
|
|
551
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
553
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
552
554
|
>;
|
|
553
555
|
|
|
554
556
|
/**
|
|
@@ -559,7 +561,7 @@ interface AthenaService$ {
|
|
|
559
561
|
options?: HttpHandlerOptions,
|
|
560
562
|
): Effect.Effect<
|
|
561
563
|
GetDataCatalogCommandOutput,
|
|
562
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
564
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
563
565
|
>;
|
|
564
566
|
|
|
565
567
|
/**
|
|
@@ -570,7 +572,7 @@ interface AthenaService$ {
|
|
|
570
572
|
options?: HttpHandlerOptions,
|
|
571
573
|
): Effect.Effect<
|
|
572
574
|
GetDatabaseCommandOutput,
|
|
573
|
-
SdkError | InternalServerError | InvalidRequestError | MetadataError
|
|
575
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | MetadataError
|
|
574
576
|
>;
|
|
575
577
|
|
|
576
578
|
/**
|
|
@@ -581,7 +583,7 @@ interface AthenaService$ {
|
|
|
581
583
|
options?: HttpHandlerOptions,
|
|
582
584
|
): Effect.Effect<
|
|
583
585
|
GetNamedQueryCommandOutput,
|
|
584
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
586
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
585
587
|
>;
|
|
586
588
|
|
|
587
589
|
/**
|
|
@@ -592,7 +594,7 @@ interface AthenaService$ {
|
|
|
592
594
|
options?: HttpHandlerOptions,
|
|
593
595
|
): Effect.Effect<
|
|
594
596
|
GetNotebookMetadataCommandOutput,
|
|
595
|
-
SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
597
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
596
598
|
>;
|
|
597
599
|
|
|
598
600
|
/**
|
|
@@ -603,7 +605,7 @@ interface AthenaService$ {
|
|
|
603
605
|
options?: HttpHandlerOptions,
|
|
604
606
|
): Effect.Effect<
|
|
605
607
|
GetPreparedStatementCommandOutput,
|
|
606
|
-
SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
608
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
607
609
|
>;
|
|
608
610
|
|
|
609
611
|
/**
|
|
@@ -614,7 +616,7 @@ interface AthenaService$ {
|
|
|
614
616
|
options?: HttpHandlerOptions,
|
|
615
617
|
): Effect.Effect<
|
|
616
618
|
GetQueryExecutionCommandOutput,
|
|
617
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
619
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
618
620
|
>;
|
|
619
621
|
|
|
620
622
|
/**
|
|
@@ -625,7 +627,7 @@ interface AthenaService$ {
|
|
|
625
627
|
options?: HttpHandlerOptions,
|
|
626
628
|
): Effect.Effect<
|
|
627
629
|
GetQueryResultsCommandOutput,
|
|
628
|
-
SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
630
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
629
631
|
>;
|
|
630
632
|
|
|
631
633
|
/**
|
|
@@ -636,7 +638,7 @@ interface AthenaService$ {
|
|
|
636
638
|
options?: HttpHandlerOptions,
|
|
637
639
|
): Effect.Effect<
|
|
638
640
|
GetQueryRuntimeStatisticsCommandOutput,
|
|
639
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
641
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
640
642
|
>;
|
|
641
643
|
|
|
642
644
|
/**
|
|
@@ -647,7 +649,7 @@ interface AthenaService$ {
|
|
|
647
649
|
options?: HttpHandlerOptions,
|
|
648
650
|
): Effect.Effect<
|
|
649
651
|
GetSessionCommandOutput,
|
|
650
|
-
SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
652
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
651
653
|
>;
|
|
652
654
|
|
|
653
655
|
/**
|
|
@@ -658,7 +660,7 @@ interface AthenaService$ {
|
|
|
658
660
|
options?: HttpHandlerOptions,
|
|
659
661
|
): Effect.Effect<
|
|
660
662
|
GetSessionStatusCommandOutput,
|
|
661
|
-
SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
663
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
662
664
|
>;
|
|
663
665
|
|
|
664
666
|
/**
|
|
@@ -669,7 +671,7 @@ interface AthenaService$ {
|
|
|
669
671
|
options?: HttpHandlerOptions,
|
|
670
672
|
): Effect.Effect<
|
|
671
673
|
GetTableMetadataCommandOutput,
|
|
672
|
-
SdkError | InternalServerError | InvalidRequestError | MetadataError
|
|
674
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | MetadataError
|
|
673
675
|
>;
|
|
674
676
|
|
|
675
677
|
/**
|
|
@@ -680,7 +682,7 @@ interface AthenaService$ {
|
|
|
680
682
|
options?: HttpHandlerOptions,
|
|
681
683
|
): Effect.Effect<
|
|
682
684
|
GetWorkGroupCommandOutput,
|
|
683
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
685
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
684
686
|
>;
|
|
685
687
|
|
|
686
688
|
/**
|
|
@@ -691,7 +693,7 @@ interface AthenaService$ {
|
|
|
691
693
|
options?: HttpHandlerOptions,
|
|
692
694
|
): Effect.Effect<
|
|
693
695
|
ImportNotebookCommandOutput,
|
|
694
|
-
SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
696
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
695
697
|
>;
|
|
696
698
|
|
|
697
699
|
/**
|
|
@@ -702,7 +704,7 @@ interface AthenaService$ {
|
|
|
702
704
|
options?: HttpHandlerOptions,
|
|
703
705
|
): Effect.Effect<
|
|
704
706
|
ListApplicationDPUSizesCommandOutput,
|
|
705
|
-
SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
707
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
706
708
|
>;
|
|
707
709
|
|
|
708
710
|
/**
|
|
@@ -713,7 +715,7 @@ interface AthenaService$ {
|
|
|
713
715
|
options?: HttpHandlerOptions,
|
|
714
716
|
): Effect.Effect<
|
|
715
717
|
ListCalculationExecutionsCommandOutput,
|
|
716
|
-
SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
718
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
717
719
|
>;
|
|
718
720
|
|
|
719
721
|
/**
|
|
@@ -724,7 +726,7 @@ interface AthenaService$ {
|
|
|
724
726
|
options?: HttpHandlerOptions,
|
|
725
727
|
): Effect.Effect<
|
|
726
728
|
ListCapacityReservationsCommandOutput,
|
|
727
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
729
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
728
730
|
>;
|
|
729
731
|
|
|
730
732
|
/**
|
|
@@ -735,7 +737,7 @@ interface AthenaService$ {
|
|
|
735
737
|
options?: HttpHandlerOptions,
|
|
736
738
|
): Effect.Effect<
|
|
737
739
|
ListDataCatalogsCommandOutput,
|
|
738
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
740
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
739
741
|
>;
|
|
740
742
|
|
|
741
743
|
/**
|
|
@@ -746,7 +748,7 @@ interface AthenaService$ {
|
|
|
746
748
|
options?: HttpHandlerOptions,
|
|
747
749
|
): Effect.Effect<
|
|
748
750
|
ListDatabasesCommandOutput,
|
|
749
|
-
SdkError | InternalServerError | InvalidRequestError | MetadataError
|
|
751
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | MetadataError
|
|
750
752
|
>;
|
|
751
753
|
|
|
752
754
|
/**
|
|
@@ -757,7 +759,7 @@ interface AthenaService$ {
|
|
|
757
759
|
options?: HttpHandlerOptions,
|
|
758
760
|
): Effect.Effect<
|
|
759
761
|
ListEngineVersionsCommandOutput,
|
|
760
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
762
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
761
763
|
>;
|
|
762
764
|
|
|
763
765
|
/**
|
|
@@ -768,7 +770,7 @@ interface AthenaService$ {
|
|
|
768
770
|
options?: HttpHandlerOptions,
|
|
769
771
|
): Effect.Effect<
|
|
770
772
|
ListExecutorsCommandOutput,
|
|
771
|
-
SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
773
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
772
774
|
>;
|
|
773
775
|
|
|
774
776
|
/**
|
|
@@ -779,7 +781,7 @@ interface AthenaService$ {
|
|
|
779
781
|
options?: HttpHandlerOptions,
|
|
780
782
|
): Effect.Effect<
|
|
781
783
|
ListNamedQueriesCommandOutput,
|
|
782
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
784
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
783
785
|
>;
|
|
784
786
|
|
|
785
787
|
/**
|
|
@@ -790,7 +792,7 @@ interface AthenaService$ {
|
|
|
790
792
|
options?: HttpHandlerOptions,
|
|
791
793
|
): Effect.Effect<
|
|
792
794
|
ListNotebookMetadataCommandOutput,
|
|
793
|
-
SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
795
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
794
796
|
>;
|
|
795
797
|
|
|
796
798
|
/**
|
|
@@ -801,7 +803,7 @@ interface AthenaService$ {
|
|
|
801
803
|
options?: HttpHandlerOptions,
|
|
802
804
|
): Effect.Effect<
|
|
803
805
|
ListNotebookSessionsCommandOutput,
|
|
804
|
-
SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
806
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
805
807
|
>;
|
|
806
808
|
|
|
807
809
|
/**
|
|
@@ -812,7 +814,7 @@ interface AthenaService$ {
|
|
|
812
814
|
options?: HttpHandlerOptions,
|
|
813
815
|
): Effect.Effect<
|
|
814
816
|
ListPreparedStatementsCommandOutput,
|
|
815
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
817
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
816
818
|
>;
|
|
817
819
|
|
|
818
820
|
/**
|
|
@@ -823,7 +825,7 @@ interface AthenaService$ {
|
|
|
823
825
|
options?: HttpHandlerOptions,
|
|
824
826
|
): Effect.Effect<
|
|
825
827
|
ListQueryExecutionsCommandOutput,
|
|
826
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
828
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
827
829
|
>;
|
|
828
830
|
|
|
829
831
|
/**
|
|
@@ -834,7 +836,7 @@ interface AthenaService$ {
|
|
|
834
836
|
options?: HttpHandlerOptions,
|
|
835
837
|
): Effect.Effect<
|
|
836
838
|
ListSessionsCommandOutput,
|
|
837
|
-
SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
839
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
838
840
|
>;
|
|
839
841
|
|
|
840
842
|
/**
|
|
@@ -845,7 +847,7 @@ interface AthenaService$ {
|
|
|
845
847
|
options?: HttpHandlerOptions,
|
|
846
848
|
): Effect.Effect<
|
|
847
849
|
ListTableMetadataCommandOutput,
|
|
848
|
-
SdkError | InternalServerError | InvalidRequestError | MetadataError
|
|
850
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | MetadataError
|
|
849
851
|
>;
|
|
850
852
|
|
|
851
853
|
/**
|
|
@@ -856,7 +858,7 @@ interface AthenaService$ {
|
|
|
856
858
|
options?: HttpHandlerOptions,
|
|
857
859
|
): Effect.Effect<
|
|
858
860
|
ListTagsForResourceCommandOutput,
|
|
859
|
-
SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
861
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
860
862
|
>;
|
|
861
863
|
|
|
862
864
|
/**
|
|
@@ -867,7 +869,7 @@ interface AthenaService$ {
|
|
|
867
869
|
options?: HttpHandlerOptions,
|
|
868
870
|
): Effect.Effect<
|
|
869
871
|
ListWorkGroupsCommandOutput,
|
|
870
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
872
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
871
873
|
>;
|
|
872
874
|
|
|
873
875
|
/**
|
|
@@ -878,7 +880,7 @@ interface AthenaService$ {
|
|
|
878
880
|
options?: HttpHandlerOptions,
|
|
879
881
|
): Effect.Effect<
|
|
880
882
|
PutCapacityAssignmentConfigurationCommandOutput,
|
|
881
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
883
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
882
884
|
>;
|
|
883
885
|
|
|
884
886
|
/**
|
|
@@ -889,7 +891,7 @@ interface AthenaService$ {
|
|
|
889
891
|
options?: HttpHandlerOptions,
|
|
890
892
|
): Effect.Effect<
|
|
891
893
|
StartCalculationExecutionCommandOutput,
|
|
892
|
-
SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
894
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
893
895
|
>;
|
|
894
896
|
|
|
895
897
|
/**
|
|
@@ -900,7 +902,7 @@ interface AthenaService$ {
|
|
|
900
902
|
options?: HttpHandlerOptions,
|
|
901
903
|
): Effect.Effect<
|
|
902
904
|
StartQueryExecutionCommandOutput,
|
|
903
|
-
SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
905
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
904
906
|
>;
|
|
905
907
|
|
|
906
908
|
/**
|
|
@@ -911,6 +913,7 @@ interface AthenaService$ {
|
|
|
911
913
|
options?: HttpHandlerOptions,
|
|
912
914
|
): Effect.Effect<
|
|
913
915
|
StartSessionCommandOutput,
|
|
916
|
+
| Cause.TimeoutException
|
|
914
917
|
| SdkError
|
|
915
918
|
| InternalServerError
|
|
916
919
|
| InvalidRequestError
|
|
@@ -927,7 +930,7 @@ interface AthenaService$ {
|
|
|
927
930
|
options?: HttpHandlerOptions,
|
|
928
931
|
): Effect.Effect<
|
|
929
932
|
StopCalculationExecutionCommandOutput,
|
|
930
|
-
SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
933
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
931
934
|
>;
|
|
932
935
|
|
|
933
936
|
/**
|
|
@@ -938,7 +941,7 @@ interface AthenaService$ {
|
|
|
938
941
|
options?: HttpHandlerOptions,
|
|
939
942
|
): Effect.Effect<
|
|
940
943
|
StopQueryExecutionCommandOutput,
|
|
941
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
944
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
942
945
|
>;
|
|
943
946
|
|
|
944
947
|
/**
|
|
@@ -949,7 +952,7 @@ interface AthenaService$ {
|
|
|
949
952
|
options?: HttpHandlerOptions,
|
|
950
953
|
): Effect.Effect<
|
|
951
954
|
TagResourceCommandOutput,
|
|
952
|
-
SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
955
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
953
956
|
>;
|
|
954
957
|
|
|
955
958
|
/**
|
|
@@ -960,7 +963,7 @@ interface AthenaService$ {
|
|
|
960
963
|
options?: HttpHandlerOptions,
|
|
961
964
|
): Effect.Effect<
|
|
962
965
|
TerminateSessionCommandOutput,
|
|
963
|
-
SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
966
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
964
967
|
>;
|
|
965
968
|
|
|
966
969
|
/**
|
|
@@ -971,7 +974,7 @@ interface AthenaService$ {
|
|
|
971
974
|
options?: HttpHandlerOptions,
|
|
972
975
|
): Effect.Effect<
|
|
973
976
|
UntagResourceCommandOutput,
|
|
974
|
-
SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
977
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
975
978
|
>;
|
|
976
979
|
|
|
977
980
|
/**
|
|
@@ -982,7 +985,7 @@ interface AthenaService$ {
|
|
|
982
985
|
options?: HttpHandlerOptions,
|
|
983
986
|
): Effect.Effect<
|
|
984
987
|
UpdateCapacityReservationCommandOutput,
|
|
985
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
988
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
986
989
|
>;
|
|
987
990
|
|
|
988
991
|
/**
|
|
@@ -993,7 +996,7 @@ interface AthenaService$ {
|
|
|
993
996
|
options?: HttpHandlerOptions,
|
|
994
997
|
): Effect.Effect<
|
|
995
998
|
UpdateDataCatalogCommandOutput,
|
|
996
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
999
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
997
1000
|
>;
|
|
998
1001
|
|
|
999
1002
|
/**
|
|
@@ -1004,7 +1007,7 @@ interface AthenaService$ {
|
|
|
1004
1007
|
options?: HttpHandlerOptions,
|
|
1005
1008
|
): Effect.Effect<
|
|
1006
1009
|
UpdateNamedQueryCommandOutput,
|
|
1007
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
1010
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
1008
1011
|
>;
|
|
1009
1012
|
|
|
1010
1013
|
/**
|
|
@@ -1015,7 +1018,7 @@ interface AthenaService$ {
|
|
|
1015
1018
|
options?: HttpHandlerOptions,
|
|
1016
1019
|
): Effect.Effect<
|
|
1017
1020
|
UpdateNotebookCommandOutput,
|
|
1018
|
-
SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
1021
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
1019
1022
|
>;
|
|
1020
1023
|
|
|
1021
1024
|
/**
|
|
@@ -1026,7 +1029,7 @@ interface AthenaService$ {
|
|
|
1026
1029
|
options?: HttpHandlerOptions,
|
|
1027
1030
|
): Effect.Effect<
|
|
1028
1031
|
UpdateNotebookMetadataCommandOutput,
|
|
1029
|
-
SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
1032
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
|
|
1030
1033
|
>;
|
|
1031
1034
|
|
|
1032
1035
|
/**
|
|
@@ -1037,7 +1040,7 @@ interface AthenaService$ {
|
|
|
1037
1040
|
options?: HttpHandlerOptions,
|
|
1038
1041
|
): Effect.Effect<
|
|
1039
1042
|
UpdatePreparedStatementCommandOutput,
|
|
1040
|
-
SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
1043
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
|
|
1041
1044
|
>;
|
|
1042
1045
|
|
|
1043
1046
|
/**
|
|
@@ -1048,7 +1051,7 @@ interface AthenaService$ {
|
|
|
1048
1051
|
options?: HttpHandlerOptions,
|
|
1049
1052
|
): Effect.Effect<
|
|
1050
1053
|
UpdateWorkGroupCommandOutput,
|
|
1051
|
-
SdkError | InternalServerError | InvalidRequestError
|
|
1054
|
+
Cause.TimeoutException | SdkError | InternalServerError | InvalidRequestError
|
|
1052
1055
|
>;
|
|
1053
1056
|
}
|
|
1054
1057
|
|
|
@@ -1059,7 +1062,7 @@ interface AthenaService$ {
|
|
|
1059
1062
|
export const makeAthenaService = Effect.gen(function*() {
|
|
1060
1063
|
const client = yield* Instance.AthenaClientInstance;
|
|
1061
1064
|
|
|
1062
|
-
return Service.fromClientAndCommands<AthenaService$>(
|
|
1065
|
+
return yield* Service.fromClientAndCommands<AthenaService$>(
|
|
1063
1066
|
client,
|
|
1064
1067
|
commands,
|
|
1065
1068
|
{
|
package/src/Errors.ts
CHANGED
|
@@ -7,7 +7,6 @@ import type {
|
|
|
7
7
|
TooManyRequestsException,
|
|
8
8
|
} from "@aws-sdk/client-athena";
|
|
9
9
|
import type { TaggedException } from "@effect-aws/commons";
|
|
10
|
-
import { SdkError as CommonSdkError } from "@effect-aws/commons";
|
|
11
10
|
|
|
12
11
|
export const AllServiceErrors = [
|
|
13
12
|
"InternalServerException",
|
|
@@ -24,6 +23,4 @@ export type MetadataError = TaggedException<MetadataException>;
|
|
|
24
23
|
export type ResourceNotFoundError = TaggedException<ResourceNotFoundException>;
|
|
25
24
|
export type SessionAlreadyExistsError = TaggedException<SessionAlreadyExistsException>;
|
|
26
25
|
export type TooManyRequestsError = TaggedException<TooManyRequestsException>;
|
|
27
|
-
|
|
28
|
-
export type SdkError = CommonSdkError;
|
|
29
|
-
export const SdkError = CommonSdkError;
|
|
26
|
+
export type SdkError = TaggedException<Error & { name: "SdkError" }>;
|