@aws-sdk/client-redshift-serverless 3.107.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 (236) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/LICENSE +201 -0
  3. package/README.md +225 -0
  4. package/dist-cjs/RedshiftServerless.js +562 -0
  5. package/dist-cjs/RedshiftServerlessClient.js +37 -0
  6. package/dist-cjs/commands/ConvertRecoveryPointToSnapshotCommand.js +36 -0
  7. package/dist-cjs/commands/CreateEndpointAccessCommand.js +36 -0
  8. package/dist-cjs/commands/CreateNamespaceCommand.js +36 -0
  9. package/dist-cjs/commands/CreateSnapshotCommand.js +36 -0
  10. package/dist-cjs/commands/CreateUsageLimitCommand.js +36 -0
  11. package/dist-cjs/commands/CreateWorkgroupCommand.js +36 -0
  12. package/dist-cjs/commands/DeleteEndpointAccessCommand.js +36 -0
  13. package/dist-cjs/commands/DeleteNamespaceCommand.js +36 -0
  14. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +36 -0
  15. package/dist-cjs/commands/DeleteSnapshotCommand.js +36 -0
  16. package/dist-cjs/commands/DeleteUsageLimitCommand.js +36 -0
  17. package/dist-cjs/commands/DeleteWorkgroupCommand.js +36 -0
  18. package/dist-cjs/commands/GetCredentialsCommand.js +36 -0
  19. package/dist-cjs/commands/GetEndpointAccessCommand.js +36 -0
  20. package/dist-cjs/commands/GetNamespaceCommand.js +36 -0
  21. package/dist-cjs/commands/GetRecoveryPointCommand.js +36 -0
  22. package/dist-cjs/commands/GetResourcePolicyCommand.js +36 -0
  23. package/dist-cjs/commands/GetSnapshotCommand.js +36 -0
  24. package/dist-cjs/commands/GetUsageLimitCommand.js +36 -0
  25. package/dist-cjs/commands/GetWorkgroupCommand.js +36 -0
  26. package/dist-cjs/commands/ListEndpointAccessCommand.js +36 -0
  27. package/dist-cjs/commands/ListNamespacesCommand.js +36 -0
  28. package/dist-cjs/commands/ListRecoveryPointsCommand.js +36 -0
  29. package/dist-cjs/commands/ListSnapshotsCommand.js +36 -0
  30. package/dist-cjs/commands/ListTagsForResourceCommand.js +36 -0
  31. package/dist-cjs/commands/ListUsageLimitsCommand.js +36 -0
  32. package/dist-cjs/commands/ListWorkgroupsCommand.js +36 -0
  33. package/dist-cjs/commands/PutResourcePolicyCommand.js +36 -0
  34. package/dist-cjs/commands/RestoreFromRecoveryPointCommand.js +36 -0
  35. package/dist-cjs/commands/RestoreFromSnapshotCommand.js +36 -0
  36. package/dist-cjs/commands/TagResourceCommand.js +36 -0
  37. package/dist-cjs/commands/UntagResourceCommand.js +36 -0
  38. package/dist-cjs/commands/UpdateEndpointAccessCommand.js +36 -0
  39. package/dist-cjs/commands/UpdateNamespaceCommand.js +36 -0
  40. package/dist-cjs/commands/UpdateSnapshotCommand.js +36 -0
  41. package/dist-cjs/commands/UpdateUsageLimitCommand.js +36 -0
  42. package/dist-cjs/commands/UpdateWorkgroupCommand.js +36 -0
  43. package/dist-cjs/commands/index.js +40 -0
  44. package/dist-cjs/endpoints.js +131 -0
  45. package/dist-cjs/index.js +11 -0
  46. package/dist-cjs/models/RedshiftServerlessServiceException.js +11 -0
  47. package/dist-cjs/models/index.js +4 -0
  48. package/dist-cjs/models/models_0.js +725 -0
  49. package/dist-cjs/pagination/Interfaces.js +2 -0
  50. package/dist-cjs/pagination/ListEndpointAccessPaginator.js +36 -0
  51. package/dist-cjs/pagination/ListNamespacesPaginator.js +36 -0
  52. package/dist-cjs/pagination/ListRecoveryPointsPaginator.js +36 -0
  53. package/dist-cjs/pagination/ListSnapshotsPaginator.js +36 -0
  54. package/dist-cjs/pagination/ListUsageLimitsPaginator.js +36 -0
  55. package/dist-cjs/pagination/ListWorkgroupsPaginator.js +36 -0
  56. package/dist-cjs/pagination/index.js +10 -0
  57. package/dist-cjs/protocols/Aws_json1_1.js +3265 -0
  58. package/dist-cjs/runtimeConfig.browser.js +45 -0
  59. package/dist-cjs/runtimeConfig.js +52 -0
  60. package/dist-cjs/runtimeConfig.native.js +16 -0
  61. package/dist-cjs/runtimeConfig.shared.js +17 -0
  62. package/dist-es/RedshiftServerless.js +565 -0
  63. package/dist-es/RedshiftServerlessClient.js +39 -0
  64. package/dist-es/commands/ConvertRecoveryPointToSnapshotCommand.js +39 -0
  65. package/dist-es/commands/CreateEndpointAccessCommand.js +39 -0
  66. package/dist-es/commands/CreateNamespaceCommand.js +39 -0
  67. package/dist-es/commands/CreateSnapshotCommand.js +39 -0
  68. package/dist-es/commands/CreateUsageLimitCommand.js +39 -0
  69. package/dist-es/commands/CreateWorkgroupCommand.js +39 -0
  70. package/dist-es/commands/DeleteEndpointAccessCommand.js +39 -0
  71. package/dist-es/commands/DeleteNamespaceCommand.js +39 -0
  72. package/dist-es/commands/DeleteResourcePolicyCommand.js +39 -0
  73. package/dist-es/commands/DeleteSnapshotCommand.js +39 -0
  74. package/dist-es/commands/DeleteUsageLimitCommand.js +39 -0
  75. package/dist-es/commands/DeleteWorkgroupCommand.js +39 -0
  76. package/dist-es/commands/GetCredentialsCommand.js +39 -0
  77. package/dist-es/commands/GetEndpointAccessCommand.js +39 -0
  78. package/dist-es/commands/GetNamespaceCommand.js +39 -0
  79. package/dist-es/commands/GetRecoveryPointCommand.js +39 -0
  80. package/dist-es/commands/GetResourcePolicyCommand.js +39 -0
  81. package/dist-es/commands/GetSnapshotCommand.js +39 -0
  82. package/dist-es/commands/GetUsageLimitCommand.js +39 -0
  83. package/dist-es/commands/GetWorkgroupCommand.js +39 -0
  84. package/dist-es/commands/ListEndpointAccessCommand.js +39 -0
  85. package/dist-es/commands/ListNamespacesCommand.js +39 -0
  86. package/dist-es/commands/ListRecoveryPointsCommand.js +39 -0
  87. package/dist-es/commands/ListSnapshotsCommand.js +39 -0
  88. package/dist-es/commands/ListTagsForResourceCommand.js +39 -0
  89. package/dist-es/commands/ListUsageLimitsCommand.js +39 -0
  90. package/dist-es/commands/ListWorkgroupsCommand.js +39 -0
  91. package/dist-es/commands/PutResourcePolicyCommand.js +39 -0
  92. package/dist-es/commands/RestoreFromRecoveryPointCommand.js +39 -0
  93. package/dist-es/commands/RestoreFromSnapshotCommand.js +39 -0
  94. package/dist-es/commands/TagResourceCommand.js +39 -0
  95. package/dist-es/commands/UntagResourceCommand.js +39 -0
  96. package/dist-es/commands/UpdateEndpointAccessCommand.js +39 -0
  97. package/dist-es/commands/UpdateNamespaceCommand.js +39 -0
  98. package/dist-es/commands/UpdateSnapshotCommand.js +39 -0
  99. package/dist-es/commands/UpdateUsageLimitCommand.js +39 -0
  100. package/dist-es/commands/UpdateWorkgroupCommand.js +39 -0
  101. package/dist-es/commands/index.js +37 -0
  102. package/dist-es/endpoints.js +127 -0
  103. package/dist-es/index.js +6 -0
  104. package/dist-es/models/RedshiftServerlessServiceException.js +12 -0
  105. package/dist-es/models/index.js +1 -0
  106. package/dist-es/models/models_0.js +523 -0
  107. package/dist-es/pagination/Interfaces.js +1 -0
  108. package/dist-es/pagination/ListEndpointAccessPaginator.js +75 -0
  109. package/dist-es/pagination/ListNamespacesPaginator.js +75 -0
  110. package/dist-es/pagination/ListRecoveryPointsPaginator.js +75 -0
  111. package/dist-es/pagination/ListSnapshotsPaginator.js +75 -0
  112. package/dist-es/pagination/ListUsageLimitsPaginator.js +75 -0
  113. package/dist-es/pagination/ListWorkgroupsPaginator.js +75 -0
  114. package/dist-es/pagination/index.js +7 -0
  115. package/dist-es/protocols/Aws_json1_1.js +3784 -0
  116. package/dist-es/runtimeConfig.browser.js +26 -0
  117. package/dist-es/runtimeConfig.js +30 -0
  118. package/dist-es/runtimeConfig.native.js +8 -0
  119. package/dist-es/runtimeConfig.shared.js +13 -0
  120. package/dist-types/RedshiftServerless.d.ts +302 -0
  121. package/dist-types/RedshiftServerlessClient.d.ts +198 -0
  122. package/dist-types/commands/ConvertRecoveryPointToSnapshotCommand.d.ts +36 -0
  123. package/dist-types/commands/CreateEndpointAccessCommand.d.ts +35 -0
  124. package/dist-types/commands/CreateNamespaceCommand.d.ts +35 -0
  125. package/dist-types/commands/CreateSnapshotCommand.d.ts +38 -0
  126. package/dist-types/commands/CreateUsageLimitCommand.d.ts +36 -0
  127. package/dist-types/commands/CreateWorkgroupCommand.d.ts +35 -0
  128. package/dist-types/commands/DeleteEndpointAccessCommand.d.ts +35 -0
  129. package/dist-types/commands/DeleteNamespaceCommand.d.ts +36 -0
  130. package/dist-types/commands/DeleteResourcePolicyCommand.d.ts +35 -0
  131. package/dist-types/commands/DeleteSnapshotCommand.d.ts +35 -0
  132. package/dist-types/commands/DeleteUsageLimitCommand.d.ts +35 -0
  133. package/dist-types/commands/DeleteWorkgroupCommand.d.ts +35 -0
  134. package/dist-types/commands/GetCredentialsCommand.d.ts +48 -0
  135. package/dist-types/commands/GetEndpointAccessCommand.d.ts +35 -0
  136. package/dist-types/commands/GetNamespaceCommand.d.ts +35 -0
  137. package/dist-types/commands/GetRecoveryPointCommand.d.ts +35 -0
  138. package/dist-types/commands/GetResourcePolicyCommand.d.ts +35 -0
  139. package/dist-types/commands/GetSnapshotCommand.d.ts +35 -0
  140. package/dist-types/commands/GetUsageLimitCommand.d.ts +35 -0
  141. package/dist-types/commands/GetWorkgroupCommand.d.ts +35 -0
  142. package/dist-types/commands/ListEndpointAccessCommand.d.ts +35 -0
  143. package/dist-types/commands/ListNamespacesCommand.d.ts +35 -0
  144. package/dist-types/commands/ListRecoveryPointsCommand.d.ts +35 -0
  145. package/dist-types/commands/ListSnapshotsCommand.d.ts +35 -0
  146. package/dist-types/commands/ListTagsForResourceCommand.d.ts +35 -0
  147. package/dist-types/commands/ListUsageLimitsCommand.d.ts +35 -0
  148. package/dist-types/commands/ListWorkgroupsCommand.d.ts +35 -0
  149. package/dist-types/commands/PutResourcePolicyCommand.d.ts +35 -0
  150. package/dist-types/commands/RestoreFromRecoveryPointCommand.d.ts +35 -0
  151. package/dist-types/commands/RestoreFromSnapshotCommand.d.ts +35 -0
  152. package/dist-types/commands/TagResourceCommand.d.ts +35 -0
  153. package/dist-types/commands/UntagResourceCommand.d.ts +35 -0
  154. package/dist-types/commands/UpdateEndpointAccessCommand.d.ts +35 -0
  155. package/dist-types/commands/UpdateNamespaceCommand.d.ts +35 -0
  156. package/dist-types/commands/UpdateSnapshotCommand.d.ts +35 -0
  157. package/dist-types/commands/UpdateUsageLimitCommand.d.ts +35 -0
  158. package/dist-types/commands/UpdateWorkgroupCommand.d.ts +35 -0
  159. package/dist-types/commands/index.d.ts +37 -0
  160. package/dist-types/endpoints.d.ts +2 -0
  161. package/dist-types/index.d.ts +6 -0
  162. package/dist-types/models/RedshiftServerlessServiceException.d.ts +10 -0
  163. package/dist-types/models/index.d.ts +1 -0
  164. package/dist-types/models/models_0.d.ts +1960 -0
  165. package/dist-types/pagination/Interfaces.d.ts +6 -0
  166. package/dist-types/pagination/ListEndpointAccessPaginator.d.ts +4 -0
  167. package/dist-types/pagination/ListNamespacesPaginator.d.ts +4 -0
  168. package/dist-types/pagination/ListRecoveryPointsPaginator.d.ts +4 -0
  169. package/dist-types/pagination/ListSnapshotsPaginator.d.ts +4 -0
  170. package/dist-types/pagination/ListUsageLimitsPaginator.d.ts +4 -0
  171. package/dist-types/pagination/ListWorkgroupsPaginator.d.ts +4 -0
  172. package/dist-types/pagination/index.d.ts +7 -0
  173. package/dist-types/protocols/Aws_json1_1.d.ts +113 -0
  174. package/dist-types/runtimeConfig.browser.d.ts +40 -0
  175. package/dist-types/runtimeConfig.d.ts +40 -0
  176. package/dist-types/runtimeConfig.native.d.ts +39 -0
  177. package/dist-types/runtimeConfig.shared.d.ts +13 -0
  178. package/dist-types/ts3.4/RedshiftServerless.d.ts +190 -0
  179. package/dist-types/ts3.4/RedshiftServerlessClient.d.ts +110 -0
  180. package/dist-types/ts3.4/commands/ConvertRecoveryPointToSnapshotCommand.d.ts +17 -0
  181. package/dist-types/ts3.4/commands/CreateEndpointAccessCommand.d.ts +17 -0
  182. package/dist-types/ts3.4/commands/CreateNamespaceCommand.d.ts +17 -0
  183. package/dist-types/ts3.4/commands/CreateSnapshotCommand.d.ts +17 -0
  184. package/dist-types/ts3.4/commands/CreateUsageLimitCommand.d.ts +17 -0
  185. package/dist-types/ts3.4/commands/CreateWorkgroupCommand.d.ts +17 -0
  186. package/dist-types/ts3.4/commands/DeleteEndpointAccessCommand.d.ts +17 -0
  187. package/dist-types/ts3.4/commands/DeleteNamespaceCommand.d.ts +17 -0
  188. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +17 -0
  189. package/dist-types/ts3.4/commands/DeleteSnapshotCommand.d.ts +17 -0
  190. package/dist-types/ts3.4/commands/DeleteUsageLimitCommand.d.ts +17 -0
  191. package/dist-types/ts3.4/commands/DeleteWorkgroupCommand.d.ts +17 -0
  192. package/dist-types/ts3.4/commands/GetCredentialsCommand.d.ts +17 -0
  193. package/dist-types/ts3.4/commands/GetEndpointAccessCommand.d.ts +17 -0
  194. package/dist-types/ts3.4/commands/GetNamespaceCommand.d.ts +17 -0
  195. package/dist-types/ts3.4/commands/GetRecoveryPointCommand.d.ts +17 -0
  196. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +17 -0
  197. package/dist-types/ts3.4/commands/GetSnapshotCommand.d.ts +17 -0
  198. package/dist-types/ts3.4/commands/GetUsageLimitCommand.d.ts +17 -0
  199. package/dist-types/ts3.4/commands/GetWorkgroupCommand.d.ts +17 -0
  200. package/dist-types/ts3.4/commands/ListEndpointAccessCommand.d.ts +17 -0
  201. package/dist-types/ts3.4/commands/ListNamespacesCommand.d.ts +17 -0
  202. package/dist-types/ts3.4/commands/ListRecoveryPointsCommand.d.ts +17 -0
  203. package/dist-types/ts3.4/commands/ListSnapshotsCommand.d.ts +17 -0
  204. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +17 -0
  205. package/dist-types/ts3.4/commands/ListUsageLimitsCommand.d.ts +17 -0
  206. package/dist-types/ts3.4/commands/ListWorkgroupsCommand.d.ts +17 -0
  207. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +17 -0
  208. package/dist-types/ts3.4/commands/RestoreFromRecoveryPointCommand.d.ts +17 -0
  209. package/dist-types/ts3.4/commands/RestoreFromSnapshotCommand.d.ts +17 -0
  210. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
  211. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
  212. package/dist-types/ts3.4/commands/UpdateEndpointAccessCommand.d.ts +17 -0
  213. package/dist-types/ts3.4/commands/UpdateNamespaceCommand.d.ts +17 -0
  214. package/dist-types/ts3.4/commands/UpdateSnapshotCommand.d.ts +17 -0
  215. package/dist-types/ts3.4/commands/UpdateUsageLimitCommand.d.ts +17 -0
  216. package/dist-types/ts3.4/commands/UpdateWorkgroupCommand.d.ts +17 -0
  217. package/dist-types/ts3.4/commands/index.d.ts +37 -0
  218. package/dist-types/ts3.4/endpoints.d.ts +2 -0
  219. package/dist-types/ts3.4/index.d.ts +6 -0
  220. package/dist-types/ts3.4/models/RedshiftServerlessServiceException.d.ts +6 -0
  221. package/dist-types/ts3.4/models/index.d.ts +1 -0
  222. package/dist-types/ts3.4/models/models_0.d.ts +1140 -0
  223. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  224. package/dist-types/ts3.4/pagination/ListEndpointAccessPaginator.d.ts +4 -0
  225. package/dist-types/ts3.4/pagination/ListNamespacesPaginator.d.ts +4 -0
  226. package/dist-types/ts3.4/pagination/ListRecoveryPointsPaginator.d.ts +4 -0
  227. package/dist-types/ts3.4/pagination/ListSnapshotsPaginator.d.ts +4 -0
  228. package/dist-types/ts3.4/pagination/ListUsageLimitsPaginator.d.ts +4 -0
  229. package/dist-types/ts3.4/pagination/ListWorkgroupsPaginator.d.ts +4 -0
  230. package/dist-types/ts3.4/pagination/index.d.ts +7 -0
  231. package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +113 -0
  232. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +38 -0
  233. package/dist-types/ts3.4/runtimeConfig.d.ts +38 -0
  234. package/dist-types/ts3.4/runtimeConfig.native.d.ts +37 -0
  235. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +11 -0
  236. package/package.json +94 -0
@@ -0,0 +1,26 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
+ import packageInfo from "../package.json";
3
+ import { Sha256 } from "@aws-crypto/sha256-browser";
4
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
5
+ import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
6
+ import { invalidProvider } from "@aws-sdk/invalid-dependency";
7
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
8
+ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-browser";
9
+ import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
10
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
11
+ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
12
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
14
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
15
+ export var getRuntimeConfig = function (config) {
16
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
+ var defaultsMode = resolveDefaultsModeConfig(config);
18
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
19
+ var clientSharedValues = getSharedRuntimeConfig(config);
20
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "browser", defaultsMode: defaultsMode, 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 RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
21
+ switch (_a.label) {
22
+ case 0: return [4, defaultConfigProvider()];
23
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
24
+ }
25
+ }); }); }), 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, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (function () { return Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT); }), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (function () { return Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT); }), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
26
+ };
@@ -0,0 +1,30 @@
1
+ import { __assign, __awaiter, __generator } from "tslib";
2
+ import packageInfo from "../package.json";
3
+ import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
4
+ import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
5
+ import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
6
+ import { Hash } from "@aws-sdk/hash-node";
7
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
8
+ import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
9
+ import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
10
+ import { fromBase64, toBase64 } from "@aws-sdk/util-base64-node";
11
+ import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
12
+ import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
13
+ import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
14
+ import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
15
+ import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
16
+ import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
17
+ import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
18
+ export var getRuntimeConfig = function (config) {
19
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
20
+ emitWarningIfUnsupportedVersion(process.version);
21
+ var defaultsMode = resolveDefaultsModeConfig(config);
22
+ var defaultConfigProvider = function () { return defaultsMode().then(loadConfigsForDefaultMode); };
23
+ var clientSharedValues = getSharedRuntimeConfig(config);
24
+ return __assign(__assign(__assign({}, clientSharedValues), config), { runtime: "node", defaultsMode: defaultsMode, 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 RequestHandler(defaultConfigProvider), retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : loadNodeConfig(__assign(__assign({}, NODE_RETRY_MODE_CONFIG_OPTIONS), { default: function () { return __awaiter(void 0, void 0, void 0, function () { return __generator(this, function (_a) {
25
+ switch (_a.label) {
26
+ case 0: return [4, defaultConfigProvider()];
27
+ case 1: return [2, (_a.sent()).retryMode || DEFAULT_RETRY_MODE];
28
+ }
29
+ }); }); } })), 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, useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : fromUtf8, utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : toUtf8 });
30
+ };
@@ -0,0 +1,8 @@
1
+ import { __assign } from "tslib";
2
+ import { Sha256 } from "@aws-crypto/sha256-js";
3
+ import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
4
+ export var getRuntimeConfig = function (config) {
5
+ var _a;
6
+ var browserDefaults = getBrowserRuntimeConfig(config);
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
+ };
@@ -0,0 +1,13 @@
1
+ import { parseUrl } from "@aws-sdk/url-parser";
2
+ import { defaultRegionInfoProvider } from "./endpoints";
3
+ export var getRuntimeConfig = function (config) {
4
+ var _a, _b, _c, _d, _e;
5
+ return ({
6
+ apiVersion: "2021-04-21",
7
+ disableHostPrefix: (_a = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _a !== void 0 ? _a : false,
8
+ logger: (_b = config === null || config === void 0 ? void 0 : config.logger) !== null && _b !== void 0 ? _b : {},
9
+ regionInfoProvider: (_c = config === null || config === void 0 ? void 0 : config.regionInfoProvider) !== null && _c !== void 0 ? _c : defaultRegionInfoProvider,
10
+ serviceId: (_d = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _d !== void 0 ? _d : "Redshift Serverless",
11
+ urlParser: (_e = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _e !== void 0 ? _e : parseUrl,
12
+ });
13
+ };
@@ -0,0 +1,302 @@
1
+ import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
2
+ import { ConvertRecoveryPointToSnapshotCommandInput, ConvertRecoveryPointToSnapshotCommandOutput } from "./commands/ConvertRecoveryPointToSnapshotCommand";
3
+ import { CreateEndpointAccessCommandInput, CreateEndpointAccessCommandOutput } from "./commands/CreateEndpointAccessCommand";
4
+ import { CreateNamespaceCommandInput, CreateNamespaceCommandOutput } from "./commands/CreateNamespaceCommand";
5
+ import { CreateSnapshotCommandInput, CreateSnapshotCommandOutput } from "./commands/CreateSnapshotCommand";
6
+ import { CreateUsageLimitCommandInput, CreateUsageLimitCommandOutput } from "./commands/CreateUsageLimitCommand";
7
+ import { CreateWorkgroupCommandInput, CreateWorkgroupCommandOutput } from "./commands/CreateWorkgroupCommand";
8
+ import { DeleteEndpointAccessCommandInput, DeleteEndpointAccessCommandOutput } from "./commands/DeleteEndpointAccessCommand";
9
+ import { DeleteNamespaceCommandInput, DeleteNamespaceCommandOutput } from "./commands/DeleteNamespaceCommand";
10
+ import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
11
+ import { DeleteSnapshotCommandInput, DeleteSnapshotCommandOutput } from "./commands/DeleteSnapshotCommand";
12
+ import { DeleteUsageLimitCommandInput, DeleteUsageLimitCommandOutput } from "./commands/DeleteUsageLimitCommand";
13
+ import { DeleteWorkgroupCommandInput, DeleteWorkgroupCommandOutput } from "./commands/DeleteWorkgroupCommand";
14
+ import { GetCredentialsCommandInput, GetCredentialsCommandOutput } from "./commands/GetCredentialsCommand";
15
+ import { GetEndpointAccessCommandInput, GetEndpointAccessCommandOutput } from "./commands/GetEndpointAccessCommand";
16
+ import { GetNamespaceCommandInput, GetNamespaceCommandOutput } from "./commands/GetNamespaceCommand";
17
+ import { GetRecoveryPointCommandInput, GetRecoveryPointCommandOutput } from "./commands/GetRecoveryPointCommand";
18
+ import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
19
+ import { GetSnapshotCommandInput, GetSnapshotCommandOutput } from "./commands/GetSnapshotCommand";
20
+ import { GetUsageLimitCommandInput, GetUsageLimitCommandOutput } from "./commands/GetUsageLimitCommand";
21
+ import { GetWorkgroupCommandInput, GetWorkgroupCommandOutput } from "./commands/GetWorkgroupCommand";
22
+ import { ListEndpointAccessCommandInput, ListEndpointAccessCommandOutput } from "./commands/ListEndpointAccessCommand";
23
+ import { ListNamespacesCommandInput, ListNamespacesCommandOutput } from "./commands/ListNamespacesCommand";
24
+ import { ListRecoveryPointsCommandInput, ListRecoveryPointsCommandOutput } from "./commands/ListRecoveryPointsCommand";
25
+ import { ListSnapshotsCommandInput, ListSnapshotsCommandOutput } from "./commands/ListSnapshotsCommand";
26
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
27
+ import { ListUsageLimitsCommandInput, ListUsageLimitsCommandOutput } from "./commands/ListUsageLimitsCommand";
28
+ import { ListWorkgroupsCommandInput, ListWorkgroupsCommandOutput } from "./commands/ListWorkgroupsCommand";
29
+ import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
30
+ import { RestoreFromRecoveryPointCommandInput, RestoreFromRecoveryPointCommandOutput } from "./commands/RestoreFromRecoveryPointCommand";
31
+ import { RestoreFromSnapshotCommandInput, RestoreFromSnapshotCommandOutput } from "./commands/RestoreFromSnapshotCommand";
32
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
33
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
34
+ import { UpdateEndpointAccessCommandInput, UpdateEndpointAccessCommandOutput } from "./commands/UpdateEndpointAccessCommand";
35
+ import { UpdateNamespaceCommandInput, UpdateNamespaceCommandOutput } from "./commands/UpdateNamespaceCommand";
36
+ import { UpdateSnapshotCommandInput, UpdateSnapshotCommandOutput } from "./commands/UpdateSnapshotCommand";
37
+ import { UpdateUsageLimitCommandInput, UpdateUsageLimitCommandOutput } from "./commands/UpdateUsageLimitCommand";
38
+ import { UpdateWorkgroupCommandInput, UpdateWorkgroupCommandOutput } from "./commands/UpdateWorkgroupCommand";
39
+ import { RedshiftServerlessClient } from "./RedshiftServerlessClient";
40
+ /**
41
+ * <p>
42
+ * <i>This is prerelease documentation for Amazon Redshift Serverless, which is in preview release.
43
+ * The documentation and the feature are both subject to change. We recommend that you use this feature only in test environments,
44
+ * and not in production environments. For preview terms and conditions, see Beta Service Participation in
45
+ * <a href="https://docs.aws.amazon.com/https:/aws.amazon.com/service-terms">Amazon Web Services Service Terms</a>.</i>
46
+ * </p>
47
+ * <p>This is an interface reference for Amazon Redshift Serverless.
48
+ * It contains documentation for one of the programming or command line interfaces you can use to manage Amazon Redshift Serverless.
49
+ * </p>
50
+ * <p>Amazon Redshift Serverless automatically provisions data warehouse capacity and intelligently scales the
51
+ * underlying resources based on workload demands. Amazon Redshift Serverless adjusts capacity in seconds to deliver consistently high
52
+ * performance and simplified operations for even the most demanding and volatile workloads. Amazon Redshift Serverless lets you
53
+ * focus on using your data to acquire new insights for your business and customers.
54
+ * </p>
55
+ * <p>
56
+ * To learn more about Amazon Redshift Serverless,
57
+ * see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-whatis.html">What is Amazon Redshift Serverless</a>.
58
+ * </p>
59
+ */
60
+ export declare class RedshiftServerless extends RedshiftServerlessClient {
61
+ /**
62
+ * <p>Converts a recovery point to a snapshot. For more information about recovery points and snapshots,
63
+ * see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-snapshots-recovery.html">Working with snapshots and recovery points</a>.</p>
64
+ */
65
+ convertRecoveryPointToSnapshot(args: ConvertRecoveryPointToSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<ConvertRecoveryPointToSnapshotCommandOutput>;
66
+ convertRecoveryPointToSnapshot(args: ConvertRecoveryPointToSnapshotCommandInput, cb: (err: any, data?: ConvertRecoveryPointToSnapshotCommandOutput) => void): void;
67
+ convertRecoveryPointToSnapshot(args: ConvertRecoveryPointToSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ConvertRecoveryPointToSnapshotCommandOutput) => void): void;
68
+ /**
69
+ * <p>Creates an Amazon Redshift Serverless managed VPC endpoint.</p>
70
+ */
71
+ createEndpointAccess(args: CreateEndpointAccessCommandInput, options?: __HttpHandlerOptions): Promise<CreateEndpointAccessCommandOutput>;
72
+ createEndpointAccess(args: CreateEndpointAccessCommandInput, cb: (err: any, data?: CreateEndpointAccessCommandOutput) => void): void;
73
+ createEndpointAccess(args: CreateEndpointAccessCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateEndpointAccessCommandOutput) => void): void;
74
+ /**
75
+ * <p>Creates a namespace in Amazon Redshift Serverless.</p>
76
+ */
77
+ createNamespace(args: CreateNamespaceCommandInput, options?: __HttpHandlerOptions): Promise<CreateNamespaceCommandOutput>;
78
+ createNamespace(args: CreateNamespaceCommandInput, cb: (err: any, data?: CreateNamespaceCommandOutput) => void): void;
79
+ createNamespace(args: CreateNamespaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateNamespaceCommandOutput) => void): void;
80
+ /**
81
+ * <p>Creates a snapshot of all databases in a namespace.
82
+ * For more information about snapshots, see
83
+ * <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-snapshots-recovery.html">
84
+ * Working with snapshots and recovery points</a>.</p>
85
+ */
86
+ createSnapshot(args: CreateSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<CreateSnapshotCommandOutput>;
87
+ createSnapshot(args: CreateSnapshotCommandInput, cb: (err: any, data?: CreateSnapshotCommandOutput) => void): void;
88
+ createSnapshot(args: CreateSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateSnapshotCommandOutput) => void): void;
89
+ /**
90
+ * <p>Creates a usage limit for a specified Amazon Redshift Serverless usage type. The usage limit is identified by the returned usage limit identifier.
91
+ * </p>
92
+ */
93
+ createUsageLimit(args: CreateUsageLimitCommandInput, options?: __HttpHandlerOptions): Promise<CreateUsageLimitCommandOutput>;
94
+ createUsageLimit(args: CreateUsageLimitCommandInput, cb: (err: any, data?: CreateUsageLimitCommandOutput) => void): void;
95
+ createUsageLimit(args: CreateUsageLimitCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateUsageLimitCommandOutput) => void): void;
96
+ /**
97
+ * <p>Creates an workgroup in Amazon Redshift Serverless.</p>
98
+ */
99
+ createWorkgroup(args: CreateWorkgroupCommandInput, options?: __HttpHandlerOptions): Promise<CreateWorkgroupCommandOutput>;
100
+ createWorkgroup(args: CreateWorkgroupCommandInput, cb: (err: any, data?: CreateWorkgroupCommandOutput) => void): void;
101
+ createWorkgroup(args: CreateWorkgroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateWorkgroupCommandOutput) => void): void;
102
+ /**
103
+ * <p>Deletes an Amazon Redshift Serverless managed VPC endpoint.</p>
104
+ */
105
+ deleteEndpointAccess(args: DeleteEndpointAccessCommandInput, options?: __HttpHandlerOptions): Promise<DeleteEndpointAccessCommandOutput>;
106
+ deleteEndpointAccess(args: DeleteEndpointAccessCommandInput, cb: (err: any, data?: DeleteEndpointAccessCommandOutput) => void): void;
107
+ deleteEndpointAccess(args: DeleteEndpointAccessCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteEndpointAccessCommandOutput) => void): void;
108
+ /**
109
+ * <p>Deletes a namespace from Amazon Redshift Serverless.
110
+ * Before you delete the namespace, you can create a final snapshot that has all of the data within the namespace.</p>
111
+ */
112
+ deleteNamespace(args: DeleteNamespaceCommandInput, options?: __HttpHandlerOptions): Promise<DeleteNamespaceCommandOutput>;
113
+ deleteNamespace(args: DeleteNamespaceCommandInput, cb: (err: any, data?: DeleteNamespaceCommandOutput) => void): void;
114
+ deleteNamespace(args: DeleteNamespaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteNamespaceCommandOutput) => void): void;
115
+ /**
116
+ * <p>Deletes the specified resource policy.</p>
117
+ */
118
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<DeleteResourcePolicyCommandOutput>;
119
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
120
+ deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void;
121
+ /**
122
+ * <p>Deletes a snapshot from Amazon Redshift Serverless.</p>
123
+ */
124
+ deleteSnapshot(args: DeleteSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<DeleteSnapshotCommandOutput>;
125
+ deleteSnapshot(args: DeleteSnapshotCommandInput, cb: (err: any, data?: DeleteSnapshotCommandOutput) => void): void;
126
+ deleteSnapshot(args: DeleteSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteSnapshotCommandOutput) => void): void;
127
+ /**
128
+ * <p>Deletes a usage limit from Amazon Redshift Serverless.</p>
129
+ */
130
+ deleteUsageLimit(args: DeleteUsageLimitCommandInput, options?: __HttpHandlerOptions): Promise<DeleteUsageLimitCommandOutput>;
131
+ deleteUsageLimit(args: DeleteUsageLimitCommandInput, cb: (err: any, data?: DeleteUsageLimitCommandOutput) => void): void;
132
+ deleteUsageLimit(args: DeleteUsageLimitCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteUsageLimitCommandOutput) => void): void;
133
+ /**
134
+ * <p>Deletes a workgroup.</p>
135
+ */
136
+ deleteWorkgroup(args: DeleteWorkgroupCommandInput, options?: __HttpHandlerOptions): Promise<DeleteWorkgroupCommandOutput>;
137
+ deleteWorkgroup(args: DeleteWorkgroupCommandInput, cb: (err: any, data?: DeleteWorkgroupCommandOutput) => void): void;
138
+ deleteWorkgroup(args: DeleteWorkgroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteWorkgroupCommandOutput) => void): void;
139
+ /**
140
+ * <p>Returns a database user name and temporary password with
141
+ * temporary authorization to log in to Amazon Redshift Serverless.</p>
142
+ * <p>By default, the temporary credentials expire in 900 seconds.
143
+ * You can optionally specify a duration between 900 seconds (15 minutes) and 3600 seconds (60 minutes).</p>
144
+ *
145
+ * <p>
146
+ * The Identity and Access Management (IAM) user or role that runs
147
+ * GetCredentials must have an IAM policy attached that allows access to all
148
+ * necessary actions and resources.
149
+ * </p>
150
+ *
151
+ * <p>
152
+ * If the <code>DbName</code> parameter is specified, the IAM policy must
153
+ * allow access to the resource dbname for the specified database name.</p>
154
+ */
155
+ getCredentials(args: GetCredentialsCommandInput, options?: __HttpHandlerOptions): Promise<GetCredentialsCommandOutput>;
156
+ getCredentials(args: GetCredentialsCommandInput, cb: (err: any, data?: GetCredentialsCommandOutput) => void): void;
157
+ getCredentials(args: GetCredentialsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCredentialsCommandOutput) => void): void;
158
+ /**
159
+ * <p>Returns information, such as the name, about a VPC endpoint.</p>
160
+ */
161
+ getEndpointAccess(args: GetEndpointAccessCommandInput, options?: __HttpHandlerOptions): Promise<GetEndpointAccessCommandOutput>;
162
+ getEndpointAccess(args: GetEndpointAccessCommandInput, cb: (err: any, data?: GetEndpointAccessCommandOutput) => void): void;
163
+ getEndpointAccess(args: GetEndpointAccessCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetEndpointAccessCommandOutput) => void): void;
164
+ /**
165
+ * <p>Returns information about a namespace in Amazon Redshift Serverless.</p>
166
+ */
167
+ getNamespace(args: GetNamespaceCommandInput, options?: __HttpHandlerOptions): Promise<GetNamespaceCommandOutput>;
168
+ getNamespace(args: GetNamespaceCommandInput, cb: (err: any, data?: GetNamespaceCommandOutput) => void): void;
169
+ getNamespace(args: GetNamespaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetNamespaceCommandOutput) => void): void;
170
+ /**
171
+ * <p>Returns information about a recovery point.</p>
172
+ */
173
+ getRecoveryPoint(args: GetRecoveryPointCommandInput, options?: __HttpHandlerOptions): Promise<GetRecoveryPointCommandOutput>;
174
+ getRecoveryPoint(args: GetRecoveryPointCommandInput, cb: (err: any, data?: GetRecoveryPointCommandOutput) => void): void;
175
+ getRecoveryPoint(args: GetRecoveryPointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRecoveryPointCommandOutput) => void): void;
176
+ /**
177
+ * <p>Returns a resource policy.</p>
178
+ */
179
+ getResourcePolicy(args: GetResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<GetResourcePolicyCommandOutput>;
180
+ getResourcePolicy(args: GetResourcePolicyCommandInput, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
181
+ getResourcePolicy(args: GetResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcePolicyCommandOutput) => void): void;
182
+ /**
183
+ * <p>Returns information about a specific snapshot.</p>
184
+ */
185
+ getSnapshot(args: GetSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<GetSnapshotCommandOutput>;
186
+ getSnapshot(args: GetSnapshotCommandInput, cb: (err: any, data?: GetSnapshotCommandOutput) => void): void;
187
+ getSnapshot(args: GetSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSnapshotCommandOutput) => void): void;
188
+ /**
189
+ * <p>Returns information about a usage limit.</p>
190
+ */
191
+ getUsageLimit(args: GetUsageLimitCommandInput, options?: __HttpHandlerOptions): Promise<GetUsageLimitCommandOutput>;
192
+ getUsageLimit(args: GetUsageLimitCommandInput, cb: (err: any, data?: GetUsageLimitCommandOutput) => void): void;
193
+ getUsageLimit(args: GetUsageLimitCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetUsageLimitCommandOutput) => void): void;
194
+ /**
195
+ * <p>Returns information about a specific workgroup.</p>
196
+ */
197
+ getWorkgroup(args: GetWorkgroupCommandInput, options?: __HttpHandlerOptions): Promise<GetWorkgroupCommandOutput>;
198
+ getWorkgroup(args: GetWorkgroupCommandInput, cb: (err: any, data?: GetWorkgroupCommandOutput) => void): void;
199
+ getWorkgroup(args: GetWorkgroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetWorkgroupCommandOutput) => void): void;
200
+ /**
201
+ * <p>Returns an array of <code>EndpointAccess</code> objects and relevant information.</p>
202
+ */
203
+ listEndpointAccess(args: ListEndpointAccessCommandInput, options?: __HttpHandlerOptions): Promise<ListEndpointAccessCommandOutput>;
204
+ listEndpointAccess(args: ListEndpointAccessCommandInput, cb: (err: any, data?: ListEndpointAccessCommandOutput) => void): void;
205
+ listEndpointAccess(args: ListEndpointAccessCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListEndpointAccessCommandOutput) => void): void;
206
+ /**
207
+ * <p>Returns information about a list of specified namespaces.</p>
208
+ */
209
+ listNamespaces(args: ListNamespacesCommandInput, options?: __HttpHandlerOptions): Promise<ListNamespacesCommandOutput>;
210
+ listNamespaces(args: ListNamespacesCommandInput, cb: (err: any, data?: ListNamespacesCommandOutput) => void): void;
211
+ listNamespaces(args: ListNamespacesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListNamespacesCommandOutput) => void): void;
212
+ /**
213
+ * <p>Returns an array of recovery points.</p>
214
+ */
215
+ listRecoveryPoints(args: ListRecoveryPointsCommandInput, options?: __HttpHandlerOptions): Promise<ListRecoveryPointsCommandOutput>;
216
+ listRecoveryPoints(args: ListRecoveryPointsCommandInput, cb: (err: any, data?: ListRecoveryPointsCommandOutput) => void): void;
217
+ listRecoveryPoints(args: ListRecoveryPointsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRecoveryPointsCommandOutput) => void): void;
218
+ /**
219
+ * <p>Returns a list of snapshots.</p>
220
+ */
221
+ listSnapshots(args: ListSnapshotsCommandInput, options?: __HttpHandlerOptions): Promise<ListSnapshotsCommandOutput>;
222
+ listSnapshots(args: ListSnapshotsCommandInput, cb: (err: any, data?: ListSnapshotsCommandOutput) => void): void;
223
+ listSnapshots(args: ListSnapshotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSnapshotsCommandOutput) => void): void;
224
+ /**
225
+ * <p>Lists the tags assigned to a resource.</p>
226
+ */
227
+ listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
228
+ listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
229
+ listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
230
+ /**
231
+ * <p>Lists all usage limits within Amazon Redshift Serverless.</p>
232
+ */
233
+ listUsageLimits(args: ListUsageLimitsCommandInput, options?: __HttpHandlerOptions): Promise<ListUsageLimitsCommandOutput>;
234
+ listUsageLimits(args: ListUsageLimitsCommandInput, cb: (err: any, data?: ListUsageLimitsCommandOutput) => void): void;
235
+ listUsageLimits(args: ListUsageLimitsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListUsageLimitsCommandOutput) => void): void;
236
+ /**
237
+ * <p>Returns information about a list of specified workgroups.</p>
238
+ */
239
+ listWorkgroups(args: ListWorkgroupsCommandInput, options?: __HttpHandlerOptions): Promise<ListWorkgroupsCommandOutput>;
240
+ listWorkgroups(args: ListWorkgroupsCommandInput, cb: (err: any, data?: ListWorkgroupsCommandOutput) => void): void;
241
+ listWorkgroups(args: ListWorkgroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListWorkgroupsCommandOutput) => void): void;
242
+ /**
243
+ * <p>Creates or updates a resource policy. Currently, you can use policies to share snapshots across Amazon Web Services accounts.</p>
244
+ */
245
+ putResourcePolicy(args: PutResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise<PutResourcePolicyCommandOutput>;
246
+ putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
247
+ putResourcePolicy(args: PutResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void;
248
+ /**
249
+ * <p>Restore the data from a recovery point.</p>
250
+ */
251
+ restoreFromRecoveryPoint(args: RestoreFromRecoveryPointCommandInput, options?: __HttpHandlerOptions): Promise<RestoreFromRecoveryPointCommandOutput>;
252
+ restoreFromRecoveryPoint(args: RestoreFromRecoveryPointCommandInput, cb: (err: any, data?: RestoreFromRecoveryPointCommandOutput) => void): void;
253
+ restoreFromRecoveryPoint(args: RestoreFromRecoveryPointCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RestoreFromRecoveryPointCommandOutput) => void): void;
254
+ /**
255
+ * <p>Restores a namespace from a snapshot.</p>
256
+ */
257
+ restoreFromSnapshot(args: RestoreFromSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<RestoreFromSnapshotCommandOutput>;
258
+ restoreFromSnapshot(args: RestoreFromSnapshotCommandInput, cb: (err: any, data?: RestoreFromSnapshotCommandOutput) => void): void;
259
+ restoreFromSnapshot(args: RestoreFromSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RestoreFromSnapshotCommandOutput) => void): void;
260
+ /**
261
+ * <p>Assigns one or more tags to a resource.</p>
262
+ */
263
+ tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
264
+ tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
265
+ tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
266
+ /**
267
+ * <p>Removes a tag or set of tags from a resource.</p>
268
+ */
269
+ untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
270
+ untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
271
+ untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
272
+ /**
273
+ * <p>Updates an Amazon Redshift Serverless managed endpoint.</p>
274
+ */
275
+ updateEndpointAccess(args: UpdateEndpointAccessCommandInput, options?: __HttpHandlerOptions): Promise<UpdateEndpointAccessCommandOutput>;
276
+ updateEndpointAccess(args: UpdateEndpointAccessCommandInput, cb: (err: any, data?: UpdateEndpointAccessCommandOutput) => void): void;
277
+ updateEndpointAccess(args: UpdateEndpointAccessCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateEndpointAccessCommandOutput) => void): void;
278
+ /**
279
+ * <p>Updates a namespace with the specified settings.</p>
280
+ */
281
+ updateNamespace(args: UpdateNamespaceCommandInput, options?: __HttpHandlerOptions): Promise<UpdateNamespaceCommandOutput>;
282
+ updateNamespace(args: UpdateNamespaceCommandInput, cb: (err: any, data?: UpdateNamespaceCommandOutput) => void): void;
283
+ updateNamespace(args: UpdateNamespaceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateNamespaceCommandOutput) => void): void;
284
+ /**
285
+ * <p>Updates a snapshot.</p>
286
+ */
287
+ updateSnapshot(args: UpdateSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<UpdateSnapshotCommandOutput>;
288
+ updateSnapshot(args: UpdateSnapshotCommandInput, cb: (err: any, data?: UpdateSnapshotCommandOutput) => void): void;
289
+ updateSnapshot(args: UpdateSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateSnapshotCommandOutput) => void): void;
290
+ /**
291
+ * <p>Update a usage limit in Amazon Redshift Serverless. You can't update the usage type or period of a usage limit.</p>
292
+ */
293
+ updateUsageLimit(args: UpdateUsageLimitCommandInput, options?: __HttpHandlerOptions): Promise<UpdateUsageLimitCommandOutput>;
294
+ updateUsageLimit(args: UpdateUsageLimitCommandInput, cb: (err: any, data?: UpdateUsageLimitCommandOutput) => void): void;
295
+ updateUsageLimit(args: UpdateUsageLimitCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateUsageLimitCommandOutput) => void): void;
296
+ /**
297
+ * <p>Updates a workgroup with the specified configuration settings.</p>
298
+ */
299
+ updateWorkgroup(args: UpdateWorkgroupCommandInput, options?: __HttpHandlerOptions): Promise<UpdateWorkgroupCommandOutput>;
300
+ updateWorkgroup(args: UpdateWorkgroupCommandInput, cb: (err: any, data?: UpdateWorkgroupCommandOutput) => void): void;
301
+ updateWorkgroup(args: UpdateWorkgroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateWorkgroupCommandOutput) => void): void;
302
+ }
@@ -0,0 +1,198 @@
1
+ import { EndpointsInputConfig, EndpointsResolvedConfig, RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
2
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
3
+ import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
4
+ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
5
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
+ import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
+ import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
+ import { ConvertRecoveryPointToSnapshotCommandInput, ConvertRecoveryPointToSnapshotCommandOutput } from "./commands/ConvertRecoveryPointToSnapshotCommand";
10
+ import { CreateEndpointAccessCommandInput, CreateEndpointAccessCommandOutput } from "./commands/CreateEndpointAccessCommand";
11
+ import { CreateNamespaceCommandInput, CreateNamespaceCommandOutput } from "./commands/CreateNamespaceCommand";
12
+ import { CreateSnapshotCommandInput, CreateSnapshotCommandOutput } from "./commands/CreateSnapshotCommand";
13
+ import { CreateUsageLimitCommandInput, CreateUsageLimitCommandOutput } from "./commands/CreateUsageLimitCommand";
14
+ import { CreateWorkgroupCommandInput, CreateWorkgroupCommandOutput } from "./commands/CreateWorkgroupCommand";
15
+ import { DeleteEndpointAccessCommandInput, DeleteEndpointAccessCommandOutput } from "./commands/DeleteEndpointAccessCommand";
16
+ import { DeleteNamespaceCommandInput, DeleteNamespaceCommandOutput } from "./commands/DeleteNamespaceCommand";
17
+ import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand";
18
+ import { DeleteSnapshotCommandInput, DeleteSnapshotCommandOutput } from "./commands/DeleteSnapshotCommand";
19
+ import { DeleteUsageLimitCommandInput, DeleteUsageLimitCommandOutput } from "./commands/DeleteUsageLimitCommand";
20
+ import { DeleteWorkgroupCommandInput, DeleteWorkgroupCommandOutput } from "./commands/DeleteWorkgroupCommand";
21
+ import { GetCredentialsCommandInput, GetCredentialsCommandOutput } from "./commands/GetCredentialsCommand";
22
+ import { GetEndpointAccessCommandInput, GetEndpointAccessCommandOutput } from "./commands/GetEndpointAccessCommand";
23
+ import { GetNamespaceCommandInput, GetNamespaceCommandOutput } from "./commands/GetNamespaceCommand";
24
+ import { GetRecoveryPointCommandInput, GetRecoveryPointCommandOutput } from "./commands/GetRecoveryPointCommand";
25
+ import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
26
+ import { GetSnapshotCommandInput, GetSnapshotCommandOutput } from "./commands/GetSnapshotCommand";
27
+ import { GetUsageLimitCommandInput, GetUsageLimitCommandOutput } from "./commands/GetUsageLimitCommand";
28
+ import { GetWorkgroupCommandInput, GetWorkgroupCommandOutput } from "./commands/GetWorkgroupCommand";
29
+ import { ListEndpointAccessCommandInput, ListEndpointAccessCommandOutput } from "./commands/ListEndpointAccessCommand";
30
+ import { ListNamespacesCommandInput, ListNamespacesCommandOutput } from "./commands/ListNamespacesCommand";
31
+ import { ListRecoveryPointsCommandInput, ListRecoveryPointsCommandOutput } from "./commands/ListRecoveryPointsCommand";
32
+ import { ListSnapshotsCommandInput, ListSnapshotsCommandOutput } from "./commands/ListSnapshotsCommand";
33
+ import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
34
+ import { ListUsageLimitsCommandInput, ListUsageLimitsCommandOutput } from "./commands/ListUsageLimitsCommand";
35
+ import { ListWorkgroupsCommandInput, ListWorkgroupsCommandOutput } from "./commands/ListWorkgroupsCommand";
36
+ import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
37
+ import { RestoreFromRecoveryPointCommandInput, RestoreFromRecoveryPointCommandOutput } from "./commands/RestoreFromRecoveryPointCommand";
38
+ import { RestoreFromSnapshotCommandInput, RestoreFromSnapshotCommandOutput } from "./commands/RestoreFromSnapshotCommand";
39
+ import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
40
+ import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
41
+ import { UpdateEndpointAccessCommandInput, UpdateEndpointAccessCommandOutput } from "./commands/UpdateEndpointAccessCommand";
42
+ import { UpdateNamespaceCommandInput, UpdateNamespaceCommandOutput } from "./commands/UpdateNamespaceCommand";
43
+ import { UpdateSnapshotCommandInput, UpdateSnapshotCommandOutput } from "./commands/UpdateSnapshotCommand";
44
+ import { UpdateUsageLimitCommandInput, UpdateUsageLimitCommandOutput } from "./commands/UpdateUsageLimitCommand";
45
+ import { UpdateWorkgroupCommandInput, UpdateWorkgroupCommandOutput } from "./commands/UpdateWorkgroupCommand";
46
+ export declare type ServiceInputTypes = ConvertRecoveryPointToSnapshotCommandInput | CreateEndpointAccessCommandInput | CreateNamespaceCommandInput | CreateSnapshotCommandInput | CreateUsageLimitCommandInput | CreateWorkgroupCommandInput | DeleteEndpointAccessCommandInput | DeleteNamespaceCommandInput | DeleteResourcePolicyCommandInput | DeleteSnapshotCommandInput | DeleteUsageLimitCommandInput | DeleteWorkgroupCommandInput | GetCredentialsCommandInput | GetEndpointAccessCommandInput | GetNamespaceCommandInput | GetRecoveryPointCommandInput | GetResourcePolicyCommandInput | GetSnapshotCommandInput | GetUsageLimitCommandInput | GetWorkgroupCommandInput | ListEndpointAccessCommandInput | ListNamespacesCommandInput | ListRecoveryPointsCommandInput | ListSnapshotsCommandInput | ListTagsForResourceCommandInput | ListUsageLimitsCommandInput | ListWorkgroupsCommandInput | PutResourcePolicyCommandInput | RestoreFromRecoveryPointCommandInput | RestoreFromSnapshotCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateEndpointAccessCommandInput | UpdateNamespaceCommandInput | UpdateSnapshotCommandInput | UpdateUsageLimitCommandInput | UpdateWorkgroupCommandInput;
47
+ export declare type ServiceOutputTypes = ConvertRecoveryPointToSnapshotCommandOutput | CreateEndpointAccessCommandOutput | CreateNamespaceCommandOutput | CreateSnapshotCommandOutput | CreateUsageLimitCommandOutput | CreateWorkgroupCommandOutput | DeleteEndpointAccessCommandOutput | DeleteNamespaceCommandOutput | DeleteResourcePolicyCommandOutput | DeleteSnapshotCommandOutput | DeleteUsageLimitCommandOutput | DeleteWorkgroupCommandOutput | GetCredentialsCommandOutput | GetEndpointAccessCommandOutput | GetNamespaceCommandOutput | GetRecoveryPointCommandOutput | GetResourcePolicyCommandOutput | GetSnapshotCommandOutput | GetUsageLimitCommandOutput | GetWorkgroupCommandOutput | ListEndpointAccessCommandOutput | ListNamespacesCommandOutput | ListRecoveryPointsCommandOutput | ListSnapshotsCommandOutput | ListTagsForResourceCommandOutput | ListUsageLimitsCommandOutput | ListWorkgroupsCommandOutput | PutResourcePolicyCommandOutput | RestoreFromRecoveryPointCommandOutput | RestoreFromSnapshotCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateEndpointAccessCommandOutput | UpdateNamespaceCommandOutput | UpdateSnapshotCommandOutput | UpdateUsageLimitCommandOutput | UpdateWorkgroupCommandOutput;
48
+ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
49
+ /**
50
+ * The HTTP handler to use. Fetch in browser and Https in Nodejs.
51
+ */
52
+ requestHandler?: __HttpHandler;
53
+ /**
54
+ * A constructor for a class implementing the {@link __Hash} interface
55
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
56
+ * @internal
57
+ */
58
+ sha256?: __HashConstructor;
59
+ /**
60
+ * The function that will be used to convert strings into HTTP endpoints.
61
+ * @internal
62
+ */
63
+ urlParser?: __UrlParser;
64
+ /**
65
+ * A function that can calculate the length of a request body.
66
+ * @internal
67
+ */
68
+ bodyLengthChecker?: __BodyLengthCalculator;
69
+ /**
70
+ * A function that converts a stream into an array of bytes.
71
+ * @internal
72
+ */
73
+ streamCollector?: __StreamCollector;
74
+ /**
75
+ * The function that will be used to convert a base64-encoded string to a byte array.
76
+ * @internal
77
+ */
78
+ base64Decoder?: __Decoder;
79
+ /**
80
+ * The function that will be used to convert binary data to a base64-encoded string.
81
+ * @internal
82
+ */
83
+ base64Encoder?: __Encoder;
84
+ /**
85
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
86
+ * @internal
87
+ */
88
+ utf8Decoder?: __Decoder;
89
+ /**
90
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
91
+ * @internal
92
+ */
93
+ utf8Encoder?: __Encoder;
94
+ /**
95
+ * The runtime environment.
96
+ * @internal
97
+ */
98
+ runtime?: string;
99
+ /**
100
+ * Disable dyanamically changing the endpoint of the client based on the hostPrefix
101
+ * trait of an operation.
102
+ */
103
+ disableHostPrefix?: boolean;
104
+ /**
105
+ * Value for how many times a request will be made at most in case of retry.
106
+ */
107
+ maxAttempts?: number | __Provider<number>;
108
+ /**
109
+ * Specifies which retry algorithm to use.
110
+ */
111
+ retryMode?: string | __Provider<string>;
112
+ /**
113
+ * Optional logger for logging debug/info/warn/error.
114
+ */
115
+ logger?: __Logger;
116
+ /**
117
+ * Enables IPv6/IPv4 dualstack endpoint.
118
+ */
119
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
120
+ /**
121
+ * Enables FIPS compatible endpoints.
122
+ */
123
+ useFipsEndpoint?: boolean | __Provider<boolean>;
124
+ /**
125
+ * Unique service identifier.
126
+ * @internal
127
+ */
128
+ serviceId?: string;
129
+ /**
130
+ * The AWS region to which this client will send requests
131
+ */
132
+ region?: string | __Provider<string>;
133
+ /**
134
+ * Default credentials provider; Not available in browser runtime.
135
+ * @internal
136
+ */
137
+ credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
138
+ /**
139
+ * Fetch related hostname, signing name or signing region with given region.
140
+ * @internal
141
+ */
142
+ regionInfoProvider?: RegionInfoProvider;
143
+ /**
144
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
145
+ * @internal
146
+ */
147
+ defaultUserAgentProvider?: Provider<__UserAgent>;
148
+ /**
149
+ * The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
150
+ */
151
+ defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
152
+ }
153
+ declare type RedshiftServerlessClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointsInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig;
154
+ /**
155
+ * The configuration interface of RedshiftServerlessClient class constructor that set the region, credentials and other options.
156
+ */
157
+ export interface RedshiftServerlessClientConfig extends RedshiftServerlessClientConfigType {
158
+ }
159
+ declare type RedshiftServerlessClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointsResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig;
160
+ /**
161
+ * The resolved configuration interface of RedshiftServerlessClient class. This is resolved and normalized from the {@link RedshiftServerlessClientConfig | constructor configuration interface}.
162
+ */
163
+ export interface RedshiftServerlessClientResolvedConfig extends RedshiftServerlessClientResolvedConfigType {
164
+ }
165
+ /**
166
+ * <p>
167
+ * <i>This is prerelease documentation for Amazon Redshift Serverless, which is in preview release.
168
+ * The documentation and the feature are both subject to change. We recommend that you use this feature only in test environments,
169
+ * and not in production environments. For preview terms and conditions, see Beta Service Participation in
170
+ * <a href="https://docs.aws.amazon.com/https:/aws.amazon.com/service-terms">Amazon Web Services Service Terms</a>.</i>
171
+ * </p>
172
+ * <p>This is an interface reference for Amazon Redshift Serverless.
173
+ * It contains documentation for one of the programming or command line interfaces you can use to manage Amazon Redshift Serverless.
174
+ * </p>
175
+ * <p>Amazon Redshift Serverless automatically provisions data warehouse capacity and intelligently scales the
176
+ * underlying resources based on workload demands. Amazon Redshift Serverless adjusts capacity in seconds to deliver consistently high
177
+ * performance and simplified operations for even the most demanding and volatile workloads. Amazon Redshift Serverless lets you
178
+ * focus on using your data to acquire new insights for your business and customers.
179
+ * </p>
180
+ * <p>
181
+ * To learn more about Amazon Redshift Serverless,
182
+ * see <a href="https://docs.aws.amazon.com/redshift/latest/mgmt/serverless-whatis.html">What is Amazon Redshift Serverless</a>.
183
+ * </p>
184
+ */
185
+ export declare class RedshiftServerlessClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, RedshiftServerlessClientResolvedConfig> {
186
+ /**
187
+ * The resolved configuration of RedshiftServerlessClient class. This is resolved and normalized from the {@link RedshiftServerlessClientConfig | constructor configuration interface}.
188
+ */
189
+ readonly config: RedshiftServerlessClientResolvedConfig;
190
+ constructor(configuration: RedshiftServerlessClientConfig);
191
+ /**
192
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
193
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
194
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
195
+ */
196
+ destroy(): void;
197
+ }
198
+ export {};