mypy-boto3-athena 1.33.0__tar.gz → 1.34.130__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.33.0 → mypy_boto3_athena-1.34.130}/LICENSE +1 -1
- {mypy-boto3-athena-1.33.0 → mypy_boto3_athena-1.34.130}/PKG-INFO +9 -9
- {mypy-boto3-athena-1.33.0 → mypy_boto3_athena-1.34.130}/README.md +4 -4
- mypy-boto3-athena-1.33.0/mypy_boto3_athena/__init__.py → mypy_boto3_athena-1.34.130/mypy_boto3_athena/__init__.pyi +0 -1
- mypy_boto3_athena-1.34.130/mypy_boto3_athena/__main__.py +40 -0
- {mypy-boto3-athena-1.33.0 → mypy_boto3_athena-1.34.130}/mypy_boto3_athena/client.py +29 -26
- {mypy-boto3-athena-1.33.0 → mypy_boto3_athena-1.34.130}/mypy_boto3_athena/client.pyi +29 -25
- {mypy-boto3-athena-1.33.0 → mypy_boto3_athena-1.34.130}/mypy_boto3_athena/literals.py +27 -8
- {mypy-boto3-athena-1.33.0 → mypy_boto3_athena-1.34.130}/mypy_boto3_athena/literals.pyi +27 -6
- {mypy-boto3-athena-1.33.0 → mypy_boto3_athena-1.34.130}/mypy_boto3_athena/paginator.py +8 -4
- {mypy-boto3-athena-1.33.0 → mypy_boto3_athena-1.34.130}/mypy_boto3_athena/paginator.pyi +8 -3
- {mypy-boto3-athena-1.33.0 → mypy_boto3_athena-1.34.130}/mypy_boto3_athena/type_defs.py +96 -34
- {mypy-boto3-athena-1.33.0 → mypy_boto3_athena-1.34.130}/mypy_boto3_athena/type_defs.pyi +96 -33
- {mypy-boto3-athena-1.33.0 → mypy_boto3_athena-1.34.130}/mypy_boto3_athena/version.py +1 -1
- {mypy-boto3-athena-1.33.0 → mypy_boto3_athena-1.34.130}/mypy_boto3_athena.egg-info/PKG-INFO +9 -9
- {mypy-boto3-athena-1.33.0 → mypy_boto3_athena-1.34.130}/setup.py +4 -7
- mypy-boto3-athena-1.33.0/mypy_boto3_athena/__main__.py +0 -39
- /mypy-boto3-athena-1.33.0/mypy_boto3_athena/__init__.pyi → /mypy_boto3_athena-1.34.130/mypy_boto3_athena/__init__.py +0 -0
- {mypy-boto3-athena-1.33.0 → mypy_boto3_athena-1.34.130}/mypy_boto3_athena/py.typed +0 -0
- {mypy-boto3-athena-1.33.0 → mypy_boto3_athena-1.34.130}/mypy_boto3_athena.egg-info/SOURCES.txt +0 -0
- {mypy-boto3-athena-1.33.0 → mypy_boto3_athena-1.34.130}/mypy_boto3_athena.egg-info/dependency_links.txt +0 -0
- {mypy-boto3-athena-1.33.0 → mypy_boto3_athena-1.34.130}/mypy_boto3_athena.egg-info/not-zip-safe +0 -0
- {mypy-boto3-athena-1.33.0 → mypy_boto3_athena-1.34.130}/mypy_boto3_athena.egg-info/requires.txt +0 -0
- {mypy-boto3-athena-1.33.0 → mypy_boto3_athena-1.34.130}/mypy_boto3_athena.egg-info/top_level.txt +0 -0
- {mypy-boto3-athena-1.33.0 → mypy_boto3_athena-1.34.130}/setup.cfg +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: mypy-boto3-athena
|
|
3
|
-
Version: 1.
|
|
4
|
-
Summary: Type annotations for boto3.Athena 1.
|
|
3
|
+
Version: 1.34.130
|
|
4
|
+
Summary: Type annotations for boto3.Athena 1.34.130 service generated with mypy-boto3-builder 7.24.0
|
|
5
5
|
Home-page: https://github.com/youtype/mypy_boto3_builder
|
|
6
6
|
Author: Vlad Emelianov
|
|
7
7
|
Author-email: vlad.emelianov.nz@gmail.com
|
|
@@ -17,7 +17,6 @@ Classifier: License :: OSI Approved :: MIT License
|
|
|
17
17
|
Classifier: Natural Language :: English
|
|
18
18
|
Classifier: Operating System :: OS Independent
|
|
19
19
|
Classifier: Programming Language :: Python :: 3
|
|
20
|
-
Classifier: Programming Language :: Python :: 3.7
|
|
21
20
|
Classifier: Programming Language :: Python :: 3.8
|
|
22
21
|
Classifier: Programming Language :: Python :: 3.9
|
|
23
22
|
Classifier: Programming Language :: Python :: 3.10
|
|
@@ -26,10 +25,11 @@ Classifier: Programming Language :: Python :: 3.12
|
|
|
26
25
|
Classifier: Programming Language :: Python :: 3.13
|
|
27
26
|
Classifier: Programming Language :: Python :: 3 :: Only
|
|
28
27
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
29
|
-
Classifier: Typing ::
|
|
30
|
-
Requires-Python: >=3.
|
|
28
|
+
Classifier: Typing :: Stubs Only
|
|
29
|
+
Requires-Python: >=3.8
|
|
31
30
|
Description-Content-Type: text/markdown
|
|
32
31
|
License-File: LICENSE
|
|
32
|
+
Requires-Dist: typing-extensions>=4.1.0; python_version < "3.12"
|
|
33
33
|
|
|
34
34
|
<a id="mypy-boto3-athena"></a>
|
|
35
35
|
|
|
@@ -43,7 +43,7 @@ License-File: LICENSE
|
|
|
43
43
|

|
|
44
44
|
|
|
45
45
|
Type annotations for
|
|
46
|
-
[boto3.Athena 1.
|
|
46
|
+
[boto3.Athena 1.34.130](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena)
|
|
47
47
|
service compatible with [VSCode](https://code.visualstudio.com/),
|
|
48
48
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
49
49
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
@@ -52,7 +52,7 @@ service compatible with [VSCode](https://code.visualstudio.com/),
|
|
|
52
52
|
[pyright](https://github.com/microsoft/pyright) and other tools.
|
|
53
53
|
|
|
54
54
|
Generated by
|
|
55
|
-
[mypy-boto3-builder 7.
|
|
55
|
+
[mypy-boto3-builder 7.24.0](https://github.com/youtype/mypy_boto3_builder).
|
|
56
56
|
|
|
57
57
|
More information can be found on
|
|
58
58
|
[boto3-stubs](https://pypi.org/project/boto3-stubs/) page and in
|
|
@@ -323,10 +323,10 @@ Full list of `Athena` Literals can be found in
|
|
|
323
323
|
[docs](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/literals/).
|
|
324
324
|
|
|
325
325
|
```python
|
|
326
|
-
from mypy_boto3_athena.literals import
|
|
326
|
+
from mypy_boto3_athena.literals import AuthenticationTypeType
|
|
327
327
|
|
|
328
328
|
|
|
329
|
-
def check_value(value:
|
|
329
|
+
def check_value(value: AuthenticationTypeType) -> bool: ...
|
|
330
330
|
```
|
|
331
331
|
|
|
332
332
|
<a id="type-definitions"></a>
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|

|
|
11
11
|
|
|
12
12
|
Type annotations for
|
|
13
|
-
[boto3.Athena 1.
|
|
13
|
+
[boto3.Athena 1.34.130](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/athena.html#Athena)
|
|
14
14
|
service compatible with [VSCode](https://code.visualstudio.com/),
|
|
15
15
|
[PyCharm](https://www.jetbrains.com/pycharm/),
|
|
16
16
|
[Emacs](https://www.gnu.org/software/emacs/),
|
|
@@ -19,7 +19,7 @@ service compatible with [VSCode](https://code.visualstudio.com/),
|
|
|
19
19
|
[pyright](https://github.com/microsoft/pyright) and other tools.
|
|
20
20
|
|
|
21
21
|
Generated by
|
|
22
|
-
[mypy-boto3-builder 7.
|
|
22
|
+
[mypy-boto3-builder 7.24.0](https://github.com/youtype/mypy_boto3_builder).
|
|
23
23
|
|
|
24
24
|
More information can be found on
|
|
25
25
|
[boto3-stubs](https://pypi.org/project/boto3-stubs/) page and in
|
|
@@ -290,10 +290,10 @@ Full list of `Athena` Literals can be found in
|
|
|
290
290
|
[docs](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/literals/).
|
|
291
291
|
|
|
292
292
|
```python
|
|
293
|
-
from mypy_boto3_athena.literals import
|
|
293
|
+
from mypy_boto3_athena.literals import AuthenticationTypeType
|
|
294
294
|
|
|
295
295
|
|
|
296
|
-
def check_value(value:
|
|
296
|
+
def check_value(value: AuthenticationTypeType) -> bool: ...
|
|
297
297
|
```
|
|
298
298
|
|
|
299
299
|
<a id="type-definitions"></a>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Main CLI entrypoint.
|
|
3
|
+
"""
|
|
4
|
+
|
|
5
|
+
import sys
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
def print_info() -> None:
|
|
9
|
+
"""
|
|
10
|
+
Print package info to stdout.
|
|
11
|
+
"""
|
|
12
|
+
print(
|
|
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"
|
|
20
|
+
)
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def print_version() -> None:
|
|
24
|
+
"""
|
|
25
|
+
Print package version to stdout.
|
|
26
|
+
"""
|
|
27
|
+
print("1.34.130")
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
def main() -> None:
|
|
31
|
+
"""
|
|
32
|
+
Main CLI entrypoint.
|
|
33
|
+
"""
|
|
34
|
+
if "--version" in sys.argv:
|
|
35
|
+
return print_version()
|
|
36
|
+
print_info()
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
if __name__ == "__main__":
|
|
40
|
+
main()
|
|
@@ -40,11 +40,11 @@ from .type_defs import (
|
|
|
40
40
|
BatchGetPreparedStatementOutputTypeDef,
|
|
41
41
|
BatchGetQueryExecutionOutputTypeDef,
|
|
42
42
|
CalculationConfigurationTypeDef,
|
|
43
|
-
|
|
43
|
+
CapacityAssignmentUnionTypeDef,
|
|
44
44
|
CreateNamedQueryOutputTypeDef,
|
|
45
45
|
CreateNotebookOutputTypeDef,
|
|
46
46
|
CreatePresignedNotebookUrlResponseTypeDef,
|
|
47
|
-
|
|
47
|
+
EngineConfigurationUnionTypeDef,
|
|
48
48
|
ExportNotebookOutputTypeDef,
|
|
49
49
|
FilterDefinitionTypeDef,
|
|
50
50
|
GetCalculationExecutionCodeResponseTypeDef,
|
|
@@ -99,7 +99,6 @@ if sys.version_info >= (3, 12):
|
|
|
99
99
|
else:
|
|
100
100
|
from typing_extensions import Literal
|
|
101
101
|
|
|
102
|
-
|
|
103
102
|
__all__ = ("AthenaClient",)
|
|
104
103
|
|
|
105
104
|
|
|
@@ -217,7 +216,7 @@ class AthenaClient(BaseClient):
|
|
|
217
216
|
Type: DataCatalogTypeType,
|
|
218
217
|
Description: str = ...,
|
|
219
218
|
Parameters: Mapping[str, str] = ...,
|
|
220
|
-
Tags: Sequence[TagTypeDef] =
|
|
219
|
+
Tags: Sequence[TagTypeDef] = ...,
|
|
221
220
|
) -> Dict[str, Any]:
|
|
222
221
|
"""
|
|
223
222
|
Creates (registers) a data catalog with the specified name and properties.
|
|
@@ -234,7 +233,7 @@ class AthenaClient(BaseClient):
|
|
|
234
233
|
QueryString: str,
|
|
235
234
|
Description: str = ...,
|
|
236
235
|
ClientRequestToken: str = ...,
|
|
237
|
-
WorkGroup: str =
|
|
236
|
+
WorkGroup: str = ...,
|
|
238
237
|
) -> CreateNamedQueryOutputTypeDef:
|
|
239
238
|
"""
|
|
240
239
|
Creates a named query in the specified workgroup.
|
|
@@ -279,7 +278,7 @@ class AthenaClient(BaseClient):
|
|
|
279
278
|
Name: str,
|
|
280
279
|
Configuration: WorkGroupConfigurationTypeDef = ...,
|
|
281
280
|
Description: str = ...,
|
|
282
|
-
Tags: Sequence[TagTypeDef] =
|
|
281
|
+
Tags: Sequence[TagTypeDef] = ...,
|
|
283
282
|
) -> Dict[str, Any]:
|
|
284
283
|
"""
|
|
285
284
|
Creates a workgroup with the specified name.
|
|
@@ -412,7 +411,7 @@ class AthenaClient(BaseClient):
|
|
|
412
411
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_capacity_reservation)
|
|
413
412
|
"""
|
|
414
413
|
|
|
415
|
-
def get_data_catalog(self, *, Name: str) -> GetDataCatalogOutputTypeDef:
|
|
414
|
+
def get_data_catalog(self, *, Name: str, WorkGroup: str = ...) -> GetDataCatalogOutputTypeDef:
|
|
416
415
|
"""
|
|
417
416
|
Returns the specified data catalog.
|
|
418
417
|
|
|
@@ -420,7 +419,9 @@ class AthenaClient(BaseClient):
|
|
|
420
419
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_data_catalog)
|
|
421
420
|
"""
|
|
422
421
|
|
|
423
|
-
def get_database(
|
|
422
|
+
def get_database(
|
|
423
|
+
self, *, CatalogName: str, DatabaseName: str, WorkGroup: str = ...
|
|
424
|
+
) -> GetDatabaseOutputTypeDef:
|
|
424
425
|
"""
|
|
425
426
|
Returns a database object for the specified database and data catalog.
|
|
426
427
|
|
|
@@ -508,7 +509,7 @@ class AthenaClient(BaseClient):
|
|
|
508
509
|
"""
|
|
509
510
|
|
|
510
511
|
def get_table_metadata(
|
|
511
|
-
self, *, CatalogName: str, DatabaseName: str, TableName: str
|
|
512
|
+
self, *, CatalogName: str, DatabaseName: str, TableName: str, WorkGroup: str = ...
|
|
512
513
|
) -> GetTableMetadataOutputTypeDef:
|
|
513
514
|
"""
|
|
514
515
|
Returns table metadata for the specified catalog, database, and table.
|
|
@@ -530,9 +531,10 @@ class AthenaClient(BaseClient):
|
|
|
530
531
|
*,
|
|
531
532
|
WorkGroup: str,
|
|
532
533
|
Name: str,
|
|
533
|
-
Payload: str,
|
|
534
534
|
Type: Literal["IPYNB"],
|
|
535
|
-
|
|
535
|
+
Payload: str = ...,
|
|
536
|
+
NotebookS3LocationUri: str = ...,
|
|
537
|
+
ClientRequestToken: str = ...,
|
|
536
538
|
) -> ImportNotebookOutputTypeDef:
|
|
537
539
|
"""
|
|
538
540
|
Imports a single `ipynb` file to a Spark enabled workgroup.
|
|
@@ -559,7 +561,7 @@ class AthenaClient(BaseClient):
|
|
|
559
561
|
SessionId: str,
|
|
560
562
|
StateFilter: CalculationExecutionStateType = ...,
|
|
561
563
|
MaxResults: int = ...,
|
|
562
|
-
NextToken: str =
|
|
564
|
+
NextToken: str = ...,
|
|
563
565
|
) -> ListCalculationExecutionsResponseTypeDef:
|
|
564
566
|
"""
|
|
565
567
|
Lists the calculations that have been submitted to a session in descending
|
|
@@ -580,7 +582,7 @@ class AthenaClient(BaseClient):
|
|
|
580
582
|
"""
|
|
581
583
|
|
|
582
584
|
def list_data_catalogs(
|
|
583
|
-
self, *, NextToken: str = ..., MaxResults: int = ...
|
|
585
|
+
self, *, NextToken: str = ..., MaxResults: int = ..., WorkGroup: str = ...
|
|
584
586
|
) -> ListDataCatalogsOutputTypeDef:
|
|
585
587
|
"""
|
|
586
588
|
Lists the data catalogs in the current Amazon Web Services account.
|
|
@@ -590,7 +592,7 @@ class AthenaClient(BaseClient):
|
|
|
590
592
|
"""
|
|
591
593
|
|
|
592
594
|
def list_databases(
|
|
593
|
-
self, *, CatalogName: str, NextToken: str = ..., MaxResults: int = ...
|
|
595
|
+
self, *, CatalogName: str, NextToken: str = ..., MaxResults: int = ..., WorkGroup: str = ...
|
|
594
596
|
) -> ListDatabasesOutputTypeDef:
|
|
595
597
|
"""
|
|
596
598
|
Lists the databases in the specified data catalog.
|
|
@@ -617,7 +619,7 @@ class AthenaClient(BaseClient):
|
|
|
617
619
|
SessionId: str,
|
|
618
620
|
ExecutorStateFilter: ExecutorStateType = ...,
|
|
619
621
|
MaxResults: int = ...,
|
|
620
|
-
NextToken: str =
|
|
622
|
+
NextToken: str = ...,
|
|
621
623
|
) -> ListExecutorsResponseTypeDef:
|
|
622
624
|
"""
|
|
623
625
|
Lists, in descending order, the executors that joined a session.
|
|
@@ -643,7 +645,7 @@ class AthenaClient(BaseClient):
|
|
|
643
645
|
WorkGroup: str,
|
|
644
646
|
Filters: FilterDefinitionTypeDef = ...,
|
|
645
647
|
NextToken: str = ...,
|
|
646
|
-
MaxResults: int =
|
|
648
|
+
MaxResults: int = ...,
|
|
647
649
|
) -> ListNotebookMetadataOutputTypeDef:
|
|
648
650
|
"""
|
|
649
651
|
Displays the notebook files for the specified workgroup in paginated format.
|
|
@@ -692,7 +694,7 @@ class AthenaClient(BaseClient):
|
|
|
692
694
|
WorkGroup: str,
|
|
693
695
|
StateFilter: SessionStateType = ...,
|
|
694
696
|
MaxResults: int = ...,
|
|
695
|
-
NextToken: str =
|
|
697
|
+
NextToken: str = ...,
|
|
696
698
|
) -> ListSessionsResponseTypeDef:
|
|
697
699
|
"""
|
|
698
700
|
Lists the sessions in a workgroup that are in an active state like `CREATING`,
|
|
@@ -710,7 +712,8 @@ class AthenaClient(BaseClient):
|
|
|
710
712
|
DatabaseName: str,
|
|
711
713
|
Expression: str = ...,
|
|
712
714
|
NextToken: str = ...,
|
|
713
|
-
MaxResults: int =
|
|
715
|
+
MaxResults: int = ...,
|
|
716
|
+
WorkGroup: str = ...,
|
|
714
717
|
) -> ListTableMetadataOutputTypeDef:
|
|
715
718
|
"""
|
|
716
719
|
Lists the metadata for the tables in the specified data catalog database.
|
|
@@ -743,7 +746,7 @@ class AthenaClient(BaseClient):
|
|
|
743
746
|
self,
|
|
744
747
|
*,
|
|
745
748
|
CapacityReservationName: str,
|
|
746
|
-
CapacityAssignments: Sequence[
|
|
749
|
+
CapacityAssignments: Sequence[CapacityAssignmentUnionTypeDef],
|
|
747
750
|
) -> Dict[str, Any]:
|
|
748
751
|
"""
|
|
749
752
|
Puts a new capacity assignment configuration for a specified capacity
|
|
@@ -760,7 +763,7 @@ class AthenaClient(BaseClient):
|
|
|
760
763
|
Description: str = ...,
|
|
761
764
|
CalculationConfiguration: CalculationConfigurationTypeDef = ...,
|
|
762
765
|
CodeBlock: str = ...,
|
|
763
|
-
ClientRequestToken: str =
|
|
766
|
+
ClientRequestToken: str = ...,
|
|
764
767
|
) -> StartCalculationExecutionResponseTypeDef:
|
|
765
768
|
"""
|
|
766
769
|
Submits calculations for execution within a session.
|
|
@@ -778,7 +781,7 @@ class AthenaClient(BaseClient):
|
|
|
778
781
|
ResultConfiguration: ResultConfigurationTypeDef = ...,
|
|
779
782
|
WorkGroup: str = ...,
|
|
780
783
|
ExecutionParameters: Sequence[str] = ...,
|
|
781
|
-
ResultReuseConfiguration: ResultReuseConfigurationTypeDef =
|
|
784
|
+
ResultReuseConfiguration: ResultReuseConfigurationTypeDef = ...,
|
|
782
785
|
) -> StartQueryExecutionOutputTypeDef:
|
|
783
786
|
"""
|
|
784
787
|
Runs the SQL query statements contained in the `Query`.
|
|
@@ -791,11 +794,11 @@ class AthenaClient(BaseClient):
|
|
|
791
794
|
self,
|
|
792
795
|
*,
|
|
793
796
|
WorkGroup: str,
|
|
794
|
-
EngineConfiguration:
|
|
797
|
+
EngineConfiguration: EngineConfigurationUnionTypeDef,
|
|
795
798
|
Description: str = ...,
|
|
796
799
|
NotebookVersion: str = ...,
|
|
797
800
|
SessionIdleTimeoutInMinutes: int = ...,
|
|
798
|
-
ClientRequestToken: str =
|
|
801
|
+
ClientRequestToken: str = ...,
|
|
799
802
|
) -> StartSessionResponseTypeDef:
|
|
800
803
|
"""
|
|
801
804
|
Creates a session for running calculations within a workgroup.
|
|
@@ -862,7 +865,7 @@ class AthenaClient(BaseClient):
|
|
|
862
865
|
Name: str,
|
|
863
866
|
Type: DataCatalogTypeType,
|
|
864
867
|
Description: str = ...,
|
|
865
|
-
Parameters: Mapping[str, str] =
|
|
868
|
+
Parameters: Mapping[str, str] = ...,
|
|
866
869
|
) -> Dict[str, Any]:
|
|
867
870
|
"""
|
|
868
871
|
Updates the data catalog that has the specified name.
|
|
@@ -888,7 +891,7 @@ class AthenaClient(BaseClient):
|
|
|
888
891
|
Payload: str,
|
|
889
892
|
Type: Literal["IPYNB"],
|
|
890
893
|
SessionId: str = ...,
|
|
891
|
-
ClientRequestToken: str =
|
|
894
|
+
ClientRequestToken: str = ...,
|
|
892
895
|
) -> Dict[str, Any]:
|
|
893
896
|
"""
|
|
894
897
|
Updates the contents of a Spark notebook.
|
|
@@ -923,7 +926,7 @@ class AthenaClient(BaseClient):
|
|
|
923
926
|
WorkGroup: str,
|
|
924
927
|
Description: str = ...,
|
|
925
928
|
ConfigurationUpdates: WorkGroupConfigurationUpdatesTypeDef = ...,
|
|
926
|
-
State: WorkGroupStateType =
|
|
929
|
+
State: WorkGroupStateType = ...,
|
|
927
930
|
) -> Dict[str, Any]:
|
|
928
931
|
"""
|
|
929
932
|
Updates the workgroup with the specified name.
|
|
@@ -40,11 +40,11 @@ from .type_defs import (
|
|
|
40
40
|
BatchGetPreparedStatementOutputTypeDef,
|
|
41
41
|
BatchGetQueryExecutionOutputTypeDef,
|
|
42
42
|
CalculationConfigurationTypeDef,
|
|
43
|
-
|
|
43
|
+
CapacityAssignmentUnionTypeDef,
|
|
44
44
|
CreateNamedQueryOutputTypeDef,
|
|
45
45
|
CreateNotebookOutputTypeDef,
|
|
46
46
|
CreatePresignedNotebookUrlResponseTypeDef,
|
|
47
|
-
|
|
47
|
+
EngineConfigurationUnionTypeDef,
|
|
48
48
|
ExportNotebookOutputTypeDef,
|
|
49
49
|
FilterDefinitionTypeDef,
|
|
50
50
|
GetCalculationExecutionCodeResponseTypeDef,
|
|
@@ -213,7 +213,7 @@ class AthenaClient(BaseClient):
|
|
|
213
213
|
Type: DataCatalogTypeType,
|
|
214
214
|
Description: str = ...,
|
|
215
215
|
Parameters: Mapping[str, str] = ...,
|
|
216
|
-
Tags: Sequence[TagTypeDef] =
|
|
216
|
+
Tags: Sequence[TagTypeDef] = ...,
|
|
217
217
|
) -> Dict[str, Any]:
|
|
218
218
|
"""
|
|
219
219
|
Creates (registers) a data catalog with the specified name and properties.
|
|
@@ -230,7 +230,7 @@ class AthenaClient(BaseClient):
|
|
|
230
230
|
QueryString: str,
|
|
231
231
|
Description: str = ...,
|
|
232
232
|
ClientRequestToken: str = ...,
|
|
233
|
-
WorkGroup: str =
|
|
233
|
+
WorkGroup: str = ...,
|
|
234
234
|
) -> CreateNamedQueryOutputTypeDef:
|
|
235
235
|
"""
|
|
236
236
|
Creates a named query in the specified workgroup.
|
|
@@ -275,7 +275,7 @@ class AthenaClient(BaseClient):
|
|
|
275
275
|
Name: str,
|
|
276
276
|
Configuration: WorkGroupConfigurationTypeDef = ...,
|
|
277
277
|
Description: str = ...,
|
|
278
|
-
Tags: Sequence[TagTypeDef] =
|
|
278
|
+
Tags: Sequence[TagTypeDef] = ...,
|
|
279
279
|
) -> Dict[str, Any]:
|
|
280
280
|
"""
|
|
281
281
|
Creates a workgroup with the specified name.
|
|
@@ -408,7 +408,7 @@ class AthenaClient(BaseClient):
|
|
|
408
408
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_capacity_reservation)
|
|
409
409
|
"""
|
|
410
410
|
|
|
411
|
-
def get_data_catalog(self, *, Name: str) -> GetDataCatalogOutputTypeDef:
|
|
411
|
+
def get_data_catalog(self, *, Name: str, WorkGroup: str = ...) -> GetDataCatalogOutputTypeDef:
|
|
412
412
|
"""
|
|
413
413
|
Returns the specified data catalog.
|
|
414
414
|
|
|
@@ -416,7 +416,9 @@ class AthenaClient(BaseClient):
|
|
|
416
416
|
[Show boto3-stubs documentation](https://youtype.github.io/boto3_stubs_docs/mypy_boto3_athena/client/#get_data_catalog)
|
|
417
417
|
"""
|
|
418
418
|
|
|
419
|
-
def get_database(
|
|
419
|
+
def get_database(
|
|
420
|
+
self, *, CatalogName: str, DatabaseName: str, WorkGroup: str = ...
|
|
421
|
+
) -> GetDatabaseOutputTypeDef:
|
|
420
422
|
"""
|
|
421
423
|
Returns a database object for the specified database and data catalog.
|
|
422
424
|
|
|
@@ -504,7 +506,7 @@ class AthenaClient(BaseClient):
|
|
|
504
506
|
"""
|
|
505
507
|
|
|
506
508
|
def get_table_metadata(
|
|
507
|
-
self, *, CatalogName: str, DatabaseName: str, TableName: str
|
|
509
|
+
self, *, CatalogName: str, DatabaseName: str, TableName: str, WorkGroup: str = ...
|
|
508
510
|
) -> GetTableMetadataOutputTypeDef:
|
|
509
511
|
"""
|
|
510
512
|
Returns table metadata for the specified catalog, database, and table.
|
|
@@ -526,9 +528,10 @@ class AthenaClient(BaseClient):
|
|
|
526
528
|
*,
|
|
527
529
|
WorkGroup: str,
|
|
528
530
|
Name: str,
|
|
529
|
-
Payload: str,
|
|
530
531
|
Type: Literal["IPYNB"],
|
|
531
|
-
|
|
532
|
+
Payload: str = ...,
|
|
533
|
+
NotebookS3LocationUri: str = ...,
|
|
534
|
+
ClientRequestToken: str = ...,
|
|
532
535
|
) -> ImportNotebookOutputTypeDef:
|
|
533
536
|
"""
|
|
534
537
|
Imports a single `ipynb` file to a Spark enabled workgroup.
|
|
@@ -555,7 +558,7 @@ class AthenaClient(BaseClient):
|
|
|
555
558
|
SessionId: str,
|
|
556
559
|
StateFilter: CalculationExecutionStateType = ...,
|
|
557
560
|
MaxResults: int = ...,
|
|
558
|
-
NextToken: str =
|
|
561
|
+
NextToken: str = ...,
|
|
559
562
|
) -> ListCalculationExecutionsResponseTypeDef:
|
|
560
563
|
"""
|
|
561
564
|
Lists the calculations that have been submitted to a session in descending
|
|
@@ -576,7 +579,7 @@ class AthenaClient(BaseClient):
|
|
|
576
579
|
"""
|
|
577
580
|
|
|
578
581
|
def list_data_catalogs(
|
|
579
|
-
self, *, NextToken: str = ..., MaxResults: int = ...
|
|
582
|
+
self, *, NextToken: str = ..., MaxResults: int = ..., WorkGroup: str = ...
|
|
580
583
|
) -> ListDataCatalogsOutputTypeDef:
|
|
581
584
|
"""
|
|
582
585
|
Lists the data catalogs in the current Amazon Web Services account.
|
|
@@ -586,7 +589,7 @@ class AthenaClient(BaseClient):
|
|
|
586
589
|
"""
|
|
587
590
|
|
|
588
591
|
def list_databases(
|
|
589
|
-
self, *, CatalogName: str, NextToken: str = ..., MaxResults: int = ...
|
|
592
|
+
self, *, CatalogName: str, NextToken: str = ..., MaxResults: int = ..., WorkGroup: str = ...
|
|
590
593
|
) -> ListDatabasesOutputTypeDef:
|
|
591
594
|
"""
|
|
592
595
|
Lists the databases in the specified data catalog.
|
|
@@ -613,7 +616,7 @@ class AthenaClient(BaseClient):
|
|
|
613
616
|
SessionId: str,
|
|
614
617
|
ExecutorStateFilter: ExecutorStateType = ...,
|
|
615
618
|
MaxResults: int = ...,
|
|
616
|
-
NextToken: str =
|
|
619
|
+
NextToken: str = ...,
|
|
617
620
|
) -> ListExecutorsResponseTypeDef:
|
|
618
621
|
"""
|
|
619
622
|
Lists, in descending order, the executors that joined a session.
|
|
@@ -639,7 +642,7 @@ class AthenaClient(BaseClient):
|
|
|
639
642
|
WorkGroup: str,
|
|
640
643
|
Filters: FilterDefinitionTypeDef = ...,
|
|
641
644
|
NextToken: str = ...,
|
|
642
|
-
MaxResults: int =
|
|
645
|
+
MaxResults: int = ...,
|
|
643
646
|
) -> ListNotebookMetadataOutputTypeDef:
|
|
644
647
|
"""
|
|
645
648
|
Displays the notebook files for the specified workgroup in paginated format.
|
|
@@ -688,7 +691,7 @@ class AthenaClient(BaseClient):
|
|
|
688
691
|
WorkGroup: str,
|
|
689
692
|
StateFilter: SessionStateType = ...,
|
|
690
693
|
MaxResults: int = ...,
|
|
691
|
-
NextToken: str =
|
|
694
|
+
NextToken: str = ...,
|
|
692
695
|
) -> ListSessionsResponseTypeDef:
|
|
693
696
|
"""
|
|
694
697
|
Lists the sessions in a workgroup that are in an active state like `CREATING`,
|
|
@@ -706,7 +709,8 @@ class AthenaClient(BaseClient):
|
|
|
706
709
|
DatabaseName: str,
|
|
707
710
|
Expression: str = ...,
|
|
708
711
|
NextToken: str = ...,
|
|
709
|
-
MaxResults: int =
|
|
712
|
+
MaxResults: int = ...,
|
|
713
|
+
WorkGroup: str = ...,
|
|
710
714
|
) -> ListTableMetadataOutputTypeDef:
|
|
711
715
|
"""
|
|
712
716
|
Lists the metadata for the tables in the specified data catalog database.
|
|
@@ -739,7 +743,7 @@ class AthenaClient(BaseClient):
|
|
|
739
743
|
self,
|
|
740
744
|
*,
|
|
741
745
|
CapacityReservationName: str,
|
|
742
|
-
CapacityAssignments: Sequence[
|
|
746
|
+
CapacityAssignments: Sequence[CapacityAssignmentUnionTypeDef],
|
|
743
747
|
) -> Dict[str, Any]:
|
|
744
748
|
"""
|
|
745
749
|
Puts a new capacity assignment configuration for a specified capacity
|
|
@@ -756,7 +760,7 @@ class AthenaClient(BaseClient):
|
|
|
756
760
|
Description: str = ...,
|
|
757
761
|
CalculationConfiguration: CalculationConfigurationTypeDef = ...,
|
|
758
762
|
CodeBlock: str = ...,
|
|
759
|
-
ClientRequestToken: str =
|
|
763
|
+
ClientRequestToken: str = ...,
|
|
760
764
|
) -> StartCalculationExecutionResponseTypeDef:
|
|
761
765
|
"""
|
|
762
766
|
Submits calculations for execution within a session.
|
|
@@ -774,7 +778,7 @@ class AthenaClient(BaseClient):
|
|
|
774
778
|
ResultConfiguration: ResultConfigurationTypeDef = ...,
|
|
775
779
|
WorkGroup: str = ...,
|
|
776
780
|
ExecutionParameters: Sequence[str] = ...,
|
|
777
|
-
ResultReuseConfiguration: ResultReuseConfigurationTypeDef =
|
|
781
|
+
ResultReuseConfiguration: ResultReuseConfigurationTypeDef = ...,
|
|
778
782
|
) -> StartQueryExecutionOutputTypeDef:
|
|
779
783
|
"""
|
|
780
784
|
Runs the SQL query statements contained in the `Query`.
|
|
@@ -787,11 +791,11 @@ class AthenaClient(BaseClient):
|
|
|
787
791
|
self,
|
|
788
792
|
*,
|
|
789
793
|
WorkGroup: str,
|
|
790
|
-
EngineConfiguration:
|
|
794
|
+
EngineConfiguration: EngineConfigurationUnionTypeDef,
|
|
791
795
|
Description: str = ...,
|
|
792
796
|
NotebookVersion: str = ...,
|
|
793
797
|
SessionIdleTimeoutInMinutes: int = ...,
|
|
794
|
-
ClientRequestToken: str =
|
|
798
|
+
ClientRequestToken: str = ...,
|
|
795
799
|
) -> StartSessionResponseTypeDef:
|
|
796
800
|
"""
|
|
797
801
|
Creates a session for running calculations within a workgroup.
|
|
@@ -858,7 +862,7 @@ class AthenaClient(BaseClient):
|
|
|
858
862
|
Name: str,
|
|
859
863
|
Type: DataCatalogTypeType,
|
|
860
864
|
Description: str = ...,
|
|
861
|
-
Parameters: Mapping[str, str] =
|
|
865
|
+
Parameters: Mapping[str, str] = ...,
|
|
862
866
|
) -> Dict[str, Any]:
|
|
863
867
|
"""
|
|
864
868
|
Updates the data catalog that has the specified name.
|
|
@@ -884,7 +888,7 @@ class AthenaClient(BaseClient):
|
|
|
884
888
|
Payload: str,
|
|
885
889
|
Type: Literal["IPYNB"],
|
|
886
890
|
SessionId: str = ...,
|
|
887
|
-
ClientRequestToken: str =
|
|
891
|
+
ClientRequestToken: str = ...,
|
|
888
892
|
) -> Dict[str, Any]:
|
|
889
893
|
"""
|
|
890
894
|
Updates the contents of a Spark notebook.
|
|
@@ -919,7 +923,7 @@ class AthenaClient(BaseClient):
|
|
|
919
923
|
WorkGroup: str,
|
|
920
924
|
Description: str = ...,
|
|
921
925
|
ConfigurationUpdates: WorkGroupConfigurationUpdatesTypeDef = ...,
|
|
922
|
-
State: WorkGroupStateType =
|
|
926
|
+
State: WorkGroupStateType = ...,
|
|
923
927
|
) -> Dict[str, Any]:
|
|
924
928
|
"""
|
|
925
929
|
Updates the workgroup with the specified name.
|