@aws-sdk/client-redshift-data 3.35.0 → 3.38.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 (173) hide show
  1. package/CHANGELOG.md +47 -0
  2. package/dist-cjs/RedshiftData.js +0 -8
  3. package/dist-cjs/RedshiftDataClient.js +0 -13
  4. package/dist-cjs/commands/BatchExecuteStatementCommand.js +0 -39
  5. package/dist-cjs/commands/CancelStatementCommand.js +0 -25
  6. package/dist-cjs/commands/DescribeStatementCommand.js +0 -27
  7. package/dist-cjs/commands/DescribeTableCommand.js +0 -40
  8. package/dist-cjs/commands/ExecuteStatementCommand.js +0 -39
  9. package/dist-cjs/commands/GetStatementResultCommand.js +0 -26
  10. package/dist-cjs/commands/ListDatabasesCommand.js +0 -39
  11. package/dist-cjs/commands/ListSchemasCommand.js +0 -39
  12. package/dist-cjs/commands/ListStatementsCommand.js +0 -26
  13. package/dist-cjs/commands/ListTablesCommand.js +0 -40
  14. package/dist-cjs/commands/index.js +13 -0
  15. package/dist-cjs/endpoints.js +1 -2
  16. package/dist-cjs/index.js +4 -20
  17. package/dist-cjs/models/index.js +0 -1
  18. package/dist-cjs/models/models_0.js +0 -97
  19. package/dist-cjs/pagination/DescribeTablePaginator.js +0 -11
  20. package/dist-cjs/pagination/GetStatementResultPaginator.js +0 -11
  21. package/dist-cjs/pagination/Interfaces.js +0 -1
  22. package/dist-cjs/pagination/ListDatabasesPaginator.js +0 -11
  23. package/dist-cjs/pagination/ListSchemasPaginator.js +0 -11
  24. package/dist-cjs/pagination/ListStatementsPaginator.js +0 -11
  25. package/dist-cjs/pagination/ListTablesPaginator.js +0 -11
  26. package/dist-cjs/pagination/index.js +10 -0
  27. package/dist-cjs/protocols/Aws_json1_1.js +0 -6
  28. package/dist-cjs/runtimeConfig.browser.js +1 -6
  29. package/dist-cjs/runtimeConfig.js +2 -7
  30. package/dist-cjs/runtimeConfig.native.js +0 -4
  31. package/dist-cjs/runtimeConfig.shared.js +0 -4
  32. package/dist-es/RedshiftData.js +0 -1
  33. package/dist-es/RedshiftDataClient.js +0 -1
  34. package/dist-es/commands/BatchExecuteStatementCommand.js +0 -1
  35. package/dist-es/commands/CancelStatementCommand.js +0 -1
  36. package/dist-es/commands/DescribeStatementCommand.js +0 -1
  37. package/dist-es/commands/DescribeTableCommand.js +0 -1
  38. package/dist-es/commands/ExecuteStatementCommand.js +0 -1
  39. package/dist-es/commands/GetStatementResultCommand.js +0 -1
  40. package/dist-es/commands/ListDatabasesCommand.js +0 -1
  41. package/dist-es/commands/ListSchemasCommand.js +0 -1
  42. package/dist-es/commands/ListStatementsCommand.js +0 -1
  43. package/dist-es/commands/ListTablesCommand.js +0 -1
  44. package/dist-es/commands/index.js +10 -0
  45. package/dist-es/endpoints.js +1 -2
  46. package/dist-es/index.js +4 -20
  47. package/dist-es/models/index.js +0 -1
  48. package/dist-es/models/models_0.js +0 -1
  49. package/dist-es/pagination/DescribeTablePaginator.js +0 -1
  50. package/dist-es/pagination/GetStatementResultPaginator.js +0 -1
  51. package/dist-es/pagination/Interfaces.js +0 -1
  52. package/dist-es/pagination/ListDatabasesPaginator.js +0 -1
  53. package/dist-es/pagination/ListSchemasPaginator.js +0 -1
  54. package/dist-es/pagination/ListStatementsPaginator.js +0 -1
  55. package/dist-es/pagination/ListTablesPaginator.js +0 -1
  56. package/dist-es/pagination/index.js +7 -0
  57. package/dist-es/protocols/Aws_json1_1.js +0 -1
  58. package/dist-es/runtimeConfig.browser.js +1 -2
  59. package/dist-es/runtimeConfig.js +2 -3
  60. package/dist-es/runtimeConfig.native.js +0 -1
  61. package/dist-es/runtimeConfig.shared.js +0 -1
  62. package/dist-types/commands/index.d.ts +10 -0
  63. package/dist-types/index.d.ts +4 -19
  64. package/dist-types/pagination/index.d.ts +7 -0
  65. package/dist-types/ts3.4/RedshiftData.d.ts +11 -127
  66. package/dist-types/ts3.4/RedshiftDataClient.d.ts +24 -93
  67. package/dist-types/ts3.4/commands/BatchExecuteStatementCommand.d.ts +2 -34
  68. package/dist-types/ts3.4/commands/CancelStatementCommand.d.ts +2 -20
  69. package/dist-types/ts3.4/commands/DescribeStatementCommand.d.ts +2 -22
  70. package/dist-types/ts3.4/commands/DescribeTableCommand.d.ts +2 -35
  71. package/dist-types/ts3.4/commands/ExecuteStatementCommand.d.ts +2 -34
  72. package/dist-types/ts3.4/commands/GetStatementResultCommand.d.ts +2 -21
  73. package/dist-types/ts3.4/commands/ListDatabasesCommand.d.ts +2 -34
  74. package/dist-types/ts3.4/commands/ListSchemasCommand.d.ts +2 -34
  75. package/dist-types/ts3.4/commands/ListStatementsCommand.d.ts +2 -21
  76. package/dist-types/ts3.4/commands/ListTablesCommand.d.ts +2 -35
  77. package/dist-types/ts3.4/commands/index.d.ts +10 -0
  78. package/dist-types/ts3.4/index.d.ts +4 -19
  79. package/dist-types/ts3.4/models/models_0.d.ts +198 -688
  80. package/dist-types/ts3.4/pagination/index.d.ts +7 -0
  81. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  82. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  83. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  84. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  85. package/package.json +33 -30
  86. package/dist-cjs/RedshiftData.js.map +0 -1
  87. package/dist-cjs/RedshiftDataClient.js.map +0 -1
  88. package/dist-cjs/commands/BatchExecuteStatementCommand.js.map +0 -1
  89. package/dist-cjs/commands/CancelStatementCommand.js.map +0 -1
  90. package/dist-cjs/commands/DescribeStatementCommand.js.map +0 -1
  91. package/dist-cjs/commands/DescribeTableCommand.js.map +0 -1
  92. package/dist-cjs/commands/ExecuteStatementCommand.js.map +0 -1
  93. package/dist-cjs/commands/GetStatementResultCommand.js.map +0 -1
  94. package/dist-cjs/commands/ListDatabasesCommand.js.map +0 -1
  95. package/dist-cjs/commands/ListSchemasCommand.js.map +0 -1
  96. package/dist-cjs/commands/ListStatementsCommand.js.map +0 -1
  97. package/dist-cjs/commands/ListTablesCommand.js.map +0 -1
  98. package/dist-cjs/endpoints.js.map +0 -1
  99. package/dist-cjs/index.js.map +0 -1
  100. package/dist-cjs/models/index.js.map +0 -1
  101. package/dist-cjs/models/models_0.js.map +0 -1
  102. package/dist-cjs/pagination/DescribeTablePaginator.js.map +0 -1
  103. package/dist-cjs/pagination/GetStatementResultPaginator.js.map +0 -1
  104. package/dist-cjs/pagination/Interfaces.js.map +0 -1
  105. package/dist-cjs/pagination/ListDatabasesPaginator.js.map +0 -1
  106. package/dist-cjs/pagination/ListSchemasPaginator.js.map +0 -1
  107. package/dist-cjs/pagination/ListStatementsPaginator.js.map +0 -1
  108. package/dist-cjs/pagination/ListTablesPaginator.js.map +0 -1
  109. package/dist-cjs/protocols/Aws_json1_1.js.map +0 -1
  110. package/dist-cjs/runtimeConfig.browser.js.map +0 -1
  111. package/dist-cjs/runtimeConfig.js.map +0 -1
  112. package/dist-cjs/runtimeConfig.native.js.map +0 -1
  113. package/dist-cjs/runtimeConfig.shared.js.map +0 -1
  114. package/dist-es/RedshiftData.js.map +0 -1
  115. package/dist-es/RedshiftDataClient.js.map +0 -1
  116. package/dist-es/commands/BatchExecuteStatementCommand.js.map +0 -1
  117. package/dist-es/commands/CancelStatementCommand.js.map +0 -1
  118. package/dist-es/commands/DescribeStatementCommand.js.map +0 -1
  119. package/dist-es/commands/DescribeTableCommand.js.map +0 -1
  120. package/dist-es/commands/ExecuteStatementCommand.js.map +0 -1
  121. package/dist-es/commands/GetStatementResultCommand.js.map +0 -1
  122. package/dist-es/commands/ListDatabasesCommand.js.map +0 -1
  123. package/dist-es/commands/ListSchemasCommand.js.map +0 -1
  124. package/dist-es/commands/ListStatementsCommand.js.map +0 -1
  125. package/dist-es/commands/ListTablesCommand.js.map +0 -1
  126. package/dist-es/endpoints.js.map +0 -1
  127. package/dist-es/index.js.map +0 -1
  128. package/dist-es/models/index.js.map +0 -1
  129. package/dist-es/models/models_0.js.map +0 -1
  130. package/dist-es/pagination/DescribeTablePaginator.js.map +0 -1
  131. package/dist-es/pagination/GetStatementResultPaginator.js.map +0 -1
  132. package/dist-es/pagination/Interfaces.js.map +0 -1
  133. package/dist-es/pagination/ListDatabasesPaginator.js.map +0 -1
  134. package/dist-es/pagination/ListSchemasPaginator.js.map +0 -1
  135. package/dist-es/pagination/ListStatementsPaginator.js.map +0 -1
  136. package/dist-es/pagination/ListTablesPaginator.js.map +0 -1
  137. package/dist-es/protocols/Aws_json1_1.js.map +0 -1
  138. package/dist-es/runtimeConfig.browser.js.map +0 -1
  139. package/dist-es/runtimeConfig.js.map +0 -1
  140. package/dist-es/runtimeConfig.native.js.map +0 -1
  141. package/dist-es/runtimeConfig.shared.js.map +0 -1
  142. package/jest.config.js +0 -4
  143. package/src/RedshiftData.ts +0 -452
  144. package/src/RedshiftDataClient.ts +0 -273
  145. package/src/commands/BatchExecuteStatementCommand.ts +0 -109
  146. package/src/commands/CancelStatementCommand.ts +0 -95
  147. package/src/commands/DescribeStatementCommand.ts +0 -97
  148. package/src/commands/DescribeTableCommand.ts +0 -110
  149. package/src/commands/ExecuteStatementCommand.ts +0 -109
  150. package/src/commands/GetStatementResultCommand.ts +0 -96
  151. package/src/commands/ListDatabasesCommand.ts +0 -109
  152. package/src/commands/ListSchemasCommand.ts +0 -109
  153. package/src/commands/ListStatementsCommand.ts +0 -96
  154. package/src/commands/ListTablesCommand.ts +0 -110
  155. package/src/endpoints.ts +0 -57
  156. package/src/index.ts +0 -20
  157. package/src/models/index.ts +0 -1
  158. package/src/models/models_0.ts +0 -1379
  159. package/src/pagination/DescribeTablePaginator.ts +0 -59
  160. package/src/pagination/GetStatementResultPaginator.ts +0 -58
  161. package/src/pagination/Interfaces.ts +0 -8
  162. package/src/pagination/ListDatabasesPaginator.ts +0 -59
  163. package/src/pagination/ListSchemasPaginator.ts +0 -55
  164. package/src/pagination/ListStatementsPaginator.ts +0 -59
  165. package/src/pagination/ListTablesPaginator.ts +0 -55
  166. package/src/protocols/Aws_json1_1.ts +0 -1615
  167. package/src/runtimeConfig.browser.ts +0 -41
  168. package/src/runtimeConfig.native.ts +0 -17
  169. package/src/runtimeConfig.shared.ts +0 -17
  170. package/src/runtimeConfig.ts +0 -46
  171. package/tsconfig.es.json +0 -10
  172. package/tsconfig.json +0 -33
  173. package/tsconfig.types.json +0 -9
@@ -37,4 +37,3 @@ var BatchExecuteStatementCommand = (function (_super) {
37
37
  return BatchExecuteStatementCommand;
38
38
  }($Command));
39
39
  export { BatchExecuteStatementCommand };
40
- //# sourceMappingURL=BatchExecuteStatementCommand.js.map
@@ -37,4 +37,3 @@ var CancelStatementCommand = (function (_super) {
37
37
  return CancelStatementCommand;
38
38
  }($Command));
39
39
  export { CancelStatementCommand };
40
- //# sourceMappingURL=CancelStatementCommand.js.map
@@ -37,4 +37,3 @@ var DescribeStatementCommand = (function (_super) {
37
37
  return DescribeStatementCommand;
38
38
  }($Command));
39
39
  export { DescribeStatementCommand };
40
- //# sourceMappingURL=DescribeStatementCommand.js.map
@@ -37,4 +37,3 @@ var DescribeTableCommand = (function (_super) {
37
37
  return DescribeTableCommand;
38
38
  }($Command));
39
39
  export { DescribeTableCommand };
40
- //# sourceMappingURL=DescribeTableCommand.js.map
@@ -37,4 +37,3 @@ var ExecuteStatementCommand = (function (_super) {
37
37
  return ExecuteStatementCommand;
38
38
  }($Command));
39
39
  export { ExecuteStatementCommand };
40
- //# sourceMappingURL=ExecuteStatementCommand.js.map
@@ -37,4 +37,3 @@ var GetStatementResultCommand = (function (_super) {
37
37
  return GetStatementResultCommand;
38
38
  }($Command));
39
39
  export { GetStatementResultCommand };
40
- //# sourceMappingURL=GetStatementResultCommand.js.map
@@ -37,4 +37,3 @@ var ListDatabasesCommand = (function (_super) {
37
37
  return ListDatabasesCommand;
38
38
  }($Command));
39
39
  export { ListDatabasesCommand };
40
- //# sourceMappingURL=ListDatabasesCommand.js.map
@@ -37,4 +37,3 @@ var ListSchemasCommand = (function (_super) {
37
37
  return ListSchemasCommand;
38
38
  }($Command));
39
39
  export { ListSchemasCommand };
40
- //# sourceMappingURL=ListSchemasCommand.js.map
@@ -37,4 +37,3 @@ var ListStatementsCommand = (function (_super) {
37
37
  return ListStatementsCommand;
38
38
  }($Command));
39
39
  export { ListStatementsCommand };
40
- //# sourceMappingURL=ListStatementsCommand.js.map
@@ -37,4 +37,3 @@ var ListTablesCommand = (function (_super) {
37
37
  return ListTablesCommand;
38
38
  }($Command));
39
39
  export { ListTablesCommand };
40
- //# sourceMappingURL=ListTablesCommand.js.map
@@ -0,0 +1,10 @@
1
+ export * from "./BatchExecuteStatementCommand";
2
+ export * from "./CancelStatementCommand";
3
+ export * from "./DescribeStatementCommand";
4
+ export * from "./DescribeTableCommand";
5
+ export * from "./ExecuteStatementCommand";
6
+ export * from "./GetStatementResultCommand";
7
+ export * from "./ListDatabasesCommand";
8
+ export * from "./ListSchemasCommand";
9
+ export * from "./ListStatementsCommand";
10
+ export * from "./ListTablesCommand";
@@ -33,7 +33,7 @@ var partitionHash = {
33
33
  hostname: "redshift-data.{region}.amazonaws.com.cn",
34
34
  },
35
35
  "aws-iso": {
36
- regions: ["us-iso-east-1"],
36
+ regions: ["us-iso-east-1", "us-iso-west-1"],
37
37
  hostname: "redshift-data.{region}.c2s.ic.gov",
38
38
  },
39
39
  "aws-iso-b": {
@@ -50,4 +50,3 @@ export var defaultRegionInfoProvider = function (region, options) { return __awa
50
50
  return [2, getRegionInfo(region, __assign(__assign({}, options), { signingService: "redshift-data", regionHash: regionHash, partitionHash: partitionHash }))];
51
51
  });
52
52
  }); };
53
- //# sourceMappingURL=endpoints.js.map
package/dist-es/index.js CHANGED
@@ -1,21 +1,5 @@
1
- export * from "./RedshiftDataClient";
2
1
  export * from "./RedshiftData";
3
- export * from "./commands/BatchExecuteStatementCommand";
4
- export * from "./commands/CancelStatementCommand";
5
- export * from "./commands/DescribeStatementCommand";
6
- export * from "./commands/DescribeTableCommand";
7
- export * from "./pagination/DescribeTablePaginator";
8
- export * from "./commands/ExecuteStatementCommand";
9
- export * from "./commands/GetStatementResultCommand";
10
- export * from "./pagination/GetStatementResultPaginator";
11
- export * from "./commands/ListDatabasesCommand";
12
- export * from "./pagination/ListDatabasesPaginator";
13
- export * from "./commands/ListSchemasCommand";
14
- export * from "./pagination/ListSchemasPaginator";
15
- export * from "./commands/ListStatementsCommand";
16
- export * from "./pagination/ListStatementsPaginator";
17
- export * from "./commands/ListTablesCommand";
18
- export * from "./pagination/ListTablesPaginator";
19
- export * from "./pagination/Interfaces";
20
- export * from "./models/index";
21
- //# sourceMappingURL=index.js.map
2
+ export * from "./RedshiftDataClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
@@ -1,2 +1 @@
1
1
  export * from "./models_0";
2
- //# sourceMappingURL=index.js.map
@@ -177,4 +177,3 @@ export var ListTablesResponse;
177
177
  (function (ListTablesResponse) {
178
178
  ListTablesResponse.filterSensitiveLog = function (obj) { return (__assign({}, obj)); };
179
179
  })(ListTablesResponse || (ListTablesResponse = {}));
180
- //# sourceMappingURL=models_0.js.map
@@ -72,4 +72,3 @@ export function paginateDescribeTable(config, input) {
72
72
  });
73
73
  });
74
74
  }
75
- //# sourceMappingURL=DescribeTablePaginator.js.map
@@ -71,4 +71,3 @@ export function paginateGetStatementResult(config, input) {
71
71
  });
72
72
  });
73
73
  }
74
- //# sourceMappingURL=GetStatementResultPaginator.js.map
@@ -1,2 +1 @@
1
1
  export {};
2
- //# sourceMappingURL=Interfaces.js.map
@@ -72,4 +72,3 @@ export function paginateListDatabases(config, input) {
72
72
  });
73
73
  });
74
74
  }
75
- //# sourceMappingURL=ListDatabasesPaginator.js.map
@@ -72,4 +72,3 @@ export function paginateListSchemas(config, input) {
72
72
  });
73
73
  });
74
74
  }
75
- //# sourceMappingURL=ListSchemasPaginator.js.map
@@ -72,4 +72,3 @@ export function paginateListStatements(config, input) {
72
72
  });
73
73
  });
74
74
  }
75
- //# sourceMappingURL=ListStatementsPaginator.js.map
@@ -72,4 +72,3 @@ export function paginateListTables(config, input) {
72
72
  });
73
73
  });
74
74
  }
75
- //# sourceMappingURL=ListTablesPaginator.js.map
@@ -0,0 +1,7 @@
1
+ export * from "./DescribeTablePaginator";
2
+ export * from "./GetStatementResultPaginator";
3
+ export * from "./Interfaces";
4
+ export * from "./ListDatabasesPaginator";
5
+ export * from "./ListSchemasPaginator";
6
+ export * from "./ListStatementsPaginator";
7
+ export * from "./ListTablesPaginator";
@@ -1333,4 +1333,3 @@ var loadRestJsonErrorCode = function (output, data) {
1333
1333
  }
1334
1334
  return "";
1335
1335
  };
1336
- //# sourceMappingURL=Aws_json1_1.js.map
@@ -1,4 +1,5 @@
1
1
  import { __assign } from "tslib";
2
+ import packageInfo from "../package.json";
2
3
  import { Sha256 } from "@aws-crypto/sha256-browser";
3
4
  import { FetchHttpHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
4
5
  import { invalidProvider } from "@aws-sdk/invalid-dependency";
@@ -7,11 +8,9 @@ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
7
8
  import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
8
9
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
9
10
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
10
- import packageInfo from "../package.json";
11
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
12
  export var getRuntimeConfig = function (config) {
13
13
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
14
14
  var clientSharedValues = getSharedRuntimeConfig(config);
15
15
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (function (_) { return function () { return Promise.reject(new Error("Credential is missing")); }; }), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : DEFAULT_MAX_ATTEMPTS, region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalidProvider("Region is missing"), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new FetchHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return Promise.resolve(DEFAULT_RETRY_MODE); }), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Sha256, streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
16
16
  };
17
- //# sourceMappingURL=runtimeConfig.browser.js.map
@@ -1,4 +1,5 @@
1
1
  import { __assign } from "tslib";
2
+ import packageInfo from "../package.json";
2
3
  import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
3
4
  import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS } from "@aws-sdk/config-resolver";
4
5
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
@@ -6,17 +7,15 @@ import { Hash } from "@aws-sdk/hash-node";
6
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@aws-sdk/middleware-retry";
7
8
  import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
8
9
  import { NodeHttpHandler, streamCollector } from "@aws-sdk/node-http-handler";
9
- import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
10
10
  import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
11
  import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
12
  import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
13
  import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
- import packageInfo from "../package.json";
15
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
16
16
  export var getRuntimeConfig = function (config) {
17
17
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
18
18
  emitWarningIfUnsupportedVersion(process.version);
19
19
  var clientSharedValues = getSharedRuntimeConfig(config);
20
20
  return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : fromBase64, base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : toBase64, bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : calculateBodyLength, credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : decorateDefaultCredentialProvider(credentialDefaultProvider), defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new NodeHttpHandler(), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(NODE_RETRY_MODE_CONFIG_OPTIONS), sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : Hash.bind(null, "sha256"), streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : streamCollector, utf8Decoder: (_m = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _m !== void 0 ? _m : fromUtf8, utf8Encoder: (_o = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _o !== void 0 ? _o : toUtf8 });
21
21
  };
22
- //# sourceMappingURL=runtimeConfig.js.map
@@ -6,4 +6,3 @@ export var getRuntimeConfig = function (config) {
6
6
  var browserDefaults = getBrowserRuntimeConfig(config);
7
7
  return __assign(__assign(__assign({}, browserDefaults), config), { runtime: "react-native", sha256: (_a = config === null || config === void 0 ? void 0 : config.sha256) !== null && _a !== void 0 ? _a : Sha256 });
8
8
  };
9
- //# sourceMappingURL=runtimeConfig.native.js.map
@@ -11,4 +11,3 @@ export var getRuntimeConfig = function (config) {
11
11
  urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
12
12
  });
13
13
  };
14
- //# sourceMappingURL=runtimeConfig.shared.js.map
@@ -0,0 +1,10 @@
1
+ export * from "./BatchExecuteStatementCommand";
2
+ export * from "./CancelStatementCommand";
3
+ export * from "./DescribeStatementCommand";
4
+ export * from "./DescribeTableCommand";
5
+ export * from "./ExecuteStatementCommand";
6
+ export * from "./GetStatementResultCommand";
7
+ export * from "./ListDatabasesCommand";
8
+ export * from "./ListSchemasCommand";
9
+ export * from "./ListStatementsCommand";
10
+ export * from "./ListTablesCommand";
@@ -1,20 +1,5 @@
1
- export * from "./RedshiftDataClient";
2
1
  export * from "./RedshiftData";
3
- export * from "./commands/BatchExecuteStatementCommand";
4
- export * from "./commands/CancelStatementCommand";
5
- export * from "./commands/DescribeStatementCommand";
6
- export * from "./commands/DescribeTableCommand";
7
- export * from "./pagination/DescribeTablePaginator";
8
- export * from "./commands/ExecuteStatementCommand";
9
- export * from "./commands/GetStatementResultCommand";
10
- export * from "./pagination/GetStatementResultPaginator";
11
- export * from "./commands/ListDatabasesCommand";
12
- export * from "./pagination/ListDatabasesPaginator";
13
- export * from "./commands/ListSchemasCommand";
14
- export * from "./pagination/ListSchemasPaginator";
15
- export * from "./commands/ListStatementsCommand";
16
- export * from "./pagination/ListStatementsPaginator";
17
- export * from "./commands/ListTablesCommand";
18
- export * from "./pagination/ListTablesPaginator";
19
- export * from "./pagination/Interfaces";
20
- export * from "./models/index";
2
+ export * from "./RedshiftDataClient";
3
+ export * from "./commands";
4
+ export * from "./models";
5
+ export * from "./pagination";
@@ -0,0 +1,7 @@
1
+ export * from "./DescribeTablePaginator";
2
+ export * from "./GetStatementResultPaginator";
3
+ export * from "./Interfaces";
4
+ export * from "./ListDatabasesPaginator";
5
+ export * from "./ListSchemasPaginator";
6
+ export * from "./ListStatementsPaginator";
7
+ export * from "./ListTablesPaginator";
@@ -10,161 +10,45 @@ import { ListSchemasCommandInput, ListSchemasCommandOutput } from "./commands/Li
10
10
  import { ListStatementsCommandInput, ListStatementsCommandOutput } from "./commands/ListStatementsCommand";
11
11
  import { ListTablesCommandInput, ListTablesCommandOutput } from "./commands/ListTablesCommand";
12
12
  import { RedshiftDataClient } from "./RedshiftDataClient";
13
- /**
14
- * <p>You can use the Amazon Redshift Data API to run queries on Amazon Redshift tables. You
15
- * can run SQL statements, which are committed if the statement succeeds. </p>
16
- * <p>For more information about the Amazon Redshift Data API, see
17
- * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
18
- * <i>Amazon Redshift Cluster Management Guide</i>. </p>
19
- */
13
+
20
14
  export declare class RedshiftData extends RedshiftDataClient {
21
- /**
22
- * <p>Runs one or more SQL statements, which can be data manipulation language (DML) or data definition
23
- * language (DDL).
24
- * Depending on the authorization
25
- * method, use one of the following combinations of request parameters: </p>
26
- * <ul>
27
- * <li>
28
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
29
- * cluster identifier that matches the cluster in the secret. </p>
30
- * </li>
31
- * <li>
32
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the
33
- * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
34
- * operation is required to use this method. </p>
35
- * </li>
36
- * </ul>
37
- */
15
+
38
16
  batchExecuteStatement(args: BatchExecuteStatementCommandInput, options?: __HttpHandlerOptions): Promise<BatchExecuteStatementCommandOutput>;
39
17
  batchExecuteStatement(args: BatchExecuteStatementCommandInput, cb: (err: any, data?: BatchExecuteStatementCommandOutput) => void): void;
40
18
  batchExecuteStatement(args: BatchExecuteStatementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: BatchExecuteStatementCommandOutput) => void): void;
41
- /**
42
- * <p>Cancels a running query. To be canceled, a query must be running. </p>
43
- */
19
+
44
20
  cancelStatement(args: CancelStatementCommandInput, options?: __HttpHandlerOptions): Promise<CancelStatementCommandOutput>;
45
21
  cancelStatement(args: CancelStatementCommandInput, cb: (err: any, data?: CancelStatementCommandOutput) => void): void;
46
22
  cancelStatement(args: CancelStatementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelStatementCommandOutput) => void): void;
47
- /**
48
- * <p>Describes the details about a specific instance when a query was run by the Amazon Redshift Data API. The information
49
- * includes when the query started, when it finished, the query status, the number of rows returned, and the SQL
50
- * statement. </p>
51
- */
23
+
52
24
  describeStatement(args: DescribeStatementCommandInput, options?: __HttpHandlerOptions): Promise<DescribeStatementCommandOutput>;
53
25
  describeStatement(args: DescribeStatementCommandInput, cb: (err: any, data?: DescribeStatementCommandOutput) => void): void;
54
26
  describeStatement(args: DescribeStatementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeStatementCommandOutput) => void): void;
55
- /**
56
- * <p>Describes the detailed information about a table from metadata in the cluster. The
57
- * information includes its columns.
58
- * A token is returned to page through the column list.
59
- * Depending on the authorization method, use one of the
60
- * following combinations of request parameters: </p>
61
- * <ul>
62
- * <li>
63
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
64
- * cluster identifier that matches the cluster in the secret. </p>
65
- * </li>
66
- * <li>
67
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the database
68
- * user name. Permission to call the <code>redshift:GetClusterCredentials</code> operation is
69
- * required to use this method. </p>
70
- * </li>
71
- * </ul>
72
- */
27
+
73
28
  describeTable(args: DescribeTableCommandInput, options?: __HttpHandlerOptions): Promise<DescribeTableCommandOutput>;
74
29
  describeTable(args: DescribeTableCommandInput, cb: (err: any, data?: DescribeTableCommandOutput) => void): void;
75
30
  describeTable(args: DescribeTableCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeTableCommandOutput) => void): void;
76
- /**
77
- * <p>Runs an SQL statement, which can be data manipulation language (DML) or data definition
78
- * language (DDL). This statement must be a single SQL statement.
79
- * Depending on the authorization
80
- * method, use one of the following combinations of request parameters: </p>
81
- * <ul>
82
- * <li>
83
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
84
- * cluster identifier that matches the cluster in the secret. </p>
85
- * </li>
86
- * <li>
87
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the
88
- * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
89
- * operation is required to use this method. </p>
90
- * </li>
91
- * </ul>
92
- */
31
+
93
32
  executeStatement(args: ExecuteStatementCommandInput, options?: __HttpHandlerOptions): Promise<ExecuteStatementCommandOutput>;
94
33
  executeStatement(args: ExecuteStatementCommandInput, cb: (err: any, data?: ExecuteStatementCommandOutput) => void): void;
95
34
  executeStatement(args: ExecuteStatementCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ExecuteStatementCommandOutput) => void): void;
96
- /**
97
- * <p>Fetches the temporarily cached result of an SQL statement.
98
- * A token is returned to page through the statement results. </p>
99
- */
35
+
100
36
  getStatementResult(args: GetStatementResultCommandInput, options?: __HttpHandlerOptions): Promise<GetStatementResultCommandOutput>;
101
37
  getStatementResult(args: GetStatementResultCommandInput, cb: (err: any, data?: GetStatementResultCommandOutput) => void): void;
102
38
  getStatementResult(args: GetStatementResultCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetStatementResultCommandOutput) => void): void;
103
- /**
104
- * <p>List the databases in a cluster.
105
- * A token is returned to page through the database list.
106
- * Depending on the authorization method, use one of the
107
- * following combinations of request parameters: </p>
108
- * <ul>
109
- * <li>
110
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
111
- * cluster identifier that matches the cluster in the secret. </p>
112
- * </li>
113
- * <li>
114
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the
115
- * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
116
- * operation is required to use this method. </p>
117
- * </li>
118
- * </ul>
119
- */
39
+
120
40
  listDatabases(args: ListDatabasesCommandInput, options?: __HttpHandlerOptions): Promise<ListDatabasesCommandOutput>;
121
41
  listDatabases(args: ListDatabasesCommandInput, cb: (err: any, data?: ListDatabasesCommandOutput) => void): void;
122
42
  listDatabases(args: ListDatabasesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDatabasesCommandOutput) => void): void;
123
- /**
124
- * <p>Lists the schemas in a database.
125
- * A token is returned to page through the schema list.
126
- * Depending on the authorization method, use one of the
127
- * following combinations of request parameters: </p>
128
- * <ul>
129
- * <li>
130
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
131
- * cluster identifier that matches the cluster in the secret. </p>
132
- * </li>
133
- * <li>
134
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the
135
- * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
136
- * operation is required to use this method. </p>
137
- * </li>
138
- * </ul>
139
- */
43
+
140
44
  listSchemas(args: ListSchemasCommandInput, options?: __HttpHandlerOptions): Promise<ListSchemasCommandOutput>;
141
45
  listSchemas(args: ListSchemasCommandInput, cb: (err: any, data?: ListSchemasCommandOutput) => void): void;
142
46
  listSchemas(args: ListSchemasCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSchemasCommandOutput) => void): void;
143
- /**
144
- * <p>List of SQL statements. By default, only finished statements are shown.
145
- * A token is returned to page through the statement list. </p>
146
- */
47
+
147
48
  listStatements(args: ListStatementsCommandInput, options?: __HttpHandlerOptions): Promise<ListStatementsCommandOutput>;
148
49
  listStatements(args: ListStatementsCommandInput, cb: (err: any, data?: ListStatementsCommandOutput) => void): void;
149
50
  listStatements(args: ListStatementsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListStatementsCommandOutput) => void): void;
150
- /**
151
- * <p>List the tables in a database. If neither <code>SchemaPattern</code> nor <code>TablePattern</code> are specified, then
152
- * all tables in the database are returned.
153
- * A token is returned to page through the table list.
154
- * Depending on the authorization method, use one of the
155
- * following combinations of request parameters: </p>
156
- * <ul>
157
- * <li>
158
- * <p>Secrets Manager - specify the Amazon Resource Name (ARN) of the secret, the database name, and the
159
- * cluster identifier that matches the cluster in the secret. </p>
160
- * </li>
161
- * <li>
162
- * <p>Temporary credentials - specify the cluster identifier, the database name, and the
163
- * database user name. Permission to call the <code>redshift:GetClusterCredentials</code>
164
- * operation is required to use this method. </p>
165
- * </li>
166
- * </ul>
167
- */
51
+
168
52
  listTables(args: ListTablesCommandInput, options?: __HttpHandlerOptions): Promise<ListTablesCommandOutput>;
169
53
  listTables(args: ListTablesCommandInput, cb: (err: any, data?: ListTablesCommandOutput) => void): void;
170
54
  listTables(args: ListTablesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTablesCommandOutput) => void): void;
@@ -19,128 +19,59 @@ import { ListTablesCommandInput, ListTablesCommandOutput } from "./commands/List
19
19
  export declare type ServiceInputTypes = BatchExecuteStatementCommandInput | CancelStatementCommandInput | DescribeStatementCommandInput | DescribeTableCommandInput | ExecuteStatementCommandInput | GetStatementResultCommandInput | ListDatabasesCommandInput | ListSchemasCommandInput | ListStatementsCommandInput | ListTablesCommandInput;
20
20
  export declare type ServiceOutputTypes = BatchExecuteStatementCommandOutput | CancelStatementCommandOutput | DescribeStatementCommandOutput | DescribeTableCommandOutput | ExecuteStatementCommandOutput | GetStatementResultCommandOutput | ListDatabasesCommandOutput | ListSchemasCommandOutput | ListStatementsCommandOutput | ListTablesCommandOutput;
21
21
  export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
22
- /**
23
- * The HTTP handler to use. Fetch in browser and Https in Nodejs.
24
- */
22
+
25
23
  requestHandler?: __HttpHandler;
26
- /**
27
- * A constructor for a class implementing the {@link __Hash} interface
28
- * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
29
- * @internal
30
- */
24
+
31
25
  sha256?: __HashConstructor;
32
- /**
33
- * The function that will be used to convert strings into HTTP endpoints.
34
- * @internal
35
- */
26
+
36
27
  urlParser?: __UrlParser;
37
- /**
38
- * A function that can calculate the length of a request body.
39
- * @internal
40
- */
28
+
41
29
  bodyLengthChecker?: (body: any) => number | undefined;
42
- /**
43
- * A function that converts a stream into an array of bytes.
44
- * @internal
45
- */
30
+
46
31
  streamCollector?: __StreamCollector;
47
- /**
48
- * The function that will be used to convert a base64-encoded string to a byte array.
49
- * @internal
50
- */
32
+
51
33
  base64Decoder?: __Decoder;
52
- /**
53
- * The function that will be used to convert binary data to a base64-encoded string.
54
- * @internal
55
- */
34
+
56
35
  base64Encoder?: __Encoder;
57
- /**
58
- * The function that will be used to convert a UTF8-encoded string to a byte array.
59
- * @internal
60
- */
36
+
61
37
  utf8Decoder?: __Decoder;
62
- /**
63
- * The function that will be used to convert binary data to a UTF-8 encoded string.
64
- * @internal
65
- */
38
+
66
39
  utf8Encoder?: __Encoder;
67
- /**
68
- * The runtime environment.
69
- * @internal
70
- */
40
+
71
41
  runtime?: string;
72
- /**
73
- * Disable dyanamically changing the endpoint of the client based on the hostPrefix
74
- * trait of an operation.
75
- */
42
+
76
43
  disableHostPrefix?: boolean;
77
- /**
78
- * Value for how many times a request will be made at most in case of retry.
79
- */
44
+
80
45
  maxAttempts?: number | __Provider<number>;
81
- /**
82
- * Specifies which retry algorithm to use.
83
- */
46
+
84
47
  retryMode?: string | __Provider<string>;
85
- /**
86
- * Optional logger for logging debug/info/warn/error.
87
- */
48
+
88
49
  logger?: __Logger;
89
- /**
90
- * Unique service identifier.
91
- * @internal
92
- */
50
+
93
51
  serviceId?: string;
94
- /**
95
- * The AWS region to which this client will send requests
96
- */
52
+
97
53
  region?: string | __Provider<string>;
98
- /**
99
- * Default credentials provider; Not available in browser runtime.
100
- * @internal
101
- */
54
+
102
55
  credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
103
- /**
104
- * Fetch related hostname, signing name or signing region with given region.
105
- * @internal
106
- */
56
+
107
57
  regionInfoProvider?: RegionInfoProvider;
108
- /**
109
- * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
110
- * @internal
111
- */
58
+
112
59
  defaultUserAgentProvider?: Provider<__UserAgent>;
113
60
  }
114
61
  declare type RedshiftDataClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
115
- /**
116
- * The configuration interface of RedshiftDataClient class constructor that set the region, credentials and other options.
117
- */
62
+
118
63
  export interface RedshiftDataClientConfig extends RedshiftDataClientConfigType {
119
64
  }
120
65
  declare type RedshiftDataClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
121
- /**
122
- * The resolved configuration interface of RedshiftDataClient class. This is resolved and normalized from the {@link RedshiftDataClientConfig | constructor configuration interface}.
123
- */
66
+
124
67
  export interface RedshiftDataClientResolvedConfig extends RedshiftDataClientResolvedConfigType {
125
68
  }
126
- /**
127
- * <p>You can use the Amazon Redshift Data API to run queries on Amazon Redshift tables. You
128
- * can run SQL statements, which are committed if the statement succeeds. </p>
129
- * <p>For more information about the Amazon Redshift Data API, see
130
- * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/data-api.html">Using the Amazon Redshift Data API</a> in the
131
- * <i>Amazon Redshift Cluster Management Guide</i>. </p>
132
- */
69
+
133
70
  export declare class RedshiftDataClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, RedshiftDataClientResolvedConfig> {
134
- /**
135
- * The resolved configuration of RedshiftDataClient class. This is resolved and normalized from the {@link RedshiftDataClientConfig | constructor configuration interface}.
136
- */
71
+
137
72
  readonly config: RedshiftDataClientResolvedConfig;
138
73
  constructor(configuration: RedshiftDataClientConfig);
139
- /**
140
- * Destroy underlying resources, like sockets. It's usually not necessary to do this.
141
- * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
142
- * Otherwise, sockets might stay open for quite a long time before the server terminates them.
143
- */
74
+
144
75
  destroy(): void;
145
76
  }
146
77
  export {};