@aws-sdk/client-redshift-data 3.35.0 → 3.36.0

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.
Files changed (146) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist-cjs/RedshiftData.js +0 -1
  3. package/dist-cjs/RedshiftDataClient.js +0 -1
  4. package/dist-cjs/commands/BatchExecuteStatementCommand.js +0 -1
  5. package/dist-cjs/commands/CancelStatementCommand.js +0 -1
  6. package/dist-cjs/commands/DescribeStatementCommand.js +0 -1
  7. package/dist-cjs/commands/DescribeTableCommand.js +0 -1
  8. package/dist-cjs/commands/ExecuteStatementCommand.js +0 -1
  9. package/dist-cjs/commands/GetStatementResultCommand.js +0 -1
  10. package/dist-cjs/commands/ListDatabasesCommand.js +0 -1
  11. package/dist-cjs/commands/ListSchemasCommand.js +0 -1
  12. package/dist-cjs/commands/ListStatementsCommand.js +0 -1
  13. package/dist-cjs/commands/ListTablesCommand.js +0 -1
  14. package/dist-cjs/endpoints.js +0 -1
  15. package/dist-cjs/index.js +0 -1
  16. package/dist-cjs/models/index.js +0 -1
  17. package/dist-cjs/models/models_0.js +0 -1
  18. package/dist-cjs/pagination/DescribeTablePaginator.js +0 -1
  19. package/dist-cjs/pagination/GetStatementResultPaginator.js +0 -1
  20. package/dist-cjs/pagination/Interfaces.js +0 -1
  21. package/dist-cjs/pagination/ListDatabasesPaginator.js +0 -1
  22. package/dist-cjs/pagination/ListSchemasPaginator.js +0 -1
  23. package/dist-cjs/pagination/ListStatementsPaginator.js +0 -1
  24. package/dist-cjs/pagination/ListTablesPaginator.js +0 -1
  25. package/dist-cjs/protocols/Aws_json1_1.js +0 -1
  26. package/dist-cjs/runtimeConfig.browser.js +2 -3
  27. package/dist-cjs/runtimeConfig.js +3 -4
  28. package/dist-cjs/runtimeConfig.native.js +0 -1
  29. package/dist-cjs/runtimeConfig.shared.js +0 -1
  30. package/dist-es/RedshiftData.js +0 -1
  31. package/dist-es/RedshiftDataClient.js +0 -1
  32. package/dist-es/commands/BatchExecuteStatementCommand.js +0 -1
  33. package/dist-es/commands/CancelStatementCommand.js +0 -1
  34. package/dist-es/commands/DescribeStatementCommand.js +0 -1
  35. package/dist-es/commands/DescribeTableCommand.js +0 -1
  36. package/dist-es/commands/ExecuteStatementCommand.js +0 -1
  37. package/dist-es/commands/GetStatementResultCommand.js +0 -1
  38. package/dist-es/commands/ListDatabasesCommand.js +0 -1
  39. package/dist-es/commands/ListSchemasCommand.js +0 -1
  40. package/dist-es/commands/ListStatementsCommand.js +0 -1
  41. package/dist-es/commands/ListTablesCommand.js +0 -1
  42. package/dist-es/endpoints.js +0 -1
  43. package/dist-es/index.js +0 -1
  44. package/dist-es/models/index.js +0 -1
  45. package/dist-es/models/models_0.js +0 -1
  46. package/dist-es/pagination/DescribeTablePaginator.js +0 -1
  47. package/dist-es/pagination/GetStatementResultPaginator.js +0 -1
  48. package/dist-es/pagination/Interfaces.js +0 -1
  49. package/dist-es/pagination/ListDatabasesPaginator.js +0 -1
  50. package/dist-es/pagination/ListSchemasPaginator.js +0 -1
  51. package/dist-es/pagination/ListStatementsPaginator.js +0 -1
  52. package/dist-es/pagination/ListTablesPaginator.js +0 -1
  53. package/dist-es/protocols/Aws_json1_1.js +0 -1
  54. package/dist-es/runtimeConfig.browser.js +1 -2
  55. package/dist-es/runtimeConfig.js +2 -3
  56. package/dist-es/runtimeConfig.native.js +0 -1
  57. package/dist-es/runtimeConfig.shared.js +0 -1
  58. package/package.json +33 -30
  59. package/dist-cjs/RedshiftData.js.map +0 -1
  60. package/dist-cjs/RedshiftDataClient.js.map +0 -1
  61. package/dist-cjs/commands/BatchExecuteStatementCommand.js.map +0 -1
  62. package/dist-cjs/commands/CancelStatementCommand.js.map +0 -1
  63. package/dist-cjs/commands/DescribeStatementCommand.js.map +0 -1
  64. package/dist-cjs/commands/DescribeTableCommand.js.map +0 -1
  65. package/dist-cjs/commands/ExecuteStatementCommand.js.map +0 -1
  66. package/dist-cjs/commands/GetStatementResultCommand.js.map +0 -1
  67. package/dist-cjs/commands/ListDatabasesCommand.js.map +0 -1
  68. package/dist-cjs/commands/ListSchemasCommand.js.map +0 -1
  69. package/dist-cjs/commands/ListStatementsCommand.js.map +0 -1
  70. package/dist-cjs/commands/ListTablesCommand.js.map +0 -1
  71. package/dist-cjs/endpoints.js.map +0 -1
  72. package/dist-cjs/index.js.map +0 -1
  73. package/dist-cjs/models/index.js.map +0 -1
  74. package/dist-cjs/models/models_0.js.map +0 -1
  75. package/dist-cjs/pagination/DescribeTablePaginator.js.map +0 -1
  76. package/dist-cjs/pagination/GetStatementResultPaginator.js.map +0 -1
  77. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  78. package/dist-cjs/pagination/ListDatabasesPaginator.js.map +0 -1
  79. package/dist-cjs/pagination/ListSchemasPaginator.js.map +0 -1
  80. package/dist-cjs/pagination/ListStatementsPaginator.js.map +0 -1
  81. package/dist-cjs/pagination/ListTablesPaginator.js.map +0 -1
  82. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  83. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  84. package/dist-cjs/runtimeConfig.js.map +0 -1
  85. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  86. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  87. package/dist-es/RedshiftData.js.map +0 -1
  88. package/dist-es/RedshiftDataClient.js.map +0 -1
  89. package/dist-es/commands/BatchExecuteStatementCommand.js.map +0 -1
  90. package/dist-es/commands/CancelStatementCommand.js.map +0 -1
  91. package/dist-es/commands/DescribeStatementCommand.js.map +0 -1
  92. package/dist-es/commands/DescribeTableCommand.js.map +0 -1
  93. package/dist-es/commands/ExecuteStatementCommand.js.map +0 -1
  94. package/dist-es/commands/GetStatementResultCommand.js.map +0 -1
  95. package/dist-es/commands/ListDatabasesCommand.js.map +0 -1
  96. package/dist-es/commands/ListSchemasCommand.js.map +0 -1
  97. package/dist-es/commands/ListStatementsCommand.js.map +0 -1
  98. package/dist-es/commands/ListTablesCommand.js.map +0 -1
  99. package/dist-es/endpoints.js.map +0 -1
  100. package/dist-es/index.js.map +0 -1
  101. package/dist-es/models/index.js.map +0 -1
  102. package/dist-es/models/models_0.js.map +0 -1
  103. package/dist-es/pagination/DescribeTablePaginator.js.map +0 -1
  104. package/dist-es/pagination/GetStatementResultPaginator.js.map +0 -1
  105. package/dist-es/pagination/Interfaces.js.map +0 -1
  106. package/dist-es/pagination/ListDatabasesPaginator.js.map +0 -1
  107. package/dist-es/pagination/ListSchemasPaginator.js.map +0 -1
  108. package/dist-es/pagination/ListStatementsPaginator.js.map +0 -1
  109. package/dist-es/pagination/ListTablesPaginator.js.map +0 -1
  110. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  111. package/dist-es/runtimeConfig.browser.js.map +0 -1
  112. package/dist-es/runtimeConfig.js.map +0 -1
  113. package/dist-es/runtimeConfig.native.js.map +0 -1
  114. package/dist-es/runtimeConfig.shared.js.map +0 -1
  115. package/jest.config.js +0 -4
  116. package/src/RedshiftData.ts +0 -452
  117. package/src/RedshiftDataClient.ts +0 -273
  118. package/src/commands/BatchExecuteStatementCommand.ts +0 -109
  119. package/src/commands/CancelStatementCommand.ts +0 -95
  120. package/src/commands/DescribeStatementCommand.ts +0 -97
  121. package/src/commands/DescribeTableCommand.ts +0 -110
  122. package/src/commands/ExecuteStatementCommand.ts +0 -109
  123. package/src/commands/GetStatementResultCommand.ts +0 -96
  124. package/src/commands/ListDatabasesCommand.ts +0 -109
  125. package/src/commands/ListSchemasCommand.ts +0 -109
  126. package/src/commands/ListStatementsCommand.ts +0 -96
  127. package/src/commands/ListTablesCommand.ts +0 -110
  128. package/src/endpoints.ts +0 -57
  129. package/src/index.ts +0 -20
  130. package/src/models/index.ts +0 -1
  131. package/src/models/models_0.ts +0 -1379
  132. package/src/pagination/DescribeTablePaginator.ts +0 -59
  133. package/src/pagination/GetStatementResultPaginator.ts +0 -58
  134. package/src/pagination/Interfaces.ts +0 -8
  135. package/src/pagination/ListDatabasesPaginator.ts +0 -59
  136. package/src/pagination/ListSchemasPaginator.ts +0 -55
  137. package/src/pagination/ListStatementsPaginator.ts +0 -59
  138. package/src/pagination/ListTablesPaginator.ts +0 -55
  139. package/src/protocols/Aws_json1_1.ts +0 -1615
  140. package/src/runtimeConfig.browser.ts +0 -41
  141. package/src/runtimeConfig.native.ts +0 -17
  142. package/src/runtimeConfig.shared.ts +0 -17
  143. package/src/runtimeConfig.ts +0 -46
  144. package/tsconfig.es.json +0 -10
  145. package/tsconfig.json +0 -33
  146. package/tsconfig.types.json +0 -9
@@ -1,452 +0,0 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
-
3
- import {
4
- BatchExecuteStatementCommand,
5
- BatchExecuteStatementCommandInput,
6
- BatchExecuteStatementCommandOutput,
7
- } from "./commands/BatchExecuteStatementCommand";
8
- import {
9
- CancelStatementCommand,
10
- CancelStatementCommandInput,
11
- CancelStatementCommandOutput,
12
- } from "./commands/CancelStatementCommand";
13
- import {
14
- DescribeStatementCommand,
15
- DescribeStatementCommandInput,
16
- DescribeStatementCommandOutput,
17
- } from "./commands/DescribeStatementCommand";
18
- import {
19
- DescribeTableCommand,
20
- DescribeTableCommandInput,
21
- DescribeTableCommandOutput,
22
- } from "./commands/DescribeTableCommand";
23
- import {
24
- ExecuteStatementCommand,
25
- ExecuteStatementCommandInput,
26
- ExecuteStatementCommandOutput,
27
- } from "./commands/ExecuteStatementCommand";
28
- import {
29
- GetStatementResultCommand,
30
- GetStatementResultCommandInput,
31
- GetStatementResultCommandOutput,
32
- } from "./commands/GetStatementResultCommand";
33
- import {
34
- ListDatabasesCommand,
35
- ListDatabasesCommandInput,
36
- ListDatabasesCommandOutput,
37
- } from "./commands/ListDatabasesCommand";
38
- import { ListSchemasCommand, ListSchemasCommandInput, ListSchemasCommandOutput } from "./commands/ListSchemasCommand";
39
- import {
40
- ListStatementsCommand,
41
- ListStatementsCommandInput,
42
- ListStatementsCommandOutput,
43
- } from "./commands/ListStatementsCommand";
44
- import { ListTablesCommand, ListTablesCommandInput, ListTablesCommandOutput } from "./commands/ListTablesCommand";
45
- import { RedshiftDataClient } from "./RedshiftDataClient";
46
-
47
- /**
48
- * <p>You can use the Amazon Redshift Data API to run queries on Amazon Redshift tables. You
49
- * can run SQL statements, which are committed if the statement succeeds. </p>
50
- * <p>For more information about the Amazon Redshift Data API, see
51
- * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
52
- * <i>Amazon Redshift Cluster Management Guide</i>. </p>
53
- */
54
- export class RedshiftData extends RedshiftDataClient {
55
- /**
56
- * <p>Runs one or more SQL statements, which can be data manipulation language (DML) or data definition
57
- * language (DDL).
58
- * Depending on the authorization
59
- * method, use one of the following combinations of request parameters: </p>
60
- * <ul>
61
- * <li>
62
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
63
- * cluster identifier that matches the cluster in the secret. </p>
64
- * </li>
65
- * <li>
66
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the
67
- * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
68
- * operation is required to use this method. </p>
69
- * </li>
70
- * </ul>
71
- */
72
- public batchExecuteStatement(
73
- args: BatchExecuteStatementCommandInput,
74
- options?: __HttpHandlerOptions
75
- ): Promise<BatchExecuteStatementCommandOutput>;
76
- public batchExecuteStatement(
77
- args: BatchExecuteStatementCommandInput,
78
- cb: (err: any, data?: BatchExecuteStatementCommandOutput) => void
79
- ): void;
80
- public batchExecuteStatement(
81
- args: BatchExecuteStatementCommandInput,
82
- options: __HttpHandlerOptions,
83
- cb: (err: any, data?: BatchExecuteStatementCommandOutput) => void
84
- ): void;
85
- public batchExecuteStatement(
86
- args: BatchExecuteStatementCommandInput,
87
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: BatchExecuteStatementCommandOutput) => void),
88
- cb?: (err: any, data?: BatchExecuteStatementCommandOutput) => void
89
- ): Promise<BatchExecuteStatementCommandOutput> | void {
90
- const command = new BatchExecuteStatementCommand(args);
91
- if (typeof optionsOrCb === "function") {
92
- this.send(command, optionsOrCb);
93
- } else if (typeof cb === "function") {
94
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
95
- this.send(command, optionsOrCb || {}, cb);
96
- } else {
97
- return this.send(command, optionsOrCb);
98
- }
99
- }
100
-
101
- /**
102
- * <p>Cancels a running query. To be canceled, a query must be running. </p>
103
- */
104
- public cancelStatement(
105
- args: CancelStatementCommandInput,
106
- options?: __HttpHandlerOptions
107
- ): Promise<CancelStatementCommandOutput>;
108
- public cancelStatement(
109
- args: CancelStatementCommandInput,
110
- cb: (err: any, data?: CancelStatementCommandOutput) => void
111
- ): void;
112
- public cancelStatement(
113
- args: CancelStatementCommandInput,
114
- options: __HttpHandlerOptions,
115
- cb: (err: any, data?: CancelStatementCommandOutput) => void
116
- ): void;
117
- public cancelStatement(
118
- args: CancelStatementCommandInput,
119
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: CancelStatementCommandOutput) => void),
120
- cb?: (err: any, data?: CancelStatementCommandOutput) => void
121
- ): Promise<CancelStatementCommandOutput> | void {
122
- const command = new CancelStatementCommand(args);
123
- if (typeof optionsOrCb === "function") {
124
- this.send(command, optionsOrCb);
125
- } else if (typeof cb === "function") {
126
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
127
- this.send(command, optionsOrCb || {}, cb);
128
- } else {
129
- return this.send(command, optionsOrCb);
130
- }
131
- }
132
-
133
- /**
134
- * <p>Describes the details about a specific instance when a query was run by the Amazon Redshift Data API. The information
135
- * includes when the query started, when it finished, the query status, the number of rows returned, and the SQL
136
- * statement. </p>
137
- */
138
- public describeStatement(
139
- args: DescribeStatementCommandInput,
140
- options?: __HttpHandlerOptions
141
- ): Promise<DescribeStatementCommandOutput>;
142
- public describeStatement(
143
- args: DescribeStatementCommandInput,
144
- cb: (err: any, data?: DescribeStatementCommandOutput) => void
145
- ): void;
146
- public describeStatement(
147
- args: DescribeStatementCommandInput,
148
- options: __HttpHandlerOptions,
149
- cb: (err: any, data?: DescribeStatementCommandOutput) => void
150
- ): void;
151
- public describeStatement(
152
- args: DescribeStatementCommandInput,
153
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeStatementCommandOutput) => void),
154
- cb?: (err: any, data?: DescribeStatementCommandOutput) => void
155
- ): Promise<DescribeStatementCommandOutput> | void {
156
- const command = new DescribeStatementCommand(args);
157
- if (typeof optionsOrCb === "function") {
158
- this.send(command, optionsOrCb);
159
- } else if (typeof cb === "function") {
160
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
161
- this.send(command, optionsOrCb || {}, cb);
162
- } else {
163
- return this.send(command, optionsOrCb);
164
- }
165
- }
166
-
167
- /**
168
- * <p>Describes the detailed information about a table from metadata in the cluster. The
169
- * information includes its columns.
170
- * A token is returned to page through the column list.
171
- * Depending on the authorization method, use one of the
172
- * following combinations of request parameters: </p>
173
- * <ul>
174
- * <li>
175
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
176
- * cluster identifier that matches the cluster in the secret. </p>
177
- * </li>
178
- * <li>
179
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the database
180
- * user name. Permission to call the <code>redshift:GetClusterCredentials</code> operation is
181
- * required to use this method. </p>
182
- * </li>
183
- * </ul>
184
- */
185
- public describeTable(
186
- args: DescribeTableCommandInput,
187
- options?: __HttpHandlerOptions
188
- ): Promise<DescribeTableCommandOutput>;
189
- public describeTable(
190
- args: DescribeTableCommandInput,
191
- cb: (err: any, data?: DescribeTableCommandOutput) => void
192
- ): void;
193
- public describeTable(
194
- args: DescribeTableCommandInput,
195
- options: __HttpHandlerOptions,
196
- cb: (err: any, data?: DescribeTableCommandOutput) => void
197
- ): void;
198
- public describeTable(
199
- args: DescribeTableCommandInput,
200
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: DescribeTableCommandOutput) => void),
201
- cb?: (err: any, data?: DescribeTableCommandOutput) => void
202
- ): Promise<DescribeTableCommandOutput> | void {
203
- const command = new DescribeTableCommand(args);
204
- if (typeof optionsOrCb === "function") {
205
- this.send(command, optionsOrCb);
206
- } else if (typeof cb === "function") {
207
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
208
- this.send(command, optionsOrCb || {}, cb);
209
- } else {
210
- return this.send(command, optionsOrCb);
211
- }
212
- }
213
-
214
- /**
215
- * <p>Runs an SQL statement, which can be data manipulation language (DML) or data definition
216
- * language (DDL). This statement must be a single SQL statement.
217
- * Depending on the authorization
218
- * method, use one of the following combinations of request parameters: </p>
219
- * <ul>
220
- * <li>
221
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
222
- * cluster identifier that matches the cluster in the secret. </p>
223
- * </li>
224
- * <li>
225
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the
226
- * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
227
- * operation is required to use this method. </p>
228
- * </li>
229
- * </ul>
230
- */
231
- public executeStatement(
232
- args: ExecuteStatementCommandInput,
233
- options?: __HttpHandlerOptions
234
- ): Promise<ExecuteStatementCommandOutput>;
235
- public executeStatement(
236
- args: ExecuteStatementCommandInput,
237
- cb: (err: any, data?: ExecuteStatementCommandOutput) => void
238
- ): void;
239
- public executeStatement(
240
- args: ExecuteStatementCommandInput,
241
- options: __HttpHandlerOptions,
242
- cb: (err: any, data?: ExecuteStatementCommandOutput) => void
243
- ): void;
244
- public executeStatement(
245
- args: ExecuteStatementCommandInput,
246
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ExecuteStatementCommandOutput) => void),
247
- cb?: (err: any, data?: ExecuteStatementCommandOutput) => void
248
- ): Promise<ExecuteStatementCommandOutput> | void {
249
- const command = new ExecuteStatementCommand(args);
250
- if (typeof optionsOrCb === "function") {
251
- this.send(command, optionsOrCb);
252
- } else if (typeof cb === "function") {
253
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
254
- this.send(command, optionsOrCb || {}, cb);
255
- } else {
256
- return this.send(command, optionsOrCb);
257
- }
258
- }
259
-
260
- /**
261
- * <p>Fetches the temporarily cached result of an SQL statement.
262
- * A token is returned to page through the statement results. </p>
263
- */
264
- public getStatementResult(
265
- args: GetStatementResultCommandInput,
266
- options?: __HttpHandlerOptions
267
- ): Promise<GetStatementResultCommandOutput>;
268
- public getStatementResult(
269
- args: GetStatementResultCommandInput,
270
- cb: (err: any, data?: GetStatementResultCommandOutput) => void
271
- ): void;
272
- public getStatementResult(
273
- args: GetStatementResultCommandInput,
274
- options: __HttpHandlerOptions,
275
- cb: (err: any, data?: GetStatementResultCommandOutput) => void
276
- ): void;
277
- public getStatementResult(
278
- args: GetStatementResultCommandInput,
279
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: GetStatementResultCommandOutput) => void),
280
- cb?: (err: any, data?: GetStatementResultCommandOutput) => void
281
- ): Promise<GetStatementResultCommandOutput> | void {
282
- const command = new GetStatementResultCommand(args);
283
- if (typeof optionsOrCb === "function") {
284
- this.send(command, optionsOrCb);
285
- } else if (typeof cb === "function") {
286
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
287
- this.send(command, optionsOrCb || {}, cb);
288
- } else {
289
- return this.send(command, optionsOrCb);
290
- }
291
- }
292
-
293
- /**
294
- * <p>List the databases in a cluster.
295
- * A token is returned to page through the database list.
296
- * Depending on the authorization method, use one of the
297
- * following combinations of request parameters: </p>
298
- * <ul>
299
- * <li>
300
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
301
- * cluster identifier that matches the cluster in the secret. </p>
302
- * </li>
303
- * <li>
304
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the
305
- * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
306
- * operation is required to use this method. </p>
307
- * </li>
308
- * </ul>
309
- */
310
- public listDatabases(
311
- args: ListDatabasesCommandInput,
312
- options?: __HttpHandlerOptions
313
- ): Promise<ListDatabasesCommandOutput>;
314
- public listDatabases(
315
- args: ListDatabasesCommandInput,
316
- cb: (err: any, data?: ListDatabasesCommandOutput) => void
317
- ): void;
318
- public listDatabases(
319
- args: ListDatabasesCommandInput,
320
- options: __HttpHandlerOptions,
321
- cb: (err: any, data?: ListDatabasesCommandOutput) => void
322
- ): void;
323
- public listDatabases(
324
- args: ListDatabasesCommandInput,
325
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListDatabasesCommandOutput) => void),
326
- cb?: (err: any, data?: ListDatabasesCommandOutput) => void
327
- ): Promise<ListDatabasesCommandOutput> | void {
328
- const command = new ListDatabasesCommand(args);
329
- if (typeof optionsOrCb === "function") {
330
- this.send(command, optionsOrCb);
331
- } else if (typeof cb === "function") {
332
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
333
- this.send(command, optionsOrCb || {}, cb);
334
- } else {
335
- return this.send(command, optionsOrCb);
336
- }
337
- }
338
-
339
- /**
340
- * <p>Lists the schemas in a database.
341
- * A token is returned to page through the schema list.
342
- * Depending on the authorization method, use one of the
343
- * following combinations of request parameters: </p>
344
- * <ul>
345
- * <li>
346
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
347
- * cluster identifier that matches the cluster in the secret. </p>
348
- * </li>
349
- * <li>
350
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the
351
- * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
352
- * operation is required to use this method. </p>
353
- * </li>
354
- * </ul>
355
- */
356
- public listSchemas(args: ListSchemasCommandInput, options?: __HttpHandlerOptions): Promise<ListSchemasCommandOutput>;
357
- public listSchemas(args: ListSchemasCommandInput, cb: (err: any, data?: ListSchemasCommandOutput) => void): void;
358
- public listSchemas(
359
- args: ListSchemasCommandInput,
360
- options: __HttpHandlerOptions,
361
- cb: (err: any, data?: ListSchemasCommandOutput) => void
362
- ): void;
363
- public listSchemas(
364
- args: ListSchemasCommandInput,
365
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListSchemasCommandOutput) => void),
366
- cb?: (err: any, data?: ListSchemasCommandOutput) => void
367
- ): Promise<ListSchemasCommandOutput> | void {
368
- const command = new ListSchemasCommand(args);
369
- if (typeof optionsOrCb === "function") {
370
- this.send(command, optionsOrCb);
371
- } else if (typeof cb === "function") {
372
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
373
- this.send(command, optionsOrCb || {}, cb);
374
- } else {
375
- return this.send(command, optionsOrCb);
376
- }
377
- }
378
-
379
- /**
380
- * <p>List of SQL statements. By default, only finished statements are shown.
381
- * A token is returned to page through the statement list. </p>
382
- */
383
- public listStatements(
384
- args: ListStatementsCommandInput,
385
- options?: __HttpHandlerOptions
386
- ): Promise<ListStatementsCommandOutput>;
387
- public listStatements(
388
- args: ListStatementsCommandInput,
389
- cb: (err: any, data?: ListStatementsCommandOutput) => void
390
- ): void;
391
- public listStatements(
392
- args: ListStatementsCommandInput,
393
- options: __HttpHandlerOptions,
394
- cb: (err: any, data?: ListStatementsCommandOutput) => void
395
- ): void;
396
- public listStatements(
397
- args: ListStatementsCommandInput,
398
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListStatementsCommandOutput) => void),
399
- cb?: (err: any, data?: ListStatementsCommandOutput) => void
400
- ): Promise<ListStatementsCommandOutput> | void {
401
- const command = new ListStatementsCommand(args);
402
- if (typeof optionsOrCb === "function") {
403
- this.send(command, optionsOrCb);
404
- } else if (typeof cb === "function") {
405
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
406
- this.send(command, optionsOrCb || {}, cb);
407
- } else {
408
- return this.send(command, optionsOrCb);
409
- }
410
- }
411
-
412
- /**
413
- * <p>List the tables in a database. If neither <code>SchemaPattern</code> nor <code>TablePattern</code> are specified, then
414
- * all tables in the database are returned.
415
- * A token is returned to page through the table list.
416
- * Depending on the authorization method, use one of the
417
- * following combinations of request parameters: </p>
418
- * <ul>
419
- * <li>
420
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
421
- * cluster identifier that matches the cluster in the secret. </p>
422
- * </li>
423
- * <li>
424
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the
425
- * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
426
- * operation is required to use this method. </p>
427
- * </li>
428
- * </ul>
429
- */
430
- public listTables(args: ListTablesCommandInput, options?: __HttpHandlerOptions): Promise<ListTablesCommandOutput>;
431
- public listTables(args: ListTablesCommandInput, cb: (err: any, data?: ListTablesCommandOutput) => void): void;
432
- public listTables(
433
- args: ListTablesCommandInput,
434
- options: __HttpHandlerOptions,
435
- cb: (err: any, data?: ListTablesCommandOutput) => void
436
- ): void;
437
- public listTables(
438
- args: ListTablesCommandInput,
439
- optionsOrCb?: __HttpHandlerOptions | ((err: any, data?: ListTablesCommandOutput) => void),
440
- cb?: (err: any, data?: ListTablesCommandOutput) => void
441
- ): Promise<ListTablesCommandOutput> | void {
442
- const command = new ListTablesCommand(args);
443
- if (typeof optionsOrCb === "function") {
444
- this.send(command, optionsOrCb);
445
- } else if (typeof cb === "function") {
446
- if (typeof optionsOrCb !== "object") throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
447
- this.send(command, optionsOrCb || {}, cb);
448
- } else {
449
- return this.send(command, optionsOrCb);
450
- }
451
- }
452
- }