@aws-sdk/client-redshift-data 3.33.0 → 3.36.1

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 (228) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/{dist/cjs → dist-cjs}/RedshiftData.js +1 -9
  3. package/{dist/cjs → dist-cjs}/RedshiftDataClient.js +8 -21
  4. package/dist-cjs/commands/BatchExecuteStatementCommand.js +36 -0
  5. package/{dist/cjs → dist-cjs}/commands/CancelStatementCommand.js +2 -27
  6. package/{dist/cjs → dist-cjs}/commands/DescribeStatementCommand.js +2 -29
  7. package/dist-cjs/commands/DescribeTableCommand.js +36 -0
  8. package/dist-cjs/commands/ExecuteStatementCommand.js +36 -0
  9. package/{dist/cjs → dist-cjs}/commands/GetStatementResultCommand.js +2 -28
  10. package/dist-cjs/commands/ListDatabasesCommand.js +36 -0
  11. package/dist-cjs/commands/ListSchemasCommand.js +36 -0
  12. package/{dist/cjs → dist-cjs}/commands/ListStatementsCommand.js +2 -28
  13. package/dist-cjs/commands/ListTablesCommand.js +36 -0
  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 -97
  18. package/{dist/cjs → dist-cjs}/pagination/DescribeTablePaginator.js +1 -12
  19. package/{dist/cjs → dist-cjs}/pagination/GetStatementResultPaginator.js +1 -12
  20. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
  21. package/{dist/cjs → dist-cjs}/pagination/ListDatabasesPaginator.js +1 -12
  22. package/{dist/cjs → dist-cjs}/pagination/ListSchemasPaginator.js +1 -12
  23. package/{dist/cjs → dist-cjs}/pagination/ListStatementsPaginator.js +1 -12
  24. package/{dist/cjs → dist-cjs}/pagination/ListTablesPaginator.js +1 -12
  25. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
  26. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
  27. package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
  28. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
  29. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
  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 +0 -0
  83. package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
  84. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
  85. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  86. package/dist-types/ts3.4/RedshiftData.d.ts +55 -0
  87. package/{dist/types → dist-types}/ts3.4/RedshiftDataClient.d.ts +32 -101
  88. package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +17 -0
  89. package/dist-types/ts3.4/commands/CancelStatementCommand.d.ts +17 -0
  90. package/dist-types/ts3.4/commands/DescribeStatementCommand.d.ts +17 -0
  91. package/dist-types/ts3.4/commands/DescribeTableCommand.d.ts +17 -0
  92. package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +17 -0
  93. package/dist-types/ts3.4/commands/GetStatementResultCommand.d.ts +17 -0
  94. package/dist-types/ts3.4/commands/ListDatabasesCommand.d.ts +17 -0
  95. package/dist-types/ts3.4/commands/ListSchemasCommand.d.ts +17 -0
  96. package/dist-types/ts3.4/commands/ListStatementsCommand.d.ts +17 -0
  97. package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +17 -0
  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/ts3.4/models/models_0.d.ts +613 -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 -3
  111. package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
  112. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
  113. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
  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 +0 -75
  130. package/dist/cjs/commands/BatchExecuteStatementCommand.js.map +0 -1
  131. package/dist/cjs/commands/CancelStatementCommand.js.map +0 -1
  132. package/dist/cjs/commands/DescribeStatementCommand.js.map +0 -1
  133. package/dist/cjs/commands/DescribeTableCommand.js +0 -76
  134. package/dist/cjs/commands/DescribeTableCommand.js.map +0 -1
  135. package/dist/cjs/commands/ExecuteStatementCommand.js +0 -75
  136. package/dist/cjs/commands/ExecuteStatementCommand.js.map +0 -1
  137. package/dist/cjs/commands/GetStatementResultCommand.js.map +0 -1
  138. package/dist/cjs/commands/ListDatabasesCommand.js +0 -75
  139. package/dist/cjs/commands/ListDatabasesCommand.js.map +0 -1
  140. package/dist/cjs/commands/ListSchemasCommand.js +0 -75
  141. package/dist/cjs/commands/ListSchemasCommand.js.map +0 -1
  142. package/dist/cjs/commands/ListStatementsCommand.js.map +0 -1
  143. package/dist/cjs/commands/ListTablesCommand.js +0 -76
  144. package/dist/cjs/commands/ListTablesCommand.js.map +0 -1
  145. package/dist/cjs/endpoints.js.map +0 -1
  146. package/dist/cjs/index.js.map +0 -1
  147. package/dist/cjs/models/index.js.map +0 -1
  148. package/dist/cjs/models/models_0.js.map +0 -1
  149. package/dist/cjs/package.json +0 -91
  150. package/dist/cjs/pagination/DescribeTablePaginator.js.map +0 -1
  151. package/dist/cjs/pagination/GetStatementResultPaginator.js.map +0 -1
  152. package/dist/cjs/pagination/Interfaces.js.map +0 -1
  153. package/dist/cjs/pagination/ListDatabasesPaginator.js.map +0 -1
  154. package/dist/cjs/pagination/ListSchemasPaginator.js.map +0 -1
  155. package/dist/cjs/pagination/ListStatementsPaginator.js.map +0 -1
  156. package/dist/cjs/pagination/ListTablesPaginator.js.map +0 -1
  157. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  158. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  159. package/dist/cjs/runtimeConfig.js.map +0 -1
  160. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  161. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  162. package/dist/es/RedshiftData.js.map +0 -1
  163. package/dist/es/RedshiftDataClient.js.map +0 -1
  164. package/dist/es/commands/BatchExecuteStatementCommand.js +0 -79
  165. package/dist/es/commands/BatchExecuteStatementCommand.js.map +0 -1
  166. package/dist/es/commands/CancelStatementCommand.js.map +0 -1
  167. package/dist/es/commands/DescribeStatementCommand.js.map +0 -1
  168. package/dist/es/commands/DescribeTableCommand.js +0 -80
  169. package/dist/es/commands/DescribeTableCommand.js.map +0 -1
  170. package/dist/es/commands/ExecuteStatementCommand.js +0 -79
  171. package/dist/es/commands/ExecuteStatementCommand.js.map +0 -1
  172. package/dist/es/commands/GetStatementResultCommand.js.map +0 -1
  173. package/dist/es/commands/ListDatabasesCommand.js +0 -79
  174. package/dist/es/commands/ListDatabasesCommand.js.map +0 -1
  175. package/dist/es/commands/ListSchemasCommand.js +0 -79
  176. package/dist/es/commands/ListSchemasCommand.js.map +0 -1
  177. package/dist/es/commands/ListStatementsCommand.js.map +0 -1
  178. package/dist/es/commands/ListTablesCommand.js +0 -80
  179. package/dist/es/commands/ListTablesCommand.js.map +0 -1
  180. package/dist/es/endpoints.js.map +0 -1
  181. package/dist/es/index.js +0 -21
  182. package/dist/es/index.js.map +0 -1
  183. package/dist/es/models/index.js +0 -2
  184. package/dist/es/models/index.js.map +0 -1
  185. package/dist/es/models/models_0.js.map +0 -1
  186. package/dist/es/package.json +0 -91
  187. package/dist/es/pagination/DescribeTablePaginator.js.map +0 -1
  188. package/dist/es/pagination/GetStatementResultPaginator.js.map +0 -1
  189. package/dist/es/pagination/Interfaces.js +0 -2
  190. package/dist/es/pagination/Interfaces.js.map +0 -1
  191. package/dist/es/pagination/ListDatabasesPaginator.js.map +0 -1
  192. package/dist/es/pagination/ListSchemasPaginator.js.map +0 -1
  193. package/dist/es/pagination/ListStatementsPaginator.js.map +0 -1
  194. package/dist/es/pagination/ListTablesPaginator.js.map +0 -1
  195. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  196. package/dist/es/runtimeConfig.browser.js.map +0 -1
  197. package/dist/es/runtimeConfig.js.map +0 -1
  198. package/dist/es/runtimeConfig.native.js.map +0 -1
  199. package/dist/es/runtimeConfig.shared.js.map +0 -1
  200. package/dist/types/ts3.4/RedshiftData.d.ts +0 -171
  201. package/dist/types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +0 -49
  202. package/dist/types/ts3.4/commands/CancelStatementCommand.d.ts +0 -35
  203. package/dist/types/ts3.4/commands/DescribeStatementCommand.d.ts +0 -37
  204. package/dist/types/ts3.4/commands/DescribeTableCommand.d.ts +0 -50
  205. package/dist/types/ts3.4/commands/ExecuteStatementCommand.d.ts +0 -49
  206. package/dist/types/ts3.4/commands/GetStatementResultCommand.d.ts +0 -36
  207. package/dist/types/ts3.4/commands/ListDatabasesCommand.d.ts +0 -49
  208. package/dist/types/ts3.4/commands/ListSchemasCommand.d.ts +0 -49
  209. package/dist/types/ts3.4/commands/ListStatementsCommand.d.ts +0 -36
  210. package/dist/types/ts3.4/commands/ListTablesCommand.d.ts +0 -50
  211. package/dist/types/ts3.4/models/models_0.d.ts +0 -1103
  212. package/endpoints.ts +0 -57
  213. package/jest.config.js +0 -4
  214. package/models/models_0.ts +0 -1379
  215. package/pagination/DescribeTablePaginator.ts +0 -58
  216. package/pagination/GetStatementResultPaginator.ts +0 -57
  217. package/pagination/Interfaces.ts +0 -7
  218. package/pagination/ListDatabasesPaginator.ts +0 -58
  219. package/pagination/ListSchemasPaginator.ts +0 -54
  220. package/pagination/ListStatementsPaginator.ts +0 -58
  221. package/pagination/ListTablesPaginator.ts +0 -54
  222. package/protocols/Aws_json1_1.ts +0 -1614
  223. package/runtimeConfig.browser.ts +0 -40
  224. package/runtimeConfig.native.ts +0 -16
  225. package/runtimeConfig.shared.ts +0 -16
  226. package/runtimeConfig.ts +0 -45
  227. package/tsconfig.es.json +0 -12
  228. package/tsconfig.json +0 -32
@@ -1,5 +1,4 @@
1
1
  import { __extends } from "tslib";
2
- import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
3
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
4
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
5
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,14 +7,8 @@ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
8
7
  import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
9
8
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
9
  import { Client as __Client, } from "@aws-sdk/smithy-client";
11
- /**
12
- * <p>You can use the Amazon Redshift Data API to run queries on Amazon Redshift tables. You
13
- * can run SQL statements, which are committed if the statement succeeds. </p>
14
- * <p>For more information about the Amazon Redshift Data API, see
15
- * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
16
- * <i>Amazon Redshift Cluster Management Guide</i>. </p>
17
- */
18
- var RedshiftDataClient = /** @class */ (function (_super) {
10
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
+ var RedshiftDataClient = (function (_super) {
19
12
  __extends(RedshiftDataClient, _super);
20
13
  function RedshiftDataClient(configuration) {
21
14
  var _this = this;
@@ -36,15 +29,9 @@ var RedshiftDataClient = /** @class */ (function (_super) {
36
29
  _this.middlewareStack.use(getUserAgentPlugin(_this.config));
37
30
  return _this;
38
31
  }
39
- /**
40
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
41
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
42
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
43
- */
44
32
  RedshiftDataClient.prototype.destroy = function () {
45
33
  _super.prototype.destroy.call(this);
46
34
  };
47
35
  return RedshiftDataClient;
48
36
  }(__Client));
49
37
  export { RedshiftDataClient };
50
- //# sourceMappingURL=RedshiftDataClient.js.map
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { BatchExecuteStatementInput, BatchExecuteStatementOutput } from "../models/models_0";
5
+ import { deserializeAws_json1_1BatchExecuteStatementCommand, serializeAws_json1_1BatchExecuteStatementCommand, } from "../protocols/Aws_json1_1";
6
+ var BatchExecuteStatementCommand = (function (_super) {
7
+ __extends(BatchExecuteStatementCommand, _super);
8
+ function BatchExecuteStatementCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ BatchExecuteStatementCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RedshiftDataClient";
18
+ var commandName = "BatchExecuteStatementCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: BatchExecuteStatementInput.filterSensitiveLog,
24
+ outputFilterSensitiveLog: BatchExecuteStatementOutput.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ BatchExecuteStatementCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1BatchExecuteStatementCommand(input, context);
33
+ };
34
+ BatchExecuteStatementCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1BatchExecuteStatementCommand(output, context);
36
+ };
37
+ return BatchExecuteStatementCommand;
38
+ }($Command));
39
+ export { BatchExecuteStatementCommand };
@@ -1,40 +1,15 @@
1
1
  import { __extends } from "tslib";
2
- import { CancelStatementRequest, CancelStatementResponse } from "../models/models_0";
3
- import { deserializeAws_json1_1CancelStatementCommand, serializeAws_json1_1CancelStatementCommand, } from "../protocols/Aws_json1_1";
4
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Cancels a running query. To be canceled, a query must be running. </p>
8
- * @example
9
- * Use a bare-bones client and the command you need to make an API call.
10
- * ```javascript
11
- * import { RedshiftDataClient, CancelStatementCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
12
- * // const { RedshiftDataClient, CancelStatementCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
13
- * const client = new RedshiftDataClient(config);
14
- * const command = new CancelStatementCommand(input);
15
- * const response = await client.send(command);
16
- * ```
17
- *
18
- * @see {@link CancelStatementCommandInput} for command's `input` shape.
19
- * @see {@link CancelStatementCommandOutput} for command's `response` shape.
20
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
21
- *
22
- */
23
- var CancelStatementCommand = /** @class */ (function (_super) {
4
+ import { CancelStatementRequest, CancelStatementResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1CancelStatementCommand, serializeAws_json1_1CancelStatementCommand, } from "../protocols/Aws_json1_1";
6
+ var CancelStatementCommand = (function (_super) {
24
7
  __extends(CancelStatementCommand, _super);
25
- // Start section: command_properties
26
- // End section: command_properties
27
8
  function CancelStatementCommand(input) {
28
- var _this =
29
- // Start section: command_constructor
30
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
31
10
  _this.input = input;
32
11
  return _this;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  CancelStatementCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
39
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -62,4 +37,3 @@ var CancelStatementCommand = /** @class */ (function (_super) {
62
37
  return CancelStatementCommand;
63
38
  }($Command));
64
39
  export { CancelStatementCommand };
65
- //# sourceMappingURL=CancelStatementCommand.js.map
@@ -1,42 +1,15 @@
1
1
  import { __extends } from "tslib";
2
- import { DescribeStatementRequest, DescribeStatementResponse } from "../models/models_0";
3
- import { deserializeAws_json1_1DescribeStatementCommand, serializeAws_json1_1DescribeStatementCommand, } from "../protocols/Aws_json1_1";
4
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Describes the details about a specific instance when a query was run by the Amazon Redshift Data API. The information
8
- * includes when the query started, when it finished, the query status, the number of rows returned, and the SQL
9
- * statement. </p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { RedshiftDataClient, DescribeStatementCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
14
- * // const { RedshiftDataClient, DescribeStatementCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
15
- * const client = new RedshiftDataClient(config);
16
- * const command = new DescribeStatementCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link DescribeStatementCommandInput} for command's `input` shape.
21
- * @see {@link DescribeStatementCommandOutput} for command's `response` shape.
22
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
- var DescribeStatementCommand = /** @class */ (function (_super) {
4
+ import { DescribeStatementRequest, DescribeStatementResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1DescribeStatementCommand, serializeAws_json1_1DescribeStatementCommand, } from "../protocols/Aws_json1_1";
6
+ var DescribeStatementCommand = (function (_super) {
26
7
  __extends(DescribeStatementCommand, _super);
27
- // Start section: command_properties
28
- // End section: command_properties
29
8
  function DescribeStatementCommand(input) {
30
- var _this =
31
- // Start section: command_constructor
32
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
33
10
  _this.input = input;
34
11
  return _this;
35
- // End section: command_constructor
36
12
  }
37
- /**
38
- * @internal
39
- */
40
13
  DescribeStatementCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
41
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
42
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -64,4 +37,3 @@ var DescribeStatementCommand = /** @class */ (function (_super) {
64
37
  return DescribeStatementCommand;
65
38
  }($Command));
66
39
  export { DescribeStatementCommand };
67
- //# sourceMappingURL=DescribeStatementCommand.js.map
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { DescribeTableRequest, DescribeTableResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1DescribeTableCommand, serializeAws_json1_1DescribeTableCommand, } from "../protocols/Aws_json1_1";
6
+ var DescribeTableCommand = (function (_super) {
7
+ __extends(DescribeTableCommand, _super);
8
+ function DescribeTableCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ DescribeTableCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RedshiftDataClient";
18
+ var commandName = "DescribeTableCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: DescribeTableRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: DescribeTableResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ DescribeTableCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1DescribeTableCommand(input, context);
33
+ };
34
+ DescribeTableCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1DescribeTableCommand(output, context);
36
+ };
37
+ return DescribeTableCommand;
38
+ }($Command));
39
+ export { DescribeTableCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ExecuteStatementInput, ExecuteStatementOutput } from "../models/models_0";
5
+ import { deserializeAws_json1_1ExecuteStatementCommand, serializeAws_json1_1ExecuteStatementCommand, } from "../protocols/Aws_json1_1";
6
+ var ExecuteStatementCommand = (function (_super) {
7
+ __extends(ExecuteStatementCommand, _super);
8
+ function ExecuteStatementCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ExecuteStatementCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RedshiftDataClient";
18
+ var commandName = "ExecuteStatementCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ExecuteStatementInput.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ExecuteStatementOutput.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ExecuteStatementCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1ExecuteStatementCommand(input, context);
33
+ };
34
+ ExecuteStatementCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1ExecuteStatementCommand(output, context);
36
+ };
37
+ return ExecuteStatementCommand;
38
+ }($Command));
39
+ export { ExecuteStatementCommand };
@@ -1,41 +1,15 @@
1
1
  import { __extends } from "tslib";
2
- import { GetStatementResultRequest, GetStatementResultResponse } from "../models/models_0";
3
- import { deserializeAws_json1_1GetStatementResultCommand, serializeAws_json1_1GetStatementResultCommand, } from "../protocols/Aws_json1_1";
4
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>Fetches the temporarily cached result of an SQL statement.
8
- * A token is returned to page through the statement results. </p>
9
- * @example
10
- * Use a bare-bones client and the command you need to make an API call.
11
- * ```javascript
12
- * import { RedshiftDataClient, GetStatementResultCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
13
- * // const { RedshiftDataClient, GetStatementResultCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
14
- * const client = new RedshiftDataClient(config);
15
- * const command = new GetStatementResultCommand(input);
16
- * const response = await client.send(command);
17
- * ```
18
- *
19
- * @see {@link GetStatementResultCommandInput} for command's `input` shape.
20
- * @see {@link GetStatementResultCommandOutput} for command's `response` shape.
21
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
22
- *
23
- */
24
- var GetStatementResultCommand = /** @class */ (function (_super) {
4
+ import { GetStatementResultRequest, GetStatementResultResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1GetStatementResultCommand, serializeAws_json1_1GetStatementResultCommand, } from "../protocols/Aws_json1_1";
6
+ var GetStatementResultCommand = (function (_super) {
25
7
  __extends(GetStatementResultCommand, _super);
26
- // Start section: command_properties
27
- // End section: command_properties
28
8
  function GetStatementResultCommand(input) {
29
- var _this =
30
- // Start section: command_constructor
31
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
32
10
  _this.input = input;
33
11
  return _this;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  GetStatementResultCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
40
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -63,4 +37,3 @@ var GetStatementResultCommand = /** @class */ (function (_super) {
63
37
  return GetStatementResultCommand;
64
38
  }($Command));
65
39
  export { GetStatementResultCommand };
66
- //# sourceMappingURL=GetStatementResultCommand.js.map
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListDatabasesRequest, ListDatabasesResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1ListDatabasesCommand, serializeAws_json1_1ListDatabasesCommand, } from "../protocols/Aws_json1_1";
6
+ var ListDatabasesCommand = (function (_super) {
7
+ __extends(ListDatabasesCommand, _super);
8
+ function ListDatabasesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListDatabasesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RedshiftDataClient";
18
+ var commandName = "ListDatabasesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListDatabasesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListDatabasesResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListDatabasesCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1ListDatabasesCommand(input, context);
33
+ };
34
+ ListDatabasesCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1ListDatabasesCommand(output, context);
36
+ };
37
+ return ListDatabasesCommand;
38
+ }($Command));
39
+ export { ListDatabasesCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListSchemasRequest, ListSchemasResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1ListSchemasCommand, serializeAws_json1_1ListSchemasCommand, } from "../protocols/Aws_json1_1";
6
+ var ListSchemasCommand = (function (_super) {
7
+ __extends(ListSchemasCommand, _super);
8
+ function ListSchemasCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListSchemasCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RedshiftDataClient";
18
+ var commandName = "ListSchemasCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListSchemasRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListSchemasResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListSchemasCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1ListSchemasCommand(input, context);
33
+ };
34
+ ListSchemasCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1ListSchemasCommand(output, context);
36
+ };
37
+ return ListSchemasCommand;
38
+ }($Command));
39
+ export { ListSchemasCommand };
@@ -1,41 +1,15 @@
1
1
  import { __extends } from "tslib";
2
- import { ListStatementsRequest, ListStatementsResponse } from "../models/models_0";
3
- import { deserializeAws_json1_1ListStatementsCommand, serializeAws_json1_1ListStatementsCommand, } from "../protocols/Aws_json1_1";
4
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
5
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
6
- /**
7
- * <p>List of SQL statements. By default, only finished statements are shown.
8
- * A token is returned to page through the statement list. </p>
9
- * @example
10
- * Use a bare-bones client and the command you need to make an API call.
11
- * ```javascript
12
- * import { RedshiftDataClient, ListStatementsCommand } from "@aws-sdk/client-redshift-data"; // ES Modules import
13
- * // const { RedshiftDataClient, ListStatementsCommand } = require("@aws-sdk/client-redshift-data"); // CommonJS import
14
- * const client = new RedshiftDataClient(config);
15
- * const command = new ListStatementsCommand(input);
16
- * const response = await client.send(command);
17
- * ```
18
- *
19
- * @see {@link ListStatementsCommandInput} for command's `input` shape.
20
- * @see {@link ListStatementsCommandOutput} for command's `response` shape.
21
- * @see {@link RedshiftDataClientResolvedConfig | config} for command's `input` shape.
22
- *
23
- */
24
- var ListStatementsCommand = /** @class */ (function (_super) {
4
+ import { ListStatementsRequest, ListStatementsResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1ListStatementsCommand, serializeAws_json1_1ListStatementsCommand, } from "../protocols/Aws_json1_1";
6
+ var ListStatementsCommand = (function (_super) {
25
7
  __extends(ListStatementsCommand, _super);
26
- // Start section: command_properties
27
- // End section: command_properties
28
8
  function ListStatementsCommand(input) {
29
- var _this =
30
- // Start section: command_constructor
31
- _super.call(this) || this;
9
+ var _this = _super.call(this) || this;
32
10
  _this.input = input;
33
11
  return _this;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  ListStatementsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
40
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  var stack = clientStack.concat(this.middlewareStack);
@@ -63,4 +37,3 @@ var ListStatementsCommand = /** @class */ (function (_super) {
63
37
  return ListStatementsCommand;
64
38
  }($Command));
65
39
  export { ListStatementsCommand };
66
- //# sourceMappingURL=ListStatementsCommand.js.map
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ListTablesRequest, ListTablesResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1ListTablesCommand, serializeAws_json1_1ListTablesCommand, } from "../protocols/Aws_json1_1";
6
+ var ListTablesCommand = (function (_super) {
7
+ __extends(ListTablesCommand, _super);
8
+ function ListTablesCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ListTablesCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RedshiftDataClient";
18
+ var commandName = "ListTablesCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ListTablesRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ListTablesResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ListTablesCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1ListTablesCommand(input, context);
33
+ };
34
+ ListTablesCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1ListTablesCommand(output, context);
36
+ };
37
+ return ListTablesCommand;
38
+ }($Command));
39
+ export { ListTablesCommand };
@@ -47,7 +47,6 @@ var partitionHash = {
47
47
  };
48
48
  export var defaultRegionInfoProvider = function (region, options) { return __awaiter(void 0, void 0, void 0, function () {
49
49
  return __generator(this, function (_a) {
50
- return [2 /*return*/, getRegionInfo(region, __assign(__assign({}, options), { signingService: "redshift-data", regionHash: regionHash, partitionHash: partitionHash }))];
50
+ return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "redshift-data", regionHash: regionHash, partitionHash: partitionHash }))];
51
51
  });
52
52
  }); };
53
- //# sourceMappingURL=endpoints.js.map
File without changes