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