mypy-boto3-athena 1.26.100__py3-none-any.whl → 1.34.130__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.
- mypy_boto3_athena/__init__.py +1 -1
- mypy_boto3_athena/__init__.pyi +1 -0
- mypy_boto3_athena/__main__.py +9 -7
- mypy_boto3_athena/client.py +144 -42
- mypy_boto3_athena/client.pyi +214 -41
- mypy_boto3_athena/literals.py +68 -11
- mypy_boto3_athena/literals.pyi +68 -9
- mypy_boto3_athena/paginator.py +9 -4
- mypy_boto3_athena/paginator.pyi +9 -3
- mypy_boto3_athena/type_defs.py +584 -1130
- mypy_boto3_athena/type_defs.pyi +582 -1045
- mypy_boto3_athena/version.py +2 -1
- {mypy_boto3_athena-1.26.100.dist-info → mypy_boto3_athena-1.34.130.dist-info}/LICENSE +1 -1
- {mypy_boto3_athena-1.26.100.dist-info → mypy_boto3_athena-1.34.130.dist-info}/METADATA +24 -212
- mypy_boto3_athena-1.34.130.dist-info/RECORD +18 -0
- {mypy_boto3_athena-1.26.100.dist-info → mypy_boto3_athena-1.34.130.dist-info}/WHEEL +1 -1
- mypy_boto3_athena-1.26.100.dist-info/RECORD +0 -18
- {mypy_boto3_athena-1.26.100.dist-info → mypy_boto3_athena-1.34.130.dist-info}/top_level.txt +0 -0
mypy_boto3_athena/__init__.py
CHANGED
|
@@ -29,6 +29,7 @@ Usage::
|
|
|
29
29
|
list_tags_for_resource_paginator: ListTagsForResourcePaginator = client.get_paginator("list_tags_for_resource")
|
|
30
30
|
```
|
|
31
31
|
"""
|
|
32
|
+
|
|
32
33
|
from .client import AthenaClient
|
|
33
34
|
from .paginator import (
|
|
34
35
|
GetQueryResultsPaginator,
|
|
@@ -42,7 +43,6 @@ from .paginator import (
|
|
|
42
43
|
|
|
43
44
|
Client = AthenaClient
|
|
44
45
|
|
|
45
|
-
|
|
46
46
|
__all__ = (
|
|
47
47
|
"AthenaClient",
|
|
48
48
|
"Client",
|
mypy_boto3_athena/__init__.pyi
CHANGED
mypy_boto3_athena/__main__.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""
|
|
2
2
|
Main CLI entrypoint.
|
|
3
3
|
"""
|
|
4
|
+
|
|
4
5
|
import sys
|
|
5
6
|
|
|
6
7
|
|
|
@@ -9,12 +10,13 @@ def print_info() -> None:
|
|
|
9
10
|
Print package info to stdout.
|
|
10
11
|
"""
|
|
11
12
|
print(
|
|
12
|
-
"Type annotations for boto3.Athena 1.
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
" https://
|
|
13
|
+
"Type annotations for boto3.Athena 1.34.130\n"
|
|
14
|
+
"Version: 1.34.130\n"
|
|
15
|
+
"Builder version: 7.24.0\n"
|
|
16
|
+
"Docs: https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena//\n"
|
|
17
|
+
"Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena\n"
|
|
18
|
+
"Other services: https://pypi.org/project/boto3-stubs/\n"
|
|
19
|
+
"Changelog: https://github.com/youtype/mypy_boto3_builder/releases"
|
|
18
20
|
)
|
|
19
21
|
|
|
20
22
|
|
|
@@ -22,7 +24,7 @@ def print_version() -> None:
|
|
|
22
24
|
"""
|
|
23
25
|
Print package version to stdout.
|
|
24
26
|
"""
|
|
25
|
-
print("1.
|
|
27
|
+
print("1.34.130")
|
|
26
28
|
|
|
27
29
|
|
|
28
30
|
def main() -> None:
|
mypy_boto3_athena/client.py
CHANGED
|
@@ -13,6 +13,7 @@ Usage::
|
|
|
13
13
|
client: AthenaClient = session.client("athena")
|
|
14
14
|
```
|
|
15
15
|
"""
|
|
16
|
+
|
|
16
17
|
import sys
|
|
17
18
|
from typing import Any, Dict, Mapping, Sequence, Type, overload
|
|
18
19
|
|
|
@@ -39,15 +40,18 @@ from .type_defs import (
|
|
|
39
40
|
BatchGetPreparedStatementOutputTypeDef,
|
|
40
41
|
BatchGetQueryExecutionOutputTypeDef,
|
|
41
42
|
CalculationConfigurationTypeDef,
|
|
43
|
+
CapacityAssignmentUnionTypeDef,
|
|
42
44
|
CreateNamedQueryOutputTypeDef,
|
|
43
45
|
CreateNotebookOutputTypeDef,
|
|
44
46
|
CreatePresignedNotebookUrlResponseTypeDef,
|
|
45
|
-
|
|
47
|
+
EngineConfigurationUnionTypeDef,
|
|
46
48
|
ExportNotebookOutputTypeDef,
|
|
47
49
|
FilterDefinitionTypeDef,
|
|
48
50
|
GetCalculationExecutionCodeResponseTypeDef,
|
|
49
51
|
GetCalculationExecutionResponseTypeDef,
|
|
50
52
|
GetCalculationExecutionStatusResponseTypeDef,
|
|
53
|
+
GetCapacityAssignmentConfigurationOutputTypeDef,
|
|
54
|
+
GetCapacityReservationOutputTypeDef,
|
|
51
55
|
GetDatabaseOutputTypeDef,
|
|
52
56
|
GetDataCatalogOutputTypeDef,
|
|
53
57
|
GetNamedQueryOutputTypeDef,
|
|
@@ -63,6 +67,7 @@ from .type_defs import (
|
|
|
63
67
|
ImportNotebookOutputTypeDef,
|
|
64
68
|
ListApplicationDPUSizesOutputTypeDef,
|
|
65
69
|
ListCalculationExecutionsResponseTypeDef,
|
|
70
|
+
ListCapacityReservationsOutputTypeDef,
|
|
66
71
|
ListDatabasesOutputTypeDef,
|
|
67
72
|
ListDataCatalogsOutputTypeDef,
|
|
68
73
|
ListEngineVersionsOutputTypeDef,
|
|
@@ -89,16 +94,15 @@ from .type_defs import (
|
|
|
89
94
|
WorkGroupConfigurationUpdatesTypeDef,
|
|
90
95
|
)
|
|
91
96
|
|
|
92
|
-
if sys.version_info >= (3,
|
|
97
|
+
if sys.version_info >= (3, 12):
|
|
93
98
|
from typing import Literal
|
|
94
99
|
else:
|
|
95
100
|
from typing_extensions import Literal
|
|
96
101
|
|
|
97
|
-
|
|
98
102
|
__all__ = ("AthenaClient",)
|
|
99
103
|
|
|
100
104
|
|
|
101
|
-
class BotocoreClientError(
|
|
105
|
+
class BotocoreClientError(Exception):
|
|
102
106
|
MSG_TEMPLATE: str
|
|
103
107
|
|
|
104
108
|
def __init__(self, error_response: Mapping[str, Any], operation_name: str) -> None:
|
|
@@ -137,8 +141,9 @@ class AthenaClient(BaseClient):
|
|
|
137
141
|
self, *, NamedQueryIds: Sequence[str]
|
|
138
142
|
) -> BatchGetNamedQueryOutputTypeDef:
|
|
139
143
|
"""
|
|
140
|
-
Returns the details of a single named query or a list of up to 50 queries,
|
|
141
|
-
you provide as an array of query ID
|
|
144
|
+
Returns the details of a single named query or a list of up to 50 queries,
|
|
145
|
+
which you provide as an array of query ID
|
|
146
|
+
strings.
|
|
142
147
|
|
|
143
148
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.batch_get_named_query)
|
|
144
149
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#batch_get_named_query)
|
|
@@ -149,7 +154,8 @@ class AthenaClient(BaseClient):
|
|
|
149
154
|
) -> BatchGetPreparedStatementOutputTypeDef:
|
|
150
155
|
"""
|
|
151
156
|
Returns the details of a single prepared statement or a list of up to 256
|
|
152
|
-
prepared statements for the array of prepared statement names that you
|
|
157
|
+
prepared statements for the array of prepared statement names that you
|
|
158
|
+
provide.
|
|
153
159
|
|
|
154
160
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.batch_get_prepared_statement)
|
|
155
161
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#batch_get_prepared_statement)
|
|
@@ -160,7 +166,8 @@ class AthenaClient(BaseClient):
|
|
|
160
166
|
) -> BatchGetQueryExecutionOutputTypeDef:
|
|
161
167
|
"""
|
|
162
168
|
Returns the details of a single query execution or a list of up to 50 query
|
|
163
|
-
executions, which you provide as an array of query execution ID
|
|
169
|
+
executions, which you provide as an array of query execution ID
|
|
170
|
+
strings.
|
|
164
171
|
|
|
165
172
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.batch_get_query_execution)
|
|
166
173
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#batch_get_query_execution)
|
|
@@ -174,6 +181,14 @@ class AthenaClient(BaseClient):
|
|
|
174
181
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#can_paginate)
|
|
175
182
|
"""
|
|
176
183
|
|
|
184
|
+
def cancel_capacity_reservation(self, *, Name: str) -> Dict[str, Any]:
|
|
185
|
+
"""
|
|
186
|
+
Cancels the capacity reservation with the specified name.
|
|
187
|
+
|
|
188
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.cancel_capacity_reservation)
|
|
189
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#cancel_capacity_reservation)
|
|
190
|
+
"""
|
|
191
|
+
|
|
177
192
|
def close(self) -> None:
|
|
178
193
|
"""
|
|
179
194
|
Closes underlying endpoint connections.
|
|
@@ -182,6 +197,18 @@ class AthenaClient(BaseClient):
|
|
|
182
197
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#close)
|
|
183
198
|
"""
|
|
184
199
|
|
|
200
|
+
def create_capacity_reservation(
|
|
201
|
+
self, *, TargetDpus: int, Name: str, Tags: Sequence[TagTypeDef] = ...
|
|
202
|
+
) -> Dict[str, Any]:
|
|
203
|
+
"""
|
|
204
|
+
Creates a capacity reservation with the specified name and number of requested
|
|
205
|
+
data processing
|
|
206
|
+
units.
|
|
207
|
+
|
|
208
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.create_capacity_reservation)
|
|
209
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#create_capacity_reservation)
|
|
210
|
+
"""
|
|
211
|
+
|
|
185
212
|
def create_data_catalog(
|
|
186
213
|
self,
|
|
187
214
|
*,
|
|
@@ -189,7 +216,7 @@ class AthenaClient(BaseClient):
|
|
|
189
216
|
Type: DataCatalogTypeType,
|
|
190
217
|
Description: str = ...,
|
|
191
218
|
Parameters: Mapping[str, str] = ...,
|
|
192
|
-
Tags: Sequence[TagTypeDef] =
|
|
219
|
+
Tags: Sequence[TagTypeDef] = ...,
|
|
193
220
|
) -> Dict[str, Any]:
|
|
194
221
|
"""
|
|
195
222
|
Creates (registers) a data catalog with the specified name and properties.
|
|
@@ -206,7 +233,7 @@ class AthenaClient(BaseClient):
|
|
|
206
233
|
QueryString: str,
|
|
207
234
|
Description: str = ...,
|
|
208
235
|
ClientRequestToken: str = ...,
|
|
209
|
-
WorkGroup: str =
|
|
236
|
+
WorkGroup: str = ...,
|
|
210
237
|
) -> CreateNamedQueryOutputTypeDef:
|
|
211
238
|
"""
|
|
212
239
|
Creates a named query in the specified workgroup.
|
|
@@ -251,7 +278,7 @@ class AthenaClient(BaseClient):
|
|
|
251
278
|
Name: str,
|
|
252
279
|
Configuration: WorkGroupConfigurationTypeDef = ...,
|
|
253
280
|
Description: str = ...,
|
|
254
|
-
Tags: Sequence[TagTypeDef] =
|
|
281
|
+
Tags: Sequence[TagTypeDef] = ...,
|
|
255
282
|
) -> Dict[str, Any]:
|
|
256
283
|
"""
|
|
257
284
|
Creates a workgroup with the specified name.
|
|
@@ -260,6 +287,14 @@ class AthenaClient(BaseClient):
|
|
|
260
287
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#create_work_group)
|
|
261
288
|
"""
|
|
262
289
|
|
|
290
|
+
def delete_capacity_reservation(self, *, Name: str) -> Dict[str, Any]:
|
|
291
|
+
"""
|
|
292
|
+
Deletes a cancelled capacity reservation.
|
|
293
|
+
|
|
294
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.delete_capacity_reservation)
|
|
295
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#delete_capacity_reservation)
|
|
296
|
+
"""
|
|
297
|
+
|
|
263
298
|
def delete_data_catalog(self, *, Name: str) -> Dict[str, Any]:
|
|
264
299
|
"""
|
|
265
300
|
Deletes a data catalog.
|
|
@@ -271,7 +306,8 @@ class AthenaClient(BaseClient):
|
|
|
271
306
|
def delete_named_query(self, *, NamedQueryId: str) -> Dict[str, Any]:
|
|
272
307
|
"""
|
|
273
308
|
Deletes the named query if you have access to the workgroup in which the query
|
|
274
|
-
was
|
|
309
|
+
was
|
|
310
|
+
saved.
|
|
275
311
|
|
|
276
312
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.delete_named_query)
|
|
277
313
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#delete_named_query)
|
|
@@ -356,7 +392,26 @@ class AthenaClient(BaseClient):
|
|
|
356
392
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_calculation_execution_status)
|
|
357
393
|
"""
|
|
358
394
|
|
|
359
|
-
def
|
|
395
|
+
def get_capacity_assignment_configuration(
|
|
396
|
+
self, *, CapacityReservationName: str
|
|
397
|
+
) -> GetCapacityAssignmentConfigurationOutputTypeDef:
|
|
398
|
+
"""
|
|
399
|
+
Gets the capacity assignment configuration for a capacity reservation, if one
|
|
400
|
+
exists.
|
|
401
|
+
|
|
402
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.get_capacity_assignment_configuration)
|
|
403
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_capacity_assignment_configuration)
|
|
404
|
+
"""
|
|
405
|
+
|
|
406
|
+
def get_capacity_reservation(self, *, Name: str) -> GetCapacityReservationOutputTypeDef:
|
|
407
|
+
"""
|
|
408
|
+
Returns information about the capacity reservation with the specified name.
|
|
409
|
+
|
|
410
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.get_capacity_reservation)
|
|
411
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_capacity_reservation)
|
|
412
|
+
"""
|
|
413
|
+
|
|
414
|
+
def get_data_catalog(self, *, Name: str, WorkGroup: str = ...) -> GetDataCatalogOutputTypeDef:
|
|
360
415
|
"""
|
|
361
416
|
Returns the specified data catalog.
|
|
362
417
|
|
|
@@ -364,7 +419,9 @@ class AthenaClient(BaseClient):
|
|
|
364
419
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_data_catalog)
|
|
365
420
|
"""
|
|
366
421
|
|
|
367
|
-
def get_database(
|
|
422
|
+
def get_database(
|
|
423
|
+
self, *, CatalogName: str, DatabaseName: str, WorkGroup: str = ...
|
|
424
|
+
) -> GetDatabaseOutputTypeDef:
|
|
368
425
|
"""
|
|
369
426
|
Returns a database object for the specified database and data catalog.
|
|
370
427
|
|
|
@@ -402,7 +459,8 @@ class AthenaClient(BaseClient):
|
|
|
402
459
|
def get_query_execution(self, *, QueryExecutionId: str) -> GetQueryExecutionOutputTypeDef:
|
|
403
460
|
"""
|
|
404
461
|
Returns information about a single execution of a query if you have access to
|
|
405
|
-
the workgroup in which the query
|
|
462
|
+
the workgroup in which the query
|
|
463
|
+
ran.
|
|
406
464
|
|
|
407
465
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.get_query_execution)
|
|
408
466
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_query_execution)
|
|
@@ -413,7 +471,8 @@ class AthenaClient(BaseClient):
|
|
|
413
471
|
) -> GetQueryResultsOutputTypeDef:
|
|
414
472
|
"""
|
|
415
473
|
Streams the results of a single query execution specified by `QueryExecutionId`
|
|
416
|
-
from the Athena query results location in Amazon
|
|
474
|
+
from the Athena query results location in Amazon
|
|
475
|
+
S3.
|
|
417
476
|
|
|
418
477
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.get_query_results)
|
|
419
478
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_query_results)
|
|
@@ -424,7 +483,8 @@ class AthenaClient(BaseClient):
|
|
|
424
483
|
) -> GetQueryRuntimeStatisticsOutputTypeDef:
|
|
425
484
|
"""
|
|
426
485
|
Returns query execution runtime statistics related to a single execution of a
|
|
427
|
-
query if you have access to the workgroup in which the query
|
|
486
|
+
query if you have access to the workgroup in which the query
|
|
487
|
+
ran.
|
|
428
488
|
|
|
429
489
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.get_query_runtime_statistics)
|
|
430
490
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_query_runtime_statistics)
|
|
@@ -433,7 +493,8 @@ class AthenaClient(BaseClient):
|
|
|
433
493
|
def get_session(self, *, SessionId: str) -> GetSessionResponseTypeDef:
|
|
434
494
|
"""
|
|
435
495
|
Gets the full details of a previously created session, including the session
|
|
436
|
-
status and
|
|
496
|
+
status and
|
|
497
|
+
configuration.
|
|
437
498
|
|
|
438
499
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.get_session)
|
|
439
500
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_session)
|
|
@@ -448,7 +509,7 @@ class AthenaClient(BaseClient):
|
|
|
448
509
|
"""
|
|
449
510
|
|
|
450
511
|
def get_table_metadata(
|
|
451
|
-
self, *, CatalogName: str, DatabaseName: str, TableName: str
|
|
512
|
+
self, *, CatalogName: str, DatabaseName: str, TableName: str, WorkGroup: str = ...
|
|
452
513
|
) -> GetTableMetadataOutputTypeDef:
|
|
453
514
|
"""
|
|
454
515
|
Returns table metadata for the specified catalog, database, and table.
|
|
@@ -470,9 +531,10 @@ class AthenaClient(BaseClient):
|
|
|
470
531
|
*,
|
|
471
532
|
WorkGroup: str,
|
|
472
533
|
Name: str,
|
|
473
|
-
Payload: str,
|
|
474
534
|
Type: Literal["IPYNB"],
|
|
475
|
-
|
|
535
|
+
Payload: str = ...,
|
|
536
|
+
NotebookS3LocationUri: str = ...,
|
|
537
|
+
ClientRequestToken: str = ...,
|
|
476
538
|
) -> ImportNotebookOutputTypeDef:
|
|
477
539
|
"""
|
|
478
540
|
Imports a single `ipynb` file to a Spark enabled workgroup.
|
|
@@ -486,7 +548,8 @@ class AthenaClient(BaseClient):
|
|
|
486
548
|
) -> ListApplicationDPUSizesOutputTypeDef:
|
|
487
549
|
"""
|
|
488
550
|
Returns the supported DPU sizes for the supported application runtimes (for
|
|
489
|
-
example, `Athena notebook version
|
|
551
|
+
example, `Athena notebook version
|
|
552
|
+
1`).
|
|
490
553
|
|
|
491
554
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.list_application_dpu_sizes)
|
|
492
555
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#list_application_dpu_sizes)
|
|
@@ -498,7 +561,7 @@ class AthenaClient(BaseClient):
|
|
|
498
561
|
SessionId: str,
|
|
499
562
|
StateFilter: CalculationExecutionStateType = ...,
|
|
500
563
|
MaxResults: int = ...,
|
|
501
|
-
NextToken: str =
|
|
564
|
+
NextToken: str = ...,
|
|
502
565
|
) -> ListCalculationExecutionsResponseTypeDef:
|
|
503
566
|
"""
|
|
504
567
|
Lists the calculations that have been submitted to a session in descending
|
|
@@ -508,8 +571,18 @@ class AthenaClient(BaseClient):
|
|
|
508
571
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#list_calculation_executions)
|
|
509
572
|
"""
|
|
510
573
|
|
|
511
|
-
def
|
|
574
|
+
def list_capacity_reservations(
|
|
512
575
|
self, *, NextToken: str = ..., MaxResults: int = ...
|
|
576
|
+
) -> ListCapacityReservationsOutputTypeDef:
|
|
577
|
+
"""
|
|
578
|
+
Lists the capacity reservations for the current account.
|
|
579
|
+
|
|
580
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.list_capacity_reservations)
|
|
581
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#list_capacity_reservations)
|
|
582
|
+
"""
|
|
583
|
+
|
|
584
|
+
def list_data_catalogs(
|
|
585
|
+
self, *, NextToken: str = ..., MaxResults: int = ..., WorkGroup: str = ...
|
|
513
586
|
) -> ListDataCatalogsOutputTypeDef:
|
|
514
587
|
"""
|
|
515
588
|
Lists the data catalogs in the current Amazon Web Services account.
|
|
@@ -519,7 +592,7 @@ class AthenaClient(BaseClient):
|
|
|
519
592
|
"""
|
|
520
593
|
|
|
521
594
|
def list_databases(
|
|
522
|
-
self, *, CatalogName: str, NextToken: str = ..., MaxResults: int = ...
|
|
595
|
+
self, *, CatalogName: str, NextToken: str = ..., MaxResults: int = ..., WorkGroup: str = ...
|
|
523
596
|
) -> ListDatabasesOutputTypeDef:
|
|
524
597
|
"""
|
|
525
598
|
Lists the databases in the specified data catalog.
|
|
@@ -533,7 +606,8 @@ class AthenaClient(BaseClient):
|
|
|
533
606
|
) -> ListEngineVersionsOutputTypeDef:
|
|
534
607
|
"""
|
|
535
608
|
Returns a list of engine versions that are available to choose from, including
|
|
536
|
-
the Auto
|
|
609
|
+
the Auto
|
|
610
|
+
option.
|
|
537
611
|
|
|
538
612
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.list_engine_versions)
|
|
539
613
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#list_engine_versions)
|
|
@@ -545,7 +619,7 @@ class AthenaClient(BaseClient):
|
|
|
545
619
|
SessionId: str,
|
|
546
620
|
ExecutorStateFilter: ExecutorStateType = ...,
|
|
547
621
|
MaxResults: int = ...,
|
|
548
|
-
NextToken: str =
|
|
622
|
+
NextToken: str = ...,
|
|
549
623
|
) -> ListExecutorsResponseTypeDef:
|
|
550
624
|
"""
|
|
551
625
|
Lists, in descending order, the executors that joined a session.
|
|
@@ -571,7 +645,7 @@ class AthenaClient(BaseClient):
|
|
|
571
645
|
WorkGroup: str,
|
|
572
646
|
Filters: FilterDefinitionTypeDef = ...,
|
|
573
647
|
NextToken: str = ...,
|
|
574
|
-
MaxResults: int =
|
|
648
|
+
MaxResults: int = ...,
|
|
575
649
|
) -> ListNotebookMetadataOutputTypeDef:
|
|
576
650
|
"""
|
|
577
651
|
Displays the notebook files for the specified workgroup in paginated format.
|
|
@@ -585,7 +659,8 @@ class AthenaClient(BaseClient):
|
|
|
585
659
|
) -> ListNotebookSessionsResponseTypeDef:
|
|
586
660
|
"""
|
|
587
661
|
Lists, in descending order, the sessions that have been created in a notebook
|
|
588
|
-
that are in an active state like `CREATING`, `CREATED`, `IDLE` or
|
|
662
|
+
that are in an active state like `CREATING`, `CREATED`, `IDLE` or
|
|
663
|
+
`BUSY`.
|
|
589
664
|
|
|
590
665
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.list_notebook_sessions)
|
|
591
666
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#list_notebook_sessions)
|
|
@@ -606,7 +681,8 @@ class AthenaClient(BaseClient):
|
|
|
606
681
|
) -> ListQueryExecutionsOutputTypeDef:
|
|
607
682
|
"""
|
|
608
683
|
Provides a list of available query execution IDs for the queries in the
|
|
609
|
-
specified
|
|
684
|
+
specified
|
|
685
|
+
workgroup.
|
|
610
686
|
|
|
611
687
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.list_query_executions)
|
|
612
688
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#list_query_executions)
|
|
@@ -618,11 +694,12 @@ class AthenaClient(BaseClient):
|
|
|
618
694
|
WorkGroup: str,
|
|
619
695
|
StateFilter: SessionStateType = ...,
|
|
620
696
|
MaxResults: int = ...,
|
|
621
|
-
NextToken: str =
|
|
697
|
+
NextToken: str = ...,
|
|
622
698
|
) -> ListSessionsResponseTypeDef:
|
|
623
699
|
"""
|
|
624
700
|
Lists the sessions in a workgroup that are in an active state like `CREATING`,
|
|
625
|
-
`CREATED`, `IDLE`, or
|
|
701
|
+
`CREATED`, `IDLE`, or
|
|
702
|
+
`BUSY`.
|
|
626
703
|
|
|
627
704
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.list_sessions)
|
|
628
705
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#list_sessions)
|
|
@@ -635,7 +712,8 @@ class AthenaClient(BaseClient):
|
|
|
635
712
|
DatabaseName: str,
|
|
636
713
|
Expression: str = ...,
|
|
637
714
|
NextToken: str = ...,
|
|
638
|
-
MaxResults: int =
|
|
715
|
+
MaxResults: int = ...,
|
|
716
|
+
WorkGroup: str = ...,
|
|
639
717
|
) -> ListTableMetadataOutputTypeDef:
|
|
640
718
|
"""
|
|
641
719
|
Lists the metadata for the tables in the specified data catalog database.
|
|
@@ -648,7 +726,7 @@ class AthenaClient(BaseClient):
|
|
|
648
726
|
self, *, ResourceARN: str, NextToken: str = ..., MaxResults: int = ...
|
|
649
727
|
) -> ListTagsForResourceOutputTypeDef:
|
|
650
728
|
"""
|
|
651
|
-
Lists the tags associated with an Athena
|
|
729
|
+
Lists the tags associated with an Athena resource.
|
|
652
730
|
|
|
653
731
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.list_tags_for_resource)
|
|
654
732
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#list_tags_for_resource)
|
|
@@ -664,6 +742,20 @@ class AthenaClient(BaseClient):
|
|
|
664
742
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#list_work_groups)
|
|
665
743
|
"""
|
|
666
744
|
|
|
745
|
+
def put_capacity_assignment_configuration(
|
|
746
|
+
self,
|
|
747
|
+
*,
|
|
748
|
+
CapacityReservationName: str,
|
|
749
|
+
CapacityAssignments: Sequence[CapacityAssignmentUnionTypeDef],
|
|
750
|
+
) -> Dict[str, Any]:
|
|
751
|
+
"""
|
|
752
|
+
Puts a new capacity assignment configuration for a specified capacity
|
|
753
|
+
reservation.
|
|
754
|
+
|
|
755
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.put_capacity_assignment_configuration)
|
|
756
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#put_capacity_assignment_configuration)
|
|
757
|
+
"""
|
|
758
|
+
|
|
667
759
|
def start_calculation_execution(
|
|
668
760
|
self,
|
|
669
761
|
*,
|
|
@@ -671,7 +763,7 @@ class AthenaClient(BaseClient):
|
|
|
671
763
|
Description: str = ...,
|
|
672
764
|
CalculationConfiguration: CalculationConfigurationTypeDef = ...,
|
|
673
765
|
CodeBlock: str = ...,
|
|
674
|
-
ClientRequestToken: str =
|
|
766
|
+
ClientRequestToken: str = ...,
|
|
675
767
|
) -> StartCalculationExecutionResponseTypeDef:
|
|
676
768
|
"""
|
|
677
769
|
Submits calculations for execution within a session.
|
|
@@ -689,7 +781,7 @@ class AthenaClient(BaseClient):
|
|
|
689
781
|
ResultConfiguration: ResultConfigurationTypeDef = ...,
|
|
690
782
|
WorkGroup: str = ...,
|
|
691
783
|
ExecutionParameters: Sequence[str] = ...,
|
|
692
|
-
ResultReuseConfiguration: ResultReuseConfigurationTypeDef =
|
|
784
|
+
ResultReuseConfiguration: ResultReuseConfigurationTypeDef = ...,
|
|
693
785
|
) -> StartQueryExecutionOutputTypeDef:
|
|
694
786
|
"""
|
|
695
787
|
Runs the SQL query statements contained in the `Query`.
|
|
@@ -702,11 +794,11 @@ class AthenaClient(BaseClient):
|
|
|
702
794
|
self,
|
|
703
795
|
*,
|
|
704
796
|
WorkGroup: str,
|
|
705
|
-
EngineConfiguration:
|
|
797
|
+
EngineConfiguration: EngineConfigurationUnionTypeDef,
|
|
706
798
|
Description: str = ...,
|
|
707
799
|
NotebookVersion: str = ...,
|
|
708
800
|
SessionIdleTimeoutInMinutes: int = ...,
|
|
709
|
-
ClientRequestToken: str =
|
|
801
|
+
ClientRequestToken: str = ...,
|
|
710
802
|
) -> StartSessionResponseTypeDef:
|
|
711
803
|
"""
|
|
712
804
|
Creates a session for running calculations within a workgroup.
|
|
@@ -751,19 +843,29 @@ class AthenaClient(BaseClient):
|
|
|
751
843
|
|
|
752
844
|
def untag_resource(self, *, ResourceARN: str, TagKeys: Sequence[str]) -> Dict[str, Any]:
|
|
753
845
|
"""
|
|
754
|
-
Removes one or more tags from
|
|
846
|
+
Removes one or more tags from an Athena resource.
|
|
755
847
|
|
|
756
848
|
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.untag_resource)
|
|
757
849
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#untag_resource)
|
|
758
850
|
"""
|
|
759
851
|
|
|
852
|
+
def update_capacity_reservation(self, *, TargetDpus: int, Name: str) -> Dict[str, Any]:
|
|
853
|
+
"""
|
|
854
|
+
Updates the number of requested data processing units for the capacity
|
|
855
|
+
reservation with the specified
|
|
856
|
+
name.
|
|
857
|
+
|
|
858
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena.Client.update_capacity_reservation)
|
|
859
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#update_capacity_reservation)
|
|
860
|
+
"""
|
|
861
|
+
|
|
760
862
|
def update_data_catalog(
|
|
761
863
|
self,
|
|
762
864
|
*,
|
|
763
865
|
Name: str,
|
|
764
866
|
Type: DataCatalogTypeType,
|
|
765
867
|
Description: str = ...,
|
|
766
|
-
Parameters: Mapping[str, str] =
|
|
868
|
+
Parameters: Mapping[str, str] = ...,
|
|
767
869
|
) -> Dict[str, Any]:
|
|
768
870
|
"""
|
|
769
871
|
Updates the data catalog that has the specified name.
|
|
@@ -789,7 +891,7 @@ class AthenaClient(BaseClient):
|
|
|
789
891
|
Payload: str,
|
|
790
892
|
Type: Literal["IPYNB"],
|
|
791
893
|
SessionId: str = ...,
|
|
792
|
-
ClientRequestToken: str =
|
|
894
|
+
ClientRequestToken: str = ...,
|
|
793
895
|
) -> Dict[str, Any]:
|
|
794
896
|
"""
|
|
795
897
|
Updates the contents of a Spark notebook.
|
|
@@ -824,7 +926,7 @@ class AthenaClient(BaseClient):
|
|
|
824
926
|
WorkGroup: str,
|
|
825
927
|
Description: str = ...,
|
|
826
928
|
ConfigurationUpdates: WorkGroupConfigurationUpdatesTypeDef = ...,
|
|
827
|
-
State: WorkGroupStateType =
|
|
929
|
+
State: WorkGroupStateType = ...,
|
|
828
930
|
) -> Dict[str, Any]:
|
|
829
931
|
"""
|
|
830
932
|
Updates the workgroup with the specified name.
|