mypy-boto3-athena 1.26.0.post1__py3-none-any.whl → 1.28.36__py3-none-any.whl

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.
@@ -9,8 +9,8 @@ def print_info() -> None:
9
9
  Print package info to stdout.
10
10
  """
11
11
  print(
12
- "Type annotations for boto3.Athena 1.26.0\nVersion: 1.26.0.post1\nBuilder version:"
13
- " 7.11.10\nDocs: "
12
+ "Type annotations for boto3.Athena 1.28.36\nVersion: 1.28.36\nBuilder version:"
13
+ " 7.18.0\nDocs: "
14
14
  " https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena//\nBoto3 docs: "
15
15
  " https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena\nOther"
16
16
  " services: https://pypi.org/project/boto3-stubs/\nChangelog: "
@@ -22,7 +22,7 @@ def print_version() -> None:
22
22
  """
23
23
  Print package version to stdout.
24
24
  """
25
- print("1.26.0.post1")
25
+ print("1.28.36")
26
26
 
27
27
 
28
28
  def main() -> None:
@@ -18,7 +18,13 @@ from typing import Any, Dict, Mapping, Sequence, Type, overload
18
18
 
19
19
  from botocore.client import BaseClient, ClientMeta
20
20
 
21
- from .literals import DataCatalogTypeType, WorkGroupStateType
21
+ from .literals import (
22
+ CalculationExecutionStateType,
23
+ DataCatalogTypeType,
24
+ ExecutorStateType,
25
+ SessionStateType,
26
+ WorkGroupStateType,
27
+ )
22
28
  from .paginator import (
23
29
  GetQueryResultsPaginator,
24
30
  ListDatabasesPaginator,
@@ -32,34 +38,62 @@ from .type_defs import (
32
38
  BatchGetNamedQueryOutputTypeDef,
33
39
  BatchGetPreparedStatementOutputTypeDef,
34
40
  BatchGetQueryExecutionOutputTypeDef,
41
+ CalculationConfigurationTypeDef,
42
+ CapacityAssignmentTypeDef,
35
43
  CreateNamedQueryOutputTypeDef,
44
+ CreateNotebookOutputTypeDef,
45
+ CreatePresignedNotebookUrlResponseTypeDef,
46
+ EngineConfigurationTypeDef,
47
+ ExportNotebookOutputTypeDef,
48
+ FilterDefinitionTypeDef,
49
+ GetCalculationExecutionCodeResponseTypeDef,
50
+ GetCalculationExecutionResponseTypeDef,
51
+ GetCalculationExecutionStatusResponseTypeDef,
52
+ GetCapacityAssignmentConfigurationOutputTypeDef,
53
+ GetCapacityReservationOutputTypeDef,
36
54
  GetDatabaseOutputTypeDef,
37
55
  GetDataCatalogOutputTypeDef,
38
56
  GetNamedQueryOutputTypeDef,
57
+ GetNotebookMetadataOutputTypeDef,
39
58
  GetPreparedStatementOutputTypeDef,
40
59
  GetQueryExecutionOutputTypeDef,
41
60
  GetQueryResultsOutputTypeDef,
42
61
  GetQueryRuntimeStatisticsOutputTypeDef,
62
+ GetSessionResponseTypeDef,
63
+ GetSessionStatusResponseTypeDef,
43
64
  GetTableMetadataOutputTypeDef,
44
65
  GetWorkGroupOutputTypeDef,
66
+ ImportNotebookOutputTypeDef,
67
+ ListApplicationDPUSizesOutputTypeDef,
68
+ ListCalculationExecutionsResponseTypeDef,
69
+ ListCapacityReservationsOutputTypeDef,
45
70
  ListDatabasesOutputTypeDef,
46
71
  ListDataCatalogsOutputTypeDef,
47
72
  ListEngineVersionsOutputTypeDef,
73
+ ListExecutorsResponseTypeDef,
48
74
  ListNamedQueriesOutputTypeDef,
75
+ ListNotebookMetadataOutputTypeDef,
76
+ ListNotebookSessionsResponseTypeDef,
49
77
  ListPreparedStatementsOutputTypeDef,
50
78
  ListQueryExecutionsOutputTypeDef,
79
+ ListSessionsResponseTypeDef,
51
80
  ListTableMetadataOutputTypeDef,
52
81
  ListTagsForResourceOutputTypeDef,
53
82
  ListWorkGroupsOutputTypeDef,
54
83
  QueryExecutionContextTypeDef,
55
84
  ResultConfigurationTypeDef,
85
+ ResultReuseConfigurationTypeDef,
86
+ StartCalculationExecutionResponseTypeDef,
56
87
  StartQueryExecutionOutputTypeDef,
88
+ StartSessionResponseTypeDef,
89
+ StopCalculationExecutionResponseTypeDef,
57
90
  TagTypeDef,
91
+ TerminateSessionResponseTypeDef,
58
92
  WorkGroupConfigurationTypeDef,
59
93
  WorkGroupConfigurationUpdatesTypeDef,
60
94
  )
61
95
 
62
- if sys.version_info >= (3, 9):
96
+ if sys.version_info >= (3, 12):
63
97
  from typing import Literal
64
98
  else:
65
99
  from typing_extensions import Literal
@@ -82,6 +116,7 @@ class Exceptions:
82
116
  InvalidRequestException: Type[BotocoreClientError]
83
117
  MetadataException: Type[BotocoreClientError]
84
118
  ResourceNotFoundException: Type[BotocoreClientError]
119
+ SessionAlreadyExistsException: Type[BotocoreClientError]
85
120
  TooManyRequestsException: Type[BotocoreClientError]
86
121
 
87
122
 
@@ -143,6 +178,14 @@ class AthenaClient(BaseClient):
143
178
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#can_paginate)
144
179
  """
145
180
 
181
+ def cancel_capacity_reservation(self, *, Name: str) -> Dict[str, Any]:
182
+ """
183
+ Cancels the capacity reservation with the specified name.
184
+
185
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.cancel_capacity_reservation)
186
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#cancel_capacity_reservation)
187
+ """
188
+
146
189
  def close(self) -> None:
147
190
  """
148
191
  Closes underlying endpoint connections.
@@ -151,6 +194,17 @@ class AthenaClient(BaseClient):
151
194
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#close)
152
195
  """
153
196
 
197
+ def create_capacity_reservation(
198
+ self, *, TargetDpus: int, Name: str, Tags: Sequence[TagTypeDef] = ...
199
+ ) -> Dict[str, Any]:
200
+ """
201
+ Creates a capacity reservation with the specified name and number of requested
202
+ data processing units.
203
+
204
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.create_capacity_reservation)
205
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#create_capacity_reservation)
206
+ """
207
+
154
208
  def create_data_catalog(
155
209
  self,
156
210
  *,
@@ -184,6 +238,16 @@ class AthenaClient(BaseClient):
184
238
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#create_named_query)
185
239
  """
186
240
 
241
+ def create_notebook(
242
+ self, *, WorkGroup: str, Name: str, ClientRequestToken: str = ...
243
+ ) -> CreateNotebookOutputTypeDef:
244
+ """
245
+ Creates an empty `ipynb` file in the specified Apache Spark enabled workgroup.
246
+
247
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.create_notebook)
248
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#create_notebook)
249
+ """
250
+
187
251
  def create_prepared_statement(
188
252
  self, *, StatementName: str, WorkGroup: str, QueryStatement: str, Description: str = ...
189
253
  ) -> Dict[str, Any]:
@@ -194,6 +258,16 @@ class AthenaClient(BaseClient):
194
258
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#create_prepared_statement)
195
259
  """
196
260
 
261
+ def create_presigned_notebook_url(
262
+ self, *, SessionId: str
263
+ ) -> CreatePresignedNotebookUrlResponseTypeDef:
264
+ """
265
+ Gets an authentication token and the URL at which the notebook can be accessed.
266
+
267
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.create_presigned_notebook_url)
268
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#create_presigned_notebook_url)
269
+ """
270
+
197
271
  def create_work_group(
198
272
  self,
199
273
  *,
@@ -209,6 +283,14 @@ class AthenaClient(BaseClient):
209
283
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#create_work_group)
210
284
  """
211
285
 
286
+ def delete_capacity_reservation(self, *, Name: str) -> Dict[str, Any]:
287
+ """
288
+ Deletes a cancelled capacity reservation.
289
+
290
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.delete_capacity_reservation)
291
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#delete_capacity_reservation)
292
+ """
293
+
212
294
  def delete_data_catalog(self, *, Name: str) -> Dict[str, Any]:
213
295
  """
214
296
  Deletes a data catalog.
@@ -226,6 +308,14 @@ class AthenaClient(BaseClient):
226
308
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#delete_named_query)
227
309
  """
228
310
 
311
+ def delete_notebook(self, *, NotebookId: str) -> Dict[str, Any]:
312
+ """
313
+ Deletes the specified notebook.
314
+
315
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.delete_notebook)
316
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#delete_notebook)
317
+ """
318
+
229
319
  def delete_prepared_statement(self, *, StatementName: str, WorkGroup: str) -> Dict[str, Any]:
230
320
  """
231
321
  Deletes the prepared statement with the specified name from the specified
@@ -245,6 +335,14 @@ class AthenaClient(BaseClient):
245
335
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#delete_work_group)
246
336
  """
247
337
 
338
+ def export_notebook(self, *, NotebookId: str) -> ExportNotebookOutputTypeDef:
339
+ """
340
+ Exports the specified notebook and its metadata.
341
+
342
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.export_notebook)
343
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#export_notebook)
344
+ """
345
+
248
346
  def generate_presigned_url(
249
347
  self,
250
348
  ClientMethod: str,
@@ -259,6 +357,55 @@ class AthenaClient(BaseClient):
259
357
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#generate_presigned_url)
260
358
  """
261
359
 
360
+ def get_calculation_execution(
361
+ self, *, CalculationExecutionId: str
362
+ ) -> GetCalculationExecutionResponseTypeDef:
363
+ """
364
+ Describes a previously submitted calculation execution.
365
+
366
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.get_calculation_execution)
367
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_calculation_execution)
368
+ """
369
+
370
+ def get_calculation_execution_code(
371
+ self, *, CalculationExecutionId: str
372
+ ) -> GetCalculationExecutionCodeResponseTypeDef:
373
+ """
374
+ Retrieves the unencrypted code that was executed for the calculation.
375
+
376
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.get_calculation_execution_code)
377
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_calculation_execution_code)
378
+ """
379
+
380
+ def get_calculation_execution_status(
381
+ self, *, CalculationExecutionId: str
382
+ ) -> GetCalculationExecutionStatusResponseTypeDef:
383
+ """
384
+ Gets the status of a current calculation.
385
+
386
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.get_calculation_execution_status)
387
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_calculation_execution_status)
388
+ """
389
+
390
+ def get_capacity_assignment_configuration(
391
+ self, *, CapacityReservationName: str
392
+ ) -> GetCapacityAssignmentConfigurationOutputTypeDef:
393
+ """
394
+ Gets the capacity assignment configuration for a capacity reservation, if one
395
+ exists.
396
+
397
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.get_capacity_assignment_configuration)
398
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_capacity_assignment_configuration)
399
+ """
400
+
401
+ def get_capacity_reservation(self, *, Name: str) -> GetCapacityReservationOutputTypeDef:
402
+ """
403
+ Returns information about the capacity reservation with the specified name.
404
+
405
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.get_capacity_reservation)
406
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_capacity_reservation)
407
+ """
408
+
262
409
  def get_data_catalog(self, *, Name: str) -> GetDataCatalogOutputTypeDef:
263
410
  """
264
411
  Returns the specified data catalog.
@@ -283,6 +430,14 @@ class AthenaClient(BaseClient):
283
430
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_named_query)
284
431
  """
285
432
 
433
+ def get_notebook_metadata(self, *, NotebookId: str) -> GetNotebookMetadataOutputTypeDef:
434
+ """
435
+ Retrieves notebook metadata for the specified notebook ID.
436
+
437
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.get_notebook_metadata)
438
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_notebook_metadata)
439
+ """
440
+
286
441
  def get_prepared_statement(
287
442
  self, *, StatementName: str, WorkGroup: str
288
443
  ) -> GetPreparedStatementOutputTypeDef:
@@ -325,6 +480,23 @@ class AthenaClient(BaseClient):
325
480
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_query_runtime_statistics)
326
481
  """
327
482
 
483
+ def get_session(self, *, SessionId: str) -> GetSessionResponseTypeDef:
484
+ """
485
+ Gets the full details of a previously created session, including the session
486
+ status and configuration.
487
+
488
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.get_session)
489
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_session)
490
+ """
491
+
492
+ def get_session_status(self, *, SessionId: str) -> GetSessionStatusResponseTypeDef:
493
+ """
494
+ Gets the current status of a session.
495
+
496
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.get_session_status)
497
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_session_status)
498
+ """
499
+
328
500
  def get_table_metadata(
329
501
  self, *, CatalogName: str, DatabaseName: str, TableName: str
330
502
  ) -> GetTableMetadataOutputTypeDef:
@@ -343,6 +515,59 @@ class AthenaClient(BaseClient):
343
515
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_work_group)
344
516
  """
345
517
 
518
+ def import_notebook(
519
+ self,
520
+ *,
521
+ WorkGroup: str,
522
+ Name: str,
523
+ Payload: str,
524
+ Type: Literal["IPYNB"],
525
+ ClientRequestToken: str = ...
526
+ ) -> ImportNotebookOutputTypeDef:
527
+ """
528
+ Imports a single `ipynb` file to a Spark enabled workgroup.
529
+
530
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.import_notebook)
531
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#import_notebook)
532
+ """
533
+
534
+ def list_application_dpu_sizes(
535
+ self, *, MaxResults: int = ..., NextToken: str = ...
536
+ ) -> ListApplicationDPUSizesOutputTypeDef:
537
+ """
538
+ Returns the supported DPU sizes for the supported application runtimes (for
539
+ example, `Athena notebook version 1`).
540
+
541
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.list_application_dpu_sizes)
542
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#list_application_dpu_sizes)
543
+ """
544
+
545
+ def list_calculation_executions(
546
+ self,
547
+ *,
548
+ SessionId: str,
549
+ StateFilter: CalculationExecutionStateType = ...,
550
+ MaxResults: int = ...,
551
+ NextToken: str = ...
552
+ ) -> ListCalculationExecutionsResponseTypeDef:
553
+ """
554
+ Lists the calculations that have been submitted to a session in descending
555
+ order.
556
+
557
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.list_calculation_executions)
558
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#list_calculation_executions)
559
+ """
560
+
561
+ def list_capacity_reservations(
562
+ self, *, NextToken: str = ..., MaxResults: int = ...
563
+ ) -> ListCapacityReservationsOutputTypeDef:
564
+ """
565
+ Lists the capacity reservations for the current account.
566
+
567
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.list_capacity_reservations)
568
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#list_capacity_reservations)
569
+ """
570
+
346
571
  def list_data_catalogs(
347
572
  self, *, NextToken: str = ..., MaxResults: int = ...
348
573
  ) -> ListDataCatalogsOutputTypeDef:
@@ -374,6 +599,21 @@ class AthenaClient(BaseClient):
374
599
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#list_engine_versions)
375
600
  """
376
601
 
602
+ def list_executors(
603
+ self,
604
+ *,
605
+ SessionId: str,
606
+ ExecutorStateFilter: ExecutorStateType = ...,
607
+ MaxResults: int = ...,
608
+ NextToken: str = ...
609
+ ) -> ListExecutorsResponseTypeDef:
610
+ """
611
+ Lists, in descending order, the executors that joined a session.
612
+
613
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.list_executors)
614
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#list_executors)
615
+ """
616
+
377
617
  def list_named_queries(
378
618
  self, *, NextToken: str = ..., MaxResults: int = ..., WorkGroup: str = ...
379
619
  ) -> ListNamedQueriesOutputTypeDef:
@@ -385,6 +625,32 @@ class AthenaClient(BaseClient):
385
625
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#list_named_queries)
386
626
  """
387
627
 
628
+ def list_notebook_metadata(
629
+ self,
630
+ *,
631
+ WorkGroup: str,
632
+ Filters: FilterDefinitionTypeDef = ...,
633
+ NextToken: str = ...,
634
+ MaxResults: int = ...
635
+ ) -> ListNotebookMetadataOutputTypeDef:
636
+ """
637
+ Displays the notebook files for the specified workgroup in paginated format.
638
+
639
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.list_notebook_metadata)
640
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#list_notebook_metadata)
641
+ """
642
+
643
+ def list_notebook_sessions(
644
+ self, *, NotebookId: str, MaxResults: int = ..., NextToken: str = ...
645
+ ) -> ListNotebookSessionsResponseTypeDef:
646
+ """
647
+ Lists, in descending order, the sessions that have been created in a notebook
648
+ that are in an active state like `CREATING`, `CREATED`, `IDLE` or `BUSY`.
649
+
650
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.list_notebook_sessions)
651
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#list_notebook_sessions)
652
+ """
653
+
388
654
  def list_prepared_statements(
389
655
  self, *, WorkGroup: str, NextToken: str = ..., MaxResults: int = ...
390
656
  ) -> ListPreparedStatementsOutputTypeDef:
@@ -406,6 +672,22 @@ class AthenaClient(BaseClient):
406
672
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#list_query_executions)
407
673
  """
408
674
 
675
+ def list_sessions(
676
+ self,
677
+ *,
678
+ WorkGroup: str,
679
+ StateFilter: SessionStateType = ...,
680
+ MaxResults: int = ...,
681
+ NextToken: str = ...
682
+ ) -> ListSessionsResponseTypeDef:
683
+ """
684
+ Lists the sessions in a workgroup that are in an active state like `CREATING`,
685
+ `CREATED`, `IDLE`, or `BUSY`.
686
+
687
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.list_sessions)
688
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#list_sessions)
689
+ """
690
+
409
691
  def list_table_metadata(
410
692
  self,
411
693
  *,
@@ -426,7 +708,7 @@ class AthenaClient(BaseClient):
426
708
  self, *, ResourceARN: str, NextToken: str = ..., MaxResults: int = ...
427
709
  ) -> ListTagsForResourceOutputTypeDef:
428
710
  """
429
- Lists the tags associated with an Athena workgroup or data catalog resource.
711
+ Lists the tags associated with an Athena resource.
430
712
 
431
713
  [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.list_tags_for_resource)
432
714
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#list_tags_for_resource)
@@ -442,6 +724,36 @@ class AthenaClient(BaseClient):
442
724
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#list_work_groups)
443
725
  """
444
726
 
727
+ def put_capacity_assignment_configuration(
728
+ self,
729
+ *,
730
+ CapacityReservationName: str,
731
+ CapacityAssignments: Sequence[CapacityAssignmentTypeDef]
732
+ ) -> Dict[str, Any]:
733
+ """
734
+ Puts a new capacity assignment configuration for a specified capacity
735
+ reservation.
736
+
737
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.put_capacity_assignment_configuration)
738
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#put_capacity_assignment_configuration)
739
+ """
740
+
741
+ def start_calculation_execution(
742
+ self,
743
+ *,
744
+ SessionId: str,
745
+ Description: str = ...,
746
+ CalculationConfiguration: CalculationConfigurationTypeDef = ...,
747
+ CodeBlock: str = ...,
748
+ ClientRequestToken: str = ...
749
+ ) -> StartCalculationExecutionResponseTypeDef:
750
+ """
751
+ Submits calculations for execution within a session.
752
+
753
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.start_calculation_execution)
754
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#start_calculation_execution)
755
+ """
756
+
445
757
  def start_query_execution(
446
758
  self,
447
759
  *,
@@ -450,7 +762,8 @@ class AthenaClient(BaseClient):
450
762
  QueryExecutionContext: QueryExecutionContextTypeDef = ...,
451
763
  ResultConfiguration: ResultConfigurationTypeDef = ...,
452
764
  WorkGroup: str = ...,
453
- ExecutionParameters: Sequence[str] = ...
765
+ ExecutionParameters: Sequence[str] = ...,
766
+ ResultReuseConfiguration: ResultReuseConfigurationTypeDef = ...
454
767
  ) -> StartQueryExecutionOutputTypeDef:
455
768
  """
456
769
  Runs the SQL query statements contained in the `Query`.
@@ -459,6 +772,33 @@ class AthenaClient(BaseClient):
459
772
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#start_query_execution)
460
773
  """
461
774
 
775
+ def start_session(
776
+ self,
777
+ *,
778
+ WorkGroup: str,
779
+ EngineConfiguration: EngineConfigurationTypeDef,
780
+ Description: str = ...,
781
+ NotebookVersion: str = ...,
782
+ SessionIdleTimeoutInMinutes: int = ...,
783
+ ClientRequestToken: str = ...
784
+ ) -> StartSessionResponseTypeDef:
785
+ """
786
+ Creates a session for running calculations within a workgroup.
787
+
788
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.start_session)
789
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#start_session)
790
+ """
791
+
792
+ def stop_calculation_execution(
793
+ self, *, CalculationExecutionId: str
794
+ ) -> StopCalculationExecutionResponseTypeDef:
795
+ """
796
+ Requests the cancellation of a calculation.
797
+
798
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.stop_calculation_execution)
799
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#stop_calculation_execution)
800
+ """
801
+
462
802
  def stop_query_execution(self, *, QueryExecutionId: str) -> Dict[str, Any]:
463
803
  """
464
804
  Stops a query execution.
@@ -475,14 +815,31 @@ class AthenaClient(BaseClient):
475
815
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#tag_resource)
476
816
  """
477
817
 
818
+ def terminate_session(self, *, SessionId: str) -> TerminateSessionResponseTypeDef:
819
+ """
820
+ Terminates an active session.
821
+
822
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.terminate_session)
823
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#terminate_session)
824
+ """
825
+
478
826
  def untag_resource(self, *, ResourceARN: str, TagKeys: Sequence[str]) -> Dict[str, Any]:
479
827
  """
480
- Removes one or more tags from a data catalog or workgroup resource.
828
+ Removes one or more tags from an Athena resource.
481
829
 
482
830
  [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.untag_resource)
483
831
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#untag_resource)
484
832
  """
485
833
 
834
+ def update_capacity_reservation(self, *, TargetDpus: int, Name: str) -> Dict[str, Any]:
835
+ """
836
+ Updates the number of requested data processing units for the capacity
837
+ reservation with the specified name.
838
+
839
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.update_capacity_reservation)
840
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#update_capacity_reservation)
841
+ """
842
+
486
843
  def update_data_catalog(
487
844
  self,
488
845
  *,
@@ -508,6 +865,32 @@ class AthenaClient(BaseClient):
508
865
  [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#update_named_query)
509
866
  """
510
867
 
868
+ def update_notebook(
869
+ self,
870
+ *,
871
+ NotebookId: str,
872
+ Payload: str,
873
+ Type: Literal["IPYNB"],
874
+ SessionId: str = ...,
875
+ ClientRequestToken: str = ...
876
+ ) -> Dict[str, Any]:
877
+ """
878
+ Updates the contents of a Spark notebook.
879
+
880
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.update_notebook)
881
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#update_notebook)
882
+ """
883
+
884
+ def update_notebook_metadata(
885
+ self, *, NotebookId: str, Name: str, ClientRequestToken: str = ...
886
+ ) -> Dict[str, Any]:
887
+ """
888
+ Updates the metadata for a notebook.
889
+
890
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.update_notebook_metadata)
891
+ [Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#update_notebook_metadata)
892
+ """
893
+
511
894
  def update_prepared_statement(
512
895
  self, *, StatementName: str, WorkGroup: str, QueryStatement: str, Description: str = ...
513
896
  ) -> Dict[str, Any]: