@aws-sdk/client-redshift-serverless 3.312.0 → 3.316.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.
- package/dist-cjs/RedshiftServerless.js +44 -560
- package/dist-cjs/protocols/Aws_json1_1.js +339 -1052
- package/dist-es/RedshiftServerless.js +44 -560
- package/dist-es/protocols/Aws_json1_1.js +340 -1053
- package/dist-types/RedshiftServerless.d.ts +58 -116
- package/dist-types/ts3.4/RedshiftServerless.d.ts +4 -1
- package/package.json +6 -6
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.RedshiftServerless = void 0;
|
|
4
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
4
5
|
const ConvertRecoveryPointToSnapshotCommand_1 = require("./commands/ConvertRecoveryPointToSnapshotCommand");
|
|
5
6
|
const CreateEndpointAccessCommand_1 = require("./commands/CreateEndpointAccessCommand");
|
|
6
7
|
const CreateNamespaceCommand_1 = require("./commands/CreateNamespaceCommand");
|
|
@@ -42,566 +43,49 @@ const UpdateSnapshotCommand_1 = require("./commands/UpdateSnapshotCommand");
|
|
|
42
43
|
const UpdateUsageLimitCommand_1 = require("./commands/UpdateUsageLimitCommand");
|
|
43
44
|
const UpdateWorkgroupCommand_1 = require("./commands/UpdateWorkgroupCommand");
|
|
44
45
|
const RedshiftServerlessClient_1 = require("./RedshiftServerlessClient");
|
|
46
|
+
const commands = {
|
|
47
|
+
ConvertRecoveryPointToSnapshotCommand: ConvertRecoveryPointToSnapshotCommand_1.ConvertRecoveryPointToSnapshotCommand,
|
|
48
|
+
CreateEndpointAccessCommand: CreateEndpointAccessCommand_1.CreateEndpointAccessCommand,
|
|
49
|
+
CreateNamespaceCommand: CreateNamespaceCommand_1.CreateNamespaceCommand,
|
|
50
|
+
CreateSnapshotCommand: CreateSnapshotCommand_1.CreateSnapshotCommand,
|
|
51
|
+
CreateUsageLimitCommand: CreateUsageLimitCommand_1.CreateUsageLimitCommand,
|
|
52
|
+
CreateWorkgroupCommand: CreateWorkgroupCommand_1.CreateWorkgroupCommand,
|
|
53
|
+
DeleteEndpointAccessCommand: DeleteEndpointAccessCommand_1.DeleteEndpointAccessCommand,
|
|
54
|
+
DeleteNamespaceCommand: DeleteNamespaceCommand_1.DeleteNamespaceCommand,
|
|
55
|
+
DeleteResourcePolicyCommand: DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand,
|
|
56
|
+
DeleteSnapshotCommand: DeleteSnapshotCommand_1.DeleteSnapshotCommand,
|
|
57
|
+
DeleteUsageLimitCommand: DeleteUsageLimitCommand_1.DeleteUsageLimitCommand,
|
|
58
|
+
DeleteWorkgroupCommand: DeleteWorkgroupCommand_1.DeleteWorkgroupCommand,
|
|
59
|
+
GetCredentialsCommand: GetCredentialsCommand_1.GetCredentialsCommand,
|
|
60
|
+
GetEndpointAccessCommand: GetEndpointAccessCommand_1.GetEndpointAccessCommand,
|
|
61
|
+
GetNamespaceCommand: GetNamespaceCommand_1.GetNamespaceCommand,
|
|
62
|
+
GetRecoveryPointCommand: GetRecoveryPointCommand_1.GetRecoveryPointCommand,
|
|
63
|
+
GetResourcePolicyCommand: GetResourcePolicyCommand_1.GetResourcePolicyCommand,
|
|
64
|
+
GetSnapshotCommand: GetSnapshotCommand_1.GetSnapshotCommand,
|
|
65
|
+
GetTableRestoreStatusCommand: GetTableRestoreStatusCommand_1.GetTableRestoreStatusCommand,
|
|
66
|
+
GetUsageLimitCommand: GetUsageLimitCommand_1.GetUsageLimitCommand,
|
|
67
|
+
GetWorkgroupCommand: GetWorkgroupCommand_1.GetWorkgroupCommand,
|
|
68
|
+
ListEndpointAccessCommand: ListEndpointAccessCommand_1.ListEndpointAccessCommand,
|
|
69
|
+
ListNamespacesCommand: ListNamespacesCommand_1.ListNamespacesCommand,
|
|
70
|
+
ListRecoveryPointsCommand: ListRecoveryPointsCommand_1.ListRecoveryPointsCommand,
|
|
71
|
+
ListSnapshotsCommand: ListSnapshotsCommand_1.ListSnapshotsCommand,
|
|
72
|
+
ListTableRestoreStatusCommand: ListTableRestoreStatusCommand_1.ListTableRestoreStatusCommand,
|
|
73
|
+
ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand,
|
|
74
|
+
ListUsageLimitsCommand: ListUsageLimitsCommand_1.ListUsageLimitsCommand,
|
|
75
|
+
ListWorkgroupsCommand: ListWorkgroupsCommand_1.ListWorkgroupsCommand,
|
|
76
|
+
PutResourcePolicyCommand: PutResourcePolicyCommand_1.PutResourcePolicyCommand,
|
|
77
|
+
RestoreFromRecoveryPointCommand: RestoreFromRecoveryPointCommand_1.RestoreFromRecoveryPointCommand,
|
|
78
|
+
RestoreFromSnapshotCommand: RestoreFromSnapshotCommand_1.RestoreFromSnapshotCommand,
|
|
79
|
+
RestoreTableFromSnapshotCommand: RestoreTableFromSnapshotCommand_1.RestoreTableFromSnapshotCommand,
|
|
80
|
+
TagResourceCommand: TagResourceCommand_1.TagResourceCommand,
|
|
81
|
+
UntagResourceCommand: UntagResourceCommand_1.UntagResourceCommand,
|
|
82
|
+
UpdateEndpointAccessCommand: UpdateEndpointAccessCommand_1.UpdateEndpointAccessCommand,
|
|
83
|
+
UpdateNamespaceCommand: UpdateNamespaceCommand_1.UpdateNamespaceCommand,
|
|
84
|
+
UpdateSnapshotCommand: UpdateSnapshotCommand_1.UpdateSnapshotCommand,
|
|
85
|
+
UpdateUsageLimitCommand: UpdateUsageLimitCommand_1.UpdateUsageLimitCommand,
|
|
86
|
+
UpdateWorkgroupCommand: UpdateWorkgroupCommand_1.UpdateWorkgroupCommand,
|
|
87
|
+
};
|
|
45
88
|
class RedshiftServerless extends RedshiftServerlessClient_1.RedshiftServerlessClient {
|
|
46
|
-
convertRecoveryPointToSnapshot(args, optionsOrCb, cb) {
|
|
47
|
-
const command = new ConvertRecoveryPointToSnapshotCommand_1.ConvertRecoveryPointToSnapshotCommand(args);
|
|
48
|
-
if (typeof optionsOrCb === "function") {
|
|
49
|
-
this.send(command, optionsOrCb);
|
|
50
|
-
}
|
|
51
|
-
else if (typeof cb === "function") {
|
|
52
|
-
if (typeof optionsOrCb !== "object")
|
|
53
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
54
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
return this.send(command, optionsOrCb);
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
createEndpointAccess(args, optionsOrCb, cb) {
|
|
61
|
-
const command = new CreateEndpointAccessCommand_1.CreateEndpointAccessCommand(args);
|
|
62
|
-
if (typeof optionsOrCb === "function") {
|
|
63
|
-
this.send(command, optionsOrCb);
|
|
64
|
-
}
|
|
65
|
-
else if (typeof cb === "function") {
|
|
66
|
-
if (typeof optionsOrCb !== "object")
|
|
67
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
68
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
69
|
-
}
|
|
70
|
-
else {
|
|
71
|
-
return this.send(command, optionsOrCb);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
createNamespace(args, optionsOrCb, cb) {
|
|
75
|
-
const command = new CreateNamespaceCommand_1.CreateNamespaceCommand(args);
|
|
76
|
-
if (typeof optionsOrCb === "function") {
|
|
77
|
-
this.send(command, optionsOrCb);
|
|
78
|
-
}
|
|
79
|
-
else if (typeof cb === "function") {
|
|
80
|
-
if (typeof optionsOrCb !== "object")
|
|
81
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
82
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
83
|
-
}
|
|
84
|
-
else {
|
|
85
|
-
return this.send(command, optionsOrCb);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
createSnapshot(args, optionsOrCb, cb) {
|
|
89
|
-
const command = new CreateSnapshotCommand_1.CreateSnapshotCommand(args);
|
|
90
|
-
if (typeof optionsOrCb === "function") {
|
|
91
|
-
this.send(command, optionsOrCb);
|
|
92
|
-
}
|
|
93
|
-
else if (typeof cb === "function") {
|
|
94
|
-
if (typeof optionsOrCb !== "object")
|
|
95
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
96
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
97
|
-
}
|
|
98
|
-
else {
|
|
99
|
-
return this.send(command, optionsOrCb);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
createUsageLimit(args, optionsOrCb, cb) {
|
|
103
|
-
const command = new CreateUsageLimitCommand_1.CreateUsageLimitCommand(args);
|
|
104
|
-
if (typeof optionsOrCb === "function") {
|
|
105
|
-
this.send(command, optionsOrCb);
|
|
106
|
-
}
|
|
107
|
-
else if (typeof cb === "function") {
|
|
108
|
-
if (typeof optionsOrCb !== "object")
|
|
109
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
110
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
111
|
-
}
|
|
112
|
-
else {
|
|
113
|
-
return this.send(command, optionsOrCb);
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
createWorkgroup(args, optionsOrCb, cb) {
|
|
117
|
-
const command = new CreateWorkgroupCommand_1.CreateWorkgroupCommand(args);
|
|
118
|
-
if (typeof optionsOrCb === "function") {
|
|
119
|
-
this.send(command, optionsOrCb);
|
|
120
|
-
}
|
|
121
|
-
else if (typeof cb === "function") {
|
|
122
|
-
if (typeof optionsOrCb !== "object")
|
|
123
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
124
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
125
|
-
}
|
|
126
|
-
else {
|
|
127
|
-
return this.send(command, optionsOrCb);
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
deleteEndpointAccess(args, optionsOrCb, cb) {
|
|
131
|
-
const command = new DeleteEndpointAccessCommand_1.DeleteEndpointAccessCommand(args);
|
|
132
|
-
if (typeof optionsOrCb === "function") {
|
|
133
|
-
this.send(command, optionsOrCb);
|
|
134
|
-
}
|
|
135
|
-
else if (typeof cb === "function") {
|
|
136
|
-
if (typeof optionsOrCb !== "object")
|
|
137
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
138
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
139
|
-
}
|
|
140
|
-
else {
|
|
141
|
-
return this.send(command, optionsOrCb);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
deleteNamespace(args, optionsOrCb, cb) {
|
|
145
|
-
const command = new DeleteNamespaceCommand_1.DeleteNamespaceCommand(args);
|
|
146
|
-
if (typeof optionsOrCb === "function") {
|
|
147
|
-
this.send(command, optionsOrCb);
|
|
148
|
-
}
|
|
149
|
-
else if (typeof cb === "function") {
|
|
150
|
-
if (typeof optionsOrCb !== "object")
|
|
151
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
152
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
return this.send(command, optionsOrCb);
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
deleteResourcePolicy(args, optionsOrCb, cb) {
|
|
159
|
-
const command = new DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand(args);
|
|
160
|
-
if (typeof optionsOrCb === "function") {
|
|
161
|
-
this.send(command, optionsOrCb);
|
|
162
|
-
}
|
|
163
|
-
else if (typeof cb === "function") {
|
|
164
|
-
if (typeof optionsOrCb !== "object")
|
|
165
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
166
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
167
|
-
}
|
|
168
|
-
else {
|
|
169
|
-
return this.send(command, optionsOrCb);
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
deleteSnapshot(args, optionsOrCb, cb) {
|
|
173
|
-
const command = new DeleteSnapshotCommand_1.DeleteSnapshotCommand(args);
|
|
174
|
-
if (typeof optionsOrCb === "function") {
|
|
175
|
-
this.send(command, optionsOrCb);
|
|
176
|
-
}
|
|
177
|
-
else if (typeof cb === "function") {
|
|
178
|
-
if (typeof optionsOrCb !== "object")
|
|
179
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
180
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
181
|
-
}
|
|
182
|
-
else {
|
|
183
|
-
return this.send(command, optionsOrCb);
|
|
184
|
-
}
|
|
185
|
-
}
|
|
186
|
-
deleteUsageLimit(args, optionsOrCb, cb) {
|
|
187
|
-
const command = new DeleteUsageLimitCommand_1.DeleteUsageLimitCommand(args);
|
|
188
|
-
if (typeof optionsOrCb === "function") {
|
|
189
|
-
this.send(command, optionsOrCb);
|
|
190
|
-
}
|
|
191
|
-
else if (typeof cb === "function") {
|
|
192
|
-
if (typeof optionsOrCb !== "object")
|
|
193
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
194
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
195
|
-
}
|
|
196
|
-
else {
|
|
197
|
-
return this.send(command, optionsOrCb);
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
deleteWorkgroup(args, optionsOrCb, cb) {
|
|
201
|
-
const command = new DeleteWorkgroupCommand_1.DeleteWorkgroupCommand(args);
|
|
202
|
-
if (typeof optionsOrCb === "function") {
|
|
203
|
-
this.send(command, optionsOrCb);
|
|
204
|
-
}
|
|
205
|
-
else if (typeof cb === "function") {
|
|
206
|
-
if (typeof optionsOrCb !== "object")
|
|
207
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
208
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
209
|
-
}
|
|
210
|
-
else {
|
|
211
|
-
return this.send(command, optionsOrCb);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
getCredentials(args, optionsOrCb, cb) {
|
|
215
|
-
const command = new GetCredentialsCommand_1.GetCredentialsCommand(args);
|
|
216
|
-
if (typeof optionsOrCb === "function") {
|
|
217
|
-
this.send(command, optionsOrCb);
|
|
218
|
-
}
|
|
219
|
-
else if (typeof cb === "function") {
|
|
220
|
-
if (typeof optionsOrCb !== "object")
|
|
221
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
222
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
223
|
-
}
|
|
224
|
-
else {
|
|
225
|
-
return this.send(command, optionsOrCb);
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
getEndpointAccess(args, optionsOrCb, cb) {
|
|
229
|
-
const command = new GetEndpointAccessCommand_1.GetEndpointAccessCommand(args);
|
|
230
|
-
if (typeof optionsOrCb === "function") {
|
|
231
|
-
this.send(command, optionsOrCb);
|
|
232
|
-
}
|
|
233
|
-
else if (typeof cb === "function") {
|
|
234
|
-
if (typeof optionsOrCb !== "object")
|
|
235
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
236
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
237
|
-
}
|
|
238
|
-
else {
|
|
239
|
-
return this.send(command, optionsOrCb);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
getNamespace(args, optionsOrCb, cb) {
|
|
243
|
-
const command = new GetNamespaceCommand_1.GetNamespaceCommand(args);
|
|
244
|
-
if (typeof optionsOrCb === "function") {
|
|
245
|
-
this.send(command, optionsOrCb);
|
|
246
|
-
}
|
|
247
|
-
else if (typeof cb === "function") {
|
|
248
|
-
if (typeof optionsOrCb !== "object")
|
|
249
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
250
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
251
|
-
}
|
|
252
|
-
else {
|
|
253
|
-
return this.send(command, optionsOrCb);
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
getRecoveryPoint(args, optionsOrCb, cb) {
|
|
257
|
-
const command = new GetRecoveryPointCommand_1.GetRecoveryPointCommand(args);
|
|
258
|
-
if (typeof optionsOrCb === "function") {
|
|
259
|
-
this.send(command, optionsOrCb);
|
|
260
|
-
}
|
|
261
|
-
else if (typeof cb === "function") {
|
|
262
|
-
if (typeof optionsOrCb !== "object")
|
|
263
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
264
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
265
|
-
}
|
|
266
|
-
else {
|
|
267
|
-
return this.send(command, optionsOrCb);
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
getResourcePolicy(args, optionsOrCb, cb) {
|
|
271
|
-
const command = new GetResourcePolicyCommand_1.GetResourcePolicyCommand(args);
|
|
272
|
-
if (typeof optionsOrCb === "function") {
|
|
273
|
-
this.send(command, optionsOrCb);
|
|
274
|
-
}
|
|
275
|
-
else if (typeof cb === "function") {
|
|
276
|
-
if (typeof optionsOrCb !== "object")
|
|
277
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
278
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
279
|
-
}
|
|
280
|
-
else {
|
|
281
|
-
return this.send(command, optionsOrCb);
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
getSnapshot(args, optionsOrCb, cb) {
|
|
285
|
-
const command = new GetSnapshotCommand_1.GetSnapshotCommand(args);
|
|
286
|
-
if (typeof optionsOrCb === "function") {
|
|
287
|
-
this.send(command, optionsOrCb);
|
|
288
|
-
}
|
|
289
|
-
else if (typeof cb === "function") {
|
|
290
|
-
if (typeof optionsOrCb !== "object")
|
|
291
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
292
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
293
|
-
}
|
|
294
|
-
else {
|
|
295
|
-
return this.send(command, optionsOrCb);
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
getTableRestoreStatus(args, optionsOrCb, cb) {
|
|
299
|
-
const command = new GetTableRestoreStatusCommand_1.GetTableRestoreStatusCommand(args);
|
|
300
|
-
if (typeof optionsOrCb === "function") {
|
|
301
|
-
this.send(command, optionsOrCb);
|
|
302
|
-
}
|
|
303
|
-
else if (typeof cb === "function") {
|
|
304
|
-
if (typeof optionsOrCb !== "object")
|
|
305
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
306
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
307
|
-
}
|
|
308
|
-
else {
|
|
309
|
-
return this.send(command, optionsOrCb);
|
|
310
|
-
}
|
|
311
|
-
}
|
|
312
|
-
getUsageLimit(args, optionsOrCb, cb) {
|
|
313
|
-
const command = new GetUsageLimitCommand_1.GetUsageLimitCommand(args);
|
|
314
|
-
if (typeof optionsOrCb === "function") {
|
|
315
|
-
this.send(command, optionsOrCb);
|
|
316
|
-
}
|
|
317
|
-
else if (typeof cb === "function") {
|
|
318
|
-
if (typeof optionsOrCb !== "object")
|
|
319
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
320
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
321
|
-
}
|
|
322
|
-
else {
|
|
323
|
-
return this.send(command, optionsOrCb);
|
|
324
|
-
}
|
|
325
|
-
}
|
|
326
|
-
getWorkgroup(args, optionsOrCb, cb) {
|
|
327
|
-
const command = new GetWorkgroupCommand_1.GetWorkgroupCommand(args);
|
|
328
|
-
if (typeof optionsOrCb === "function") {
|
|
329
|
-
this.send(command, optionsOrCb);
|
|
330
|
-
}
|
|
331
|
-
else if (typeof cb === "function") {
|
|
332
|
-
if (typeof optionsOrCb !== "object")
|
|
333
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
334
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
335
|
-
}
|
|
336
|
-
else {
|
|
337
|
-
return this.send(command, optionsOrCb);
|
|
338
|
-
}
|
|
339
|
-
}
|
|
340
|
-
listEndpointAccess(args, optionsOrCb, cb) {
|
|
341
|
-
const command = new ListEndpointAccessCommand_1.ListEndpointAccessCommand(args);
|
|
342
|
-
if (typeof optionsOrCb === "function") {
|
|
343
|
-
this.send(command, optionsOrCb);
|
|
344
|
-
}
|
|
345
|
-
else if (typeof cb === "function") {
|
|
346
|
-
if (typeof optionsOrCb !== "object")
|
|
347
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
348
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
349
|
-
}
|
|
350
|
-
else {
|
|
351
|
-
return this.send(command, optionsOrCb);
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
listNamespaces(args, optionsOrCb, cb) {
|
|
355
|
-
const command = new ListNamespacesCommand_1.ListNamespacesCommand(args);
|
|
356
|
-
if (typeof optionsOrCb === "function") {
|
|
357
|
-
this.send(command, optionsOrCb);
|
|
358
|
-
}
|
|
359
|
-
else if (typeof cb === "function") {
|
|
360
|
-
if (typeof optionsOrCb !== "object")
|
|
361
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
362
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
363
|
-
}
|
|
364
|
-
else {
|
|
365
|
-
return this.send(command, optionsOrCb);
|
|
366
|
-
}
|
|
367
|
-
}
|
|
368
|
-
listRecoveryPoints(args, optionsOrCb, cb) {
|
|
369
|
-
const command = new ListRecoveryPointsCommand_1.ListRecoveryPointsCommand(args);
|
|
370
|
-
if (typeof optionsOrCb === "function") {
|
|
371
|
-
this.send(command, optionsOrCb);
|
|
372
|
-
}
|
|
373
|
-
else if (typeof cb === "function") {
|
|
374
|
-
if (typeof optionsOrCb !== "object")
|
|
375
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
376
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
377
|
-
}
|
|
378
|
-
else {
|
|
379
|
-
return this.send(command, optionsOrCb);
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
listSnapshots(args, optionsOrCb, cb) {
|
|
383
|
-
const command = new ListSnapshotsCommand_1.ListSnapshotsCommand(args);
|
|
384
|
-
if (typeof optionsOrCb === "function") {
|
|
385
|
-
this.send(command, optionsOrCb);
|
|
386
|
-
}
|
|
387
|
-
else if (typeof cb === "function") {
|
|
388
|
-
if (typeof optionsOrCb !== "object")
|
|
389
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
390
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
391
|
-
}
|
|
392
|
-
else {
|
|
393
|
-
return this.send(command, optionsOrCb);
|
|
394
|
-
}
|
|
395
|
-
}
|
|
396
|
-
listTableRestoreStatus(args, optionsOrCb, cb) {
|
|
397
|
-
const command = new ListTableRestoreStatusCommand_1.ListTableRestoreStatusCommand(args);
|
|
398
|
-
if (typeof optionsOrCb === "function") {
|
|
399
|
-
this.send(command, optionsOrCb);
|
|
400
|
-
}
|
|
401
|
-
else if (typeof cb === "function") {
|
|
402
|
-
if (typeof optionsOrCb !== "object")
|
|
403
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
404
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
405
|
-
}
|
|
406
|
-
else {
|
|
407
|
-
return this.send(command, optionsOrCb);
|
|
408
|
-
}
|
|
409
|
-
}
|
|
410
|
-
listTagsForResource(args, optionsOrCb, cb) {
|
|
411
|
-
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
412
|
-
if (typeof optionsOrCb === "function") {
|
|
413
|
-
this.send(command, optionsOrCb);
|
|
414
|
-
}
|
|
415
|
-
else if (typeof cb === "function") {
|
|
416
|
-
if (typeof optionsOrCb !== "object")
|
|
417
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
418
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
419
|
-
}
|
|
420
|
-
else {
|
|
421
|
-
return this.send(command, optionsOrCb);
|
|
422
|
-
}
|
|
423
|
-
}
|
|
424
|
-
listUsageLimits(args, optionsOrCb, cb) {
|
|
425
|
-
const command = new ListUsageLimitsCommand_1.ListUsageLimitsCommand(args);
|
|
426
|
-
if (typeof optionsOrCb === "function") {
|
|
427
|
-
this.send(command, optionsOrCb);
|
|
428
|
-
}
|
|
429
|
-
else if (typeof cb === "function") {
|
|
430
|
-
if (typeof optionsOrCb !== "object")
|
|
431
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
432
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
433
|
-
}
|
|
434
|
-
else {
|
|
435
|
-
return this.send(command, optionsOrCb);
|
|
436
|
-
}
|
|
437
|
-
}
|
|
438
|
-
listWorkgroups(args, optionsOrCb, cb) {
|
|
439
|
-
const command = new ListWorkgroupsCommand_1.ListWorkgroupsCommand(args);
|
|
440
|
-
if (typeof optionsOrCb === "function") {
|
|
441
|
-
this.send(command, optionsOrCb);
|
|
442
|
-
}
|
|
443
|
-
else if (typeof cb === "function") {
|
|
444
|
-
if (typeof optionsOrCb !== "object")
|
|
445
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
446
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
447
|
-
}
|
|
448
|
-
else {
|
|
449
|
-
return this.send(command, optionsOrCb);
|
|
450
|
-
}
|
|
451
|
-
}
|
|
452
|
-
putResourcePolicy(args, optionsOrCb, cb) {
|
|
453
|
-
const command = new PutResourcePolicyCommand_1.PutResourcePolicyCommand(args);
|
|
454
|
-
if (typeof optionsOrCb === "function") {
|
|
455
|
-
this.send(command, optionsOrCb);
|
|
456
|
-
}
|
|
457
|
-
else if (typeof cb === "function") {
|
|
458
|
-
if (typeof optionsOrCb !== "object")
|
|
459
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
460
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
461
|
-
}
|
|
462
|
-
else {
|
|
463
|
-
return this.send(command, optionsOrCb);
|
|
464
|
-
}
|
|
465
|
-
}
|
|
466
|
-
restoreFromRecoveryPoint(args, optionsOrCb, cb) {
|
|
467
|
-
const command = new RestoreFromRecoveryPointCommand_1.RestoreFromRecoveryPointCommand(args);
|
|
468
|
-
if (typeof optionsOrCb === "function") {
|
|
469
|
-
this.send(command, optionsOrCb);
|
|
470
|
-
}
|
|
471
|
-
else if (typeof cb === "function") {
|
|
472
|
-
if (typeof optionsOrCb !== "object")
|
|
473
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
474
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
475
|
-
}
|
|
476
|
-
else {
|
|
477
|
-
return this.send(command, optionsOrCb);
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
restoreFromSnapshot(args, optionsOrCb, cb) {
|
|
481
|
-
const command = new RestoreFromSnapshotCommand_1.RestoreFromSnapshotCommand(args);
|
|
482
|
-
if (typeof optionsOrCb === "function") {
|
|
483
|
-
this.send(command, optionsOrCb);
|
|
484
|
-
}
|
|
485
|
-
else if (typeof cb === "function") {
|
|
486
|
-
if (typeof optionsOrCb !== "object")
|
|
487
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
488
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
489
|
-
}
|
|
490
|
-
else {
|
|
491
|
-
return this.send(command, optionsOrCb);
|
|
492
|
-
}
|
|
493
|
-
}
|
|
494
|
-
restoreTableFromSnapshot(args, optionsOrCb, cb) {
|
|
495
|
-
const command = new RestoreTableFromSnapshotCommand_1.RestoreTableFromSnapshotCommand(args);
|
|
496
|
-
if (typeof optionsOrCb === "function") {
|
|
497
|
-
this.send(command, optionsOrCb);
|
|
498
|
-
}
|
|
499
|
-
else if (typeof cb === "function") {
|
|
500
|
-
if (typeof optionsOrCb !== "object")
|
|
501
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
502
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
503
|
-
}
|
|
504
|
-
else {
|
|
505
|
-
return this.send(command, optionsOrCb);
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
tagResource(args, optionsOrCb, cb) {
|
|
509
|
-
const command = new TagResourceCommand_1.TagResourceCommand(args);
|
|
510
|
-
if (typeof optionsOrCb === "function") {
|
|
511
|
-
this.send(command, optionsOrCb);
|
|
512
|
-
}
|
|
513
|
-
else if (typeof cb === "function") {
|
|
514
|
-
if (typeof optionsOrCb !== "object")
|
|
515
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
516
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
517
|
-
}
|
|
518
|
-
else {
|
|
519
|
-
return this.send(command, optionsOrCb);
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
untagResource(args, optionsOrCb, cb) {
|
|
523
|
-
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
524
|
-
if (typeof optionsOrCb === "function") {
|
|
525
|
-
this.send(command, optionsOrCb);
|
|
526
|
-
}
|
|
527
|
-
else if (typeof cb === "function") {
|
|
528
|
-
if (typeof optionsOrCb !== "object")
|
|
529
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
530
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
531
|
-
}
|
|
532
|
-
else {
|
|
533
|
-
return this.send(command, optionsOrCb);
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
updateEndpointAccess(args, optionsOrCb, cb) {
|
|
537
|
-
const command = new UpdateEndpointAccessCommand_1.UpdateEndpointAccessCommand(args);
|
|
538
|
-
if (typeof optionsOrCb === "function") {
|
|
539
|
-
this.send(command, optionsOrCb);
|
|
540
|
-
}
|
|
541
|
-
else if (typeof cb === "function") {
|
|
542
|
-
if (typeof optionsOrCb !== "object")
|
|
543
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
544
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
545
|
-
}
|
|
546
|
-
else {
|
|
547
|
-
return this.send(command, optionsOrCb);
|
|
548
|
-
}
|
|
549
|
-
}
|
|
550
|
-
updateNamespace(args, optionsOrCb, cb) {
|
|
551
|
-
const command = new UpdateNamespaceCommand_1.UpdateNamespaceCommand(args);
|
|
552
|
-
if (typeof optionsOrCb === "function") {
|
|
553
|
-
this.send(command, optionsOrCb);
|
|
554
|
-
}
|
|
555
|
-
else if (typeof cb === "function") {
|
|
556
|
-
if (typeof optionsOrCb !== "object")
|
|
557
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
558
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
559
|
-
}
|
|
560
|
-
else {
|
|
561
|
-
return this.send(command, optionsOrCb);
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
updateSnapshot(args, optionsOrCb, cb) {
|
|
565
|
-
const command = new UpdateSnapshotCommand_1.UpdateSnapshotCommand(args);
|
|
566
|
-
if (typeof optionsOrCb === "function") {
|
|
567
|
-
this.send(command, optionsOrCb);
|
|
568
|
-
}
|
|
569
|
-
else if (typeof cb === "function") {
|
|
570
|
-
if (typeof optionsOrCb !== "object")
|
|
571
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
572
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
573
|
-
}
|
|
574
|
-
else {
|
|
575
|
-
return this.send(command, optionsOrCb);
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
updateUsageLimit(args, optionsOrCb, cb) {
|
|
579
|
-
const command = new UpdateUsageLimitCommand_1.UpdateUsageLimitCommand(args);
|
|
580
|
-
if (typeof optionsOrCb === "function") {
|
|
581
|
-
this.send(command, optionsOrCb);
|
|
582
|
-
}
|
|
583
|
-
else if (typeof cb === "function") {
|
|
584
|
-
if (typeof optionsOrCb !== "object")
|
|
585
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
586
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
587
|
-
}
|
|
588
|
-
else {
|
|
589
|
-
return this.send(command, optionsOrCb);
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
updateWorkgroup(args, optionsOrCb, cb) {
|
|
593
|
-
const command = new UpdateWorkgroupCommand_1.UpdateWorkgroupCommand(args);
|
|
594
|
-
if (typeof optionsOrCb === "function") {
|
|
595
|
-
this.send(command, optionsOrCb);
|
|
596
|
-
}
|
|
597
|
-
else if (typeof cb === "function") {
|
|
598
|
-
if (typeof optionsOrCb !== "object")
|
|
599
|
-
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
600
|
-
this.send(command, optionsOrCb || {}, cb);
|
|
601
|
-
}
|
|
602
|
-
else {
|
|
603
|
-
return this.send(command, optionsOrCb);
|
|
604
|
-
}
|
|
605
|
-
}
|
|
606
89
|
}
|
|
607
90
|
exports.RedshiftServerless = RedshiftServerless;
|
|
91
|
+
(0, smithy_client_1.createAggregatedClient)(commands, RedshiftServerless);
|