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