types-boto3-redshift-data 1.35.71__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.
@@ -0,0 +1,59 @@
1
+ """
2
+ Main interface for redshift-data service.
3
+
4
+ Usage::
5
+
6
+ ```python
7
+ from boto3.session import Session
8
+ from types_boto3_redshift_data import (
9
+ Client,
10
+ DescribeTablePaginator,
11
+ GetStatementResultPaginator,
12
+ GetStatementResultV2Paginator,
13
+ ListDatabasesPaginator,
14
+ ListSchemasPaginator,
15
+ ListStatementsPaginator,
16
+ ListTablesPaginator,
17
+ RedshiftDataAPIServiceClient,
18
+ )
19
+
20
+ session = Session()
21
+ client: RedshiftDataAPIServiceClient = session.client("redshift-data")
22
+
23
+ describe_table_paginator: DescribeTablePaginator = client.get_paginator("describe_table")
24
+ get_statement_result_paginator: GetStatementResultPaginator = client.get_paginator("get_statement_result")
25
+ get_statement_result_v2_paginator: GetStatementResultV2Paginator = client.get_paginator("get_statement_result_v2")
26
+ list_databases_paginator: ListDatabasesPaginator = client.get_paginator("list_databases")
27
+ list_schemas_paginator: ListSchemasPaginator = client.get_paginator("list_schemas")
28
+ list_statements_paginator: ListStatementsPaginator = client.get_paginator("list_statements")
29
+ list_tables_paginator: ListTablesPaginator = client.get_paginator("list_tables")
30
+ ```
31
+
32
+ Copyright 2024 Vlad Emelianov
33
+ """
34
+
35
+ from .client import RedshiftDataAPIServiceClient
36
+ from .paginator import (
37
+ DescribeTablePaginator,
38
+ GetStatementResultPaginator,
39
+ GetStatementResultV2Paginator,
40
+ ListDatabasesPaginator,
41
+ ListSchemasPaginator,
42
+ ListStatementsPaginator,
43
+ ListTablesPaginator,
44
+ )
45
+
46
+ Client = RedshiftDataAPIServiceClient
47
+
48
+
49
+ __all__ = (
50
+ "Client",
51
+ "DescribeTablePaginator",
52
+ "GetStatementResultPaginator",
53
+ "GetStatementResultV2Paginator",
54
+ "ListDatabasesPaginator",
55
+ "ListSchemasPaginator",
56
+ "ListStatementsPaginator",
57
+ "ListTablesPaginator",
58
+ "RedshiftDataAPIServiceClient",
59
+ )
@@ -0,0 +1,58 @@
1
+ """
2
+ Main interface for redshift-data service.
3
+
4
+ Usage::
5
+
6
+ ```python
7
+ from boto3.session import Session
8
+ from types_boto3_redshift_data import (
9
+ Client,
10
+ DescribeTablePaginator,
11
+ GetStatementResultPaginator,
12
+ GetStatementResultV2Paginator,
13
+ ListDatabasesPaginator,
14
+ ListSchemasPaginator,
15
+ ListStatementsPaginator,
16
+ ListTablesPaginator,
17
+ RedshiftDataAPIServiceClient,
18
+ )
19
+
20
+ session = Session()
21
+ client: RedshiftDataAPIServiceClient = session.client("redshift-data")
22
+
23
+ describe_table_paginator: DescribeTablePaginator = client.get_paginator("describe_table")
24
+ get_statement_result_paginator: GetStatementResultPaginator = client.get_paginator("get_statement_result")
25
+ get_statement_result_v2_paginator: GetStatementResultV2Paginator = client.get_paginator("get_statement_result_v2")
26
+ list_databases_paginator: ListDatabasesPaginator = client.get_paginator("list_databases")
27
+ list_schemas_paginator: ListSchemasPaginator = client.get_paginator("list_schemas")
28
+ list_statements_paginator: ListStatementsPaginator = client.get_paginator("list_statements")
29
+ list_tables_paginator: ListTablesPaginator = client.get_paginator("list_tables")
30
+ ```
31
+
32
+ Copyright 2024 Vlad Emelianov
33
+ """
34
+
35
+ from .client import RedshiftDataAPIServiceClient
36
+ from .paginator import (
37
+ DescribeTablePaginator,
38
+ GetStatementResultPaginator,
39
+ GetStatementResultV2Paginator,
40
+ ListDatabasesPaginator,
41
+ ListSchemasPaginator,
42
+ ListStatementsPaginator,
43
+ ListTablesPaginator,
44
+ )
45
+
46
+ Client = RedshiftDataAPIServiceClient
47
+
48
+ __all__ = (
49
+ "Client",
50
+ "DescribeTablePaginator",
51
+ "GetStatementResultPaginator",
52
+ "GetStatementResultV2Paginator",
53
+ "ListDatabasesPaginator",
54
+ "ListSchemasPaginator",
55
+ "ListStatementsPaginator",
56
+ "ListTablesPaginator",
57
+ "RedshiftDataAPIServiceClient",
58
+ )
@@ -0,0 +1,42 @@
1
+ """
2
+ Main CLI entrypoint.
3
+
4
+ Copyright 2024 Vlad Emelianov
5
+ """
6
+
7
+ import sys
8
+
9
+
10
+ def print_info() -> None:
11
+ """
12
+ Print package info to stdout.
13
+ """
14
+ print(
15
+ "Type annotations for boto3 RedshiftDataAPIService 1.35.71\n"
16
+ "Version: 1.35.71\n"
17
+ "Builder version: 8.4.1\n"
18
+ "Docs: https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data//\n"
19
+ "Boto3 docs: https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data.html#redshiftdataapiservice\n"
20
+ "Other services: https://pypi.org/project/boto3-stubs/\n"
21
+ "Changelog: https://github.com/youtype/mypy_boto3_builder/releases"
22
+ )
23
+
24
+
25
+ def print_version() -> None:
26
+ """
27
+ Print package version to stdout.
28
+ """
29
+ print("1.35.71")
30
+
31
+
32
+ def main() -> None:
33
+ """
34
+ Main CLI entrypoint.
35
+ """
36
+ if "--version" in sys.argv:
37
+ return print_version()
38
+ print_info()
39
+
40
+
41
+ if __name__ == "__main__":
42
+ main()
@@ -0,0 +1,307 @@
1
+ """
2
+ Type annotations for redshift-data service client.
3
+
4
+ [Open documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/)
5
+
6
+ Usage::
7
+
8
+ ```python
9
+ from boto3.session import Session
10
+ from types_boto3_redshift_data.client import RedshiftDataAPIServiceClient
11
+
12
+ session = Session()
13
+ client: RedshiftDataAPIServiceClient = session.client("redshift-data")
14
+ ```
15
+
16
+ Copyright 2024 Vlad Emelianov
17
+ """
18
+
19
+ import sys
20
+ from typing import Any, Dict, Mapping, Type, overload
21
+
22
+ from botocore.client import BaseClient, ClientMeta
23
+
24
+ from .paginator import (
25
+ DescribeTablePaginator,
26
+ GetStatementResultPaginator,
27
+ GetStatementResultV2Paginator,
28
+ ListDatabasesPaginator,
29
+ ListSchemasPaginator,
30
+ ListStatementsPaginator,
31
+ ListTablesPaginator,
32
+ )
33
+ from .type_defs import (
34
+ BatchExecuteStatementInputRequestTypeDef,
35
+ BatchExecuteStatementOutputTypeDef,
36
+ CancelStatementRequestRequestTypeDef,
37
+ CancelStatementResponseTypeDef,
38
+ DescribeStatementRequestRequestTypeDef,
39
+ DescribeStatementResponseTypeDef,
40
+ DescribeTableRequestRequestTypeDef,
41
+ DescribeTableResponseTypeDef,
42
+ ExecuteStatementInputRequestTypeDef,
43
+ ExecuteStatementOutputTypeDef,
44
+ GetStatementResultRequestRequestTypeDef,
45
+ GetStatementResultResponseTypeDef,
46
+ GetStatementResultV2RequestRequestTypeDef,
47
+ GetStatementResultV2ResponseTypeDef,
48
+ ListDatabasesRequestRequestTypeDef,
49
+ ListDatabasesResponseTypeDef,
50
+ ListSchemasRequestRequestTypeDef,
51
+ ListSchemasResponseTypeDef,
52
+ ListStatementsRequestRequestTypeDef,
53
+ ListStatementsResponseTypeDef,
54
+ ListTablesRequestRequestTypeDef,
55
+ ListTablesResponseTypeDef,
56
+ )
57
+
58
+ if sys.version_info >= (3, 12):
59
+ from typing import Literal, Unpack
60
+ else:
61
+ from typing_extensions import Literal, Unpack
62
+
63
+
64
+ __all__ = ("RedshiftDataAPIServiceClient",)
65
+
66
+
67
+ class BotocoreClientError(Exception):
68
+ MSG_TEMPLATE: str
69
+
70
+ def __init__(self, error_response: Mapping[str, Any], operation_name: str) -> None:
71
+ self.response: Dict[str, Any]
72
+ self.operation_name: str
73
+
74
+
75
+ class Exceptions:
76
+ ActiveSessionsExceededException: Type[BotocoreClientError]
77
+ ActiveStatementsExceededException: Type[BotocoreClientError]
78
+ BatchExecuteStatementException: Type[BotocoreClientError]
79
+ ClientError: Type[BotocoreClientError]
80
+ DatabaseConnectionException: Type[BotocoreClientError]
81
+ ExecuteStatementException: Type[BotocoreClientError]
82
+ InternalServerException: Type[BotocoreClientError]
83
+ QueryTimeoutException: Type[BotocoreClientError]
84
+ ResourceNotFoundException: Type[BotocoreClientError]
85
+ ValidationException: Type[BotocoreClientError]
86
+
87
+
88
+ class RedshiftDataAPIServiceClient(BaseClient):
89
+ """
90
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data.html#RedshiftDataAPIService.Client)
91
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/)
92
+ """
93
+
94
+ meta: ClientMeta
95
+
96
+ @property
97
+ def exceptions(self) -> Exceptions:
98
+ """
99
+ RedshiftDataAPIServiceClient exceptions.
100
+
101
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data.html#RedshiftDataAPIService.Client)
102
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#exceptions)
103
+ """
104
+
105
+ def can_paginate(self, operation_name: str) -> bool:
106
+ """
107
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data/client/can_paginate.html)
108
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#can_paginate)
109
+ """
110
+
111
+ def generate_presigned_url(
112
+ self,
113
+ ClientMethod: str,
114
+ Params: Mapping[str, Any] = ...,
115
+ ExpiresIn: int = 3600,
116
+ HttpMethod: str = ...,
117
+ ) -> str:
118
+ """
119
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data/client/generate_presigned_url.html)
120
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#generate_presigned_url)
121
+ """
122
+
123
+ def close(self) -> None:
124
+ """
125
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data/client/close.html)
126
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#close)
127
+ """
128
+
129
+ def batch_execute_statement(
130
+ self, **kwargs: Unpack[BatchExecuteStatementInputRequestTypeDef]
131
+ ) -> BatchExecuteStatementOutputTypeDef:
132
+ """
133
+ Runs one or more SQL statements, which can be data manipulation language (DML)
134
+ or data definition language (DDL).
135
+
136
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data/client/batch_execute_statement.html)
137
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#batch_execute_statement)
138
+ """
139
+
140
+ def cancel_statement(
141
+ self, **kwargs: Unpack[CancelStatementRequestRequestTypeDef]
142
+ ) -> CancelStatementResponseTypeDef:
143
+ """
144
+ Cancels a running query.
145
+
146
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data/client/cancel_statement.html)
147
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#cancel_statement)
148
+ """
149
+
150
+ def describe_statement(
151
+ self, **kwargs: Unpack[DescribeStatementRequestRequestTypeDef]
152
+ ) -> DescribeStatementResponseTypeDef:
153
+ """
154
+ Describes the details about a specific instance when a query was run by the
155
+ Amazon Redshift Data API.
156
+
157
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data/client/describe_statement.html)
158
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#describe_statement)
159
+ """
160
+
161
+ def describe_table(
162
+ self, **kwargs: Unpack[DescribeTableRequestRequestTypeDef]
163
+ ) -> DescribeTableResponseTypeDef:
164
+ """
165
+ Describes the detailed information about a table from metadata in the cluster.
166
+
167
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data/client/describe_table.html)
168
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#describe_table)
169
+ """
170
+
171
+ def execute_statement(
172
+ self, **kwargs: Unpack[ExecuteStatementInputRequestTypeDef]
173
+ ) -> ExecuteStatementOutputTypeDef:
174
+ """
175
+ Runs an SQL statement, which can be data manipulation language (DML) or data
176
+ definition language (DDL).
177
+
178
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data/client/execute_statement.html)
179
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#execute_statement)
180
+ """
181
+
182
+ def get_statement_result(
183
+ self, **kwargs: Unpack[GetStatementResultRequestRequestTypeDef]
184
+ ) -> GetStatementResultResponseTypeDef:
185
+ """
186
+ Fetches the temporarily cached result of an SQL statement in JSON format.
187
+
188
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data/client/get_statement_result.html)
189
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#get_statement_result)
190
+ """
191
+
192
+ def get_statement_result_v2(
193
+ self, **kwargs: Unpack[GetStatementResultV2RequestRequestTypeDef]
194
+ ) -> GetStatementResultV2ResponseTypeDef:
195
+ """
196
+ Fetches the temporarily cached result of an SQL statement in CSV format.
197
+
198
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data/client/get_statement_result_v2.html)
199
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#get_statement_result_v2)
200
+ """
201
+
202
+ def list_databases(
203
+ self, **kwargs: Unpack[ListDatabasesRequestRequestTypeDef]
204
+ ) -> ListDatabasesResponseTypeDef:
205
+ """
206
+ List the databases in a cluster.
207
+
208
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data/client/list_databases.html)
209
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#list_databases)
210
+ """
211
+
212
+ def list_schemas(
213
+ self, **kwargs: Unpack[ListSchemasRequestRequestTypeDef]
214
+ ) -> ListSchemasResponseTypeDef:
215
+ """
216
+ Lists the schemas in a database.
217
+
218
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data/client/list_schemas.html)
219
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#list_schemas)
220
+ """
221
+
222
+ def list_statements(
223
+ self, **kwargs: Unpack[ListStatementsRequestRequestTypeDef]
224
+ ) -> ListStatementsResponseTypeDef:
225
+ """
226
+ List of SQL statements.
227
+
228
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data/client/list_statements.html)
229
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#list_statements)
230
+ """
231
+
232
+ def list_tables(
233
+ self, **kwargs: Unpack[ListTablesRequestRequestTypeDef]
234
+ ) -> ListTablesResponseTypeDef:
235
+ """
236
+ List the tables in a database.
237
+
238
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data/client/list_tables.html)
239
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#list_tables)
240
+ """
241
+
242
+ @overload
243
+ def get_paginator(self, operation_name: Literal["describe_table"]) -> DescribeTablePaginator:
244
+ """
245
+ Create a paginator for an operation.
246
+
247
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data/client/get_paginator.html)
248
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#get_paginator)
249
+ """
250
+
251
+ @overload
252
+ def get_paginator(
253
+ self, operation_name: Literal["get_statement_result"]
254
+ ) -> GetStatementResultPaginator:
255
+ """
256
+ Create a paginator for an operation.
257
+
258
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data/client/get_paginator.html)
259
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#get_paginator)
260
+ """
261
+
262
+ @overload
263
+ def get_paginator(
264
+ self, operation_name: Literal["get_statement_result_v2"]
265
+ ) -> GetStatementResultV2Paginator:
266
+ """
267
+ Create a paginator for an operation.
268
+
269
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data/client/get_paginator.html)
270
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#get_paginator)
271
+ """
272
+
273
+ @overload
274
+ def get_paginator(self, operation_name: Literal["list_databases"]) -> ListDatabasesPaginator:
275
+ """
276
+ Create a paginator for an operation.
277
+
278
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data/client/get_paginator.html)
279
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#get_paginator)
280
+ """
281
+
282
+ @overload
283
+ def get_paginator(self, operation_name: Literal["list_schemas"]) -> ListSchemasPaginator:
284
+ """
285
+ Create a paginator for an operation.
286
+
287
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data/client/get_paginator.html)
288
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#get_paginator)
289
+ """
290
+
291
+ @overload
292
+ def get_paginator(self, operation_name: Literal["list_statements"]) -> ListStatementsPaginator:
293
+ """
294
+ Create a paginator for an operation.
295
+
296
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data/client/get_paginator.html)
297
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#get_paginator)
298
+ """
299
+
300
+ @overload
301
+ def get_paginator(self, operation_name: Literal["list_tables"]) -> ListTablesPaginator:
302
+ """
303
+ Create a paginator for an operation.
304
+
305
+ [Show boto3 documentation](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift-data/client/get_paginator.html)
306
+ [Show types-boto3 documentation](https://youtype.github.io/types_boto3_docs/types_boto3_redshift_data/client/#get_paginator)
307
+ """