@aws-sdk/client-redshift-data 3.31.0 → 3.35.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 (263) hide show
  1. package/CHANGELOG.md +39 -0
  2. package/{dist/cjs → dist-cjs}/RedshiftData.js +1 -1
  3. package/dist-cjs/RedshiftData.js.map +1 -0
  4. package/{dist/cjs → dist-cjs}/RedshiftDataClient.js +14 -14
  5. package/dist-cjs/RedshiftDataClient.js.map +1 -0
  6. package/{dist/cjs → dist-cjs}/commands/BatchExecuteStatementCommand.js +5 -5
  7. package/dist-cjs/commands/BatchExecuteStatementCommand.js.map +1 -0
  8. package/{dist/cjs → dist-cjs}/commands/CancelStatementCommand.js +5 -5
  9. package/dist-cjs/commands/CancelStatementCommand.js.map +1 -0
  10. package/{dist/cjs → dist-cjs}/commands/DescribeStatementCommand.js +5 -5
  11. package/dist-cjs/commands/DescribeStatementCommand.js.map +1 -0
  12. package/{dist/cjs → dist-cjs}/commands/DescribeTableCommand.js +5 -5
  13. package/dist-cjs/commands/DescribeTableCommand.js.map +1 -0
  14. package/{dist/cjs → dist-cjs}/commands/ExecuteStatementCommand.js +5 -5
  15. package/dist-cjs/commands/ExecuteStatementCommand.js.map +1 -0
  16. package/{dist/cjs → dist-cjs}/commands/GetStatementResultCommand.js +5 -5
  17. package/dist-cjs/commands/GetStatementResultCommand.js.map +1 -0
  18. package/{dist/cjs → dist-cjs}/commands/ListDatabasesCommand.js +5 -5
  19. package/dist-cjs/commands/ListDatabasesCommand.js.map +1 -0
  20. package/{dist/cjs → dist-cjs}/commands/ListSchemasCommand.js +5 -5
  21. package/dist-cjs/commands/ListSchemasCommand.js.map +1 -0
  22. package/{dist/cjs → dist-cjs}/commands/ListStatementsCommand.js +5 -5
  23. package/dist-cjs/commands/ListStatementsCommand.js.map +1 -0
  24. package/{dist/cjs → dist-cjs}/commands/ListTablesCommand.js +5 -5
  25. package/dist-cjs/commands/ListTablesCommand.js.map +1 -0
  26. package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
  27. package/dist-cjs/endpoints.js.map +1 -0
  28. package/dist-cjs/index.js +24 -0
  29. package/dist-cjs/index.js.map +1 -0
  30. package/{dist/cjs → dist-cjs}/models/index.js +1 -1
  31. package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
  32. package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
  33. package/dist-cjs/models/models_0.js.map +1 -0
  34. package/{dist/cjs → dist-cjs}/pagination/DescribeTablePaginator.js +1 -1
  35. package/dist-cjs/pagination/DescribeTablePaginator.js.map +1 -0
  36. package/{dist/cjs → dist-cjs}/pagination/GetStatementResultPaginator.js +1 -1
  37. package/dist-cjs/pagination/GetStatementResultPaginator.js.map +1 -0
  38. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
  39. package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
  40. package/{dist/cjs → dist-cjs}/pagination/ListDatabasesPaginator.js +1 -1
  41. package/dist-cjs/pagination/ListDatabasesPaginator.js.map +1 -0
  42. package/{dist/cjs → dist-cjs}/pagination/ListSchemasPaginator.js +1 -1
  43. package/dist-cjs/pagination/ListSchemasPaginator.js.map +1 -0
  44. package/{dist/cjs → dist-cjs}/pagination/ListStatementsPaginator.js +1 -1
  45. package/dist-cjs/pagination/ListStatementsPaginator.js.map +1 -0
  46. package/{dist/cjs → dist-cjs}/pagination/ListTablesPaginator.js +1 -1
  47. package/dist-cjs/pagination/ListTablesPaginator.js.map +1 -0
  48. package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +97 -97
  49. package/dist-cjs/protocols/Aws_json1_1.js.map +1 -0
  50. package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
  51. package/dist-cjs/runtimeConfig.browser.js.map +1 -0
  52. package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
  53. package/dist-cjs/runtimeConfig.js.map +1 -0
  54. package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
  55. package/dist-cjs/runtimeConfig.native.js.map +1 -0
  56. package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
  57. package/dist-cjs/runtimeConfig.shared.js.map +1 -0
  58. package/{dist/es → dist-es}/RedshiftData.js +2 -9
  59. package/dist-es/RedshiftData.js.map +1 -0
  60. package/{dist/es → dist-es}/RedshiftDataClient.js +2 -14
  61. package/dist-es/RedshiftDataClient.js.map +1 -0
  62. package/dist-es/commands/BatchExecuteStatementCommand.js +40 -0
  63. package/dist-es/commands/BatchExecuteStatementCommand.js.map +1 -0
  64. package/{dist/es → dist-es}/commands/CancelStatementCommand.js +4 -29
  65. package/dist-es/commands/CancelStatementCommand.js.map +1 -0
  66. package/{dist/es → dist-es}/commands/DescribeStatementCommand.js +4 -31
  67. package/dist-es/commands/DescribeStatementCommand.js.map +1 -0
  68. package/dist-es/commands/DescribeTableCommand.js +40 -0
  69. package/dist-es/commands/DescribeTableCommand.js.map +1 -0
  70. package/dist-es/commands/ExecuteStatementCommand.js +40 -0
  71. package/dist-es/commands/ExecuteStatementCommand.js.map +1 -0
  72. package/{dist/es → dist-es}/commands/GetStatementResultCommand.js +4 -30
  73. package/dist-es/commands/GetStatementResultCommand.js.map +1 -0
  74. package/dist-es/commands/ListDatabasesCommand.js +40 -0
  75. package/dist-es/commands/ListDatabasesCommand.js.map +1 -0
  76. package/dist-es/commands/ListSchemasCommand.js +40 -0
  77. package/dist-es/commands/ListSchemasCommand.js.map +1 -0
  78. package/{dist/es → dist-es}/commands/ListStatementsCommand.js +4 -30
  79. package/dist-es/commands/ListStatementsCommand.js.map +1 -0
  80. package/dist-es/commands/ListTablesCommand.js +40 -0
  81. package/dist-es/commands/ListTablesCommand.js.map +1 -0
  82. package/{dist/es → dist-es}/endpoints.js +1 -1
  83. package/dist-es/endpoints.js.map +1 -0
  84. package/{dist/es → dist-es}/index.js +0 -0
  85. package/dist-es/index.js.map +1 -0
  86. package/{dist/es → dist-es}/models/index.js +0 -0
  87. package/dist-es/models/index.js.map +1 -0
  88. package/{dist/es → dist-es}/models/models_0.js +0 -96
  89. package/dist-es/models/models_0.js.map +1 -0
  90. package/{dist/es → dist-es}/pagination/DescribeTablePaginator.js +17 -29
  91. package/dist-es/pagination/DescribeTablePaginator.js.map +1 -0
  92. package/{dist/es → dist-es}/pagination/GetStatementResultPaginator.js +17 -29
  93. package/dist-es/pagination/GetStatementResultPaginator.js.map +1 -0
  94. package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
  95. package/{dist/es → dist-es}/pagination/Interfaces.js.map +1 -1
  96. package/{dist/es → dist-es}/pagination/ListDatabasesPaginator.js +17 -29
  97. package/dist-es/pagination/ListDatabasesPaginator.js.map +1 -0
  98. package/{dist/es → dist-es}/pagination/ListSchemasPaginator.js +17 -29
  99. package/dist-es/pagination/ListSchemasPaginator.js.map +1 -0
  100. package/{dist/es → dist-es}/pagination/ListStatementsPaginator.js +17 -29
  101. package/dist-es/pagination/ListStatementsPaginator.js.map +1 -0
  102. package/{dist/es → dist-es}/pagination/ListTablesPaginator.js +17 -29
  103. package/dist-es/pagination/ListTablesPaginator.js.map +1 -0
  104. package/{dist/es → dist-es}/protocols/Aws_json1_1.js +178 -183
  105. package/dist-es/protocols/Aws_json1_1.js.map +1 -0
  106. package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
  107. package/dist-es/runtimeConfig.browser.js.map +1 -0
  108. package/{dist/es → dist-es}/runtimeConfig.js +2 -5
  109. package/dist-es/runtimeConfig.js.map +1 -0
  110. package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
  111. package/dist-es/runtimeConfig.native.js.map +1 -0
  112. package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
  113. package/dist-es/runtimeConfig.shared.js.map +1 -0
  114. package/{dist/types → dist-types}/RedshiftData.d.ts +2 -2
  115. package/{dist/types → dist-types}/RedshiftDataClient.d.ts +8 -8
  116. package/{dist/types → dist-types}/commands/BatchExecuteStatementCommand.d.ts +3 -3
  117. package/{dist/types → dist-types}/commands/CancelStatementCommand.d.ts +3 -3
  118. package/{dist/types → dist-types}/commands/DescribeStatementCommand.d.ts +3 -3
  119. package/{dist/types → dist-types}/commands/DescribeTableCommand.d.ts +3 -3
  120. package/{dist/types → dist-types}/commands/ExecuteStatementCommand.d.ts +3 -3
  121. package/{dist/types → dist-types}/commands/GetStatementResultCommand.d.ts +3 -3
  122. package/{dist/types → dist-types}/commands/ListDatabasesCommand.d.ts +3 -3
  123. package/{dist/types → dist-types}/commands/ListSchemasCommand.d.ts +3 -3
  124. package/{dist/types → dist-types}/commands/ListStatementsCommand.d.ts +3 -3
  125. package/{dist/types → dist-types}/commands/ListTablesCommand.d.ts +3 -3
  126. package/{dist/types → dist-types}/endpoints.d.ts +0 -0
  127. package/{dist/types → dist-types}/index.d.ts +0 -0
  128. package/{dist/types → dist-types}/models/index.d.ts +0 -0
  129. package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
  130. package/{dist/types → dist-types}/pagination/DescribeTablePaginator.d.ts +1 -1
  131. package/{dist/types → dist-types}/pagination/GetStatementResultPaginator.d.ts +1 -1
  132. package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
  133. package/{dist/types → dist-types}/pagination/ListDatabasesPaginator.d.ts +1 -1
  134. package/{dist/types → dist-types}/pagination/ListSchemasPaginator.d.ts +1 -1
  135. package/{dist/types → dist-types}/pagination/ListStatementsPaginator.d.ts +1 -1
  136. package/{dist/types → dist-types}/pagination/ListTablesPaginator.d.ts +1 -1
  137. package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +2 -2
  138. package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
  139. package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
  140. package/{dist/types → dist-types}/runtimeConfig.native.d.ts +1 -0
  141. package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
  142. package/{dist/types → dist-types}/ts3.4/RedshiftData.d.ts +2 -2
  143. package/{dist/types → dist-types}/ts3.4/RedshiftDataClient.d.ts +8 -8
  144. package/{dist/types → dist-types}/ts3.4/commands/BatchExecuteStatementCommand.d.ts +3 -3
  145. package/{dist/types → dist-types}/ts3.4/commands/CancelStatementCommand.d.ts +3 -3
  146. package/{dist/types → dist-types}/ts3.4/commands/DescribeStatementCommand.d.ts +3 -3
  147. package/{dist/types → dist-types}/ts3.4/commands/DescribeTableCommand.d.ts +3 -3
  148. package/{dist/types → dist-types}/ts3.4/commands/ExecuteStatementCommand.d.ts +3 -3
  149. package/{dist/types → dist-types}/ts3.4/commands/GetStatementResultCommand.d.ts +3 -3
  150. package/{dist/types → dist-types}/ts3.4/commands/ListDatabasesCommand.d.ts +3 -3
  151. package/{dist/types → dist-types}/ts3.4/commands/ListSchemasCommand.d.ts +3 -3
  152. package/{dist/types → dist-types}/ts3.4/commands/ListStatementsCommand.d.ts +3 -3
  153. package/{dist/types → dist-types}/ts3.4/commands/ListTablesCommand.d.ts +3 -3
  154. package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
  155. package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
  156. package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
  157. package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
  158. package/{dist/types → dist-types}/ts3.4/pagination/DescribeTablePaginator.d.ts +1 -1
  159. package/{dist/types → dist-types}/ts3.4/pagination/GetStatementResultPaginator.d.ts +1 -1
  160. package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
  161. package/{dist/types → dist-types}/ts3.4/pagination/ListDatabasesPaginator.d.ts +1 -1
  162. package/{dist/types → dist-types}/ts3.4/pagination/ListSchemasPaginator.d.ts +1 -1
  163. package/{dist/types → dist-types}/ts3.4/pagination/ListStatementsPaginator.d.ts +1 -1
  164. package/{dist/types → dist-types}/ts3.4/pagination/ListTablesPaginator.d.ts +1 -1
  165. package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +2 -2
  166. package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
  167. package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
  168. package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -0
  169. package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
  170. package/package.json +50 -50
  171. package/{RedshiftData.ts → src/RedshiftData.ts} +3 -2
  172. package/{RedshiftDataClient.ts → src/RedshiftDataClient.ts} +28 -27
  173. package/{commands → src/commands}/BatchExecuteStatementCommand.ts +8 -7
  174. package/{commands → src/commands}/CancelStatementCommand.ts +8 -7
  175. package/{commands → src/commands}/DescribeStatementCommand.ts +8 -7
  176. package/{commands → src/commands}/DescribeTableCommand.ts +8 -7
  177. package/{commands → src/commands}/ExecuteStatementCommand.ts +8 -7
  178. package/{commands → src/commands}/GetStatementResultCommand.ts +8 -7
  179. package/{commands → src/commands}/ListDatabasesCommand.ts +8 -7
  180. package/{commands → src/commands}/ListSchemasCommand.ts +8 -7
  181. package/{commands → src/commands}/ListStatementsCommand.ts +8 -7
  182. package/{commands → src/commands}/ListTablesCommand.ts +8 -7
  183. package/{endpoints.ts → src/endpoints.ts} +1 -1
  184. package/{index.ts → src/index.ts} +0 -0
  185. package/{models → src/models}/index.ts +0 -0
  186. package/{models → src/models}/models_0.ts +0 -0
  187. package/{pagination → src/pagination}/DescribeTablePaginator.ts +4 -3
  188. package/{pagination → src/pagination}/GetStatementResultPaginator.ts +4 -3
  189. package/{pagination → src/pagination}/Interfaces.ts +2 -1
  190. package/{pagination → src/pagination}/ListDatabasesPaginator.ts +4 -3
  191. package/{pagination → src/pagination}/ListSchemasPaginator.ts +3 -2
  192. package/{pagination → src/pagination}/ListStatementsPaginator.ts +4 -3
  193. package/{pagination → src/pagination}/ListTablesPaginator.ts +3 -2
  194. package/{protocols → src/protocols}/Aws_json1_1.ts +31 -30
  195. package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +3 -2
  196. package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +1 -0
  197. package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
  198. package/{runtimeConfig.ts → src/runtimeConfig.ts} +4 -3
  199. package/tsconfig.es.json +1 -3
  200. package/tsconfig.json +7 -7
  201. package/tsconfig.types.json +9 -0
  202. package/dist/cjs/RedshiftData.js.map +0 -1
  203. package/dist/cjs/RedshiftDataClient.js.map +0 -1
  204. package/dist/cjs/commands/BatchExecuteStatementCommand.js.map +0 -1
  205. package/dist/cjs/commands/CancelStatementCommand.js.map +0 -1
  206. package/dist/cjs/commands/DescribeStatementCommand.js.map +0 -1
  207. package/dist/cjs/commands/DescribeTableCommand.js.map +0 -1
  208. package/dist/cjs/commands/ExecuteStatementCommand.js.map +0 -1
  209. package/dist/cjs/commands/GetStatementResultCommand.js.map +0 -1
  210. package/dist/cjs/commands/ListDatabasesCommand.js.map +0 -1
  211. package/dist/cjs/commands/ListSchemasCommand.js.map +0 -1
  212. package/dist/cjs/commands/ListStatementsCommand.js.map +0 -1
  213. package/dist/cjs/commands/ListTablesCommand.js.map +0 -1
  214. package/dist/cjs/endpoints.js.map +0 -1
  215. package/dist/cjs/index.js +0 -24
  216. package/dist/cjs/index.js.map +0 -1
  217. package/dist/cjs/models/models_0.js.map +0 -1
  218. package/dist/cjs/package.json +0 -91
  219. package/dist/cjs/pagination/DescribeTablePaginator.js.map +0 -1
  220. package/dist/cjs/pagination/GetStatementResultPaginator.js.map +0 -1
  221. package/dist/cjs/pagination/ListDatabasesPaginator.js.map +0 -1
  222. package/dist/cjs/pagination/ListSchemasPaginator.js.map +0 -1
  223. package/dist/cjs/pagination/ListStatementsPaginator.js.map +0 -1
  224. package/dist/cjs/pagination/ListTablesPaginator.js.map +0 -1
  225. package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
  226. package/dist/cjs/runtimeConfig.browser.js.map +0 -1
  227. package/dist/cjs/runtimeConfig.js.map +0 -1
  228. package/dist/cjs/runtimeConfig.native.js.map +0 -1
  229. package/dist/cjs/runtimeConfig.shared.js.map +0 -1
  230. package/dist/es/RedshiftData.js.map +0 -1
  231. package/dist/es/RedshiftDataClient.js.map +0 -1
  232. package/dist/es/commands/BatchExecuteStatementCommand.js +0 -79
  233. package/dist/es/commands/BatchExecuteStatementCommand.js.map +0 -1
  234. package/dist/es/commands/CancelStatementCommand.js.map +0 -1
  235. package/dist/es/commands/DescribeStatementCommand.js.map +0 -1
  236. package/dist/es/commands/DescribeTableCommand.js +0 -80
  237. package/dist/es/commands/DescribeTableCommand.js.map +0 -1
  238. package/dist/es/commands/ExecuteStatementCommand.js +0 -79
  239. package/dist/es/commands/ExecuteStatementCommand.js.map +0 -1
  240. package/dist/es/commands/GetStatementResultCommand.js.map +0 -1
  241. package/dist/es/commands/ListDatabasesCommand.js +0 -79
  242. package/dist/es/commands/ListDatabasesCommand.js.map +0 -1
  243. package/dist/es/commands/ListSchemasCommand.js +0 -79
  244. package/dist/es/commands/ListSchemasCommand.js.map +0 -1
  245. package/dist/es/commands/ListStatementsCommand.js.map +0 -1
  246. package/dist/es/commands/ListTablesCommand.js +0 -80
  247. package/dist/es/commands/ListTablesCommand.js.map +0 -1
  248. package/dist/es/endpoints.js.map +0 -1
  249. package/dist/es/index.js.map +0 -1
  250. package/dist/es/models/index.js.map +0 -1
  251. package/dist/es/models/models_0.js.map +0 -1
  252. package/dist/es/package.json +0 -91
  253. package/dist/es/pagination/DescribeTablePaginator.js.map +0 -1
  254. package/dist/es/pagination/GetStatementResultPaginator.js.map +0 -1
  255. package/dist/es/pagination/ListDatabasesPaginator.js.map +0 -1
  256. package/dist/es/pagination/ListSchemasPaginator.js.map +0 -1
  257. package/dist/es/pagination/ListStatementsPaginator.js.map +0 -1
  258. package/dist/es/pagination/ListTablesPaginator.js.map +0 -1
  259. package/dist/es/protocols/Aws_json1_1.js.map +0 -1
  260. package/dist/es/runtimeConfig.browser.js.map +0 -1
  261. package/dist/es/runtimeConfig.js.map +0 -1
  262. package/dist/es/runtimeConfig.native.js.map +0 -1
  263. package/dist/es/runtimeConfig.shared.js.map +0 -1
@@ -1,9 +1,3 @@
1
- import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
2
- import { CancelStatementRequest, CancelStatementResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1CancelStatementCommand,
5
- serializeAws_json1_1CancelStatementCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { CancelStatementRequest, CancelStatementResponse } from "../models/models_0";
15
+ import {
16
+ deserializeAws_json1_1CancelStatementCommand,
17
+ serializeAws_json1_1CancelStatementCommand,
18
+ } from "../protocols/Aws_json1_1";
19
+ import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
20
+
20
21
  export interface CancelStatementCommandInput extends CancelStatementRequest {}
21
22
  export interface CancelStatementCommandOutput extends CancelStatementResponse, __MetadataBearer {}
22
23
 
@@ -1,9 +1,3 @@
1
- import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
2
- import { DescribeStatementRequest, DescribeStatementResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1DescribeStatementCommand,
5
- serializeAws_json1_1DescribeStatementCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { DescribeStatementRequest, DescribeStatementResponse } from "../models/models_0";
15
+ import {
16
+ deserializeAws_json1_1DescribeStatementCommand,
17
+ serializeAws_json1_1DescribeStatementCommand,
18
+ } from "../protocols/Aws_json1_1";
19
+ import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
20
+
20
21
  export interface DescribeStatementCommandInput extends DescribeStatementRequest {}
21
22
  export interface DescribeStatementCommandOutput extends DescribeStatementResponse, __MetadataBearer {}
22
23
 
@@ -1,9 +1,3 @@
1
- import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
2
- import { DescribeTableRequest, DescribeTableResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1DescribeTableCommand,
5
- serializeAws_json1_1DescribeTableCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { DescribeTableRequest, DescribeTableResponse } from "../models/models_0";
15
+ import {
16
+ deserializeAws_json1_1DescribeTableCommand,
17
+ serializeAws_json1_1DescribeTableCommand,
18
+ } from "../protocols/Aws_json1_1";
19
+ import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
20
+
20
21
  export interface DescribeTableCommandInput extends DescribeTableRequest {}
21
22
  export interface DescribeTableCommandOutput extends DescribeTableResponse, __MetadataBearer {}
22
23
 
@@ -1,9 +1,3 @@
1
- import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
2
- import { ExecuteStatementInput, ExecuteStatementOutput } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1ExecuteStatementCommand,
5
- serializeAws_json1_1ExecuteStatementCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { ExecuteStatementInput, ExecuteStatementOutput } from "../models/models_0";
15
+ import {
16
+ deserializeAws_json1_1ExecuteStatementCommand,
17
+ serializeAws_json1_1ExecuteStatementCommand,
18
+ } from "../protocols/Aws_json1_1";
19
+ import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
20
+
20
21
  export interface ExecuteStatementCommandInput extends ExecuteStatementInput {}
21
22
  export interface ExecuteStatementCommandOutput extends ExecuteStatementOutput, __MetadataBearer {}
22
23
 
@@ -1,9 +1,3 @@
1
- import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
2
- import { GetStatementResultRequest, GetStatementResultResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1GetStatementResultCommand,
5
- serializeAws_json1_1GetStatementResultCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { GetStatementResultRequest, GetStatementResultResponse } from "../models/models_0";
15
+ import {
16
+ deserializeAws_json1_1GetStatementResultCommand,
17
+ serializeAws_json1_1GetStatementResultCommand,
18
+ } from "../protocols/Aws_json1_1";
19
+ import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
20
+
20
21
  export interface GetStatementResultCommandInput extends GetStatementResultRequest {}
21
22
  export interface GetStatementResultCommandOutput extends GetStatementResultResponse, __MetadataBearer {}
22
23
 
@@ -1,9 +1,3 @@
1
- import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
2
- import { ListDatabasesRequest, ListDatabasesResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1ListDatabasesCommand,
5
- serializeAws_json1_1ListDatabasesCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { ListDatabasesRequest, ListDatabasesResponse } from "../models/models_0";
15
+ import {
16
+ deserializeAws_json1_1ListDatabasesCommand,
17
+ serializeAws_json1_1ListDatabasesCommand,
18
+ } from "../protocols/Aws_json1_1";
19
+ import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
20
+
20
21
  export interface ListDatabasesCommandInput extends ListDatabasesRequest {}
21
22
  export interface ListDatabasesCommandOutput extends ListDatabasesResponse, __MetadataBearer {}
22
23
 
@@ -1,9 +1,3 @@
1
- import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
2
- import { ListSchemasRequest, ListSchemasResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1ListSchemasCommand,
5
- serializeAws_json1_1ListSchemasCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { ListSchemasRequest, ListSchemasResponse } from "../models/models_0";
15
+ import {
16
+ deserializeAws_json1_1ListSchemasCommand,
17
+ serializeAws_json1_1ListSchemasCommand,
18
+ } from "../protocols/Aws_json1_1";
19
+ import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
20
+
20
21
  export interface ListSchemasCommandInput extends ListSchemasRequest {}
21
22
  export interface ListSchemasCommandOutput extends ListSchemasResponse, __MetadataBearer {}
22
23
 
@@ -1,9 +1,3 @@
1
- import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
2
- import { ListStatementsRequest, ListStatementsResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1ListStatementsCommand,
5
- serializeAws_json1_1ListStatementsCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { ListStatementsRequest, ListStatementsResponse } from "../models/models_0";
15
+ import {
16
+ deserializeAws_json1_1ListStatementsCommand,
17
+ serializeAws_json1_1ListStatementsCommand,
18
+ } from "../protocols/Aws_json1_1";
19
+ import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
20
+
20
21
  export interface ListStatementsCommandInput extends ListStatementsRequest {}
21
22
  export interface ListStatementsCommandOutput extends ListStatementsResponse, __MetadataBearer {}
22
23
 
@@ -1,9 +1,3 @@
1
- import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
2
- import { ListTablesRequest, ListTablesResponse } from "../models/models_0";
3
- import {
4
- deserializeAws_json1_1ListTablesCommand,
5
- serializeAws_json1_1ListTablesCommand,
6
- } from "../protocols/Aws_json1_1";
7
1
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
8
2
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
9
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
@@ -11,12 +5,19 @@ import {
11
5
  FinalizeHandlerArguments,
12
6
  Handler,
13
7
  HandlerExecutionContext,
14
- MiddlewareStack,
15
8
  HttpHandlerOptions as __HttpHandlerOptions,
16
9
  MetadataBearer as __MetadataBearer,
10
+ MiddlewareStack,
17
11
  SerdeContext as __SerdeContext,
18
12
  } from "@aws-sdk/types";
19
13
 
14
+ import { ListTablesRequest, ListTablesResponse } from "../models/models_0";
15
+ import {
16
+ deserializeAws_json1_1ListTablesCommand,
17
+ serializeAws_json1_1ListTablesCommand,
18
+ } from "../protocols/Aws_json1_1";
19
+ import { RedshiftDataClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftDataClient";
20
+
20
21
  export interface ListTablesCommandInput extends ListTablesRequest {}
21
22
  export interface ListTablesCommandOutput extends ListTablesResponse, __MetadataBearer {}
22
23
 
@@ -1,4 +1,4 @@
1
- import { PartitionHash, RegionHash, getRegionInfo } from "@aws-sdk/config-resolver";
1
+ import { getRegionInfo, PartitionHash, RegionHash } from "@aws-sdk/config-resolver";
2
2
  import { RegionInfoProvider } from "@aws-sdk/types";
3
3
 
4
4
  const regionHash: RegionHash = {};
File without changes
File without changes
File without changes
@@ -1,12 +1,13 @@
1
- import { RedshiftData } from "../RedshiftData";
2
- import { RedshiftDataClient } from "../RedshiftDataClient";
1
+ import { Paginator } from "@aws-sdk/types";
2
+
3
3
  import {
4
4
  DescribeTableCommand,
5
5
  DescribeTableCommandInput,
6
6
  DescribeTableCommandOutput,
7
7
  } from "../commands/DescribeTableCommand";
8
+ import { RedshiftData } from "../RedshiftData";
9
+ import { RedshiftDataClient } from "../RedshiftDataClient";
8
10
  import { RedshiftDataPaginationConfiguration } from "./Interfaces";
9
- import { Paginator } from "@aws-sdk/types";
10
11
 
11
12
  /**
12
13
  * @private
@@ -1,12 +1,13 @@
1
- import { RedshiftData } from "../RedshiftData";
2
- import { RedshiftDataClient } from "../RedshiftDataClient";
1
+ import { Paginator } from "@aws-sdk/types";
2
+
3
3
  import {
4
4
  GetStatementResultCommand,
5
5
  GetStatementResultCommandInput,
6
6
  GetStatementResultCommandOutput,
7
7
  } from "../commands/GetStatementResultCommand";
8
+ import { RedshiftData } from "../RedshiftData";
9
+ import { RedshiftDataClient } from "../RedshiftDataClient";
8
10
  import { RedshiftDataPaginationConfiguration } from "./Interfaces";
9
- import { Paginator } from "@aws-sdk/types";
10
11
 
11
12
  /**
12
13
  * @private
@@ -1,6 +1,7 @@
1
+ import { PaginationConfiguration } from "@aws-sdk/types";
2
+
1
3
  import { RedshiftData } from "../RedshiftData";
2
4
  import { RedshiftDataClient } from "../RedshiftDataClient";
3
- import { PaginationConfiguration } from "@aws-sdk/types";
4
5
 
5
6
  export interface RedshiftDataPaginationConfiguration extends PaginationConfiguration {
6
7
  client: RedshiftData | RedshiftDataClient;
@@ -1,12 +1,13 @@
1
- import { RedshiftData } from "../RedshiftData";
2
- import { RedshiftDataClient } from "../RedshiftDataClient";
1
+ import { Paginator } from "@aws-sdk/types";
2
+
3
3
  import {
4
4
  ListDatabasesCommand,
5
5
  ListDatabasesCommandInput,
6
6
  ListDatabasesCommandOutput,
7
7
  } from "../commands/ListDatabasesCommand";
8
+ import { RedshiftData } from "../RedshiftData";
9
+ import { RedshiftDataClient } from "../RedshiftDataClient";
8
10
  import { RedshiftDataPaginationConfiguration } from "./Interfaces";
9
- import { Paginator } from "@aws-sdk/types";
10
11
 
11
12
  /**
12
13
  * @private
@@ -1,8 +1,9 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+
3
+ import { ListSchemasCommand, ListSchemasCommandInput, ListSchemasCommandOutput } from "../commands/ListSchemasCommand";
1
4
  import { RedshiftData } from "../RedshiftData";
2
5
  import { RedshiftDataClient } from "../RedshiftDataClient";
3
- import { ListSchemasCommand, ListSchemasCommandInput, ListSchemasCommandOutput } from "../commands/ListSchemasCommand";
4
6
  import { RedshiftDataPaginationConfiguration } from "./Interfaces";
5
- import { Paginator } from "@aws-sdk/types";
6
7
 
7
8
  /**
8
9
  * @private
@@ -1,12 +1,13 @@
1
- import { RedshiftData } from "../RedshiftData";
2
- import { RedshiftDataClient } from "../RedshiftDataClient";
1
+ import { Paginator } from "@aws-sdk/types";
2
+
3
3
  import {
4
4
  ListStatementsCommand,
5
5
  ListStatementsCommandInput,
6
6
  ListStatementsCommandOutput,
7
7
  } from "../commands/ListStatementsCommand";
8
+ import { RedshiftData } from "../RedshiftData";
9
+ import { RedshiftDataClient } from "../RedshiftDataClient";
8
10
  import { RedshiftDataPaginationConfiguration } from "./Interfaces";
9
- import { Paginator } from "@aws-sdk/types";
10
11
 
11
12
  /**
12
13
  * @private
@@ -1,8 +1,9 @@
1
+ import { Paginator } from "@aws-sdk/types";
2
+
3
+ import { ListTablesCommand, ListTablesCommandInput, ListTablesCommandOutput } from "../commands/ListTablesCommand";
1
4
  import { RedshiftData } from "../RedshiftData";
2
5
  import { RedshiftDataClient } from "../RedshiftDataClient";
3
- import { ListTablesCommand, ListTablesCommandInput, ListTablesCommandOutput } from "../commands/ListTablesCommand";
4
6
  import { RedshiftDataPaginationConfiguration } from "./Interfaces";
5
- import { Paginator } from "@aws-sdk/types";
6
7
 
7
8
  /**
8
9
  * @private
@@ -1,3 +1,24 @@
1
+ import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
2
+ import {
3
+ expectBoolean as __expectBoolean,
4
+ expectInt32 as __expectInt32,
5
+ expectLong as __expectLong,
6
+ expectNonNull as __expectNonNull,
7
+ expectNumber as __expectNumber,
8
+ expectString as __expectString,
9
+ expectUnion as __expectUnion,
10
+ limitedParseDouble as __limitedParseDouble,
11
+ parseEpochTimestamp as __parseEpochTimestamp,
12
+ } from "@aws-sdk/smithy-client";
13
+ import {
14
+ Endpoint as __Endpoint,
15
+ HeaderBag as __HeaderBag,
16
+ MetadataBearer as __MetadataBearer,
17
+ ResponseMetadata as __ResponseMetadata,
18
+ SerdeContext as __SerdeContext,
19
+ SmithyException as __SmithyException,
20
+ } from "@aws-sdk/types";
21
+
1
22
  import {
2
23
  BatchExecuteStatementCommandInput,
3
24
  BatchExecuteStatementCommandOutput,
@@ -45,26 +66,6 @@ import {
45
66
  TableMember,
46
67
  ValidationException,
47
68
  } from "../models/models_0";
48
- import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
49
- import {
50
- expectBoolean as __expectBoolean,
51
- expectInt32 as __expectInt32,
52
- expectLong as __expectLong,
53
- expectNonNull as __expectNonNull,
54
- expectNumber as __expectNumber,
55
- expectString as __expectString,
56
- expectUnion as __expectUnion,
57
- limitedParseDouble as __limitedParseDouble,
58
- parseEpochTimestamp as __parseEpochTimestamp,
59
- } from "@aws-sdk/smithy-client";
60
- import {
61
- Endpoint as __Endpoint,
62
- HeaderBag as __HeaderBag,
63
- MetadataBearer as __MetadataBearer,
64
- ResponseMetadata as __ResponseMetadata,
65
- SerdeContext as __SerdeContext,
66
- SmithyException as __SmithyException,
67
- } from "@aws-sdk/types";
68
69
 
69
70
  export const serializeAws_json1_1BatchExecuteStatementCommand = async (
70
71
  input: BatchExecuteStatementCommandInput,
@@ -222,7 +223,7 @@ const deserializeAws_json1_1BatchExecuteStatementCommandError = async (
222
223
  body: await parseBody(output.body, context),
223
224
  };
224
225
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
225
- let errorCode: string = "UnknownError";
226
+ let errorCode = "UnknownError";
226
227
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
227
228
  switch (errorCode) {
228
229
  case "ActiveStatementsExceededException":
@@ -292,7 +293,7 @@ const deserializeAws_json1_1CancelStatementCommandError = async (
292
293
  body: await parseBody(output.body, context),
293
294
  };
294
295
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
295
- let errorCode: string = "UnknownError";
296
+ let errorCode = "UnknownError";
296
297
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
297
298
  switch (errorCode) {
298
299
  case "InternalServerException":
@@ -362,7 +363,7 @@ const deserializeAws_json1_1DescribeStatementCommandError = async (
362
363
  body: await parseBody(output.body, context),
363
364
  };
364
365
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
365
- let errorCode: string = "UnknownError";
366
+ let errorCode = "UnknownError";
366
367
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
367
368
  switch (errorCode) {
368
369
  case "InternalServerException":
@@ -432,7 +433,7 @@ const deserializeAws_json1_1DescribeTableCommandError = async (
432
433
  body: await parseBody(output.body, context),
433
434
  };
434
435
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
435
- let errorCode: string = "UnknownError";
436
+ let errorCode = "UnknownError";
436
437
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
437
438
  switch (errorCode) {
438
439
  case "InternalServerException":
@@ -494,7 +495,7 @@ const deserializeAws_json1_1ExecuteStatementCommandError = async (
494
495
  body: await parseBody(output.body, context),
495
496
  };
496
497
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
497
- let errorCode: string = "UnknownError";
498
+ let errorCode = "UnknownError";
498
499
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
499
500
  switch (errorCode) {
500
501
  case "ActiveStatementsExceededException":
@@ -564,7 +565,7 @@ const deserializeAws_json1_1GetStatementResultCommandError = async (
564
565
  body: await parseBody(output.body, context),
565
566
  };
566
567
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
567
- let errorCode: string = "UnknownError";
568
+ let errorCode = "UnknownError";
568
569
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
569
570
  switch (errorCode) {
570
571
  case "InternalServerException":
@@ -634,7 +635,7 @@ const deserializeAws_json1_1ListDatabasesCommandError = async (
634
635
  body: await parseBody(output.body, context),
635
636
  };
636
637
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
637
- let errorCode: string = "UnknownError";
638
+ let errorCode = "UnknownError";
638
639
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
639
640
  switch (errorCode) {
640
641
  case "InternalServerException":
@@ -696,7 +697,7 @@ const deserializeAws_json1_1ListSchemasCommandError = async (
696
697
  body: await parseBody(output.body, context),
697
698
  };
698
699
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
699
- let errorCode: string = "UnknownError";
700
+ let errorCode = "UnknownError";
700
701
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
701
702
  switch (errorCode) {
702
703
  case "InternalServerException":
@@ -758,7 +759,7 @@ const deserializeAws_json1_1ListStatementsCommandError = async (
758
759
  body: await parseBody(output.body, context),
759
760
  };
760
761
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
761
- let errorCode: string = "UnknownError";
762
+ let errorCode = "UnknownError";
762
763
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
763
764
  switch (errorCode) {
764
765
  case "InternalServerException":
@@ -820,7 +821,7 @@ const deserializeAws_json1_1ListTablesCommandError = async (
820
821
  body: await parseBody(output.body, context),
821
822
  };
822
823
  let response: __SmithyException & __MetadataBearer & { [key: string]: any };
823
- let errorCode: string = "UnknownError";
824
+ let errorCode = "UnknownError";
824
825
  errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
825
826
  switch (errorCode) {
826
827
  case "InternalServerException":
@@ -1,5 +1,3 @@
1
- import packageInfo from "./package.json";
2
-
3
1
  import { Sha256 } from "@aws-crypto/sha256-browser";
4
2
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
5
3
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
@@ -8,6 +6,9 @@ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
8
6
  import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
9
7
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
10
8
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
9
+
10
+ // @ts-ignore: package.json will be imported from dist folders
11
+ import packageInfo from "../package.json";
11
12
  import { RedshiftDataClientConfig } from "./RedshiftDataClient";
12
13
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
14
 
@@ -1,4 +1,5 @@
1
1
  import { Sha256 } from "@aws-crypto/sha256-js";
2
+
2
3
  import { RedshiftDataClientConfig } from "./RedshiftDataClient";
3
4
  import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
4
5
 
@@ -1,6 +1,7 @@
1
- import { defaultRegionInfoProvider } from "./endpoints";
2
1
  import { Logger as __Logger } from "@aws-sdk/types";
3
2
  import { parseUrl } from "@aws-sdk/url-parser";
3
+
4
+ import { defaultRegionInfoProvider } from "./endpoints";
4
5
  import { RedshiftDataClientConfig } from "./RedshiftDataClient";
5
6
 
6
7
  /**
@@ -1,5 +1,3 @@
1
- import packageInfo from "./package.json";
2
-
3
1
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
2
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
5
3
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
@@ -7,13 +5,16 @@ import { Hash } from "@aws-sdk/hash-node";
7
5
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
8
6
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
7
  import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
8
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
10
9
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
10
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
11
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
12
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
13
+
14
+ // @ts-ignore: package.json will be imported from dist folders
15
+ import packageInfo from "../package.json";
14
16
  import { RedshiftDataClientConfig } from "./RedshiftDataClient";
15
17
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
16
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
17
18
 
18
19
  /**
19
20
  * @internal
package/tsconfig.es.json CHANGED
@@ -4,9 +4,7 @@
4
4
  "target": "es5",
5
5
  "module": "esnext",
6
6
  "moduleResolution": "node",
7
- "declaration": false,
8
- "declarationDir": null,
9
7
  "lib": ["dom", "es5", "es2015.promise", "es2015.collection", "es2015.iterable", "es2015.symbol.wellknown"],
10
- "outDir": "dist/es"
8
+ "outDir": "dist-es"
11
9
  }
12
10
  }
package/tsconfig.json CHANGED
@@ -3,7 +3,6 @@
3
3
  "alwaysStrict": true,
4
4
  "target": "ES2018",
5
5
  "module": "commonjs",
6
- "declaration": true,
7
6
  "strict": true,
8
7
  "sourceMap": true,
9
8
  "downlevelIteration": true,
@@ -12,9 +11,9 @@
12
11
  "incremental": true,
13
12
  "resolveJsonModule": true,
14
13
  "esModuleInterop": true,
15
- "declarationDir": "./dist/types",
16
- "outDir": "dist/cjs",
17
- "useUnknownInCatchVariables": false
14
+ "rootDir": "src",
15
+ "outDir": "dist-cjs",
16
+ "removeComments": true
18
17
  },
19
18
  "typedocOptions": {
20
19
  "exclude": ["**/node_modules/**", "**/*.spec.ts", "**/protocols/*.ts", "**/e2e/*.ts", "**/endpoints.ts"],
@@ -24,10 +23,11 @@
24
23
  "ignoreCompilerErrors": true,
25
24
  "includeDeclarations": true,
26
25
  "stripInternal": true,
27
- "readme": "./README.md",
26
+ "readme": "README.md",
28
27
  "mode": "file",
29
- "out": "./docs",
28
+ "out": "docs",
30
29
  "theme": "minimal",
31
30
  "plugin": ["@aws-sdk/client-documentation-generator"]
32
- }
31
+ },
32
+ "exclude": ["test/**/*"]
33
33
  }