@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,565 @@
1
+ import { __extends } from "tslib";
2
+ import { ConvertRecoveryPointToSnapshotCommand, } from "./commands/ConvertRecoveryPointToSnapshotCommand";
3
+ import { CreateEndpointAccessCommand, } from "./commands/CreateEndpointAccessCommand";
4
+ import { CreateNamespaceCommand, } from "./commands/CreateNamespaceCommand";
5
+ import { CreateSnapshotCommand, } from "./commands/CreateSnapshotCommand";
6
+ import { CreateUsageLimitCommand, } from "./commands/CreateUsageLimitCommand";
7
+ import { CreateWorkgroupCommand, } from "./commands/CreateWorkgroupCommand";
8
+ import { DeleteEndpointAccessCommand, } from "./commands/DeleteEndpointAccessCommand";
9
+ import { DeleteNamespaceCommand, } from "./commands/DeleteNamespaceCommand";
10
+ import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand";
11
+ import { DeleteSnapshotCommand, } from "./commands/DeleteSnapshotCommand";
12
+ import { DeleteUsageLimitCommand, } from "./commands/DeleteUsageLimitCommand";
13
+ import { DeleteWorkgroupCommand, } from "./commands/DeleteWorkgroupCommand";
14
+ import { GetCredentialsCommand, } from "./commands/GetCredentialsCommand";
15
+ import { GetEndpointAccessCommand, } from "./commands/GetEndpointAccessCommand";
16
+ import { GetNamespaceCommand, } from "./commands/GetNamespaceCommand";
17
+ import { GetRecoveryPointCommand, } from "./commands/GetRecoveryPointCommand";
18
+ import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
19
+ import { GetSnapshotCommand } from "./commands/GetSnapshotCommand";
20
+ import { GetUsageLimitCommand, } from "./commands/GetUsageLimitCommand";
21
+ import { GetWorkgroupCommand, } from "./commands/GetWorkgroupCommand";
22
+ import { ListEndpointAccessCommand, } from "./commands/ListEndpointAccessCommand";
23
+ import { ListNamespacesCommand, } from "./commands/ListNamespacesCommand";
24
+ import { ListRecoveryPointsCommand, } from "./commands/ListRecoveryPointsCommand";
25
+ import { ListSnapshotsCommand, } from "./commands/ListSnapshotsCommand";
26
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
27
+ import { ListUsageLimitsCommand, } from "./commands/ListUsageLimitsCommand";
28
+ import { ListWorkgroupsCommand, } from "./commands/ListWorkgroupsCommand";
29
+ import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
30
+ import { RestoreFromRecoveryPointCommand, } from "./commands/RestoreFromRecoveryPointCommand";
31
+ import { RestoreFromSnapshotCommand, } from "./commands/RestoreFromSnapshotCommand";
32
+ import { TagResourceCommand } from "./commands/TagResourceCommand";
33
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
34
+ import { UpdateEndpointAccessCommand, } from "./commands/UpdateEndpointAccessCommand";
35
+ import { UpdateNamespaceCommand, } from "./commands/UpdateNamespaceCommand";
36
+ import { UpdateSnapshotCommand, } from "./commands/UpdateSnapshotCommand";
37
+ import { UpdateUsageLimitCommand, } from "./commands/UpdateUsageLimitCommand";
38
+ import { UpdateWorkgroupCommand, } from "./commands/UpdateWorkgroupCommand";
39
+ import { RedshiftServerlessClient } from "./RedshiftServerlessClient";
40
+ var RedshiftServerless = (function (_super) {
41
+ __extends(RedshiftServerless, _super);
42
+ function RedshiftServerless() {
43
+ return _super !== null && _super.apply(this, arguments) || this;
44
+ }
45
+ RedshiftServerless.prototype.convertRecoveryPointToSnapshot = function (args, optionsOrCb, cb) {
46
+ var command = new ConvertRecoveryPointToSnapshotCommand(args);
47
+ if (typeof optionsOrCb === "function") {
48
+ this.send(command, optionsOrCb);
49
+ }
50
+ else if (typeof cb === "function") {
51
+ if (typeof optionsOrCb !== "object")
52
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
53
+ this.send(command, optionsOrCb || {}, cb);
54
+ }
55
+ else {
56
+ return this.send(command, optionsOrCb);
57
+ }
58
+ };
59
+ RedshiftServerless.prototype.createEndpointAccess = function (args, optionsOrCb, cb) {
60
+ var command = new CreateEndpointAccessCommand(args);
61
+ if (typeof optionsOrCb === "function") {
62
+ this.send(command, optionsOrCb);
63
+ }
64
+ else if (typeof cb === "function") {
65
+ if (typeof optionsOrCb !== "object")
66
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
67
+ this.send(command, optionsOrCb || {}, cb);
68
+ }
69
+ else {
70
+ return this.send(command, optionsOrCb);
71
+ }
72
+ };
73
+ RedshiftServerless.prototype.createNamespace = function (args, optionsOrCb, cb) {
74
+ var command = new CreateNamespaceCommand(args);
75
+ if (typeof optionsOrCb === "function") {
76
+ this.send(command, optionsOrCb);
77
+ }
78
+ else if (typeof cb === "function") {
79
+ if (typeof optionsOrCb !== "object")
80
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
81
+ this.send(command, optionsOrCb || {}, cb);
82
+ }
83
+ else {
84
+ return this.send(command, optionsOrCb);
85
+ }
86
+ };
87
+ RedshiftServerless.prototype.createSnapshot = function (args, optionsOrCb, cb) {
88
+ var command = new CreateSnapshotCommand(args);
89
+ if (typeof optionsOrCb === "function") {
90
+ this.send(command, optionsOrCb);
91
+ }
92
+ else if (typeof cb === "function") {
93
+ if (typeof optionsOrCb !== "object")
94
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
95
+ this.send(command, optionsOrCb || {}, cb);
96
+ }
97
+ else {
98
+ return this.send(command, optionsOrCb);
99
+ }
100
+ };
101
+ RedshiftServerless.prototype.createUsageLimit = function (args, optionsOrCb, cb) {
102
+ var command = new CreateUsageLimitCommand(args);
103
+ if (typeof optionsOrCb === "function") {
104
+ this.send(command, optionsOrCb);
105
+ }
106
+ else if (typeof cb === "function") {
107
+ if (typeof optionsOrCb !== "object")
108
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
109
+ this.send(command, optionsOrCb || {}, cb);
110
+ }
111
+ else {
112
+ return this.send(command, optionsOrCb);
113
+ }
114
+ };
115
+ RedshiftServerless.prototype.createWorkgroup = function (args, optionsOrCb, cb) {
116
+ var command = new CreateWorkgroupCommand(args);
117
+ if (typeof optionsOrCb === "function") {
118
+ this.send(command, optionsOrCb);
119
+ }
120
+ else if (typeof cb === "function") {
121
+ if (typeof optionsOrCb !== "object")
122
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
123
+ this.send(command, optionsOrCb || {}, cb);
124
+ }
125
+ else {
126
+ return this.send(command, optionsOrCb);
127
+ }
128
+ };
129
+ RedshiftServerless.prototype.deleteEndpointAccess = function (args, optionsOrCb, cb) {
130
+ var command = new DeleteEndpointAccessCommand(args);
131
+ if (typeof optionsOrCb === "function") {
132
+ this.send(command, optionsOrCb);
133
+ }
134
+ else if (typeof cb === "function") {
135
+ if (typeof optionsOrCb !== "object")
136
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
137
+ this.send(command, optionsOrCb || {}, cb);
138
+ }
139
+ else {
140
+ return this.send(command, optionsOrCb);
141
+ }
142
+ };
143
+ RedshiftServerless.prototype.deleteNamespace = function (args, optionsOrCb, cb) {
144
+ var command = new DeleteNamespaceCommand(args);
145
+ if (typeof optionsOrCb === "function") {
146
+ this.send(command, optionsOrCb);
147
+ }
148
+ else if (typeof cb === "function") {
149
+ if (typeof optionsOrCb !== "object")
150
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
151
+ this.send(command, optionsOrCb || {}, cb);
152
+ }
153
+ else {
154
+ return this.send(command, optionsOrCb);
155
+ }
156
+ };
157
+ RedshiftServerless.prototype.deleteResourcePolicy = function (args, optionsOrCb, cb) {
158
+ var command = new DeleteResourcePolicyCommand(args);
159
+ if (typeof optionsOrCb === "function") {
160
+ this.send(command, optionsOrCb);
161
+ }
162
+ else if (typeof cb === "function") {
163
+ if (typeof optionsOrCb !== "object")
164
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
165
+ this.send(command, optionsOrCb || {}, cb);
166
+ }
167
+ else {
168
+ return this.send(command, optionsOrCb);
169
+ }
170
+ };
171
+ RedshiftServerless.prototype.deleteSnapshot = function (args, optionsOrCb, cb) {
172
+ var command = new DeleteSnapshotCommand(args);
173
+ if (typeof optionsOrCb === "function") {
174
+ this.send(command, optionsOrCb);
175
+ }
176
+ else if (typeof cb === "function") {
177
+ if (typeof optionsOrCb !== "object")
178
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
179
+ this.send(command, optionsOrCb || {}, cb);
180
+ }
181
+ else {
182
+ return this.send(command, optionsOrCb);
183
+ }
184
+ };
185
+ RedshiftServerless.prototype.deleteUsageLimit = function (args, optionsOrCb, cb) {
186
+ var command = new DeleteUsageLimitCommand(args);
187
+ if (typeof optionsOrCb === "function") {
188
+ this.send(command, optionsOrCb);
189
+ }
190
+ else if (typeof cb === "function") {
191
+ if (typeof optionsOrCb !== "object")
192
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
193
+ this.send(command, optionsOrCb || {}, cb);
194
+ }
195
+ else {
196
+ return this.send(command, optionsOrCb);
197
+ }
198
+ };
199
+ RedshiftServerless.prototype.deleteWorkgroup = function (args, optionsOrCb, cb) {
200
+ var command = new DeleteWorkgroupCommand(args);
201
+ if (typeof optionsOrCb === "function") {
202
+ this.send(command, optionsOrCb);
203
+ }
204
+ else if (typeof cb === "function") {
205
+ if (typeof optionsOrCb !== "object")
206
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
207
+ this.send(command, optionsOrCb || {}, cb);
208
+ }
209
+ else {
210
+ return this.send(command, optionsOrCb);
211
+ }
212
+ };
213
+ RedshiftServerless.prototype.getCredentials = function (args, optionsOrCb, cb) {
214
+ var command = new GetCredentialsCommand(args);
215
+ if (typeof optionsOrCb === "function") {
216
+ this.send(command, optionsOrCb);
217
+ }
218
+ else if (typeof cb === "function") {
219
+ if (typeof optionsOrCb !== "object")
220
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
221
+ this.send(command, optionsOrCb || {}, cb);
222
+ }
223
+ else {
224
+ return this.send(command, optionsOrCb);
225
+ }
226
+ };
227
+ RedshiftServerless.prototype.getEndpointAccess = function (args, optionsOrCb, cb) {
228
+ var command = new GetEndpointAccessCommand(args);
229
+ if (typeof optionsOrCb === "function") {
230
+ this.send(command, optionsOrCb);
231
+ }
232
+ else if (typeof cb === "function") {
233
+ if (typeof optionsOrCb !== "object")
234
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
235
+ this.send(command, optionsOrCb || {}, cb);
236
+ }
237
+ else {
238
+ return this.send(command, optionsOrCb);
239
+ }
240
+ };
241
+ RedshiftServerless.prototype.getNamespace = function (args, optionsOrCb, cb) {
242
+ var command = new GetNamespaceCommand(args);
243
+ if (typeof optionsOrCb === "function") {
244
+ this.send(command, optionsOrCb);
245
+ }
246
+ else if (typeof cb === "function") {
247
+ if (typeof optionsOrCb !== "object")
248
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
249
+ this.send(command, optionsOrCb || {}, cb);
250
+ }
251
+ else {
252
+ return this.send(command, optionsOrCb);
253
+ }
254
+ };
255
+ RedshiftServerless.prototype.getRecoveryPoint = function (args, optionsOrCb, cb) {
256
+ var command = new GetRecoveryPointCommand(args);
257
+ if (typeof optionsOrCb === "function") {
258
+ this.send(command, optionsOrCb);
259
+ }
260
+ else if (typeof cb === "function") {
261
+ if (typeof optionsOrCb !== "object")
262
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
263
+ this.send(command, optionsOrCb || {}, cb);
264
+ }
265
+ else {
266
+ return this.send(command, optionsOrCb);
267
+ }
268
+ };
269
+ RedshiftServerless.prototype.getResourcePolicy = function (args, optionsOrCb, cb) {
270
+ var command = new GetResourcePolicyCommand(args);
271
+ if (typeof optionsOrCb === "function") {
272
+ this.send(command, optionsOrCb);
273
+ }
274
+ else if (typeof cb === "function") {
275
+ if (typeof optionsOrCb !== "object")
276
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
277
+ this.send(command, optionsOrCb || {}, cb);
278
+ }
279
+ else {
280
+ return this.send(command, optionsOrCb);
281
+ }
282
+ };
283
+ RedshiftServerless.prototype.getSnapshot = function (args, optionsOrCb, cb) {
284
+ var command = new GetSnapshotCommand(args);
285
+ if (typeof optionsOrCb === "function") {
286
+ this.send(command, optionsOrCb);
287
+ }
288
+ else if (typeof cb === "function") {
289
+ if (typeof optionsOrCb !== "object")
290
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
291
+ this.send(command, optionsOrCb || {}, cb);
292
+ }
293
+ else {
294
+ return this.send(command, optionsOrCb);
295
+ }
296
+ };
297
+ RedshiftServerless.prototype.getUsageLimit = function (args, optionsOrCb, cb) {
298
+ var command = new GetUsageLimitCommand(args);
299
+ if (typeof optionsOrCb === "function") {
300
+ this.send(command, optionsOrCb);
301
+ }
302
+ else if (typeof cb === "function") {
303
+ if (typeof optionsOrCb !== "object")
304
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
305
+ this.send(command, optionsOrCb || {}, cb);
306
+ }
307
+ else {
308
+ return this.send(command, optionsOrCb);
309
+ }
310
+ };
311
+ RedshiftServerless.prototype.getWorkgroup = function (args, optionsOrCb, cb) {
312
+ var command = new GetWorkgroupCommand(args);
313
+ if (typeof optionsOrCb === "function") {
314
+ this.send(command, optionsOrCb);
315
+ }
316
+ else if (typeof cb === "function") {
317
+ if (typeof optionsOrCb !== "object")
318
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
319
+ this.send(command, optionsOrCb || {}, cb);
320
+ }
321
+ else {
322
+ return this.send(command, optionsOrCb);
323
+ }
324
+ };
325
+ RedshiftServerless.prototype.listEndpointAccess = function (args, optionsOrCb, cb) {
326
+ var command = new ListEndpointAccessCommand(args);
327
+ if (typeof optionsOrCb === "function") {
328
+ this.send(command, optionsOrCb);
329
+ }
330
+ else if (typeof cb === "function") {
331
+ if (typeof optionsOrCb !== "object")
332
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
333
+ this.send(command, optionsOrCb || {}, cb);
334
+ }
335
+ else {
336
+ return this.send(command, optionsOrCb);
337
+ }
338
+ };
339
+ RedshiftServerless.prototype.listNamespaces = function (args, optionsOrCb, cb) {
340
+ var command = new ListNamespacesCommand(args);
341
+ if (typeof optionsOrCb === "function") {
342
+ this.send(command, optionsOrCb);
343
+ }
344
+ else if (typeof cb === "function") {
345
+ if (typeof optionsOrCb !== "object")
346
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
347
+ this.send(command, optionsOrCb || {}, cb);
348
+ }
349
+ else {
350
+ return this.send(command, optionsOrCb);
351
+ }
352
+ };
353
+ RedshiftServerless.prototype.listRecoveryPoints = function (args, optionsOrCb, cb) {
354
+ var command = new ListRecoveryPointsCommand(args);
355
+ if (typeof optionsOrCb === "function") {
356
+ this.send(command, optionsOrCb);
357
+ }
358
+ else if (typeof cb === "function") {
359
+ if (typeof optionsOrCb !== "object")
360
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
361
+ this.send(command, optionsOrCb || {}, cb);
362
+ }
363
+ else {
364
+ return this.send(command, optionsOrCb);
365
+ }
366
+ };
367
+ RedshiftServerless.prototype.listSnapshots = function (args, optionsOrCb, cb) {
368
+ var command = new ListSnapshotsCommand(args);
369
+ if (typeof optionsOrCb === "function") {
370
+ this.send(command, optionsOrCb);
371
+ }
372
+ else if (typeof cb === "function") {
373
+ if (typeof optionsOrCb !== "object")
374
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
375
+ this.send(command, optionsOrCb || {}, cb);
376
+ }
377
+ else {
378
+ return this.send(command, optionsOrCb);
379
+ }
380
+ };
381
+ RedshiftServerless.prototype.listTagsForResource = function (args, optionsOrCb, cb) {
382
+ var command = new ListTagsForResourceCommand(args);
383
+ if (typeof optionsOrCb === "function") {
384
+ this.send(command, optionsOrCb);
385
+ }
386
+ else if (typeof cb === "function") {
387
+ if (typeof optionsOrCb !== "object")
388
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
389
+ this.send(command, optionsOrCb || {}, cb);
390
+ }
391
+ else {
392
+ return this.send(command, optionsOrCb);
393
+ }
394
+ };
395
+ RedshiftServerless.prototype.listUsageLimits = function (args, optionsOrCb, cb) {
396
+ var command = new ListUsageLimitsCommand(args);
397
+ if (typeof optionsOrCb === "function") {
398
+ this.send(command, optionsOrCb);
399
+ }
400
+ else if (typeof cb === "function") {
401
+ if (typeof optionsOrCb !== "object")
402
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
403
+ this.send(command, optionsOrCb || {}, cb);
404
+ }
405
+ else {
406
+ return this.send(command, optionsOrCb);
407
+ }
408
+ };
409
+ RedshiftServerless.prototype.listWorkgroups = function (args, optionsOrCb, cb) {
410
+ var command = new ListWorkgroupsCommand(args);
411
+ if (typeof optionsOrCb === "function") {
412
+ this.send(command, optionsOrCb);
413
+ }
414
+ else if (typeof cb === "function") {
415
+ if (typeof optionsOrCb !== "object")
416
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
417
+ this.send(command, optionsOrCb || {}, cb);
418
+ }
419
+ else {
420
+ return this.send(command, optionsOrCb);
421
+ }
422
+ };
423
+ RedshiftServerless.prototype.putResourcePolicy = function (args, optionsOrCb, cb) {
424
+ var command = new PutResourcePolicyCommand(args);
425
+ if (typeof optionsOrCb === "function") {
426
+ this.send(command, optionsOrCb);
427
+ }
428
+ else if (typeof cb === "function") {
429
+ if (typeof optionsOrCb !== "object")
430
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
431
+ this.send(command, optionsOrCb || {}, cb);
432
+ }
433
+ else {
434
+ return this.send(command, optionsOrCb);
435
+ }
436
+ };
437
+ RedshiftServerless.prototype.restoreFromRecoveryPoint = function (args, optionsOrCb, cb) {
438
+ var command = new RestoreFromRecoveryPointCommand(args);
439
+ if (typeof optionsOrCb === "function") {
440
+ this.send(command, optionsOrCb);
441
+ }
442
+ else if (typeof cb === "function") {
443
+ if (typeof optionsOrCb !== "object")
444
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
445
+ this.send(command, optionsOrCb || {}, cb);
446
+ }
447
+ else {
448
+ return this.send(command, optionsOrCb);
449
+ }
450
+ };
451
+ RedshiftServerless.prototype.restoreFromSnapshot = function (args, optionsOrCb, cb) {
452
+ var command = new RestoreFromSnapshotCommand(args);
453
+ if (typeof optionsOrCb === "function") {
454
+ this.send(command, optionsOrCb);
455
+ }
456
+ else if (typeof cb === "function") {
457
+ if (typeof optionsOrCb !== "object")
458
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
459
+ this.send(command, optionsOrCb || {}, cb);
460
+ }
461
+ else {
462
+ return this.send(command, optionsOrCb);
463
+ }
464
+ };
465
+ RedshiftServerless.prototype.tagResource = function (args, optionsOrCb, cb) {
466
+ var command = new TagResourceCommand(args);
467
+ if (typeof optionsOrCb === "function") {
468
+ this.send(command, optionsOrCb);
469
+ }
470
+ else if (typeof cb === "function") {
471
+ if (typeof optionsOrCb !== "object")
472
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
473
+ this.send(command, optionsOrCb || {}, cb);
474
+ }
475
+ else {
476
+ return this.send(command, optionsOrCb);
477
+ }
478
+ };
479
+ RedshiftServerless.prototype.untagResource = function (args, optionsOrCb, cb) {
480
+ var command = new UntagResourceCommand(args);
481
+ if (typeof optionsOrCb === "function") {
482
+ this.send(command, optionsOrCb);
483
+ }
484
+ else if (typeof cb === "function") {
485
+ if (typeof optionsOrCb !== "object")
486
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
487
+ this.send(command, optionsOrCb || {}, cb);
488
+ }
489
+ else {
490
+ return this.send(command, optionsOrCb);
491
+ }
492
+ };
493
+ RedshiftServerless.prototype.updateEndpointAccess = function (args, optionsOrCb, cb) {
494
+ var command = new UpdateEndpointAccessCommand(args);
495
+ if (typeof optionsOrCb === "function") {
496
+ this.send(command, optionsOrCb);
497
+ }
498
+ else if (typeof cb === "function") {
499
+ if (typeof optionsOrCb !== "object")
500
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
501
+ this.send(command, optionsOrCb || {}, cb);
502
+ }
503
+ else {
504
+ return this.send(command, optionsOrCb);
505
+ }
506
+ };
507
+ RedshiftServerless.prototype.updateNamespace = function (args, optionsOrCb, cb) {
508
+ var command = new UpdateNamespaceCommand(args);
509
+ if (typeof optionsOrCb === "function") {
510
+ this.send(command, optionsOrCb);
511
+ }
512
+ else if (typeof cb === "function") {
513
+ if (typeof optionsOrCb !== "object")
514
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
515
+ this.send(command, optionsOrCb || {}, cb);
516
+ }
517
+ else {
518
+ return this.send(command, optionsOrCb);
519
+ }
520
+ };
521
+ RedshiftServerless.prototype.updateSnapshot = function (args, optionsOrCb, cb) {
522
+ var command = new UpdateSnapshotCommand(args);
523
+ if (typeof optionsOrCb === "function") {
524
+ this.send(command, optionsOrCb);
525
+ }
526
+ else if (typeof cb === "function") {
527
+ if (typeof optionsOrCb !== "object")
528
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
529
+ this.send(command, optionsOrCb || {}, cb);
530
+ }
531
+ else {
532
+ return this.send(command, optionsOrCb);
533
+ }
534
+ };
535
+ RedshiftServerless.prototype.updateUsageLimit = function (args, optionsOrCb, cb) {
536
+ var command = new UpdateUsageLimitCommand(args);
537
+ if (typeof optionsOrCb === "function") {
538
+ this.send(command, optionsOrCb);
539
+ }
540
+ else if (typeof cb === "function") {
541
+ if (typeof optionsOrCb !== "object")
542
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
543
+ this.send(command, optionsOrCb || {}, cb);
544
+ }
545
+ else {
546
+ return this.send(command, optionsOrCb);
547
+ }
548
+ };
549
+ RedshiftServerless.prototype.updateWorkgroup = function (args, optionsOrCb, cb) {
550
+ var command = new UpdateWorkgroupCommand(args);
551
+ if (typeof optionsOrCb === "function") {
552
+ this.send(command, optionsOrCb);
553
+ }
554
+ else if (typeof cb === "function") {
555
+ if (typeof optionsOrCb !== "object")
556
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
557
+ this.send(command, optionsOrCb || {}, cb);
558
+ }
559
+ else {
560
+ return this.send(command, optionsOrCb);
561
+ }
562
+ };
563
+ return RedshiftServerless;
564
+ }(RedshiftServerlessClient));
565
+ export { RedshiftServerless };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
3
+ import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
4
+ import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
5
+ import { getLoggerPlugin } from "@aws-sdk/middleware-logger";
6
+ import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection";
7
+ import { getRetryPlugin, resolveRetryConfig } from "@aws-sdk/middleware-retry";
8
+ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing";
9
+ import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
10
+ import { Client as __Client, } from "@aws-sdk/smithy-client";
11
+ import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
12
+ var RedshiftServerlessClient = (function (_super) {
13
+ __extends(RedshiftServerlessClient, _super);
14
+ function RedshiftServerlessClient(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
33
+ }
34
+ RedshiftServerlessClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return RedshiftServerlessClient;
38
+ }(__Client));
39
+ export { RedshiftServerlessClient };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { ConvertRecoveryPointToSnapshotRequest, ConvertRecoveryPointToSnapshotResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1ConvertRecoveryPointToSnapshotCommand, serializeAws_json1_1ConvertRecoveryPointToSnapshotCommand, } from "../protocols/Aws_json1_1";
6
+ var ConvertRecoveryPointToSnapshotCommand = (function (_super) {
7
+ __extends(ConvertRecoveryPointToSnapshotCommand, _super);
8
+ function ConvertRecoveryPointToSnapshotCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ ConvertRecoveryPointToSnapshotCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RedshiftServerlessClient";
18
+ var commandName = "ConvertRecoveryPointToSnapshotCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: ConvertRecoveryPointToSnapshotRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: ConvertRecoveryPointToSnapshotResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ ConvertRecoveryPointToSnapshotCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1ConvertRecoveryPointToSnapshotCommand(input, context);
33
+ };
34
+ ConvertRecoveryPointToSnapshotCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1ConvertRecoveryPointToSnapshotCommand(output, context);
36
+ };
37
+ return ConvertRecoveryPointToSnapshotCommand;
38
+ }($Command));
39
+ export { ConvertRecoveryPointToSnapshotCommand };
@@ -0,0 +1,39 @@
1
+ import { __extends } from "tslib";
2
+ import { getSerdePlugin } from "@aws-sdk/middleware-serde";
3
+ import { Command as $Command } from "@aws-sdk/smithy-client";
4
+ import { CreateEndpointAccessRequest, CreateEndpointAccessResponse } from "../models/models_0";
5
+ import { deserializeAws_json1_1CreateEndpointAccessCommand, serializeAws_json1_1CreateEndpointAccessCommand, } from "../protocols/Aws_json1_1";
6
+ var CreateEndpointAccessCommand = (function (_super) {
7
+ __extends(CreateEndpointAccessCommand, _super);
8
+ function CreateEndpointAccessCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
12
+ }
13
+ CreateEndpointAccessCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
14
+ this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "RedshiftServerlessClient";
18
+ var commandName = "CreateEndpointAccessCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
23
+ inputFilterSensitiveLog: CreateEndpointAccessRequest.filterSensitiveLog,
24
+ outputFilterSensitiveLog: CreateEndpointAccessResponse.filterSensitiveLog,
25
+ };
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateEndpointAccessCommand.prototype.serialize = function (input, context) {
32
+ return serializeAws_json1_1CreateEndpointAccessCommand(input, context);
33
+ };
34
+ CreateEndpointAccessCommand.prototype.deserialize = function (output, context) {
35
+ return deserializeAws_json1_1CreateEndpointAccessCommand(output, context);
36
+ };
37
+ return CreateEndpointAccessCommand;
38
+ }($Command));
39
+ export { CreateEndpointAccessCommand };