@effect-aws/client-athena 1.9.3

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 (53) hide show
  1. package/AthenaClientInstance/package.json +6 -0
  2. package/AthenaService/package.json +6 -0
  3. package/AthenaServiceConfig/package.json +6 -0
  4. package/Errors/package.json +6 -0
  5. package/LICENSE +19 -0
  6. package/README.md +58 -0
  7. package/dist/cjs/AthenaClientInstance.d.ts +24 -0
  8. package/dist/cjs/AthenaClientInstance.d.ts.map +1 -0
  9. package/dist/cjs/AthenaClientInstance.js +50 -0
  10. package/dist/cjs/AthenaClientInstance.js.map +1 -0
  11. package/dist/cjs/AthenaService.d.ts +313 -0
  12. package/dist/cjs/AthenaService.d.ts.map +1 -0
  13. package/dist/cjs/AthenaService.js +127 -0
  14. package/dist/cjs/AthenaService.js.map +1 -0
  15. package/dist/cjs/AthenaServiceConfig.d.ts +25 -0
  16. package/dist/cjs/AthenaServiceConfig.d.ts.map +1 -0
  17. package/dist/cjs/AthenaServiceConfig.js +35 -0
  18. package/dist/cjs/AthenaServiceConfig.js.map +1 -0
  19. package/dist/cjs/Errors.d.ts +13 -0
  20. package/dist/cjs/Errors.d.ts.map +1 -0
  21. package/dist/cjs/Errors.js +14 -0
  22. package/dist/cjs/Errors.js.map +1 -0
  23. package/dist/cjs/index.d.ts +39 -0
  24. package/dist/cjs/index.d.ts.map +1 -0
  25. package/dist/cjs/index.js +56 -0
  26. package/dist/cjs/index.js.map +1 -0
  27. package/dist/dts/AthenaClientInstance.d.ts +24 -0
  28. package/dist/dts/AthenaClientInstance.d.ts.map +1 -0
  29. package/dist/dts/AthenaService.d.ts +313 -0
  30. package/dist/dts/AthenaService.d.ts.map +1 -0
  31. package/dist/dts/AthenaServiceConfig.d.ts +25 -0
  32. package/dist/dts/AthenaServiceConfig.d.ts.map +1 -0
  33. package/dist/dts/Errors.d.ts +13 -0
  34. package/dist/dts/Errors.d.ts.map +1 -0
  35. package/dist/dts/index.d.ts +39 -0
  36. package/dist/dts/index.d.ts.map +1 -0
  37. package/dist/esm/AthenaClientInstance.js +23 -0
  38. package/dist/esm/AthenaClientInstance.js.map +1 -0
  39. package/dist/esm/AthenaService.js +100 -0
  40. package/dist/esm/AthenaService.js.map +1 -0
  41. package/dist/esm/AthenaServiceConfig.js +31 -0
  42. package/dist/esm/AthenaServiceConfig.js.map +1 -0
  43. package/dist/esm/Errors.js +11 -0
  44. package/dist/esm/Errors.js.map +1 -0
  45. package/dist/esm/index.js +27 -0
  46. package/dist/esm/index.js.map +1 -0
  47. package/dist/esm/package.json +4 -0
  48. package/package.json +71 -0
  49. package/src/AthenaClientInstance.ts +33 -0
  50. package/src/AthenaService.ts +1109 -0
  51. package/src/AthenaServiceConfig.ts +52 -0
  52. package/src/Errors.ts +29 -0
  53. package/src/index.ts +44 -0
@@ -0,0 +1,1109 @@
1
+ /**
2
+ * @since 1.0.0
3
+ */
4
+ import {
5
+ type AthenaClient,
6
+ type AthenaClientConfig,
7
+ BatchGetNamedQueryCommand,
8
+ type BatchGetNamedQueryCommandInput,
9
+ type BatchGetNamedQueryCommandOutput,
10
+ BatchGetPreparedStatementCommand,
11
+ type BatchGetPreparedStatementCommandInput,
12
+ type BatchGetPreparedStatementCommandOutput,
13
+ BatchGetQueryExecutionCommand,
14
+ type BatchGetQueryExecutionCommandInput,
15
+ type BatchGetQueryExecutionCommandOutput,
16
+ CancelCapacityReservationCommand,
17
+ type CancelCapacityReservationCommandInput,
18
+ type CancelCapacityReservationCommandOutput,
19
+ CreateCapacityReservationCommand,
20
+ type CreateCapacityReservationCommandInput,
21
+ type CreateCapacityReservationCommandOutput,
22
+ CreateDataCatalogCommand,
23
+ type CreateDataCatalogCommandInput,
24
+ type CreateDataCatalogCommandOutput,
25
+ CreateNamedQueryCommand,
26
+ type CreateNamedQueryCommandInput,
27
+ type CreateNamedQueryCommandOutput,
28
+ CreateNotebookCommand,
29
+ type CreateNotebookCommandInput,
30
+ type CreateNotebookCommandOutput,
31
+ CreatePreparedStatementCommand,
32
+ type CreatePreparedStatementCommandInput,
33
+ type CreatePreparedStatementCommandOutput,
34
+ CreatePresignedNotebookUrlCommand,
35
+ type CreatePresignedNotebookUrlCommandInput,
36
+ type CreatePresignedNotebookUrlCommandOutput,
37
+ CreateWorkGroupCommand,
38
+ type CreateWorkGroupCommandInput,
39
+ type CreateWorkGroupCommandOutput,
40
+ DeleteCapacityReservationCommand,
41
+ type DeleteCapacityReservationCommandInput,
42
+ type DeleteCapacityReservationCommandOutput,
43
+ DeleteDataCatalogCommand,
44
+ type DeleteDataCatalogCommandInput,
45
+ type DeleteDataCatalogCommandOutput,
46
+ DeleteNamedQueryCommand,
47
+ type DeleteNamedQueryCommandInput,
48
+ type DeleteNamedQueryCommandOutput,
49
+ DeleteNotebookCommand,
50
+ type DeleteNotebookCommandInput,
51
+ type DeleteNotebookCommandOutput,
52
+ DeletePreparedStatementCommand,
53
+ type DeletePreparedStatementCommandInput,
54
+ type DeletePreparedStatementCommandOutput,
55
+ DeleteWorkGroupCommand,
56
+ type DeleteWorkGroupCommandInput,
57
+ type DeleteWorkGroupCommandOutput,
58
+ ExportNotebookCommand,
59
+ type ExportNotebookCommandInput,
60
+ type ExportNotebookCommandOutput,
61
+ GetCalculationExecutionCodeCommand,
62
+ type GetCalculationExecutionCodeCommandInput,
63
+ type GetCalculationExecutionCodeCommandOutput,
64
+ GetCalculationExecutionCommand,
65
+ type GetCalculationExecutionCommandInput,
66
+ type GetCalculationExecutionCommandOutput,
67
+ GetCalculationExecutionStatusCommand,
68
+ type GetCalculationExecutionStatusCommandInput,
69
+ type GetCalculationExecutionStatusCommandOutput,
70
+ GetCapacityAssignmentConfigurationCommand,
71
+ type GetCapacityAssignmentConfigurationCommandInput,
72
+ type GetCapacityAssignmentConfigurationCommandOutput,
73
+ GetCapacityReservationCommand,
74
+ type GetCapacityReservationCommandInput,
75
+ type GetCapacityReservationCommandOutput,
76
+ GetDatabaseCommand,
77
+ type GetDatabaseCommandInput,
78
+ type GetDatabaseCommandOutput,
79
+ GetDataCatalogCommand,
80
+ type GetDataCatalogCommandInput,
81
+ type GetDataCatalogCommandOutput,
82
+ GetNamedQueryCommand,
83
+ type GetNamedQueryCommandInput,
84
+ type GetNamedQueryCommandOutput,
85
+ GetNotebookMetadataCommand,
86
+ type GetNotebookMetadataCommandInput,
87
+ type GetNotebookMetadataCommandOutput,
88
+ GetPreparedStatementCommand,
89
+ type GetPreparedStatementCommandInput,
90
+ type GetPreparedStatementCommandOutput,
91
+ GetQueryExecutionCommand,
92
+ type GetQueryExecutionCommandInput,
93
+ type GetQueryExecutionCommandOutput,
94
+ GetQueryResultsCommand,
95
+ type GetQueryResultsCommandInput,
96
+ type GetQueryResultsCommandOutput,
97
+ GetQueryRuntimeStatisticsCommand,
98
+ type GetQueryRuntimeStatisticsCommandInput,
99
+ type GetQueryRuntimeStatisticsCommandOutput,
100
+ GetSessionCommand,
101
+ type GetSessionCommandInput,
102
+ type GetSessionCommandOutput,
103
+ GetSessionStatusCommand,
104
+ type GetSessionStatusCommandInput,
105
+ type GetSessionStatusCommandOutput,
106
+ GetTableMetadataCommand,
107
+ type GetTableMetadataCommandInput,
108
+ type GetTableMetadataCommandOutput,
109
+ GetWorkGroupCommand,
110
+ type GetWorkGroupCommandInput,
111
+ type GetWorkGroupCommandOutput,
112
+ ImportNotebookCommand,
113
+ type ImportNotebookCommandInput,
114
+ type ImportNotebookCommandOutput,
115
+ ListApplicationDPUSizesCommand,
116
+ type ListApplicationDPUSizesCommandInput,
117
+ type ListApplicationDPUSizesCommandOutput,
118
+ ListCalculationExecutionsCommand,
119
+ type ListCalculationExecutionsCommandInput,
120
+ type ListCalculationExecutionsCommandOutput,
121
+ ListCapacityReservationsCommand,
122
+ type ListCapacityReservationsCommandInput,
123
+ type ListCapacityReservationsCommandOutput,
124
+ ListDatabasesCommand,
125
+ type ListDatabasesCommandInput,
126
+ type ListDatabasesCommandOutput,
127
+ ListDataCatalogsCommand,
128
+ type ListDataCatalogsCommandInput,
129
+ type ListDataCatalogsCommandOutput,
130
+ ListEngineVersionsCommand,
131
+ type ListEngineVersionsCommandInput,
132
+ type ListEngineVersionsCommandOutput,
133
+ ListExecutorsCommand,
134
+ type ListExecutorsCommandInput,
135
+ type ListExecutorsCommandOutput,
136
+ ListNamedQueriesCommand,
137
+ type ListNamedQueriesCommandInput,
138
+ type ListNamedQueriesCommandOutput,
139
+ ListNotebookMetadataCommand,
140
+ type ListNotebookMetadataCommandInput,
141
+ type ListNotebookMetadataCommandOutput,
142
+ ListNotebookSessionsCommand,
143
+ type ListNotebookSessionsCommandInput,
144
+ type ListNotebookSessionsCommandOutput,
145
+ ListPreparedStatementsCommand,
146
+ type ListPreparedStatementsCommandInput,
147
+ type ListPreparedStatementsCommandOutput,
148
+ ListQueryExecutionsCommand,
149
+ type ListQueryExecutionsCommandInput,
150
+ type ListQueryExecutionsCommandOutput,
151
+ ListSessionsCommand,
152
+ type ListSessionsCommandInput,
153
+ type ListSessionsCommandOutput,
154
+ ListTableMetadataCommand,
155
+ type ListTableMetadataCommandInput,
156
+ type ListTableMetadataCommandOutput,
157
+ ListTagsForResourceCommand,
158
+ type ListTagsForResourceCommandInput,
159
+ type ListTagsForResourceCommandOutput,
160
+ ListWorkGroupsCommand,
161
+ type ListWorkGroupsCommandInput,
162
+ type ListWorkGroupsCommandOutput,
163
+ PutCapacityAssignmentConfigurationCommand,
164
+ type PutCapacityAssignmentConfigurationCommandInput,
165
+ type PutCapacityAssignmentConfigurationCommandOutput,
166
+ StartCalculationExecutionCommand,
167
+ type StartCalculationExecutionCommandInput,
168
+ type StartCalculationExecutionCommandOutput,
169
+ StartQueryExecutionCommand,
170
+ type StartQueryExecutionCommandInput,
171
+ type StartQueryExecutionCommandOutput,
172
+ StartSessionCommand,
173
+ type StartSessionCommandInput,
174
+ type StartSessionCommandOutput,
175
+ StopCalculationExecutionCommand,
176
+ type StopCalculationExecutionCommandInput,
177
+ type StopCalculationExecutionCommandOutput,
178
+ StopQueryExecutionCommand,
179
+ type StopQueryExecutionCommandInput,
180
+ type StopQueryExecutionCommandOutput,
181
+ TagResourceCommand,
182
+ type TagResourceCommandInput,
183
+ type TagResourceCommandOutput,
184
+ TerminateSessionCommand,
185
+ type TerminateSessionCommandInput,
186
+ type TerminateSessionCommandOutput,
187
+ UntagResourceCommand,
188
+ type UntagResourceCommandInput,
189
+ type UntagResourceCommandOutput,
190
+ UpdateCapacityReservationCommand,
191
+ type UpdateCapacityReservationCommandInput,
192
+ type UpdateCapacityReservationCommandOutput,
193
+ UpdateDataCatalogCommand,
194
+ type UpdateDataCatalogCommandInput,
195
+ type UpdateDataCatalogCommandOutput,
196
+ UpdateNamedQueryCommand,
197
+ type UpdateNamedQueryCommandInput,
198
+ type UpdateNamedQueryCommandOutput,
199
+ UpdateNotebookCommand,
200
+ type UpdateNotebookCommandInput,
201
+ type UpdateNotebookCommandOutput,
202
+ UpdateNotebookMetadataCommand,
203
+ type UpdateNotebookMetadataCommandInput,
204
+ type UpdateNotebookMetadataCommandOutput,
205
+ UpdatePreparedStatementCommand,
206
+ type UpdatePreparedStatementCommandInput,
207
+ type UpdatePreparedStatementCommandOutput,
208
+ UpdateWorkGroupCommand,
209
+ type UpdateWorkGroupCommandInput,
210
+ type UpdateWorkGroupCommandOutput,
211
+ } from "@aws-sdk/client-athena";
212
+ import type { HttpHandlerOptions, SdkError, ServiceLogger } from "@effect-aws/commons";
213
+ import { Service } from "@effect-aws/commons";
214
+ import { Effect, Layer } from "effect";
215
+ import * as Instance from "./AthenaClientInstance.js";
216
+ import * as AthenaServiceConfig from "./AthenaServiceConfig.js";
217
+ import type {
218
+ InternalServerError,
219
+ InvalidRequestError,
220
+ MetadataError,
221
+ ResourceNotFoundError,
222
+ SessionAlreadyExistsError,
223
+ TooManyRequestsError,
224
+ } from "./Errors.js";
225
+ import { AllServiceErrors } from "./Errors.js";
226
+
227
+ const commands = {
228
+ BatchGetNamedQueryCommand,
229
+ BatchGetPreparedStatementCommand,
230
+ BatchGetQueryExecutionCommand,
231
+ CancelCapacityReservationCommand,
232
+ CreateCapacityReservationCommand,
233
+ CreateDataCatalogCommand,
234
+ CreateNamedQueryCommand,
235
+ CreateNotebookCommand,
236
+ CreatePreparedStatementCommand,
237
+ CreatePresignedNotebookUrlCommand,
238
+ CreateWorkGroupCommand,
239
+ DeleteCapacityReservationCommand,
240
+ DeleteDataCatalogCommand,
241
+ DeleteNamedQueryCommand,
242
+ DeleteNotebookCommand,
243
+ DeletePreparedStatementCommand,
244
+ DeleteWorkGroupCommand,
245
+ ExportNotebookCommand,
246
+ GetCalculationExecutionCommand,
247
+ GetCalculationExecutionCodeCommand,
248
+ GetCalculationExecutionStatusCommand,
249
+ GetCapacityAssignmentConfigurationCommand,
250
+ GetCapacityReservationCommand,
251
+ GetDataCatalogCommand,
252
+ GetDatabaseCommand,
253
+ GetNamedQueryCommand,
254
+ GetNotebookMetadataCommand,
255
+ GetPreparedStatementCommand,
256
+ GetQueryExecutionCommand,
257
+ GetQueryResultsCommand,
258
+ GetQueryRuntimeStatisticsCommand,
259
+ GetSessionCommand,
260
+ GetSessionStatusCommand,
261
+ GetTableMetadataCommand,
262
+ GetWorkGroupCommand,
263
+ ImportNotebookCommand,
264
+ ListApplicationDPUSizesCommand,
265
+ ListCalculationExecutionsCommand,
266
+ ListCapacityReservationsCommand,
267
+ ListDataCatalogsCommand,
268
+ ListDatabasesCommand,
269
+ ListEngineVersionsCommand,
270
+ ListExecutorsCommand,
271
+ ListNamedQueriesCommand,
272
+ ListNotebookMetadataCommand,
273
+ ListNotebookSessionsCommand,
274
+ ListPreparedStatementsCommand,
275
+ ListQueryExecutionsCommand,
276
+ ListSessionsCommand,
277
+ ListTableMetadataCommand,
278
+ ListTagsForResourceCommand,
279
+ ListWorkGroupsCommand,
280
+ PutCapacityAssignmentConfigurationCommand,
281
+ StartCalculationExecutionCommand,
282
+ StartQueryExecutionCommand,
283
+ StartSessionCommand,
284
+ StopCalculationExecutionCommand,
285
+ StopQueryExecutionCommand,
286
+ TagResourceCommand,
287
+ TerminateSessionCommand,
288
+ UntagResourceCommand,
289
+ UpdateCapacityReservationCommand,
290
+ UpdateDataCatalogCommand,
291
+ UpdateNamedQueryCommand,
292
+ UpdateNotebookCommand,
293
+ UpdateNotebookMetadataCommand,
294
+ UpdatePreparedStatementCommand,
295
+ UpdateWorkGroupCommand,
296
+ };
297
+
298
+ interface AthenaService$ {
299
+ readonly _: unique symbol;
300
+
301
+ /**
302
+ * @see {@link BatchGetNamedQueryCommand}
303
+ */
304
+ batchGetNamedQuery(
305
+ args: BatchGetNamedQueryCommandInput,
306
+ options?: HttpHandlerOptions,
307
+ ): Effect.Effect<
308
+ BatchGetNamedQueryCommandOutput,
309
+ SdkError | InternalServerError | InvalidRequestError
310
+ >;
311
+
312
+ /**
313
+ * @see {@link BatchGetPreparedStatementCommand}
314
+ */
315
+ batchGetPreparedStatement(
316
+ args: BatchGetPreparedStatementCommandInput,
317
+ options?: HttpHandlerOptions,
318
+ ): Effect.Effect<
319
+ BatchGetPreparedStatementCommandOutput,
320
+ SdkError | InternalServerError | InvalidRequestError
321
+ >;
322
+
323
+ /**
324
+ * @see {@link BatchGetQueryExecutionCommand}
325
+ */
326
+ batchGetQueryExecution(
327
+ args: BatchGetQueryExecutionCommandInput,
328
+ options?: HttpHandlerOptions,
329
+ ): Effect.Effect<
330
+ BatchGetQueryExecutionCommandOutput,
331
+ SdkError | InternalServerError | InvalidRequestError
332
+ >;
333
+
334
+ /**
335
+ * @see {@link CancelCapacityReservationCommand}
336
+ */
337
+ cancelCapacityReservation(
338
+ args: CancelCapacityReservationCommandInput,
339
+ options?: HttpHandlerOptions,
340
+ ): Effect.Effect<
341
+ CancelCapacityReservationCommandOutput,
342
+ SdkError | InternalServerError | InvalidRequestError
343
+ >;
344
+
345
+ /**
346
+ * @see {@link CreateCapacityReservationCommand}
347
+ */
348
+ createCapacityReservation(
349
+ args: CreateCapacityReservationCommandInput,
350
+ options?: HttpHandlerOptions,
351
+ ): Effect.Effect<
352
+ CreateCapacityReservationCommandOutput,
353
+ SdkError | InternalServerError | InvalidRequestError
354
+ >;
355
+
356
+ /**
357
+ * @see {@link CreateDataCatalogCommand}
358
+ */
359
+ createDataCatalog(
360
+ args: CreateDataCatalogCommandInput,
361
+ options?: HttpHandlerOptions,
362
+ ): Effect.Effect<
363
+ CreateDataCatalogCommandOutput,
364
+ SdkError | InternalServerError | InvalidRequestError
365
+ >;
366
+
367
+ /**
368
+ * @see {@link CreateNamedQueryCommand}
369
+ */
370
+ createNamedQuery(
371
+ args: CreateNamedQueryCommandInput,
372
+ options?: HttpHandlerOptions,
373
+ ): Effect.Effect<
374
+ CreateNamedQueryCommandOutput,
375
+ SdkError | InternalServerError | InvalidRequestError
376
+ >;
377
+
378
+ /**
379
+ * @see {@link CreateNotebookCommand}
380
+ */
381
+ createNotebook(
382
+ args: CreateNotebookCommandInput,
383
+ options?: HttpHandlerOptions,
384
+ ): Effect.Effect<
385
+ CreateNotebookCommandOutput,
386
+ SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
387
+ >;
388
+
389
+ /**
390
+ * @see {@link CreatePreparedStatementCommand}
391
+ */
392
+ createPreparedStatement(
393
+ args: CreatePreparedStatementCommandInput,
394
+ options?: HttpHandlerOptions,
395
+ ): Effect.Effect<
396
+ CreatePreparedStatementCommandOutput,
397
+ SdkError | InternalServerError | InvalidRequestError
398
+ >;
399
+
400
+ /**
401
+ * @see {@link CreatePresignedNotebookUrlCommand}
402
+ */
403
+ createPresignedNotebookUrl(
404
+ args: CreatePresignedNotebookUrlCommandInput,
405
+ options?: HttpHandlerOptions,
406
+ ): Effect.Effect<
407
+ CreatePresignedNotebookUrlCommandOutput,
408
+ SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
409
+ >;
410
+
411
+ /**
412
+ * @see {@link CreateWorkGroupCommand}
413
+ */
414
+ createWorkGroup(
415
+ args: CreateWorkGroupCommandInput,
416
+ options?: HttpHandlerOptions,
417
+ ): Effect.Effect<
418
+ CreateWorkGroupCommandOutput,
419
+ SdkError | InternalServerError | InvalidRequestError
420
+ >;
421
+
422
+ /**
423
+ * @see {@link DeleteCapacityReservationCommand}
424
+ */
425
+ deleteCapacityReservation(
426
+ args: DeleteCapacityReservationCommandInput,
427
+ options?: HttpHandlerOptions,
428
+ ): Effect.Effect<
429
+ DeleteCapacityReservationCommandOutput,
430
+ SdkError | InternalServerError | InvalidRequestError
431
+ >;
432
+
433
+ /**
434
+ * @see {@link DeleteDataCatalogCommand}
435
+ */
436
+ deleteDataCatalog(
437
+ args: DeleteDataCatalogCommandInput,
438
+ options?: HttpHandlerOptions,
439
+ ): Effect.Effect<
440
+ DeleteDataCatalogCommandOutput,
441
+ SdkError | InternalServerError | InvalidRequestError
442
+ >;
443
+
444
+ /**
445
+ * @see {@link DeleteNamedQueryCommand}
446
+ */
447
+ deleteNamedQuery(
448
+ args: DeleteNamedQueryCommandInput,
449
+ options?: HttpHandlerOptions,
450
+ ): Effect.Effect<
451
+ DeleteNamedQueryCommandOutput,
452
+ SdkError | InternalServerError | InvalidRequestError
453
+ >;
454
+
455
+ /**
456
+ * @see {@link DeleteNotebookCommand}
457
+ */
458
+ deleteNotebook(
459
+ args: DeleteNotebookCommandInput,
460
+ options?: HttpHandlerOptions,
461
+ ): Effect.Effect<
462
+ DeleteNotebookCommandOutput,
463
+ SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
464
+ >;
465
+
466
+ /**
467
+ * @see {@link DeletePreparedStatementCommand}
468
+ */
469
+ deletePreparedStatement(
470
+ args: DeletePreparedStatementCommandInput,
471
+ options?: HttpHandlerOptions,
472
+ ): Effect.Effect<
473
+ DeletePreparedStatementCommandOutput,
474
+ SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
475
+ >;
476
+
477
+ /**
478
+ * @see {@link DeleteWorkGroupCommand}
479
+ */
480
+ deleteWorkGroup(
481
+ args: DeleteWorkGroupCommandInput,
482
+ options?: HttpHandlerOptions,
483
+ ): Effect.Effect<
484
+ DeleteWorkGroupCommandOutput,
485
+ SdkError | InternalServerError | InvalidRequestError
486
+ >;
487
+
488
+ /**
489
+ * @see {@link ExportNotebookCommand}
490
+ */
491
+ exportNotebook(
492
+ args: ExportNotebookCommandInput,
493
+ options?: HttpHandlerOptions,
494
+ ): Effect.Effect<
495
+ ExportNotebookCommandOutput,
496
+ SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
497
+ >;
498
+
499
+ /**
500
+ * @see {@link GetCalculationExecutionCommand}
501
+ */
502
+ getCalculationExecution(
503
+ args: GetCalculationExecutionCommandInput,
504
+ options?: HttpHandlerOptions,
505
+ ): Effect.Effect<
506
+ GetCalculationExecutionCommandOutput,
507
+ SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
508
+ >;
509
+
510
+ /**
511
+ * @see {@link GetCalculationExecutionCodeCommand}
512
+ */
513
+ getCalculationExecutionCode(
514
+ args: GetCalculationExecutionCodeCommandInput,
515
+ options?: HttpHandlerOptions,
516
+ ): Effect.Effect<
517
+ GetCalculationExecutionCodeCommandOutput,
518
+ SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
519
+ >;
520
+
521
+ /**
522
+ * @see {@link GetCalculationExecutionStatusCommand}
523
+ */
524
+ getCalculationExecutionStatus(
525
+ args: GetCalculationExecutionStatusCommandInput,
526
+ options?: HttpHandlerOptions,
527
+ ): Effect.Effect<
528
+ GetCalculationExecutionStatusCommandOutput,
529
+ SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
530
+ >;
531
+
532
+ /**
533
+ * @see {@link GetCapacityAssignmentConfigurationCommand}
534
+ */
535
+ getCapacityAssignmentConfiguration(
536
+ args: GetCapacityAssignmentConfigurationCommandInput,
537
+ options?: HttpHandlerOptions,
538
+ ): Effect.Effect<
539
+ GetCapacityAssignmentConfigurationCommandOutput,
540
+ SdkError | InternalServerError | InvalidRequestError
541
+ >;
542
+
543
+ /**
544
+ * @see {@link GetCapacityReservationCommand}
545
+ */
546
+ getCapacityReservation(
547
+ args: GetCapacityReservationCommandInput,
548
+ options?: HttpHandlerOptions,
549
+ ): Effect.Effect<
550
+ GetCapacityReservationCommandOutput,
551
+ SdkError | InternalServerError | InvalidRequestError
552
+ >;
553
+
554
+ /**
555
+ * @see {@link GetDataCatalogCommand}
556
+ */
557
+ getDataCatalog(
558
+ args: GetDataCatalogCommandInput,
559
+ options?: HttpHandlerOptions,
560
+ ): Effect.Effect<
561
+ GetDataCatalogCommandOutput,
562
+ SdkError | InternalServerError | InvalidRequestError
563
+ >;
564
+
565
+ /**
566
+ * @see {@link GetDatabaseCommand}
567
+ */
568
+ getDatabase(
569
+ args: GetDatabaseCommandInput,
570
+ options?: HttpHandlerOptions,
571
+ ): Effect.Effect<
572
+ GetDatabaseCommandOutput,
573
+ SdkError | InternalServerError | InvalidRequestError | MetadataError
574
+ >;
575
+
576
+ /**
577
+ * @see {@link GetNamedQueryCommand}
578
+ */
579
+ getNamedQuery(
580
+ args: GetNamedQueryCommandInput,
581
+ options?: HttpHandlerOptions,
582
+ ): Effect.Effect<
583
+ GetNamedQueryCommandOutput,
584
+ SdkError | InternalServerError | InvalidRequestError
585
+ >;
586
+
587
+ /**
588
+ * @see {@link GetNotebookMetadataCommand}
589
+ */
590
+ getNotebookMetadata(
591
+ args: GetNotebookMetadataCommandInput,
592
+ options?: HttpHandlerOptions,
593
+ ): Effect.Effect<
594
+ GetNotebookMetadataCommandOutput,
595
+ SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
596
+ >;
597
+
598
+ /**
599
+ * @see {@link GetPreparedStatementCommand}
600
+ */
601
+ getPreparedStatement(
602
+ args: GetPreparedStatementCommandInput,
603
+ options?: HttpHandlerOptions,
604
+ ): Effect.Effect<
605
+ GetPreparedStatementCommandOutput,
606
+ SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
607
+ >;
608
+
609
+ /**
610
+ * @see {@link GetQueryExecutionCommand}
611
+ */
612
+ getQueryExecution(
613
+ args: GetQueryExecutionCommandInput,
614
+ options?: HttpHandlerOptions,
615
+ ): Effect.Effect<
616
+ GetQueryExecutionCommandOutput,
617
+ SdkError | InternalServerError | InvalidRequestError
618
+ >;
619
+
620
+ /**
621
+ * @see {@link GetQueryResultsCommand}
622
+ */
623
+ getQueryResults(
624
+ args: GetQueryResultsCommandInput,
625
+ options?: HttpHandlerOptions,
626
+ ): Effect.Effect<
627
+ GetQueryResultsCommandOutput,
628
+ SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
629
+ >;
630
+
631
+ /**
632
+ * @see {@link GetQueryRuntimeStatisticsCommand}
633
+ */
634
+ getQueryRuntimeStatistics(
635
+ args: GetQueryRuntimeStatisticsCommandInput,
636
+ options?: HttpHandlerOptions,
637
+ ): Effect.Effect<
638
+ GetQueryRuntimeStatisticsCommandOutput,
639
+ SdkError | InternalServerError | InvalidRequestError
640
+ >;
641
+
642
+ /**
643
+ * @see {@link GetSessionCommand}
644
+ */
645
+ getSession(
646
+ args: GetSessionCommandInput,
647
+ options?: HttpHandlerOptions,
648
+ ): Effect.Effect<
649
+ GetSessionCommandOutput,
650
+ SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
651
+ >;
652
+
653
+ /**
654
+ * @see {@link GetSessionStatusCommand}
655
+ */
656
+ getSessionStatus(
657
+ args: GetSessionStatusCommandInput,
658
+ options?: HttpHandlerOptions,
659
+ ): Effect.Effect<
660
+ GetSessionStatusCommandOutput,
661
+ SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
662
+ >;
663
+
664
+ /**
665
+ * @see {@link GetTableMetadataCommand}
666
+ */
667
+ getTableMetadata(
668
+ args: GetTableMetadataCommandInput,
669
+ options?: HttpHandlerOptions,
670
+ ): Effect.Effect<
671
+ GetTableMetadataCommandOutput,
672
+ SdkError | InternalServerError | InvalidRequestError | MetadataError
673
+ >;
674
+
675
+ /**
676
+ * @see {@link GetWorkGroupCommand}
677
+ */
678
+ getWorkGroup(
679
+ args: GetWorkGroupCommandInput,
680
+ options?: HttpHandlerOptions,
681
+ ): Effect.Effect<
682
+ GetWorkGroupCommandOutput,
683
+ SdkError | InternalServerError | InvalidRequestError
684
+ >;
685
+
686
+ /**
687
+ * @see {@link ImportNotebookCommand}
688
+ */
689
+ importNotebook(
690
+ args: ImportNotebookCommandInput,
691
+ options?: HttpHandlerOptions,
692
+ ): Effect.Effect<
693
+ ImportNotebookCommandOutput,
694
+ SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
695
+ >;
696
+
697
+ /**
698
+ * @see {@link ListApplicationDPUSizesCommand}
699
+ */
700
+ listApplicationDPUSizes(
701
+ args: ListApplicationDPUSizesCommandInput,
702
+ options?: HttpHandlerOptions,
703
+ ): Effect.Effect<
704
+ ListApplicationDPUSizesCommandOutput,
705
+ SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
706
+ >;
707
+
708
+ /**
709
+ * @see {@link ListCalculationExecutionsCommand}
710
+ */
711
+ listCalculationExecutions(
712
+ args: ListCalculationExecutionsCommandInput,
713
+ options?: HttpHandlerOptions,
714
+ ): Effect.Effect<
715
+ ListCalculationExecutionsCommandOutput,
716
+ SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
717
+ >;
718
+
719
+ /**
720
+ * @see {@link ListCapacityReservationsCommand}
721
+ */
722
+ listCapacityReservations(
723
+ args: ListCapacityReservationsCommandInput,
724
+ options?: HttpHandlerOptions,
725
+ ): Effect.Effect<
726
+ ListCapacityReservationsCommandOutput,
727
+ SdkError | InternalServerError | InvalidRequestError
728
+ >;
729
+
730
+ /**
731
+ * @see {@link ListDataCatalogsCommand}
732
+ */
733
+ listDataCatalogs(
734
+ args: ListDataCatalogsCommandInput,
735
+ options?: HttpHandlerOptions,
736
+ ): Effect.Effect<
737
+ ListDataCatalogsCommandOutput,
738
+ SdkError | InternalServerError | InvalidRequestError
739
+ >;
740
+
741
+ /**
742
+ * @see {@link ListDatabasesCommand}
743
+ */
744
+ listDatabases(
745
+ args: ListDatabasesCommandInput,
746
+ options?: HttpHandlerOptions,
747
+ ): Effect.Effect<
748
+ ListDatabasesCommandOutput,
749
+ SdkError | InternalServerError | InvalidRequestError | MetadataError
750
+ >;
751
+
752
+ /**
753
+ * @see {@link ListEngineVersionsCommand}
754
+ */
755
+ listEngineVersions(
756
+ args: ListEngineVersionsCommandInput,
757
+ options?: HttpHandlerOptions,
758
+ ): Effect.Effect<
759
+ ListEngineVersionsCommandOutput,
760
+ SdkError | InternalServerError | InvalidRequestError
761
+ >;
762
+
763
+ /**
764
+ * @see {@link ListExecutorsCommand}
765
+ */
766
+ listExecutors(
767
+ args: ListExecutorsCommandInput,
768
+ options?: HttpHandlerOptions,
769
+ ): Effect.Effect<
770
+ ListExecutorsCommandOutput,
771
+ SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
772
+ >;
773
+
774
+ /**
775
+ * @see {@link ListNamedQueriesCommand}
776
+ */
777
+ listNamedQueries(
778
+ args: ListNamedQueriesCommandInput,
779
+ options?: HttpHandlerOptions,
780
+ ): Effect.Effect<
781
+ ListNamedQueriesCommandOutput,
782
+ SdkError | InternalServerError | InvalidRequestError
783
+ >;
784
+
785
+ /**
786
+ * @see {@link ListNotebookMetadataCommand}
787
+ */
788
+ listNotebookMetadata(
789
+ args: ListNotebookMetadataCommandInput,
790
+ options?: HttpHandlerOptions,
791
+ ): Effect.Effect<
792
+ ListNotebookMetadataCommandOutput,
793
+ SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
794
+ >;
795
+
796
+ /**
797
+ * @see {@link ListNotebookSessionsCommand}
798
+ */
799
+ listNotebookSessions(
800
+ args: ListNotebookSessionsCommandInput,
801
+ options?: HttpHandlerOptions,
802
+ ): Effect.Effect<
803
+ ListNotebookSessionsCommandOutput,
804
+ SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
805
+ >;
806
+
807
+ /**
808
+ * @see {@link ListPreparedStatementsCommand}
809
+ */
810
+ listPreparedStatements(
811
+ args: ListPreparedStatementsCommandInput,
812
+ options?: HttpHandlerOptions,
813
+ ): Effect.Effect<
814
+ ListPreparedStatementsCommandOutput,
815
+ SdkError | InternalServerError | InvalidRequestError
816
+ >;
817
+
818
+ /**
819
+ * @see {@link ListQueryExecutionsCommand}
820
+ */
821
+ listQueryExecutions(
822
+ args: ListQueryExecutionsCommandInput,
823
+ options?: HttpHandlerOptions,
824
+ ): Effect.Effect<
825
+ ListQueryExecutionsCommandOutput,
826
+ SdkError | InternalServerError | InvalidRequestError
827
+ >;
828
+
829
+ /**
830
+ * @see {@link ListSessionsCommand}
831
+ */
832
+ listSessions(
833
+ args: ListSessionsCommandInput,
834
+ options?: HttpHandlerOptions,
835
+ ): Effect.Effect<
836
+ ListSessionsCommandOutput,
837
+ SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
838
+ >;
839
+
840
+ /**
841
+ * @see {@link ListTableMetadataCommand}
842
+ */
843
+ listTableMetadata(
844
+ args: ListTableMetadataCommandInput,
845
+ options?: HttpHandlerOptions,
846
+ ): Effect.Effect<
847
+ ListTableMetadataCommandOutput,
848
+ SdkError | InternalServerError | InvalidRequestError | MetadataError
849
+ >;
850
+
851
+ /**
852
+ * @see {@link ListTagsForResourceCommand}
853
+ */
854
+ listTagsForResource(
855
+ args: ListTagsForResourceCommandInput,
856
+ options?: HttpHandlerOptions,
857
+ ): Effect.Effect<
858
+ ListTagsForResourceCommandOutput,
859
+ SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
860
+ >;
861
+
862
+ /**
863
+ * @see {@link ListWorkGroupsCommand}
864
+ */
865
+ listWorkGroups(
866
+ args: ListWorkGroupsCommandInput,
867
+ options?: HttpHandlerOptions,
868
+ ): Effect.Effect<
869
+ ListWorkGroupsCommandOutput,
870
+ SdkError | InternalServerError | InvalidRequestError
871
+ >;
872
+
873
+ /**
874
+ * @see {@link PutCapacityAssignmentConfigurationCommand}
875
+ */
876
+ putCapacityAssignmentConfiguration(
877
+ args: PutCapacityAssignmentConfigurationCommandInput,
878
+ options?: HttpHandlerOptions,
879
+ ): Effect.Effect<
880
+ PutCapacityAssignmentConfigurationCommandOutput,
881
+ SdkError | InternalServerError | InvalidRequestError
882
+ >;
883
+
884
+ /**
885
+ * @see {@link StartCalculationExecutionCommand}
886
+ */
887
+ startCalculationExecution(
888
+ args: StartCalculationExecutionCommandInput,
889
+ options?: HttpHandlerOptions,
890
+ ): Effect.Effect<
891
+ StartCalculationExecutionCommandOutput,
892
+ SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
893
+ >;
894
+
895
+ /**
896
+ * @see {@link StartQueryExecutionCommand}
897
+ */
898
+ startQueryExecution(
899
+ args: StartQueryExecutionCommandInput,
900
+ options?: HttpHandlerOptions,
901
+ ): Effect.Effect<
902
+ StartQueryExecutionCommandOutput,
903
+ SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
904
+ >;
905
+
906
+ /**
907
+ * @see {@link StartSessionCommand}
908
+ */
909
+ startSession(
910
+ args: StartSessionCommandInput,
911
+ options?: HttpHandlerOptions,
912
+ ): Effect.Effect<
913
+ StartSessionCommandOutput,
914
+ | SdkError
915
+ | InternalServerError
916
+ | InvalidRequestError
917
+ | ResourceNotFoundError
918
+ | SessionAlreadyExistsError
919
+ | TooManyRequestsError
920
+ >;
921
+
922
+ /**
923
+ * @see {@link StopCalculationExecutionCommand}
924
+ */
925
+ stopCalculationExecution(
926
+ args: StopCalculationExecutionCommandInput,
927
+ options?: HttpHandlerOptions,
928
+ ): Effect.Effect<
929
+ StopCalculationExecutionCommandOutput,
930
+ SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
931
+ >;
932
+
933
+ /**
934
+ * @see {@link StopQueryExecutionCommand}
935
+ */
936
+ stopQueryExecution(
937
+ args: StopQueryExecutionCommandInput,
938
+ options?: HttpHandlerOptions,
939
+ ): Effect.Effect<
940
+ StopQueryExecutionCommandOutput,
941
+ SdkError | InternalServerError | InvalidRequestError
942
+ >;
943
+
944
+ /**
945
+ * @see {@link TagResourceCommand}
946
+ */
947
+ tagResource(
948
+ args: TagResourceCommandInput,
949
+ options?: HttpHandlerOptions,
950
+ ): Effect.Effect<
951
+ TagResourceCommandOutput,
952
+ SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
953
+ >;
954
+
955
+ /**
956
+ * @see {@link TerminateSessionCommand}
957
+ */
958
+ terminateSession(
959
+ args: TerminateSessionCommandInput,
960
+ options?: HttpHandlerOptions,
961
+ ): Effect.Effect<
962
+ TerminateSessionCommandOutput,
963
+ SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
964
+ >;
965
+
966
+ /**
967
+ * @see {@link UntagResourceCommand}
968
+ */
969
+ untagResource(
970
+ args: UntagResourceCommandInput,
971
+ options?: HttpHandlerOptions,
972
+ ): Effect.Effect<
973
+ UntagResourceCommandOutput,
974
+ SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
975
+ >;
976
+
977
+ /**
978
+ * @see {@link UpdateCapacityReservationCommand}
979
+ */
980
+ updateCapacityReservation(
981
+ args: UpdateCapacityReservationCommandInput,
982
+ options?: HttpHandlerOptions,
983
+ ): Effect.Effect<
984
+ UpdateCapacityReservationCommandOutput,
985
+ SdkError | InternalServerError | InvalidRequestError
986
+ >;
987
+
988
+ /**
989
+ * @see {@link UpdateDataCatalogCommand}
990
+ */
991
+ updateDataCatalog(
992
+ args: UpdateDataCatalogCommandInput,
993
+ options?: HttpHandlerOptions,
994
+ ): Effect.Effect<
995
+ UpdateDataCatalogCommandOutput,
996
+ SdkError | InternalServerError | InvalidRequestError
997
+ >;
998
+
999
+ /**
1000
+ * @see {@link UpdateNamedQueryCommand}
1001
+ */
1002
+ updateNamedQuery(
1003
+ args: UpdateNamedQueryCommandInput,
1004
+ options?: HttpHandlerOptions,
1005
+ ): Effect.Effect<
1006
+ UpdateNamedQueryCommandOutput,
1007
+ SdkError | InternalServerError | InvalidRequestError
1008
+ >;
1009
+
1010
+ /**
1011
+ * @see {@link UpdateNotebookCommand}
1012
+ */
1013
+ updateNotebook(
1014
+ args: UpdateNotebookCommandInput,
1015
+ options?: HttpHandlerOptions,
1016
+ ): Effect.Effect<
1017
+ UpdateNotebookCommandOutput,
1018
+ SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
1019
+ >;
1020
+
1021
+ /**
1022
+ * @see {@link UpdateNotebookMetadataCommand}
1023
+ */
1024
+ updateNotebookMetadata(
1025
+ args: UpdateNotebookMetadataCommandInput,
1026
+ options?: HttpHandlerOptions,
1027
+ ): Effect.Effect<
1028
+ UpdateNotebookMetadataCommandOutput,
1029
+ SdkError | InternalServerError | InvalidRequestError | TooManyRequestsError
1030
+ >;
1031
+
1032
+ /**
1033
+ * @see {@link UpdatePreparedStatementCommand}
1034
+ */
1035
+ updatePreparedStatement(
1036
+ args: UpdatePreparedStatementCommandInput,
1037
+ options?: HttpHandlerOptions,
1038
+ ): Effect.Effect<
1039
+ UpdatePreparedStatementCommandOutput,
1040
+ SdkError | InternalServerError | InvalidRequestError | ResourceNotFoundError
1041
+ >;
1042
+
1043
+ /**
1044
+ * @see {@link UpdateWorkGroupCommand}
1045
+ */
1046
+ updateWorkGroup(
1047
+ args: UpdateWorkGroupCommandInput,
1048
+ options?: HttpHandlerOptions,
1049
+ ): Effect.Effect<
1050
+ UpdateWorkGroupCommandOutput,
1051
+ SdkError | InternalServerError | InvalidRequestError
1052
+ >;
1053
+ }
1054
+
1055
+ /**
1056
+ * @since 1.0.0
1057
+ * @category constructors
1058
+ */
1059
+ export const makeAthenaService = Effect.gen(function*() {
1060
+ const client = yield* Instance.AthenaClientInstance;
1061
+
1062
+ return Service.fromClientAndCommands<AthenaService$>(
1063
+ client,
1064
+ commands,
1065
+ {
1066
+ errorTags: AllServiceErrors,
1067
+ resolveClientConfig: AthenaServiceConfig.toAthenaClientConfig,
1068
+ },
1069
+ );
1070
+ });
1071
+
1072
+ /**
1073
+ * @since 1.0.0
1074
+ * @category models
1075
+ */
1076
+ export class AthenaService extends Effect.Tag("@effect-aws/client-athena/AthenaService")<
1077
+ AthenaService,
1078
+ AthenaService$
1079
+ >() {
1080
+ static readonly defaultLayer = Layer.effect(this, makeAthenaService).pipe(Layer.provide(Instance.layer));
1081
+ static readonly layer = (config: AthenaService.Config) =>
1082
+ Layer.effect(this, makeAthenaService).pipe(
1083
+ Layer.provide(Instance.layer),
1084
+ Layer.provide(AthenaServiceConfig.setAthenaServiceConfig(config)),
1085
+ );
1086
+ static readonly baseLayer = (
1087
+ evaluate: (defaultConfig: AthenaClientConfig) => AthenaClient,
1088
+ ) =>
1089
+ Layer.effect(this, makeAthenaService).pipe(
1090
+ Layer.provide(
1091
+ Layer.effect(
1092
+ Instance.AthenaClientInstance,
1093
+ Effect.map(AthenaServiceConfig.toAthenaClientConfig, evaluate),
1094
+ ),
1095
+ ),
1096
+ );
1097
+ }
1098
+
1099
+ /**
1100
+ * @since 1.0.0
1101
+ */
1102
+ export declare namespace AthenaService {
1103
+ /**
1104
+ * @since 1.0.0
1105
+ */
1106
+ export interface Config extends Omit<AthenaClientConfig, "logger"> {
1107
+ readonly logger?: ServiceLogger.ServiceLoggerConstructorProps | true;
1108
+ }
1109
+ }