types-aiobotocore-dsql 2.18.0__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.
Potentially problematic release.
This version of types-aiobotocore-dsql might be problematic. Click here for more details.
- types_aiobotocore_dsql/__init__.py +44 -0
- types_aiobotocore_dsql/__init__.pyi +43 -0
- types_aiobotocore_dsql/__main__.py +43 -0
- types_aiobotocore_dsql/client.py +261 -0
- types_aiobotocore_dsql/client.pyi +258 -0
- types_aiobotocore_dsql/literals.py +461 -0
- types_aiobotocore_dsql/literals.pyi +459 -0
- types_aiobotocore_dsql/paginator.py +62 -0
- types_aiobotocore_dsql/paginator.pyi +58 -0
- types_aiobotocore_dsql/py.typed +0 -0
- types_aiobotocore_dsql/type_defs.py +212 -0
- types_aiobotocore_dsql/type_defs.pyi +186 -0
- types_aiobotocore_dsql/version.py +7 -0
- types_aiobotocore_dsql/waiter.py +72 -0
- types_aiobotocore_dsql/waiter.pyi +67 -0
- types_aiobotocore_dsql-2.18.0.dist-info/LICENSE +21 -0
- types_aiobotocore_dsql-2.18.0.dist-info/METADATA +499 -0
- types_aiobotocore_dsql-2.18.0.dist-info/RECORD +20 -0
- types_aiobotocore_dsql-2.18.0.dist-info/WHEEL +5 -0
- types_aiobotocore_dsql-2.18.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Main interface for dsql service.
|
|
3
|
+
|
|
4
|
+
Usage::
|
|
5
|
+
|
|
6
|
+
```python
|
|
7
|
+
from aiobotocore.session import get_session
|
|
8
|
+
from types_aiobotocore_dsql import (
|
|
9
|
+
AuroraDSQLClient,
|
|
10
|
+
Client,
|
|
11
|
+
ClusterActiveWaiter,
|
|
12
|
+
ClusterNotExistsWaiter,
|
|
13
|
+
ListClustersPaginator,
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
session = get_session()
|
|
17
|
+
async with session.create_client("dsql") as client:
|
|
18
|
+
client: AuroraDSQLClient
|
|
19
|
+
...
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
cluster_active_waiter: ClusterActiveWaiter = client.get_waiter("cluster_active")
|
|
23
|
+
cluster_not_exists_waiter: ClusterNotExistsWaiter = client.get_waiter("cluster_not_exists")
|
|
24
|
+
|
|
25
|
+
list_clusters_paginator: ListClustersPaginator = client.get_paginator("list_clusters")
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Copyright 2025 Vlad Emelianov
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
from .client import AuroraDSQLClient
|
|
32
|
+
from .paginator import ListClustersPaginator
|
|
33
|
+
from .waiter import ClusterActiveWaiter, ClusterNotExistsWaiter
|
|
34
|
+
|
|
35
|
+
Client = AuroraDSQLClient
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
__all__ = (
|
|
39
|
+
"AuroraDSQLClient",
|
|
40
|
+
"Client",
|
|
41
|
+
"ClusterActiveWaiter",
|
|
42
|
+
"ClusterNotExistsWaiter",
|
|
43
|
+
"ListClustersPaginator",
|
|
44
|
+
)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Main interface for dsql service.
|
|
3
|
+
|
|
4
|
+
Usage::
|
|
5
|
+
|
|
6
|
+
```python
|
|
7
|
+
from aiobotocore.session import get_session
|
|
8
|
+
from types_aiobotocore_dsql import (
|
|
9
|
+
AuroraDSQLClient,
|
|
10
|
+
Client,
|
|
11
|
+
ClusterActiveWaiter,
|
|
12
|
+
ClusterNotExistsWaiter,
|
|
13
|
+
ListClustersPaginator,
|
|
14
|
+
)
|
|
15
|
+
|
|
16
|
+
session = get_session()
|
|
17
|
+
async with session.create_client("dsql") as client:
|
|
18
|
+
client: AuroraDSQLClient
|
|
19
|
+
...
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
cluster_active_waiter: ClusterActiveWaiter = client.get_waiter("cluster_active")
|
|
23
|
+
cluster_not_exists_waiter: ClusterNotExistsWaiter = client.get_waiter("cluster_not_exists")
|
|
24
|
+
|
|
25
|
+
list_clusters_paginator: ListClustersPaginator = client.get_paginator("list_clusters")
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
Copyright 2025 Vlad Emelianov
|
|
29
|
+
"""
|
|
30
|
+
|
|
31
|
+
from .client import AuroraDSQLClient
|
|
32
|
+
from .paginator import ListClustersPaginator
|
|
33
|
+
from .waiter import ClusterActiveWaiter, ClusterNotExistsWaiter
|
|
34
|
+
|
|
35
|
+
Client = AuroraDSQLClient
|
|
36
|
+
|
|
37
|
+
__all__ = (
|
|
38
|
+
"AuroraDSQLClient",
|
|
39
|
+
"Client",
|
|
40
|
+
"ClusterActiveWaiter",
|
|
41
|
+
"ClusterNotExistsWaiter",
|
|
42
|
+
"ListClustersPaginator",
|
|
43
|
+
)
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Main CLI entrypoint.
|
|
3
|
+
|
|
4
|
+
Copyright 2025 Vlad Emelianov
|
|
5
|
+
"""
|
|
6
|
+
|
|
7
|
+
import sys
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def print_info() -> None:
|
|
11
|
+
"""
|
|
12
|
+
Print package info to stdout.
|
|
13
|
+
"""
|
|
14
|
+
sys.stdout.write(
|
|
15
|
+
"Type annotations for aiobotocore AuroraDSQL 2.18.0\n"
|
|
16
|
+
"Version: 2.18.0\n"
|
|
17
|
+
"Builder version: 8.8.0\n"
|
|
18
|
+
"Docs: https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql//\n"
|
|
19
|
+
"Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql.html#auroradsql\n"
|
|
20
|
+
"Other services: https://pypi.org/project/boto3-stubs/\n"
|
|
21
|
+
"Changelog: https://github.com/youtype/mypy_boto3_builder/releases\n"
|
|
22
|
+
)
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
def print_version() -> None:
|
|
26
|
+
"""
|
|
27
|
+
Print package version to stdout.
|
|
28
|
+
"""
|
|
29
|
+
sys.stdout.write("2.18.0\n")
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def main() -> None:
|
|
33
|
+
"""
|
|
34
|
+
Main CLI entrypoint.
|
|
35
|
+
"""
|
|
36
|
+
if "--version" in sys.argv:
|
|
37
|
+
print_version()
|
|
38
|
+
return
|
|
39
|
+
print_info()
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
if __name__ == "__main__":
|
|
43
|
+
main()
|
|
@@ -0,0 +1,261 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for dsql service Client.
|
|
3
|
+
|
|
4
|
+
[Documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/)
|
|
5
|
+
|
|
6
|
+
Usage::
|
|
7
|
+
|
|
8
|
+
```python
|
|
9
|
+
from aiobotocore.session import get_session
|
|
10
|
+
from types_aiobotocore_dsql.client import AuroraDSQLClient
|
|
11
|
+
|
|
12
|
+
session = get_session()
|
|
13
|
+
async with session.create_client("dsql") as client:
|
|
14
|
+
client: AuroraDSQLClient
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Copyright 2025 Vlad Emelianov
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
from __future__ import annotations
|
|
21
|
+
|
|
22
|
+
import sys
|
|
23
|
+
from types import TracebackType
|
|
24
|
+
from typing import Any, overload
|
|
25
|
+
|
|
26
|
+
from aiobotocore.client import AioBaseClient
|
|
27
|
+
from botocore.client import ClientMeta
|
|
28
|
+
from botocore.errorfactory import BaseClientExceptions
|
|
29
|
+
from botocore.exceptions import ClientError as BotocoreClientError
|
|
30
|
+
|
|
31
|
+
from .paginator import ListClustersPaginator
|
|
32
|
+
from .type_defs import (
|
|
33
|
+
CreateClusterInputRequestTypeDef,
|
|
34
|
+
CreateClusterOutputTypeDef,
|
|
35
|
+
CreateMultiRegionClustersInputRequestTypeDef,
|
|
36
|
+
CreateMultiRegionClustersOutputTypeDef,
|
|
37
|
+
DeleteClusterInputRequestTypeDef,
|
|
38
|
+
DeleteClusterOutputTypeDef,
|
|
39
|
+
DeleteMultiRegionClustersInputRequestTypeDef,
|
|
40
|
+
EmptyResponseMetadataTypeDef,
|
|
41
|
+
GetClusterInputRequestTypeDef,
|
|
42
|
+
GetClusterOutputTypeDef,
|
|
43
|
+
ListClustersInputRequestTypeDef,
|
|
44
|
+
ListClustersOutputTypeDef,
|
|
45
|
+
ListTagsForResourceInputRequestTypeDef,
|
|
46
|
+
ListTagsForResourceOutputTypeDef,
|
|
47
|
+
TagResourceInputRequestTypeDef,
|
|
48
|
+
UntagResourceInputRequestTypeDef,
|
|
49
|
+
UpdateClusterInputRequestTypeDef,
|
|
50
|
+
UpdateClusterOutputTypeDef,
|
|
51
|
+
)
|
|
52
|
+
from .waiter import ClusterActiveWaiter, ClusterNotExistsWaiter
|
|
53
|
+
|
|
54
|
+
if sys.version_info >= (3, 9):
|
|
55
|
+
from builtins import type as Type
|
|
56
|
+
from collections.abc import Mapping
|
|
57
|
+
else:
|
|
58
|
+
from typing import Mapping, Type
|
|
59
|
+
if sys.version_info >= (3, 12):
|
|
60
|
+
from typing import Literal, Self, Unpack
|
|
61
|
+
else:
|
|
62
|
+
from typing_extensions import Literal, Self, Unpack
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
__all__ = ("AuroraDSQLClient",)
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
class Exceptions(BaseClientExceptions):
|
|
69
|
+
AccessDeniedException: Type[BotocoreClientError]
|
|
70
|
+
ClientError: Type[BotocoreClientError]
|
|
71
|
+
ConflictException: Type[BotocoreClientError]
|
|
72
|
+
InternalServerException: Type[BotocoreClientError]
|
|
73
|
+
ResourceNotFoundException: Type[BotocoreClientError]
|
|
74
|
+
ServiceQuotaExceededException: Type[BotocoreClientError]
|
|
75
|
+
ThrottlingException: Type[BotocoreClientError]
|
|
76
|
+
ValidationException: Type[BotocoreClientError]
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
class AuroraDSQLClient(AioBaseClient):
|
|
80
|
+
"""
|
|
81
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql.html#AuroraDSQL.Client)
|
|
82
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/)
|
|
83
|
+
"""
|
|
84
|
+
|
|
85
|
+
meta: ClientMeta
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
def exceptions(self) -> Exceptions:
|
|
89
|
+
"""
|
|
90
|
+
AuroraDSQLClient exceptions.
|
|
91
|
+
|
|
92
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql.html#AuroraDSQL.Client)
|
|
93
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#exceptions)
|
|
94
|
+
"""
|
|
95
|
+
|
|
96
|
+
def can_paginate(self, operation_name: str) -> bool:
|
|
97
|
+
"""
|
|
98
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/can_paginate.html)
|
|
99
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#can_paginate)
|
|
100
|
+
"""
|
|
101
|
+
|
|
102
|
+
async def generate_presigned_url(
|
|
103
|
+
self,
|
|
104
|
+
ClientMethod: str,
|
|
105
|
+
Params: Mapping[str, Any] = ...,
|
|
106
|
+
ExpiresIn: int = 3600,
|
|
107
|
+
HttpMethod: str = ...,
|
|
108
|
+
) -> str:
|
|
109
|
+
"""
|
|
110
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/generate_presigned_url.html)
|
|
111
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#generate_presigned_url)
|
|
112
|
+
"""
|
|
113
|
+
|
|
114
|
+
async def create_cluster(
|
|
115
|
+
self, **kwargs: Unpack[CreateClusterInputRequestTypeDef]
|
|
116
|
+
) -> CreateClusterOutputTypeDef:
|
|
117
|
+
"""
|
|
118
|
+
Creates a cluster in Amazon Aurora DSQL.
|
|
119
|
+
|
|
120
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/create_cluster.html)
|
|
121
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#create_cluster)
|
|
122
|
+
"""
|
|
123
|
+
|
|
124
|
+
async def create_multi_region_clusters(
|
|
125
|
+
self, **kwargs: Unpack[CreateMultiRegionClustersInputRequestTypeDef]
|
|
126
|
+
) -> CreateMultiRegionClustersOutputTypeDef:
|
|
127
|
+
"""
|
|
128
|
+
Creates multi-Region clusters in Amazon Aurora DSQL.
|
|
129
|
+
|
|
130
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/create_multi_region_clusters.html)
|
|
131
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#create_multi_region_clusters)
|
|
132
|
+
"""
|
|
133
|
+
|
|
134
|
+
async def delete_cluster(
|
|
135
|
+
self, **kwargs: Unpack[DeleteClusterInputRequestTypeDef]
|
|
136
|
+
) -> DeleteClusterOutputTypeDef:
|
|
137
|
+
"""
|
|
138
|
+
Deletes a cluster in Amazon Aurora DSQL.
|
|
139
|
+
|
|
140
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/delete_cluster.html)
|
|
141
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#delete_cluster)
|
|
142
|
+
"""
|
|
143
|
+
|
|
144
|
+
async def delete_multi_region_clusters(
|
|
145
|
+
self, **kwargs: Unpack[DeleteMultiRegionClustersInputRequestTypeDef]
|
|
146
|
+
) -> EmptyResponseMetadataTypeDef:
|
|
147
|
+
"""
|
|
148
|
+
Deletes a multi-Region cluster in Amazon Aurora DSQL.
|
|
149
|
+
|
|
150
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/delete_multi_region_clusters.html)
|
|
151
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#delete_multi_region_clusters)
|
|
152
|
+
"""
|
|
153
|
+
|
|
154
|
+
async def get_cluster(
|
|
155
|
+
self, **kwargs: Unpack[GetClusterInputRequestTypeDef]
|
|
156
|
+
) -> GetClusterOutputTypeDef:
|
|
157
|
+
"""
|
|
158
|
+
Retrieves information about a cluster.
|
|
159
|
+
|
|
160
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/get_cluster.html)
|
|
161
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#get_cluster)
|
|
162
|
+
"""
|
|
163
|
+
|
|
164
|
+
async def list_clusters(
|
|
165
|
+
self, **kwargs: Unpack[ListClustersInputRequestTypeDef]
|
|
166
|
+
) -> ListClustersOutputTypeDef:
|
|
167
|
+
"""
|
|
168
|
+
Retrieves information about a list of clusters.
|
|
169
|
+
|
|
170
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/list_clusters.html)
|
|
171
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#list_clusters)
|
|
172
|
+
"""
|
|
173
|
+
|
|
174
|
+
async def list_tags_for_resource(
|
|
175
|
+
self, **kwargs: Unpack[ListTagsForResourceInputRequestTypeDef]
|
|
176
|
+
) -> ListTagsForResourceOutputTypeDef:
|
|
177
|
+
"""
|
|
178
|
+
Lists all of the tags for a resource.
|
|
179
|
+
|
|
180
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/list_tags_for_resource.html)
|
|
181
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#list_tags_for_resource)
|
|
182
|
+
"""
|
|
183
|
+
|
|
184
|
+
async def tag_resource(
|
|
185
|
+
self, **kwargs: Unpack[TagResourceInputRequestTypeDef]
|
|
186
|
+
) -> EmptyResponseMetadataTypeDef:
|
|
187
|
+
"""
|
|
188
|
+
Tags a resource with a map of key and value pairs.
|
|
189
|
+
|
|
190
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/tag_resource.html)
|
|
191
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#tag_resource)
|
|
192
|
+
"""
|
|
193
|
+
|
|
194
|
+
async def untag_resource(
|
|
195
|
+
self, **kwargs: Unpack[UntagResourceInputRequestTypeDef]
|
|
196
|
+
) -> EmptyResponseMetadataTypeDef:
|
|
197
|
+
"""
|
|
198
|
+
Removes a tag from a resource.
|
|
199
|
+
|
|
200
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/untag_resource.html)
|
|
201
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#untag_resource)
|
|
202
|
+
"""
|
|
203
|
+
|
|
204
|
+
async def update_cluster(
|
|
205
|
+
self, **kwargs: Unpack[UpdateClusterInputRequestTypeDef]
|
|
206
|
+
) -> UpdateClusterOutputTypeDef:
|
|
207
|
+
"""
|
|
208
|
+
Updates a cluster.
|
|
209
|
+
|
|
210
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/update_cluster.html)
|
|
211
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#update_cluster)
|
|
212
|
+
"""
|
|
213
|
+
|
|
214
|
+
def get_paginator( # type: ignore[override]
|
|
215
|
+
self, operation_name: Literal["list_clusters"]
|
|
216
|
+
) -> ListClustersPaginator:
|
|
217
|
+
"""
|
|
218
|
+
Create a paginator for an operation.
|
|
219
|
+
|
|
220
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/get_paginator.html)
|
|
221
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#get_paginator)
|
|
222
|
+
"""
|
|
223
|
+
|
|
224
|
+
@overload # type: ignore[override]
|
|
225
|
+
def get_waiter( # type: ignore[override]
|
|
226
|
+
self, waiter_name: Literal["cluster_active"]
|
|
227
|
+
) -> ClusterActiveWaiter:
|
|
228
|
+
"""
|
|
229
|
+
Returns an object that can wait for some condition.
|
|
230
|
+
|
|
231
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/get_waiter.html)
|
|
232
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#get_waiter)
|
|
233
|
+
"""
|
|
234
|
+
|
|
235
|
+
@overload # type: ignore[override]
|
|
236
|
+
def get_waiter( # type: ignore[override]
|
|
237
|
+
self, waiter_name: Literal["cluster_not_exists"]
|
|
238
|
+
) -> ClusterNotExistsWaiter:
|
|
239
|
+
"""
|
|
240
|
+
Returns an object that can wait for some condition.
|
|
241
|
+
|
|
242
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/get_waiter.html)
|
|
243
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#get_waiter)
|
|
244
|
+
"""
|
|
245
|
+
|
|
246
|
+
async def __aenter__(self) -> Self:
|
|
247
|
+
"""
|
|
248
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql.html#AuroraDSQL.Client)
|
|
249
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/)
|
|
250
|
+
"""
|
|
251
|
+
|
|
252
|
+
async def __aexit__(
|
|
253
|
+
self,
|
|
254
|
+
exc_type: Type[BaseException] | None,
|
|
255
|
+
exc_val: BaseException | None,
|
|
256
|
+
exc_tb: TracebackType | None,
|
|
257
|
+
) -> None:
|
|
258
|
+
"""
|
|
259
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql.html#AuroraDSQL.Client)
|
|
260
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/)
|
|
261
|
+
"""
|
|
@@ -0,0 +1,258 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Type annotations for dsql service Client.
|
|
3
|
+
|
|
4
|
+
[Documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/)
|
|
5
|
+
|
|
6
|
+
Usage::
|
|
7
|
+
|
|
8
|
+
```python
|
|
9
|
+
from aiobotocore.session import get_session
|
|
10
|
+
from types_aiobotocore_dsql.client import AuroraDSQLClient
|
|
11
|
+
|
|
12
|
+
session = get_session()
|
|
13
|
+
async with session.create_client("dsql") as client:
|
|
14
|
+
client: AuroraDSQLClient
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Copyright 2025 Vlad Emelianov
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
from __future__ import annotations
|
|
21
|
+
|
|
22
|
+
import sys
|
|
23
|
+
from types import TracebackType
|
|
24
|
+
from typing import Any, overload
|
|
25
|
+
|
|
26
|
+
from aiobotocore.client import AioBaseClient
|
|
27
|
+
from botocore.client import ClientMeta
|
|
28
|
+
from botocore.errorfactory import BaseClientExceptions
|
|
29
|
+
from botocore.exceptions import ClientError as BotocoreClientError
|
|
30
|
+
|
|
31
|
+
from .paginator import ListClustersPaginator
|
|
32
|
+
from .type_defs import (
|
|
33
|
+
CreateClusterInputRequestTypeDef,
|
|
34
|
+
CreateClusterOutputTypeDef,
|
|
35
|
+
CreateMultiRegionClustersInputRequestTypeDef,
|
|
36
|
+
CreateMultiRegionClustersOutputTypeDef,
|
|
37
|
+
DeleteClusterInputRequestTypeDef,
|
|
38
|
+
DeleteClusterOutputTypeDef,
|
|
39
|
+
DeleteMultiRegionClustersInputRequestTypeDef,
|
|
40
|
+
EmptyResponseMetadataTypeDef,
|
|
41
|
+
GetClusterInputRequestTypeDef,
|
|
42
|
+
GetClusterOutputTypeDef,
|
|
43
|
+
ListClustersInputRequestTypeDef,
|
|
44
|
+
ListClustersOutputTypeDef,
|
|
45
|
+
ListTagsForResourceInputRequestTypeDef,
|
|
46
|
+
ListTagsForResourceOutputTypeDef,
|
|
47
|
+
TagResourceInputRequestTypeDef,
|
|
48
|
+
UntagResourceInputRequestTypeDef,
|
|
49
|
+
UpdateClusterInputRequestTypeDef,
|
|
50
|
+
UpdateClusterOutputTypeDef,
|
|
51
|
+
)
|
|
52
|
+
from .waiter import ClusterActiveWaiter, ClusterNotExistsWaiter
|
|
53
|
+
|
|
54
|
+
if sys.version_info >= (3, 9):
|
|
55
|
+
from builtins import type as Type
|
|
56
|
+
from collections.abc import Mapping
|
|
57
|
+
else:
|
|
58
|
+
from typing import Mapping, Type
|
|
59
|
+
if sys.version_info >= (3, 12):
|
|
60
|
+
from typing import Literal, Self, Unpack
|
|
61
|
+
else:
|
|
62
|
+
from typing_extensions import Literal, Self, Unpack
|
|
63
|
+
|
|
64
|
+
__all__ = ("AuroraDSQLClient",)
|
|
65
|
+
|
|
66
|
+
class Exceptions(BaseClientExceptions):
|
|
67
|
+
AccessDeniedException: Type[BotocoreClientError]
|
|
68
|
+
ClientError: Type[BotocoreClientError]
|
|
69
|
+
ConflictException: Type[BotocoreClientError]
|
|
70
|
+
InternalServerException: Type[BotocoreClientError]
|
|
71
|
+
ResourceNotFoundException: Type[BotocoreClientError]
|
|
72
|
+
ServiceQuotaExceededException: Type[BotocoreClientError]
|
|
73
|
+
ThrottlingException: Type[BotocoreClientError]
|
|
74
|
+
ValidationException: Type[BotocoreClientError]
|
|
75
|
+
|
|
76
|
+
class AuroraDSQLClient(AioBaseClient):
|
|
77
|
+
"""
|
|
78
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql.html#AuroraDSQL.Client)
|
|
79
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/)
|
|
80
|
+
"""
|
|
81
|
+
|
|
82
|
+
meta: ClientMeta
|
|
83
|
+
|
|
84
|
+
@property
|
|
85
|
+
def exceptions(self) -> Exceptions:
|
|
86
|
+
"""
|
|
87
|
+
AuroraDSQLClient exceptions.
|
|
88
|
+
|
|
89
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql.html#AuroraDSQL.Client)
|
|
90
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#exceptions)
|
|
91
|
+
"""
|
|
92
|
+
|
|
93
|
+
def can_paginate(self, operation_name: str) -> bool:
|
|
94
|
+
"""
|
|
95
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/can_paginate.html)
|
|
96
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#can_paginate)
|
|
97
|
+
"""
|
|
98
|
+
|
|
99
|
+
async def generate_presigned_url(
|
|
100
|
+
self,
|
|
101
|
+
ClientMethod: str,
|
|
102
|
+
Params: Mapping[str, Any] = ...,
|
|
103
|
+
ExpiresIn: int = 3600,
|
|
104
|
+
HttpMethod: str = ...,
|
|
105
|
+
) -> str:
|
|
106
|
+
"""
|
|
107
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/generate_presigned_url.html)
|
|
108
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#generate_presigned_url)
|
|
109
|
+
"""
|
|
110
|
+
|
|
111
|
+
async def create_cluster(
|
|
112
|
+
self, **kwargs: Unpack[CreateClusterInputRequestTypeDef]
|
|
113
|
+
) -> CreateClusterOutputTypeDef:
|
|
114
|
+
"""
|
|
115
|
+
Creates a cluster in Amazon Aurora DSQL.
|
|
116
|
+
|
|
117
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/create_cluster.html)
|
|
118
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#create_cluster)
|
|
119
|
+
"""
|
|
120
|
+
|
|
121
|
+
async def create_multi_region_clusters(
|
|
122
|
+
self, **kwargs: Unpack[CreateMultiRegionClustersInputRequestTypeDef]
|
|
123
|
+
) -> CreateMultiRegionClustersOutputTypeDef:
|
|
124
|
+
"""
|
|
125
|
+
Creates multi-Region clusters in Amazon Aurora DSQL.
|
|
126
|
+
|
|
127
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/create_multi_region_clusters.html)
|
|
128
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#create_multi_region_clusters)
|
|
129
|
+
"""
|
|
130
|
+
|
|
131
|
+
async def delete_cluster(
|
|
132
|
+
self, **kwargs: Unpack[DeleteClusterInputRequestTypeDef]
|
|
133
|
+
) -> DeleteClusterOutputTypeDef:
|
|
134
|
+
"""
|
|
135
|
+
Deletes a cluster in Amazon Aurora DSQL.
|
|
136
|
+
|
|
137
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/delete_cluster.html)
|
|
138
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#delete_cluster)
|
|
139
|
+
"""
|
|
140
|
+
|
|
141
|
+
async def delete_multi_region_clusters(
|
|
142
|
+
self, **kwargs: Unpack[DeleteMultiRegionClustersInputRequestTypeDef]
|
|
143
|
+
) -> EmptyResponseMetadataTypeDef:
|
|
144
|
+
"""
|
|
145
|
+
Deletes a multi-Region cluster in Amazon Aurora DSQL.
|
|
146
|
+
|
|
147
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/delete_multi_region_clusters.html)
|
|
148
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#delete_multi_region_clusters)
|
|
149
|
+
"""
|
|
150
|
+
|
|
151
|
+
async def get_cluster(
|
|
152
|
+
self, **kwargs: Unpack[GetClusterInputRequestTypeDef]
|
|
153
|
+
) -> GetClusterOutputTypeDef:
|
|
154
|
+
"""
|
|
155
|
+
Retrieves information about a cluster.
|
|
156
|
+
|
|
157
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/get_cluster.html)
|
|
158
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#get_cluster)
|
|
159
|
+
"""
|
|
160
|
+
|
|
161
|
+
async def list_clusters(
|
|
162
|
+
self, **kwargs: Unpack[ListClustersInputRequestTypeDef]
|
|
163
|
+
) -> ListClustersOutputTypeDef:
|
|
164
|
+
"""
|
|
165
|
+
Retrieves information about a list of clusters.
|
|
166
|
+
|
|
167
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/list_clusters.html)
|
|
168
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#list_clusters)
|
|
169
|
+
"""
|
|
170
|
+
|
|
171
|
+
async def list_tags_for_resource(
|
|
172
|
+
self, **kwargs: Unpack[ListTagsForResourceInputRequestTypeDef]
|
|
173
|
+
) -> ListTagsForResourceOutputTypeDef:
|
|
174
|
+
"""
|
|
175
|
+
Lists all of the tags for a resource.
|
|
176
|
+
|
|
177
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/list_tags_for_resource.html)
|
|
178
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#list_tags_for_resource)
|
|
179
|
+
"""
|
|
180
|
+
|
|
181
|
+
async def tag_resource(
|
|
182
|
+
self, **kwargs: Unpack[TagResourceInputRequestTypeDef]
|
|
183
|
+
) -> EmptyResponseMetadataTypeDef:
|
|
184
|
+
"""
|
|
185
|
+
Tags a resource with a map of key and value pairs.
|
|
186
|
+
|
|
187
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/tag_resource.html)
|
|
188
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#tag_resource)
|
|
189
|
+
"""
|
|
190
|
+
|
|
191
|
+
async def untag_resource(
|
|
192
|
+
self, **kwargs: Unpack[UntagResourceInputRequestTypeDef]
|
|
193
|
+
) -> EmptyResponseMetadataTypeDef:
|
|
194
|
+
"""
|
|
195
|
+
Removes a tag from a resource.
|
|
196
|
+
|
|
197
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/untag_resource.html)
|
|
198
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#untag_resource)
|
|
199
|
+
"""
|
|
200
|
+
|
|
201
|
+
async def update_cluster(
|
|
202
|
+
self, **kwargs: Unpack[UpdateClusterInputRequestTypeDef]
|
|
203
|
+
) -> UpdateClusterOutputTypeDef:
|
|
204
|
+
"""
|
|
205
|
+
Updates a cluster.
|
|
206
|
+
|
|
207
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/update_cluster.html)
|
|
208
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#update_cluster)
|
|
209
|
+
"""
|
|
210
|
+
|
|
211
|
+
def get_paginator( # type: ignore[override]
|
|
212
|
+
self, operation_name: Literal["list_clusters"]
|
|
213
|
+
) -> ListClustersPaginator:
|
|
214
|
+
"""
|
|
215
|
+
Create a paginator for an operation.
|
|
216
|
+
|
|
217
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/get_paginator.html)
|
|
218
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#get_paginator)
|
|
219
|
+
"""
|
|
220
|
+
|
|
221
|
+
@overload # type: ignore[override]
|
|
222
|
+
def get_waiter( # type: ignore[override]
|
|
223
|
+
self, waiter_name: Literal["cluster_active"]
|
|
224
|
+
) -> ClusterActiveWaiter:
|
|
225
|
+
"""
|
|
226
|
+
Returns an object that can wait for some condition.
|
|
227
|
+
|
|
228
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/get_waiter.html)
|
|
229
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#get_waiter)
|
|
230
|
+
"""
|
|
231
|
+
|
|
232
|
+
@overload # type: ignore[override]
|
|
233
|
+
def get_waiter( # type: ignore[override]
|
|
234
|
+
self, waiter_name: Literal["cluster_not_exists"]
|
|
235
|
+
) -> ClusterNotExistsWaiter:
|
|
236
|
+
"""
|
|
237
|
+
Returns an object that can wait for some condition.
|
|
238
|
+
|
|
239
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql/client/get_waiter.html)
|
|
240
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/#get_waiter)
|
|
241
|
+
"""
|
|
242
|
+
|
|
243
|
+
async def __aenter__(self) -> Self:
|
|
244
|
+
"""
|
|
245
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql.html#AuroraDSQL.Client)
|
|
246
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/)
|
|
247
|
+
"""
|
|
248
|
+
|
|
249
|
+
async def __aexit__(
|
|
250
|
+
self,
|
|
251
|
+
exc_type: Type[BaseException] | None,
|
|
252
|
+
exc_val: BaseException | None,
|
|
253
|
+
exc_tb: TracebackType | None,
|
|
254
|
+
) -> None:
|
|
255
|
+
"""
|
|
256
|
+
[Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/dsql.html#AuroraDSQL.Client)
|
|
257
|
+
[Show types-aiobotocore documentation](https://youtype.github.io/types_aiobotocore_docs/types_aiobotocore_dsql/client/)
|
|
258
|
+
"""
|