mypy-boto3-athena 1.40.60__tar.gz → 1.41.2__tar.gz
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-1.40.60 → mypy_boto3_athena-1.41.2}/PKG-INFO +11 -25
- {mypy_boto3_athena-1.40.60 → mypy_boto3_athena-1.41.2}/README.md +3 -3
- {mypy_boto3_athena-1.40.60 → mypy_boto3_athena-1.41.2}/mypy_boto3_athena/__main__.py +4 -4
- mypy_boto3_athena-1.40.60/mypy_boto3_athena/client.pyi → mypy_boto3_athena-1.41.2/mypy_boto3_athena/client.py +55 -33
- mypy_boto3_athena-1.40.60/mypy_boto3_athena/client.py → mypy_boto3_athena-1.41.2/mypy_boto3_athena/client.pyi +52 -36
- {mypy_boto3_athena-1.40.60 → mypy_boto3_athena-1.41.2}/mypy_boto3_athena/literals.py +4 -7
- {mypy_boto3_athena-1.40.60 → mypy_boto3_athena-1.41.2}/mypy_boto3_athena/literals.pyi +4 -7
- mypy_boto3_athena-1.40.60/mypy_boto3_athena/type_defs.pyi → mypy_boto3_athena-1.41.2/mypy_boto3_athena/type_defs.py +437 -115
- mypy_boto3_athena-1.40.60/mypy_boto3_athena/type_defs.py → mypy_boto3_athena-1.41.2/mypy_boto3_athena/type_defs.pyi +224 -303
- {mypy_boto3_athena-1.40.60 → mypy_boto3_athena-1.41.2}/mypy_boto3_athena/version.py +1 -1
- {mypy_boto3_athena-1.40.60 → mypy_boto3_athena-1.41.2}/mypy_boto3_athena.egg-info/PKG-INFO +11 -25
- {mypy_boto3_athena-1.40.60 → mypy_boto3_athena-1.41.2}/mypy_boto3_athena.egg-info/SOURCES.txt +1 -2
- mypy_boto3_athena-1.41.2/pyproject.toml +61 -0
- mypy_boto3_athena-1.40.60/mypy_boto3_athena.egg-info/not-zip-safe +0 -1
- mypy_boto3_athena-1.40.60/setup.py +0 -54
- {mypy_boto3_athena-1.40.60 → mypy_boto3_athena-1.41.2}/LICENSE +0 -0
- {mypy_boto3_athena-1.40.60 → mypy_boto3_athena-1.41.2}/mypy_boto3_athena/__init__.py +0 -0
- {mypy_boto3_athena-1.40.60 → mypy_boto3_athena-1.41.2}/mypy_boto3_athena/__init__.pyi +0 -0
- {mypy_boto3_athena-1.40.60 → mypy_boto3_athena-1.41.2}/mypy_boto3_athena/paginator.py +0 -0
- {mypy_boto3_athena-1.40.60 → mypy_boto3_athena-1.41.2}/mypy_boto3_athena/paginator.pyi +0 -0
- {mypy_boto3_athena-1.40.60 → mypy_boto3_athena-1.41.2}/mypy_boto3_athena/py.typed +0 -0
- {mypy_boto3_athena-1.40.60 → mypy_boto3_athena-1.41.2}/mypy_boto3_athena.egg-info/dependency_links.txt +0 -0
- {mypy_boto3_athena-1.40.60 → mypy_boto3_athena-1.41.2}/mypy_boto3_athena.egg-info/requires.txt +0 -0
- {mypy_boto3_athena-1.40.60 → mypy_boto3_athena-1.41.2}/mypy_boto3_athena.egg-info/top_level.txt +0 -0
- {mypy_boto3_athena-1.40.60 → mypy_boto3_athena-1.41.2}/setup.cfg +0 -0
|
@@ -1,23 +1,21 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: mypy-boto3-athena
|
|
3
|
-
Version: 1.
|
|
4
|
-
Summary: Type annotations for boto3 Athena 1.
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
License: MIT License
|
|
3
|
+
Version: 1.41.2
|
|
4
|
+
Summary: Type annotations for boto3 Athena 1.41.2 service generated with mypy-boto3-builder 8.12.0
|
|
5
|
+
Author-email: Vlad Emelianov <vlad.emelianov.nz@gmail.com>
|
|
6
|
+
License-Expression: MIT
|
|
7
|
+
Project-URL: Homepage, https://github.com/youtype/mypy_boto3_builder
|
|
9
8
|
Project-URL: Documentation, https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/
|
|
10
9
|
Project-URL: Source, https://github.com/youtype/mypy_boto3_builder
|
|
11
10
|
Project-URL: Tracker, https://github.com/youtype/mypy_boto3_builder/issues
|
|
12
|
-
Keywords: boto3
|
|
11
|
+
Keywords: boto3,athena,boto3-stubs,type-annotations,mypy,typeshed,autocomplete
|
|
12
|
+
Platform: any
|
|
13
13
|
Classifier: Development Status :: 5 - Production/Stable
|
|
14
14
|
Classifier: Intended Audience :: Developers
|
|
15
15
|
Classifier: Environment :: Console
|
|
16
|
-
Classifier: License :: OSI Approved :: MIT License
|
|
17
16
|
Classifier: Natural Language :: English
|
|
18
17
|
Classifier: Operating System :: OS Independent
|
|
19
18
|
Classifier: Programming Language :: Python :: 3
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
21
19
|
Classifier: Programming Language :: Python :: 3.9
|
|
22
20
|
Classifier: Programming Language :: Python :: 3.10
|
|
23
21
|
Classifier: Programming Language :: Python :: 3.11
|
|
@@ -27,23 +25,11 @@ Classifier: Programming Language :: Python :: 3.14
|
|
|
27
25
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
28
26
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
29
27
|
Classifier: Typing :: Stubs Only
|
|
30
|
-
Requires-Python: >=3.
|
|
28
|
+
Requires-Python: >=3.9
|
|
31
29
|
Description-Content-Type: text/markdown
|
|
32
30
|
License-File: LICENSE
|
|
33
31
|
Requires-Dist: typing-extensions; python_version < "3.12"
|
|
34
|
-
Dynamic: author
|
|
35
|
-
Dynamic: author-email
|
|
36
|
-
Dynamic: classifier
|
|
37
|
-
Dynamic: description
|
|
38
|
-
Dynamic: description-content-type
|
|
39
|
-
Dynamic: home-page
|
|
40
|
-
Dynamic: keywords
|
|
41
|
-
Dynamic: license
|
|
42
32
|
Dynamic: license-file
|
|
43
|
-
Dynamic: project-url
|
|
44
|
-
Dynamic: requires-dist
|
|
45
|
-
Dynamic: requires-python
|
|
46
|
-
Dynamic: summary
|
|
47
33
|
|
|
48
34
|
<a id="mypy-boto3-athena"></a>
|
|
49
35
|
|
|
@@ -56,7 +42,7 @@ Dynamic: summary
|
|
|
56
42
|
|
|
57
43
|

|
|
58
44
|
|
|
59
|
-
Type annotations for [boto3 Athena 1.
|
|
45
|
+
Type annotations for [boto3 Athena 1.41.2](https://pypi.org/project/boto3/)
|
|
60
46
|
compatible with [VSCode](https://code.visualstudio.com/),
|
|
61
47
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
62
48
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
@@ -65,7 +51,7 @@ compatible with [VSCode](https://code.visualstudio.com/),
|
|
|
65
51
|
[pyright](https://github.com/microsoft/pyright) and other tools.
|
|
66
52
|
|
|
67
53
|
Generated with
|
|
68
|
-
[mypy-boto3-builder 8.
|
|
54
|
+
[mypy-boto3-builder 8.12.0](https://github.com/youtype/mypy_boto3_builder).
|
|
69
55
|
|
|
70
56
|
More information can be found on
|
|
71
57
|
[boto3-stubs](https://pypi.org/project/boto3-stubs/) page and in
|
|
@@ -118,7 +104,7 @@ You can generate type annotations for `boto3` package locally with
|
|
|
118
104
|
isolation.
|
|
119
105
|
|
|
120
106
|
1. Run mypy-boto3-builder in your package root directory:
|
|
121
|
-
`uvx --with 'boto3==1.
|
|
107
|
+
`uvx --with 'boto3==1.41.2' mypy-boto3-builder`
|
|
122
108
|
2. Select `boto3-stubs` AWS SDK.
|
|
123
109
|
3. Add `Athena` service.
|
|
124
110
|
4. Use provided commands to install generated packages.
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
|
|
10
10
|

|
|
11
11
|
|
|
12
|
-
Type annotations for [boto3 Athena 1.
|
|
12
|
+
Type annotations for [boto3 Athena 1.41.2](https://pypi.org/project/boto3/)
|
|
13
13
|
compatible with [VSCode](https://code.visualstudio.com/),
|
|
14
14
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
15
15
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
@@ -18,7 +18,7 @@ compatible with [VSCode](https://code.visualstudio.com/),
|
|
|
18
18
|
[pyright](https://github.com/microsoft/pyright) and other tools.
|
|
19
19
|
|
|
20
20
|
Generated with
|
|
21
|
-
[mypy-boto3-builder 8.
|
|
21
|
+
[mypy-boto3-builder 8.12.0](https://github.com/youtype/mypy_boto3_builder).
|
|
22
22
|
|
|
23
23
|
More information can be found on
|
|
24
24
|
[boto3-stubs](https://pypi.org/project/boto3-stubs/) page and in
|
|
@@ -71,7 +71,7 @@ You can generate type annotations for `boto3` package locally with
|
|
|
71
71
|
isolation.
|
|
72
72
|
|
|
73
73
|
1. Run mypy-boto3-builder in your package root directory:
|
|
74
|
-
`uvx --with 'boto3==1.
|
|
74
|
+
`uvx --with 'boto3==1.41.2' mypy-boto3-builder`
|
|
75
75
|
2. Select `boto3-stubs` AWS SDK.
|
|
76
76
|
3. Add `Athena` service.
|
|
77
77
|
4. Use provided commands to install generated packages.
|
|
@@ -12,9 +12,9 @@ def print_info() -> None:
|
|
|
12
12
|
Print package info to stdout.
|
|
13
13
|
"""
|
|
14
14
|
sys.stdout.write(
|
|
15
|
-
"Type annotations for boto3 Athena 1.
|
|
16
|
-
"Version: 1.
|
|
17
|
-
"Builder version: 8.
|
|
15
|
+
"Type annotations for boto3 Athena 1.41.2\n"
|
|
16
|
+
"Version: 1.41.2\n"
|
|
17
|
+
"Builder version: 8.12.0\n"
|
|
18
18
|
"Docs: https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena//\n"
|
|
19
19
|
"Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#athena\n"
|
|
20
20
|
"Other services: https://pypi.org/project/boto3-stubs/\n"
|
|
@@ -26,7 +26,7 @@ def print_version() -> None:
|
|
|
26
26
|
"""
|
|
27
27
|
Print package version to stdout.
|
|
28
28
|
"""
|
|
29
|
-
sys.stdout.write("1.
|
|
29
|
+
sys.stdout.write("1.41.2\n")
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
def main() -> None:
|
|
@@ -19,6 +19,7 @@ Usage::
|
|
|
19
19
|
from __future__ import annotations
|
|
20
20
|
|
|
21
21
|
import sys
|
|
22
|
+
from collections.abc import Mapping
|
|
22
23
|
from typing import Any, overload
|
|
23
24
|
|
|
24
25
|
from botocore.client import BaseClient, ClientMeta
|
|
@@ -88,6 +89,10 @@ from .type_defs import (
|
|
|
88
89
|
GetQueryResultsOutputTypeDef,
|
|
89
90
|
GetQueryRuntimeStatisticsInputTypeDef,
|
|
90
91
|
GetQueryRuntimeStatisticsOutputTypeDef,
|
|
92
|
+
GetResourceDashboardRequestTypeDef,
|
|
93
|
+
GetResourceDashboardResponseTypeDef,
|
|
94
|
+
GetSessionEndpointRequestTypeDef,
|
|
95
|
+
GetSessionEndpointResponseTypeDef,
|
|
91
96
|
GetSessionRequestTypeDef,
|
|
92
97
|
GetSessionResponseTypeDef,
|
|
93
98
|
GetSessionStatusRequestTypeDef,
|
|
@@ -153,27 +158,24 @@ from .type_defs import (
|
|
|
153
158
|
UpdateWorkGroupInputTypeDef,
|
|
154
159
|
)
|
|
155
160
|
|
|
156
|
-
if sys.version_info >= (3, 9):
|
|
157
|
-
from builtins import dict as Dict
|
|
158
|
-
from builtins import type as Type
|
|
159
|
-
from collections.abc import Mapping
|
|
160
|
-
else:
|
|
161
|
-
from typing import Dict, Mapping, Type
|
|
162
161
|
if sys.version_info >= (3, 12):
|
|
163
162
|
from typing import Literal, Unpack
|
|
164
163
|
else:
|
|
165
164
|
from typing_extensions import Literal, Unpack
|
|
166
165
|
|
|
166
|
+
|
|
167
167
|
__all__ = ("AthenaClient",)
|
|
168
168
|
|
|
169
|
+
|
|
169
170
|
class Exceptions(BaseClientExceptions):
|
|
170
|
-
ClientError:
|
|
171
|
-
InternalServerException:
|
|
172
|
-
InvalidRequestException:
|
|
173
|
-
MetadataException:
|
|
174
|
-
ResourceNotFoundException:
|
|
175
|
-
SessionAlreadyExistsException:
|
|
176
|
-
TooManyRequestsException:
|
|
171
|
+
ClientError: type[BotocoreClientError]
|
|
172
|
+
InternalServerException: type[BotocoreClientError]
|
|
173
|
+
InvalidRequestException: type[BotocoreClientError]
|
|
174
|
+
MetadataException: type[BotocoreClientError]
|
|
175
|
+
ResourceNotFoundException: type[BotocoreClientError]
|
|
176
|
+
SessionAlreadyExistsException: type[BotocoreClientError]
|
|
177
|
+
TooManyRequestsException: type[BotocoreClientError]
|
|
178
|
+
|
|
177
179
|
|
|
178
180
|
class AthenaClient(BaseClient):
|
|
179
181
|
"""
|
|
@@ -245,7 +247,7 @@ class AthenaClient(BaseClient):
|
|
|
245
247
|
|
|
246
248
|
def cancel_capacity_reservation(
|
|
247
249
|
self, **kwargs: Unpack[CancelCapacityReservationInputTypeDef]
|
|
248
|
-
) ->
|
|
250
|
+
) -> dict[str, Any]:
|
|
249
251
|
"""
|
|
250
252
|
Cancels the capacity reservation with the specified name.
|
|
251
253
|
|
|
@@ -255,7 +257,7 @@ class AthenaClient(BaseClient):
|
|
|
255
257
|
|
|
256
258
|
def create_capacity_reservation(
|
|
257
259
|
self, **kwargs: Unpack[CreateCapacityReservationInputTypeDef]
|
|
258
|
-
) ->
|
|
260
|
+
) -> dict[str, Any]:
|
|
259
261
|
"""
|
|
260
262
|
Creates a capacity reservation with the specified name and number of requested
|
|
261
263
|
data processing units.
|
|
@@ -297,7 +299,7 @@ class AthenaClient(BaseClient):
|
|
|
297
299
|
|
|
298
300
|
def create_prepared_statement(
|
|
299
301
|
self, **kwargs: Unpack[CreatePreparedStatementInputTypeDef]
|
|
300
|
-
) ->
|
|
302
|
+
) -> dict[str, Any]:
|
|
301
303
|
"""
|
|
302
304
|
Creates a prepared statement for use with SQL queries in Athena.
|
|
303
305
|
|
|
@@ -315,7 +317,7 @@ class AthenaClient(BaseClient):
|
|
|
315
317
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#create_presigned_notebook_url)
|
|
316
318
|
"""
|
|
317
319
|
|
|
318
|
-
def create_work_group(self, **kwargs: Unpack[CreateWorkGroupInputTypeDef]) ->
|
|
320
|
+
def create_work_group(self, **kwargs: Unpack[CreateWorkGroupInputTypeDef]) -> dict[str, Any]:
|
|
319
321
|
"""
|
|
320
322
|
Creates a workgroup with the specified name.
|
|
321
323
|
|
|
@@ -325,7 +327,7 @@ class AthenaClient(BaseClient):
|
|
|
325
327
|
|
|
326
328
|
def delete_capacity_reservation(
|
|
327
329
|
self, **kwargs: Unpack[DeleteCapacityReservationInputTypeDef]
|
|
328
|
-
) ->
|
|
330
|
+
) -> dict[str, Any]:
|
|
329
331
|
"""
|
|
330
332
|
Deletes a cancelled capacity reservation.
|
|
331
333
|
|
|
@@ -343,7 +345,7 @@ class AthenaClient(BaseClient):
|
|
|
343
345
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#delete_data_catalog)
|
|
344
346
|
"""
|
|
345
347
|
|
|
346
|
-
def delete_named_query(self, **kwargs: Unpack[DeleteNamedQueryInputTypeDef]) ->
|
|
348
|
+
def delete_named_query(self, **kwargs: Unpack[DeleteNamedQueryInputTypeDef]) -> dict[str, Any]:
|
|
347
349
|
"""
|
|
348
350
|
Deletes the named query if you have access to the workgroup in which the query
|
|
349
351
|
was saved.
|
|
@@ -352,7 +354,7 @@ class AthenaClient(BaseClient):
|
|
|
352
354
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#delete_named_query)
|
|
353
355
|
"""
|
|
354
356
|
|
|
355
|
-
def delete_notebook(self, **kwargs: Unpack[DeleteNotebookInputTypeDef]) ->
|
|
357
|
+
def delete_notebook(self, **kwargs: Unpack[DeleteNotebookInputTypeDef]) -> dict[str, Any]:
|
|
356
358
|
"""
|
|
357
359
|
Deletes the specified notebook.
|
|
358
360
|
|
|
@@ -362,7 +364,7 @@ class AthenaClient(BaseClient):
|
|
|
362
364
|
|
|
363
365
|
def delete_prepared_statement(
|
|
364
366
|
self, **kwargs: Unpack[DeletePreparedStatementInputTypeDef]
|
|
365
|
-
) ->
|
|
367
|
+
) -> dict[str, Any]:
|
|
366
368
|
"""
|
|
367
369
|
Deletes the prepared statement with the specified name from the specified
|
|
368
370
|
workgroup.
|
|
@@ -371,7 +373,7 @@ class AthenaClient(BaseClient):
|
|
|
371
373
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#delete_prepared_statement)
|
|
372
374
|
"""
|
|
373
375
|
|
|
374
|
-
def delete_work_group(self, **kwargs: Unpack[DeleteWorkGroupInputTypeDef]) ->
|
|
376
|
+
def delete_work_group(self, **kwargs: Unpack[DeleteWorkGroupInputTypeDef]) -> dict[str, Any]:
|
|
375
377
|
"""
|
|
376
378
|
Deletes the workgroup with the specified name.
|
|
377
379
|
|
|
@@ -523,6 +525,16 @@ class AthenaClient(BaseClient):
|
|
|
523
525
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_query_runtime_statistics)
|
|
524
526
|
"""
|
|
525
527
|
|
|
528
|
+
def get_resource_dashboard(
|
|
529
|
+
self, **kwargs: Unpack[GetResourceDashboardRequestTypeDef]
|
|
530
|
+
) -> GetResourceDashboardResponseTypeDef:
|
|
531
|
+
"""
|
|
532
|
+
Gets the Live UI/Persistence UI for a session.
|
|
533
|
+
|
|
534
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena/client/get_resource_dashboard.html)
|
|
535
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_resource_dashboard)
|
|
536
|
+
"""
|
|
537
|
+
|
|
526
538
|
def get_session(self, **kwargs: Unpack[GetSessionRequestTypeDef]) -> GetSessionResponseTypeDef:
|
|
527
539
|
"""
|
|
528
540
|
Gets the full details of a previously created session, including the session
|
|
@@ -532,6 +544,16 @@ class AthenaClient(BaseClient):
|
|
|
532
544
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_session)
|
|
533
545
|
"""
|
|
534
546
|
|
|
547
|
+
def get_session_endpoint(
|
|
548
|
+
self, **kwargs: Unpack[GetSessionEndpointRequestTypeDef]
|
|
549
|
+
) -> GetSessionEndpointResponseTypeDef:
|
|
550
|
+
"""
|
|
551
|
+
Gets a connection endpoint and authentication token for a given session Id.
|
|
552
|
+
|
|
553
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena/client/get_session_endpoint.html)
|
|
554
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_session_endpoint)
|
|
555
|
+
"""
|
|
556
|
+
|
|
535
557
|
def get_session_status(
|
|
536
558
|
self, **kwargs: Unpack[GetSessionStatusRequestTypeDef]
|
|
537
559
|
) -> GetSessionStatusResponseTypeDef:
|
|
@@ -743,7 +765,7 @@ class AthenaClient(BaseClient):
|
|
|
743
765
|
|
|
744
766
|
def put_capacity_assignment_configuration(
|
|
745
767
|
self, **kwargs: Unpack[PutCapacityAssignmentConfigurationInputTypeDef]
|
|
746
|
-
) ->
|
|
768
|
+
) -> dict[str, Any]:
|
|
747
769
|
"""
|
|
748
770
|
Puts a new capacity assignment configuration for a specified capacity
|
|
749
771
|
reservation.
|
|
@@ -794,7 +816,7 @@ class AthenaClient(BaseClient):
|
|
|
794
816
|
|
|
795
817
|
def stop_query_execution(
|
|
796
818
|
self, **kwargs: Unpack[StopQueryExecutionInputTypeDef]
|
|
797
|
-
) ->
|
|
819
|
+
) -> dict[str, Any]:
|
|
798
820
|
"""
|
|
799
821
|
Stops a query execution.
|
|
800
822
|
|
|
@@ -802,7 +824,7 @@ class AthenaClient(BaseClient):
|
|
|
802
824
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#stop_query_execution)
|
|
803
825
|
"""
|
|
804
826
|
|
|
805
|
-
def tag_resource(self, **kwargs: Unpack[TagResourceInputTypeDef]) ->
|
|
827
|
+
def tag_resource(self, **kwargs: Unpack[TagResourceInputTypeDef]) -> dict[str, Any]:
|
|
806
828
|
"""
|
|
807
829
|
Adds one or more tags to an Athena resource.
|
|
808
830
|
|
|
@@ -820,7 +842,7 @@ class AthenaClient(BaseClient):
|
|
|
820
842
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#terminate_session)
|
|
821
843
|
"""
|
|
822
844
|
|
|
823
|
-
def untag_resource(self, **kwargs: Unpack[UntagResourceInputTypeDef]) ->
|
|
845
|
+
def untag_resource(self, **kwargs: Unpack[UntagResourceInputTypeDef]) -> dict[str, Any]:
|
|
824
846
|
"""
|
|
825
847
|
Removes one or more tags from an Athena resource.
|
|
826
848
|
|
|
@@ -830,7 +852,7 @@ class AthenaClient(BaseClient):
|
|
|
830
852
|
|
|
831
853
|
def update_capacity_reservation(
|
|
832
854
|
self, **kwargs: Unpack[UpdateCapacityReservationInputTypeDef]
|
|
833
|
-
) ->
|
|
855
|
+
) -> dict[str, Any]:
|
|
834
856
|
"""
|
|
835
857
|
Updates the number of requested data processing units for the capacity
|
|
836
858
|
reservation with the specified name.
|
|
@@ -841,7 +863,7 @@ class AthenaClient(BaseClient):
|
|
|
841
863
|
|
|
842
864
|
def update_data_catalog(
|
|
843
865
|
self, **kwargs: Unpack[UpdateDataCatalogInputTypeDef]
|
|
844
|
-
) ->
|
|
866
|
+
) -> dict[str, Any]:
|
|
845
867
|
"""
|
|
846
868
|
Updates the data catalog that has the specified name.
|
|
847
869
|
|
|
@@ -849,7 +871,7 @@ class AthenaClient(BaseClient):
|
|
|
849
871
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#update_data_catalog)
|
|
850
872
|
"""
|
|
851
873
|
|
|
852
|
-
def update_named_query(self, **kwargs: Unpack[UpdateNamedQueryInputTypeDef]) ->
|
|
874
|
+
def update_named_query(self, **kwargs: Unpack[UpdateNamedQueryInputTypeDef]) -> dict[str, Any]:
|
|
853
875
|
"""
|
|
854
876
|
Updates a <a>NamedQuery</a> object.
|
|
855
877
|
|
|
@@ -857,7 +879,7 @@ class AthenaClient(BaseClient):
|
|
|
857
879
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#update_named_query)
|
|
858
880
|
"""
|
|
859
881
|
|
|
860
|
-
def update_notebook(self, **kwargs: Unpack[UpdateNotebookInputTypeDef]) ->
|
|
882
|
+
def update_notebook(self, **kwargs: Unpack[UpdateNotebookInputTypeDef]) -> dict[str, Any]:
|
|
861
883
|
"""
|
|
862
884
|
Updates the contents of a Spark notebook.
|
|
863
885
|
|
|
@@ -867,7 +889,7 @@ class AthenaClient(BaseClient):
|
|
|
867
889
|
|
|
868
890
|
def update_notebook_metadata(
|
|
869
891
|
self, **kwargs: Unpack[UpdateNotebookMetadataInputTypeDef]
|
|
870
|
-
) ->
|
|
892
|
+
) -> dict[str, Any]:
|
|
871
893
|
"""
|
|
872
894
|
Updates the metadata for a notebook.
|
|
873
895
|
|
|
@@ -877,7 +899,7 @@ class AthenaClient(BaseClient):
|
|
|
877
899
|
|
|
878
900
|
def update_prepared_statement(
|
|
879
901
|
self, **kwargs: Unpack[UpdatePreparedStatementInputTypeDef]
|
|
880
|
-
) ->
|
|
902
|
+
) -> dict[str, Any]:
|
|
881
903
|
"""
|
|
882
904
|
Updates a prepared statement.
|
|
883
905
|
|
|
@@ -885,7 +907,7 @@ class AthenaClient(BaseClient):
|
|
|
885
907
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#update_prepared_statement)
|
|
886
908
|
"""
|
|
887
909
|
|
|
888
|
-
def update_work_group(self, **kwargs: Unpack[UpdateWorkGroupInputTypeDef]) ->
|
|
910
|
+
def update_work_group(self, **kwargs: Unpack[UpdateWorkGroupInputTypeDef]) -> dict[str, Any]:
|
|
889
911
|
"""
|
|
890
912
|
Updates the workgroup with the specified name.
|
|
891
913
|
|
|
@@ -19,6 +19,7 @@ Usage::
|
|
|
19
19
|
from __future__ import annotations
|
|
20
20
|
|
|
21
21
|
import sys
|
|
22
|
+
from collections.abc import Mapping
|
|
22
23
|
from typing import Any, overload
|
|
23
24
|
|
|
24
25
|
from botocore.client import BaseClient, ClientMeta
|
|
@@ -88,6 +89,10 @@ from .type_defs import (
|
|
|
88
89
|
GetQueryResultsOutputTypeDef,
|
|
89
90
|
GetQueryRuntimeStatisticsInputTypeDef,
|
|
90
91
|
GetQueryRuntimeStatisticsOutputTypeDef,
|
|
92
|
+
GetResourceDashboardRequestTypeDef,
|
|
93
|
+
GetResourceDashboardResponseTypeDef,
|
|
94
|
+
GetSessionEndpointRequestTypeDef,
|
|
95
|
+
GetSessionEndpointResponseTypeDef,
|
|
91
96
|
GetSessionRequestTypeDef,
|
|
92
97
|
GetSessionResponseTypeDef,
|
|
93
98
|
GetSessionStatusRequestTypeDef,
|
|
@@ -153,30 +158,21 @@ from .type_defs import (
|
|
|
153
158
|
UpdateWorkGroupInputTypeDef,
|
|
154
159
|
)
|
|
155
160
|
|
|
156
|
-
if sys.version_info >= (3, 9):
|
|
157
|
-
from builtins import dict as Dict
|
|
158
|
-
from builtins import type as Type
|
|
159
|
-
from collections.abc import Mapping
|
|
160
|
-
else:
|
|
161
|
-
from typing import Dict, Mapping, Type
|
|
162
161
|
if sys.version_info >= (3, 12):
|
|
163
162
|
from typing import Literal, Unpack
|
|
164
163
|
else:
|
|
165
164
|
from typing_extensions import Literal, Unpack
|
|
166
165
|
|
|
167
|
-
|
|
168
166
|
__all__ = ("AthenaClient",)
|
|
169
167
|
|
|
170
|
-
|
|
171
168
|
class Exceptions(BaseClientExceptions):
|
|
172
|
-
ClientError:
|
|
173
|
-
InternalServerException:
|
|
174
|
-
InvalidRequestException:
|
|
175
|
-
MetadataException:
|
|
176
|
-
ResourceNotFoundException:
|
|
177
|
-
SessionAlreadyExistsException:
|
|
178
|
-
TooManyRequestsException:
|
|
179
|
-
|
|
169
|
+
ClientError: type[BotocoreClientError]
|
|
170
|
+
InternalServerException: type[BotocoreClientError]
|
|
171
|
+
InvalidRequestException: type[BotocoreClientError]
|
|
172
|
+
MetadataException: type[BotocoreClientError]
|
|
173
|
+
ResourceNotFoundException: type[BotocoreClientError]
|
|
174
|
+
SessionAlreadyExistsException: type[BotocoreClientError]
|
|
175
|
+
TooManyRequestsException: type[BotocoreClientError]
|
|
180
176
|
|
|
181
177
|
class AthenaClient(BaseClient):
|
|
182
178
|
"""
|
|
@@ -248,7 +244,7 @@ class AthenaClient(BaseClient):
|
|
|
248
244
|
|
|
249
245
|
def cancel_capacity_reservation(
|
|
250
246
|
self, **kwargs: Unpack[CancelCapacityReservationInputTypeDef]
|
|
251
|
-
) ->
|
|
247
|
+
) -> dict[str, Any]:
|
|
252
248
|
"""
|
|
253
249
|
Cancels the capacity reservation with the specified name.
|
|
254
250
|
|
|
@@ -258,7 +254,7 @@ class AthenaClient(BaseClient):
|
|
|
258
254
|
|
|
259
255
|
def create_capacity_reservation(
|
|
260
256
|
self, **kwargs: Unpack[CreateCapacityReservationInputTypeDef]
|
|
261
|
-
) ->
|
|
257
|
+
) -> dict[str, Any]:
|
|
262
258
|
"""
|
|
263
259
|
Creates a capacity reservation with the specified name and number of requested
|
|
264
260
|
data processing units.
|
|
@@ -300,7 +296,7 @@ class AthenaClient(BaseClient):
|
|
|
300
296
|
|
|
301
297
|
def create_prepared_statement(
|
|
302
298
|
self, **kwargs: Unpack[CreatePreparedStatementInputTypeDef]
|
|
303
|
-
) ->
|
|
299
|
+
) -> dict[str, Any]:
|
|
304
300
|
"""
|
|
305
301
|
Creates a prepared statement for use with SQL queries in Athena.
|
|
306
302
|
|
|
@@ -318,7 +314,7 @@ class AthenaClient(BaseClient):
|
|
|
318
314
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#create_presigned_notebook_url)
|
|
319
315
|
"""
|
|
320
316
|
|
|
321
|
-
def create_work_group(self, **kwargs: Unpack[CreateWorkGroupInputTypeDef]) ->
|
|
317
|
+
def create_work_group(self, **kwargs: Unpack[CreateWorkGroupInputTypeDef]) -> dict[str, Any]:
|
|
322
318
|
"""
|
|
323
319
|
Creates a workgroup with the specified name.
|
|
324
320
|
|
|
@@ -328,7 +324,7 @@ class AthenaClient(BaseClient):
|
|
|
328
324
|
|
|
329
325
|
def delete_capacity_reservation(
|
|
330
326
|
self, **kwargs: Unpack[DeleteCapacityReservationInputTypeDef]
|
|
331
|
-
) ->
|
|
327
|
+
) -> dict[str, Any]:
|
|
332
328
|
"""
|
|
333
329
|
Deletes a cancelled capacity reservation.
|
|
334
330
|
|
|
@@ -346,7 +342,7 @@ class AthenaClient(BaseClient):
|
|
|
346
342
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#delete_data_catalog)
|
|
347
343
|
"""
|
|
348
344
|
|
|
349
|
-
def delete_named_query(self, **kwargs: Unpack[DeleteNamedQueryInputTypeDef]) ->
|
|
345
|
+
def delete_named_query(self, **kwargs: Unpack[DeleteNamedQueryInputTypeDef]) -> dict[str, Any]:
|
|
350
346
|
"""
|
|
351
347
|
Deletes the named query if you have access to the workgroup in which the query
|
|
352
348
|
was saved.
|
|
@@ -355,7 +351,7 @@ class AthenaClient(BaseClient):
|
|
|
355
351
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#delete_named_query)
|
|
356
352
|
"""
|
|
357
353
|
|
|
358
|
-
def delete_notebook(self, **kwargs: Unpack[DeleteNotebookInputTypeDef]) ->
|
|
354
|
+
def delete_notebook(self, **kwargs: Unpack[DeleteNotebookInputTypeDef]) -> dict[str, Any]:
|
|
359
355
|
"""
|
|
360
356
|
Deletes the specified notebook.
|
|
361
357
|
|
|
@@ -365,7 +361,7 @@ class AthenaClient(BaseClient):
|
|
|
365
361
|
|
|
366
362
|
def delete_prepared_statement(
|
|
367
363
|
self, **kwargs: Unpack[DeletePreparedStatementInputTypeDef]
|
|
368
|
-
) ->
|
|
364
|
+
) -> dict[str, Any]:
|
|
369
365
|
"""
|
|
370
366
|
Deletes the prepared statement with the specified name from the specified
|
|
371
367
|
workgroup.
|
|
@@ -374,7 +370,7 @@ class AthenaClient(BaseClient):
|
|
|
374
370
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#delete_prepared_statement)
|
|
375
371
|
"""
|
|
376
372
|
|
|
377
|
-
def delete_work_group(self, **kwargs: Unpack[DeleteWorkGroupInputTypeDef]) ->
|
|
373
|
+
def delete_work_group(self, **kwargs: Unpack[DeleteWorkGroupInputTypeDef]) -> dict[str, Any]:
|
|
378
374
|
"""
|
|
379
375
|
Deletes the workgroup with the specified name.
|
|
380
376
|
|
|
@@ -526,6 +522,16 @@ class AthenaClient(BaseClient):
|
|
|
526
522
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_query_runtime_statistics)
|
|
527
523
|
"""
|
|
528
524
|
|
|
525
|
+
def get_resource_dashboard(
|
|
526
|
+
self, **kwargs: Unpack[GetResourceDashboardRequestTypeDef]
|
|
527
|
+
) -> GetResourceDashboardResponseTypeDef:
|
|
528
|
+
"""
|
|
529
|
+
Gets the Live UI/Persistence UI for a session.
|
|
530
|
+
|
|
531
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena/client/get_resource_dashboard.html)
|
|
532
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_resource_dashboard)
|
|
533
|
+
"""
|
|
534
|
+
|
|
529
535
|
def get_session(self, **kwargs: Unpack[GetSessionRequestTypeDef]) -> GetSessionResponseTypeDef:
|
|
530
536
|
"""
|
|
531
537
|
Gets the full details of a previously created session, including the session
|
|
@@ -535,6 +541,16 @@ class AthenaClient(BaseClient):
|
|
|
535
541
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_session)
|
|
536
542
|
"""
|
|
537
543
|
|
|
544
|
+
def get_session_endpoint(
|
|
545
|
+
self, **kwargs: Unpack[GetSessionEndpointRequestTypeDef]
|
|
546
|
+
) -> GetSessionEndpointResponseTypeDef:
|
|
547
|
+
"""
|
|
548
|
+
Gets a connection endpoint and authentication token for a given session Id.
|
|
549
|
+
|
|
550
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena/client/get_session_endpoint.html)
|
|
551
|
+
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_session_endpoint)
|
|
552
|
+
"""
|
|
553
|
+
|
|
538
554
|
def get_session_status(
|
|
539
555
|
self, **kwargs: Unpack[GetSessionStatusRequestTypeDef]
|
|
540
556
|
) -> GetSessionStatusResponseTypeDef:
|
|
@@ -746,7 +762,7 @@ class AthenaClient(BaseClient):
|
|
|
746
762
|
|
|
747
763
|
def put_capacity_assignment_configuration(
|
|
748
764
|
self, **kwargs: Unpack[PutCapacityAssignmentConfigurationInputTypeDef]
|
|
749
|
-
) ->
|
|
765
|
+
) -> dict[str, Any]:
|
|
750
766
|
"""
|
|
751
767
|
Puts a new capacity assignment configuration for a specified capacity
|
|
752
768
|
reservation.
|
|
@@ -797,7 +813,7 @@ class AthenaClient(BaseClient):
|
|
|
797
813
|
|
|
798
814
|
def stop_query_execution(
|
|
799
815
|
self, **kwargs: Unpack[StopQueryExecutionInputTypeDef]
|
|
800
|
-
) ->
|
|
816
|
+
) -> dict[str, Any]:
|
|
801
817
|
"""
|
|
802
818
|
Stops a query execution.
|
|
803
819
|
|
|
@@ -805,7 +821,7 @@ class AthenaClient(BaseClient):
|
|
|
805
821
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#stop_query_execution)
|
|
806
822
|
"""
|
|
807
823
|
|
|
808
|
-
def tag_resource(self, **kwargs: Unpack[TagResourceInputTypeDef]) ->
|
|
824
|
+
def tag_resource(self, **kwargs: Unpack[TagResourceInputTypeDef]) -> dict[str, Any]:
|
|
809
825
|
"""
|
|
810
826
|
Adds one or more tags to an Athena resource.
|
|
811
827
|
|
|
@@ -823,7 +839,7 @@ class AthenaClient(BaseClient):
|
|
|
823
839
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#terminate_session)
|
|
824
840
|
"""
|
|
825
841
|
|
|
826
|
-
def untag_resource(self, **kwargs: Unpack[UntagResourceInputTypeDef]) ->
|
|
842
|
+
def untag_resource(self, **kwargs: Unpack[UntagResourceInputTypeDef]) -> dict[str, Any]:
|
|
827
843
|
"""
|
|
828
844
|
Removes one or more tags from an Athena resource.
|
|
829
845
|
|
|
@@ -833,7 +849,7 @@ class AthenaClient(BaseClient):
|
|
|
833
849
|
|
|
834
850
|
def update_capacity_reservation(
|
|
835
851
|
self, **kwargs: Unpack[UpdateCapacityReservationInputTypeDef]
|
|
836
|
-
) ->
|
|
852
|
+
) -> dict[str, Any]:
|
|
837
853
|
"""
|
|
838
854
|
Updates the number of requested data processing units for the capacity
|
|
839
855
|
reservation with the specified name.
|
|
@@ -844,7 +860,7 @@ class AthenaClient(BaseClient):
|
|
|
844
860
|
|
|
845
861
|
def update_data_catalog(
|
|
846
862
|
self, **kwargs: Unpack[UpdateDataCatalogInputTypeDef]
|
|
847
|
-
) ->
|
|
863
|
+
) -> dict[str, Any]:
|
|
848
864
|
"""
|
|
849
865
|
Updates the data catalog that has the specified name.
|
|
850
866
|
|
|
@@ -852,7 +868,7 @@ class AthenaClient(BaseClient):
|
|
|
852
868
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#update_data_catalog)
|
|
853
869
|
"""
|
|
854
870
|
|
|
855
|
-
def update_named_query(self, **kwargs: Unpack[UpdateNamedQueryInputTypeDef]) ->
|
|
871
|
+
def update_named_query(self, **kwargs: Unpack[UpdateNamedQueryInputTypeDef]) -> dict[str, Any]:
|
|
856
872
|
"""
|
|
857
873
|
Updates a <a>NamedQuery</a> object.
|
|
858
874
|
|
|
@@ -860,7 +876,7 @@ class AthenaClient(BaseClient):
|
|
|
860
876
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#update_named_query)
|
|
861
877
|
"""
|
|
862
878
|
|
|
863
|
-
def update_notebook(self, **kwargs: Unpack[UpdateNotebookInputTypeDef]) ->
|
|
879
|
+
def update_notebook(self, **kwargs: Unpack[UpdateNotebookInputTypeDef]) -> dict[str, Any]:
|
|
864
880
|
"""
|
|
865
881
|
Updates the contents of a Spark notebook.
|
|
866
882
|
|
|
@@ -870,7 +886,7 @@ class AthenaClient(BaseClient):
|
|
|
870
886
|
|
|
871
887
|
def update_notebook_metadata(
|
|
872
888
|
self, **kwargs: Unpack[UpdateNotebookMetadataInputTypeDef]
|
|
873
|
-
) ->
|
|
889
|
+
) -> dict[str, Any]:
|
|
874
890
|
"""
|
|
875
891
|
Updates the metadata for a notebook.
|
|
876
892
|
|
|
@@ -880,7 +896,7 @@ class AthenaClient(BaseClient):
|
|
|
880
896
|
|
|
881
897
|
def update_prepared_statement(
|
|
882
898
|
self, **kwargs: Unpack[UpdatePreparedStatementInputTypeDef]
|
|
883
|
-
) ->
|
|
899
|
+
) -> dict[str, Any]:
|
|
884
900
|
"""
|
|
885
901
|
Updates a prepared statement.
|
|
886
902
|
|
|
@@ -888,7 +904,7 @@ class AthenaClient(BaseClient):
|
|
|
888
904
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#update_prepared_statement)
|
|
889
905
|
"""
|
|
890
906
|
|
|
891
|
-
def update_work_group(self, **kwargs: Unpack[UpdateWorkGroupInputTypeDef]) ->
|
|
907
|
+
def update_work_group(self, **kwargs: Unpack[UpdateWorkGroupInputTypeDef]) -> dict[str, Any]:
|
|
892
908
|
"""
|
|
893
909
|
Updates the workgroup with the specified name.
|
|
894
910
|
|