@aws-sdk/client-redshift-serverless 3.218.0 → 3.223.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 +45 -0
- package/dist-cjs/commands/GetTableRestoreStatusCommand.js +46 -0
- package/dist-cjs/commands/ListTableRestoreStatusCommand.js +46 -0
- package/dist-cjs/commands/RestoreTableFromSnapshotCommand.js +46 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +49 -21
- package/dist-cjs/pagination/ListTableRestoreStatusPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_1.js +248 -2
- package/dist-es/RedshiftServerless.js +45 -0
- package/dist-es/commands/GetTableRestoreStatusCommand.js +42 -0
- package/dist-es/commands/ListTableRestoreStatusCommand.js +42 -0
- package/dist-es/commands/RestoreTableFromSnapshotCommand.js +42 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +37 -16
- package/dist-es/pagination/ListTableRestoreStatusPaginator.js +32 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_1.js +240 -0
- package/dist-types/RedshiftServerless.d.ts +26 -8
- package/dist-types/RedshiftServerlessClient.d.ts +5 -2
- package/dist-types/commands/GetCredentialsCommand.d.ts +5 -8
- package/dist-types/commands/GetTableRestoreStatusCommand.d.ts +37 -0
- package/dist-types/commands/ListTableRestoreStatusCommand.d.ts +37 -0
- package/dist-types/commands/RestoreTableFromSnapshotCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +271 -46
- package/dist-types/pagination/ListTableRestoreStatusPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_1.d.ts +9 -0
- package/dist-types/ts3.4/RedshiftServerless.d.ts +51 -0
- package/dist-types/ts3.4/RedshiftServerlessClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/GetTableRestoreStatusCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListTableRestoreStatusCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/RestoreTableFromSnapshotCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +89 -13
- package/dist-types/ts3.4/pagination/ListTableRestoreStatusPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +36 -0
- package/package.json +28 -28
|
@@ -72,6 +72,19 @@ export class ServiceQuotaExceededException extends __BaseException {
|
|
|
72
72
|
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
|
+
export class TooManyTagsException extends __BaseException {
|
|
76
|
+
constructor(opts) {
|
|
77
|
+
super({
|
|
78
|
+
name: "TooManyTagsException",
|
|
79
|
+
$fault: "client",
|
|
80
|
+
...opts,
|
|
81
|
+
});
|
|
82
|
+
this.name = "TooManyTagsException";
|
|
83
|
+
this.$fault = "client";
|
|
84
|
+
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
85
|
+
this.resourceName = opts.resourceName;
|
|
86
|
+
}
|
|
87
|
+
}
|
|
75
88
|
export class ValidationException extends __BaseException {
|
|
76
89
|
constructor(opts) {
|
|
77
90
|
super({
|
|
@@ -96,19 +109,6 @@ export var NamespaceStatus;
|
|
|
96
109
|
NamespaceStatus["DELETING"] = "DELETING";
|
|
97
110
|
NamespaceStatus["MODIFYING"] = "MODIFYING";
|
|
98
111
|
})(NamespaceStatus || (NamespaceStatus = {}));
|
|
99
|
-
export class TooManyTagsException extends __BaseException {
|
|
100
|
-
constructor(opts) {
|
|
101
|
-
super({
|
|
102
|
-
name: "TooManyTagsException",
|
|
103
|
-
$fault: "client",
|
|
104
|
-
...opts,
|
|
105
|
-
});
|
|
106
|
-
this.name = "TooManyTagsException";
|
|
107
|
-
this.$fault = "client";
|
|
108
|
-
Object.setPrototypeOf(this, TooManyTagsException.prototype);
|
|
109
|
-
this.resourceName = opts.resourceName;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
112
|
export var UsageLimitBreachAction;
|
|
113
113
|
(function (UsageLimitBreachAction) {
|
|
114
114
|
UsageLimitBreachAction["DEACTIVATE"] = "deactivate";
|
|
@@ -175,6 +175,9 @@ export class ThrottlingException extends __BaseException {
|
|
|
175
175
|
export const ConfigParameterFilterSensitiveLog = (obj) => ({
|
|
176
176
|
...obj,
|
|
177
177
|
});
|
|
178
|
+
export const TagFilterSensitiveLog = (obj) => ({
|
|
179
|
+
...obj,
|
|
180
|
+
});
|
|
178
181
|
export const ConvertRecoveryPointToSnapshotRequestFilterSensitiveLog = (obj) => ({
|
|
179
182
|
...obj,
|
|
180
183
|
});
|
|
@@ -202,9 +205,6 @@ export const EndpointAccessFilterSensitiveLog = (obj) => ({
|
|
|
202
205
|
export const CreateEndpointAccessResponseFilterSensitiveLog = (obj) => ({
|
|
203
206
|
...obj,
|
|
204
207
|
});
|
|
205
|
-
export const TagFilterSensitiveLog = (obj) => ({
|
|
206
|
-
...obj,
|
|
207
|
-
});
|
|
208
208
|
export const CreateNamespaceRequestFilterSensitiveLog = (obj) => ({
|
|
209
209
|
...obj,
|
|
210
210
|
...(obj.adminUsername && { adminUsername: SENSITIVE_STRING }),
|
|
@@ -339,6 +339,15 @@ export const GetSnapshotRequestFilterSensitiveLog = (obj) => ({
|
|
|
339
339
|
export const GetSnapshotResponseFilterSensitiveLog = (obj) => ({
|
|
340
340
|
...obj,
|
|
341
341
|
});
|
|
342
|
+
export const GetTableRestoreStatusRequestFilterSensitiveLog = (obj) => ({
|
|
343
|
+
...obj,
|
|
344
|
+
});
|
|
345
|
+
export const TableRestoreStatusFilterSensitiveLog = (obj) => ({
|
|
346
|
+
...obj,
|
|
347
|
+
});
|
|
348
|
+
export const GetTableRestoreStatusResponseFilterSensitiveLog = (obj) => ({
|
|
349
|
+
...obj,
|
|
350
|
+
});
|
|
342
351
|
export const GetUsageLimitRequestFilterSensitiveLog = (obj) => ({
|
|
343
352
|
...obj,
|
|
344
353
|
});
|
|
@@ -370,6 +379,12 @@ export const ListSnapshotsRequestFilterSensitiveLog = (obj) => ({
|
|
|
370
379
|
export const ListSnapshotsResponseFilterSensitiveLog = (obj) => ({
|
|
371
380
|
...obj,
|
|
372
381
|
});
|
|
382
|
+
export const ListTableRestoreStatusRequestFilterSensitiveLog = (obj) => ({
|
|
383
|
+
...obj,
|
|
384
|
+
});
|
|
385
|
+
export const ListTableRestoreStatusResponseFilterSensitiveLog = (obj) => ({
|
|
386
|
+
...obj,
|
|
387
|
+
});
|
|
373
388
|
export const ListTagsForResourceRequestFilterSensitiveLog = (obj) => ({
|
|
374
389
|
...obj,
|
|
375
390
|
});
|
|
@@ -417,6 +432,12 @@ export const RestoreFromSnapshotResponseFilterSensitiveLog = (obj) => ({
|
|
|
417
432
|
...obj,
|
|
418
433
|
...(obj.namespace && { namespace: NamespaceFilterSensitiveLog(obj.namespace) }),
|
|
419
434
|
});
|
|
435
|
+
export const RestoreTableFromSnapshotRequestFilterSensitiveLog = (obj) => ({
|
|
436
|
+
...obj,
|
|
437
|
+
});
|
|
438
|
+
export const RestoreTableFromSnapshotResponseFilterSensitiveLog = (obj) => ({
|
|
439
|
+
...obj,
|
|
440
|
+
});
|
|
420
441
|
export const UpdateSnapshotRequestFilterSensitiveLog = (obj) => ({
|
|
421
442
|
...obj,
|
|
422
443
|
});
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { ListTableRestoreStatusCommand, } from "../commands/ListTableRestoreStatusCommand";
|
|
2
|
+
import { RedshiftServerless } from "../RedshiftServerless";
|
|
3
|
+
import { RedshiftServerlessClient } from "../RedshiftServerlessClient";
|
|
4
|
+
const makePagedClientRequest = async (client, input, ...args) => {
|
|
5
|
+
return await client.send(new ListTableRestoreStatusCommand(input), ...args);
|
|
6
|
+
};
|
|
7
|
+
const makePagedRequest = async (client, input, ...args) => {
|
|
8
|
+
return await client.listTableRestoreStatus(input, ...args);
|
|
9
|
+
};
|
|
10
|
+
export async function* paginateListTableRestoreStatus(config, input, ...additionalArguments) {
|
|
11
|
+
let token = config.startingToken || undefined;
|
|
12
|
+
let hasNext = true;
|
|
13
|
+
let page;
|
|
14
|
+
while (hasNext) {
|
|
15
|
+
input.nextToken = token;
|
|
16
|
+
input["maxResults"] = config.pageSize;
|
|
17
|
+
if (config.client instanceof RedshiftServerless) {
|
|
18
|
+
page = await makePagedRequest(config.client, input, ...additionalArguments);
|
|
19
|
+
}
|
|
20
|
+
else if (config.client instanceof RedshiftServerlessClient) {
|
|
21
|
+
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
|
|
22
|
+
}
|
|
23
|
+
else {
|
|
24
|
+
throw new Error("Invalid client, expected RedshiftServerless | RedshiftServerlessClient");
|
|
25
|
+
}
|
|
26
|
+
yield page;
|
|
27
|
+
const prevToken = token;
|
|
28
|
+
token = page.nextToken;
|
|
29
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
30
|
+
}
|
|
31
|
+
return undefined;
|
|
32
|
+
}
|
|
@@ -3,5 +3,6 @@ export * from "./ListEndpointAccessPaginator";
|
|
|
3
3
|
export * from "./ListNamespacesPaginator";
|
|
4
4
|
export * from "./ListRecoveryPointsPaginator";
|
|
5
5
|
export * from "./ListSnapshotsPaginator";
|
|
6
|
+
export * from "./ListTableRestoreStatusPaginator";
|
|
6
7
|
export * from "./ListUsageLimitsPaginator";
|
|
7
8
|
export * from "./ListWorkgroupsPaginator";
|
|
@@ -164,6 +164,15 @@ export const serializeAws_json1_1GetSnapshotCommand = async (input, context) =>
|
|
|
164
164
|
body = JSON.stringify(serializeAws_json1_1GetSnapshotRequest(input, context));
|
|
165
165
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
166
166
|
};
|
|
167
|
+
export const serializeAws_json1_1GetTableRestoreStatusCommand = async (input, context) => {
|
|
168
|
+
const headers = {
|
|
169
|
+
"content-type": "application/x-amz-json-1.1",
|
|
170
|
+
"x-amz-target": "RedshiftServerless.GetTableRestoreStatus",
|
|
171
|
+
};
|
|
172
|
+
let body;
|
|
173
|
+
body = JSON.stringify(serializeAws_json1_1GetTableRestoreStatusRequest(input, context));
|
|
174
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
175
|
+
};
|
|
167
176
|
export const serializeAws_json1_1GetUsageLimitCommand = async (input, context) => {
|
|
168
177
|
const headers = {
|
|
169
178
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -218,6 +227,15 @@ export const serializeAws_json1_1ListSnapshotsCommand = async (input, context) =
|
|
|
218
227
|
body = JSON.stringify(serializeAws_json1_1ListSnapshotsRequest(input, context));
|
|
219
228
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
220
229
|
};
|
|
230
|
+
export const serializeAws_json1_1ListTableRestoreStatusCommand = async (input, context) => {
|
|
231
|
+
const headers = {
|
|
232
|
+
"content-type": "application/x-amz-json-1.1",
|
|
233
|
+
"x-amz-target": "RedshiftServerless.ListTableRestoreStatus",
|
|
234
|
+
};
|
|
235
|
+
let body;
|
|
236
|
+
body = JSON.stringify(serializeAws_json1_1ListTableRestoreStatusRequest(input, context));
|
|
237
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
238
|
+
};
|
|
221
239
|
export const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => {
|
|
222
240
|
const headers = {
|
|
223
241
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -272,6 +290,15 @@ export const serializeAws_json1_1RestoreFromSnapshotCommand = async (input, cont
|
|
|
272
290
|
body = JSON.stringify(serializeAws_json1_1RestoreFromSnapshotRequest(input, context));
|
|
273
291
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
274
292
|
};
|
|
293
|
+
export const serializeAws_json1_1RestoreTableFromSnapshotCommand = async (input, context) => {
|
|
294
|
+
const headers = {
|
|
295
|
+
"content-type": "application/x-amz-json-1.1",
|
|
296
|
+
"x-amz-target": "RedshiftServerless.RestoreTableFromSnapshot",
|
|
297
|
+
};
|
|
298
|
+
let body;
|
|
299
|
+
body = JSON.stringify(serializeAws_json1_1RestoreTableFromSnapshotRequest(input, context));
|
|
300
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
301
|
+
};
|
|
275
302
|
export const serializeAws_json1_1TagResourceCommand = async (input, context) => {
|
|
276
303
|
const headers = {
|
|
277
304
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -367,6 +394,9 @@ const deserializeAws_json1_1ConvertRecoveryPointToSnapshotCommandError = async (
|
|
|
367
394
|
case "ServiceQuotaExceededException":
|
|
368
395
|
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
369
396
|
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
397
|
+
case "TooManyTagsException":
|
|
398
|
+
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
399
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
370
400
|
case "ValidationException":
|
|
371
401
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
372
402
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
@@ -502,6 +532,9 @@ const deserializeAws_json1_1CreateSnapshotCommandError = async (output, context)
|
|
|
502
532
|
case "ServiceQuotaExceededException":
|
|
503
533
|
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
504
534
|
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
535
|
+
case "TooManyTagsException":
|
|
536
|
+
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
537
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
505
538
|
case "ValidationException":
|
|
506
539
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
507
540
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
@@ -1097,6 +1130,42 @@ const deserializeAws_json1_1GetSnapshotCommandError = async (output, context) =>
|
|
|
1097
1130
|
});
|
|
1098
1131
|
}
|
|
1099
1132
|
};
|
|
1133
|
+
export const deserializeAws_json1_1GetTableRestoreStatusCommand = async (output, context) => {
|
|
1134
|
+
if (output.statusCode >= 300) {
|
|
1135
|
+
return deserializeAws_json1_1GetTableRestoreStatusCommandError(output, context);
|
|
1136
|
+
}
|
|
1137
|
+
const data = await parseBody(output.body, context);
|
|
1138
|
+
let contents = {};
|
|
1139
|
+
contents = deserializeAws_json1_1GetTableRestoreStatusResponse(data, context);
|
|
1140
|
+
const response = {
|
|
1141
|
+
$metadata: deserializeMetadata(output),
|
|
1142
|
+
...contents,
|
|
1143
|
+
};
|
|
1144
|
+
return Promise.resolve(response);
|
|
1145
|
+
};
|
|
1146
|
+
const deserializeAws_json1_1GetTableRestoreStatusCommandError = async (output, context) => {
|
|
1147
|
+
const parsedOutput = {
|
|
1148
|
+
...output,
|
|
1149
|
+
body: await parseErrorBody(output.body, context),
|
|
1150
|
+
};
|
|
1151
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1152
|
+
switch (errorCode) {
|
|
1153
|
+
case "ResourceNotFoundException":
|
|
1154
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1155
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1156
|
+
case "ValidationException":
|
|
1157
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1158
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1159
|
+
default:
|
|
1160
|
+
const parsedBody = parsedOutput.body;
|
|
1161
|
+
throwDefaultError({
|
|
1162
|
+
output,
|
|
1163
|
+
parsedBody,
|
|
1164
|
+
exceptionCtor: __BaseException,
|
|
1165
|
+
errorCode,
|
|
1166
|
+
});
|
|
1167
|
+
}
|
|
1168
|
+
};
|
|
1100
1169
|
export const deserializeAws_json1_1GetUsageLimitCommand = async (output, context) => {
|
|
1101
1170
|
if (output.statusCode >= 300) {
|
|
1102
1171
|
return deserializeAws_json1_1GetUsageLimitCommandError(output, context);
|
|
@@ -1331,6 +1400,45 @@ const deserializeAws_json1_1ListSnapshotsCommandError = async (output, context)
|
|
|
1331
1400
|
});
|
|
1332
1401
|
}
|
|
1333
1402
|
};
|
|
1403
|
+
export const deserializeAws_json1_1ListTableRestoreStatusCommand = async (output, context) => {
|
|
1404
|
+
if (output.statusCode >= 300) {
|
|
1405
|
+
return deserializeAws_json1_1ListTableRestoreStatusCommandError(output, context);
|
|
1406
|
+
}
|
|
1407
|
+
const data = await parseBody(output.body, context);
|
|
1408
|
+
let contents = {};
|
|
1409
|
+
contents = deserializeAws_json1_1ListTableRestoreStatusResponse(data, context);
|
|
1410
|
+
const response = {
|
|
1411
|
+
$metadata: deserializeMetadata(output),
|
|
1412
|
+
...contents,
|
|
1413
|
+
};
|
|
1414
|
+
return Promise.resolve(response);
|
|
1415
|
+
};
|
|
1416
|
+
const deserializeAws_json1_1ListTableRestoreStatusCommandError = async (output, context) => {
|
|
1417
|
+
const parsedOutput = {
|
|
1418
|
+
...output,
|
|
1419
|
+
body: await parseErrorBody(output.body, context),
|
|
1420
|
+
};
|
|
1421
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1422
|
+
switch (errorCode) {
|
|
1423
|
+
case "InvalidPaginationException":
|
|
1424
|
+
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
1425
|
+
throw await deserializeAws_json1_1InvalidPaginationExceptionResponse(parsedOutput, context);
|
|
1426
|
+
case "ResourceNotFoundException":
|
|
1427
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1428
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1429
|
+
case "ValidationException":
|
|
1430
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1431
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1432
|
+
default:
|
|
1433
|
+
const parsedBody = parsedOutput.body;
|
|
1434
|
+
throwDefaultError({
|
|
1435
|
+
output,
|
|
1436
|
+
parsedBody,
|
|
1437
|
+
exceptionCtor: __BaseException,
|
|
1438
|
+
errorCode,
|
|
1439
|
+
});
|
|
1440
|
+
}
|
|
1441
|
+
};
|
|
1334
1442
|
export const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
1335
1443
|
if (output.statusCode >= 300) {
|
|
1336
1444
|
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
@@ -1586,6 +1694,48 @@ const deserializeAws_json1_1RestoreFromSnapshotCommandError = async (output, con
|
|
|
1586
1694
|
});
|
|
1587
1695
|
}
|
|
1588
1696
|
};
|
|
1697
|
+
export const deserializeAws_json1_1RestoreTableFromSnapshotCommand = async (output, context) => {
|
|
1698
|
+
if (output.statusCode >= 300) {
|
|
1699
|
+
return deserializeAws_json1_1RestoreTableFromSnapshotCommandError(output, context);
|
|
1700
|
+
}
|
|
1701
|
+
const data = await parseBody(output.body, context);
|
|
1702
|
+
let contents = {};
|
|
1703
|
+
contents = deserializeAws_json1_1RestoreTableFromSnapshotResponse(data, context);
|
|
1704
|
+
const response = {
|
|
1705
|
+
$metadata: deserializeMetadata(output),
|
|
1706
|
+
...contents,
|
|
1707
|
+
};
|
|
1708
|
+
return Promise.resolve(response);
|
|
1709
|
+
};
|
|
1710
|
+
const deserializeAws_json1_1RestoreTableFromSnapshotCommandError = async (output, context) => {
|
|
1711
|
+
const parsedOutput = {
|
|
1712
|
+
...output,
|
|
1713
|
+
body: await parseErrorBody(output.body, context),
|
|
1714
|
+
};
|
|
1715
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1716
|
+
switch (errorCode) {
|
|
1717
|
+
case "ConflictException":
|
|
1718
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1719
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1720
|
+
case "InternalServerException":
|
|
1721
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1722
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1723
|
+
case "ResourceNotFoundException":
|
|
1724
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1725
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1726
|
+
case "ValidationException":
|
|
1727
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1728
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1729
|
+
default:
|
|
1730
|
+
const parsedBody = parsedOutput.body;
|
|
1731
|
+
throwDefaultError({
|
|
1732
|
+
output,
|
|
1733
|
+
parsedBody,
|
|
1734
|
+
exceptionCtor: __BaseException,
|
|
1735
|
+
errorCode,
|
|
1736
|
+
});
|
|
1737
|
+
}
|
|
1738
|
+
};
|
|
1589
1739
|
export const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
1590
1740
|
if (output.statusCode >= 300) {
|
|
1591
1741
|
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
@@ -1997,6 +2147,7 @@ const serializeAws_json1_1ConvertRecoveryPointToSnapshotRequest = (input, contex
|
|
|
1997
2147
|
...(input.recoveryPointId != null && { recoveryPointId: input.recoveryPointId }),
|
|
1998
2148
|
...(input.retentionPeriod != null && { retentionPeriod: input.retentionPeriod }),
|
|
1999
2149
|
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2150
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2000
2151
|
};
|
|
2001
2152
|
};
|
|
2002
2153
|
const serializeAws_json1_1CreateEndpointAccessRequest = (input, context) => {
|
|
@@ -2027,6 +2178,7 @@ const serializeAws_json1_1CreateSnapshotRequest = (input, context) => {
|
|
|
2027
2178
|
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2028
2179
|
...(input.retentionPeriod != null && { retentionPeriod: input.retentionPeriod }),
|
|
2029
2180
|
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2181
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2030
2182
|
};
|
|
2031
2183
|
};
|
|
2032
2184
|
const serializeAws_json1_1CreateUsageLimitRequest = (input, context) => {
|
|
@@ -2046,6 +2198,7 @@ const serializeAws_json1_1CreateWorkgroupRequest = (input, context) => {
|
|
|
2046
2198
|
}),
|
|
2047
2199
|
...(input.enhancedVpcRouting != null && { enhancedVpcRouting: input.enhancedVpcRouting }),
|
|
2048
2200
|
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2201
|
+
...(input.port != null && { port: input.port }),
|
|
2049
2202
|
...(input.publiclyAccessible != null && { publiclyAccessible: input.publiclyAccessible }),
|
|
2050
2203
|
...(input.securityGroupIds != null && {
|
|
2051
2204
|
securityGroupIds: serializeAws_json1_1SecurityGroupIdList(input.securityGroupIds, context),
|
|
@@ -2123,6 +2276,11 @@ const serializeAws_json1_1GetSnapshotRequest = (input, context) => {
|
|
|
2123
2276
|
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2124
2277
|
};
|
|
2125
2278
|
};
|
|
2279
|
+
const serializeAws_json1_1GetTableRestoreStatusRequest = (input, context) => {
|
|
2280
|
+
return {
|
|
2281
|
+
...(input.tableRestoreRequestId != null && { tableRestoreRequestId: input.tableRestoreRequestId }),
|
|
2282
|
+
};
|
|
2283
|
+
};
|
|
2126
2284
|
const serializeAws_json1_1GetUsageLimitRequest = (input, context) => {
|
|
2127
2285
|
return {
|
|
2128
2286
|
...(input.usageLimitId != null && { usageLimitId: input.usageLimitId }),
|
|
@@ -2158,6 +2316,7 @@ const serializeAws_json1_1ListRecoveryPointsRequest = (input, context) => {
|
|
|
2158
2316
|
return {
|
|
2159
2317
|
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
2160
2318
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2319
|
+
...(input.namespaceArn != null && { namespaceArn: input.namespaceArn }),
|
|
2161
2320
|
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2162
2321
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2163
2322
|
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
@@ -2174,6 +2333,14 @@ const serializeAws_json1_1ListSnapshotsRequest = (input, context) => {
|
|
|
2174
2333
|
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
2175
2334
|
};
|
|
2176
2335
|
};
|
|
2336
|
+
const serializeAws_json1_1ListTableRestoreStatusRequest = (input, context) => {
|
|
2337
|
+
return {
|
|
2338
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2339
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2340
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2341
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2342
|
+
};
|
|
2343
|
+
};
|
|
2177
2344
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
2178
2345
|
return {
|
|
2179
2346
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
@@ -2222,6 +2389,22 @@ const serializeAws_json1_1RestoreFromSnapshotRequest = (input, context) => {
|
|
|
2222
2389
|
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2223
2390
|
};
|
|
2224
2391
|
};
|
|
2392
|
+
const serializeAws_json1_1RestoreTableFromSnapshotRequest = (input, context) => {
|
|
2393
|
+
return {
|
|
2394
|
+
...(input.activateCaseSensitiveIdentifier != null && {
|
|
2395
|
+
activateCaseSensitiveIdentifier: input.activateCaseSensitiveIdentifier,
|
|
2396
|
+
}),
|
|
2397
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2398
|
+
...(input.newTableName != null && { newTableName: input.newTableName }),
|
|
2399
|
+
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2400
|
+
...(input.sourceDatabaseName != null && { sourceDatabaseName: input.sourceDatabaseName }),
|
|
2401
|
+
...(input.sourceSchemaName != null && { sourceSchemaName: input.sourceSchemaName }),
|
|
2402
|
+
...(input.sourceTableName != null && { sourceTableName: input.sourceTableName }),
|
|
2403
|
+
...(input.targetDatabaseName != null && { targetDatabaseName: input.targetDatabaseName }),
|
|
2404
|
+
...(input.targetSchemaName != null && { targetSchemaName: input.targetSchemaName }),
|
|
2405
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2406
|
+
};
|
|
2407
|
+
};
|
|
2225
2408
|
const serializeAws_json1_1SecurityGroupIdList = (input, context) => {
|
|
2226
2409
|
return input
|
|
2227
2410
|
.filter((e) => e != null)
|
|
@@ -2307,6 +2490,7 @@ const serializeAws_json1_1UpdateWorkgroupRequest = (input, context) => {
|
|
|
2307
2490
|
configParameters: serializeAws_json1_1ConfigParameterList(input.configParameters, context),
|
|
2308
2491
|
}),
|
|
2309
2492
|
...(input.enhancedVpcRouting != null && { enhancedVpcRouting: input.enhancedVpcRouting }),
|
|
2493
|
+
...(input.port != null && { port: input.port }),
|
|
2310
2494
|
...(input.publiclyAccessible != null && { publiclyAccessible: input.publiclyAccessible }),
|
|
2311
2495
|
...(input.securityGroupIds != null && {
|
|
2312
2496
|
securityGroupIds: serializeAws_json1_1SecurityGroupIdList(input.securityGroupIds, context),
|
|
@@ -2490,6 +2674,13 @@ const deserializeAws_json1_1GetSnapshotResponse = (output, context) => {
|
|
|
2490
2674
|
snapshot: output.snapshot != null ? deserializeAws_json1_1Snapshot(output.snapshot, context) : undefined,
|
|
2491
2675
|
};
|
|
2492
2676
|
};
|
|
2677
|
+
const deserializeAws_json1_1GetTableRestoreStatusResponse = (output, context) => {
|
|
2678
|
+
return {
|
|
2679
|
+
tableRestoreStatus: output.tableRestoreStatus != null
|
|
2680
|
+
? deserializeAws_json1_1TableRestoreStatus(output.tableRestoreStatus, context)
|
|
2681
|
+
: undefined,
|
|
2682
|
+
};
|
|
2683
|
+
};
|
|
2493
2684
|
const deserializeAws_json1_1GetUsageLimitResponse = (output, context) => {
|
|
2494
2685
|
return {
|
|
2495
2686
|
usageLimit: output.usageLimit != null ? deserializeAws_json1_1UsageLimit(output.usageLimit, context) : undefined,
|
|
@@ -2552,6 +2743,14 @@ const deserializeAws_json1_1ListSnapshotsResponse = (output, context) => {
|
|
|
2552
2743
|
snapshots: output.snapshots != null ? deserializeAws_json1_1SnapshotList(output.snapshots, context) : undefined,
|
|
2553
2744
|
};
|
|
2554
2745
|
};
|
|
2746
|
+
const deserializeAws_json1_1ListTableRestoreStatusResponse = (output, context) => {
|
|
2747
|
+
return {
|
|
2748
|
+
nextToken: __expectString(output.nextToken),
|
|
2749
|
+
tableRestoreStatuses: output.tableRestoreStatuses != null
|
|
2750
|
+
? deserializeAws_json1_1TableRestoreStatusList(output.tableRestoreStatuses, context)
|
|
2751
|
+
: undefined,
|
|
2752
|
+
};
|
|
2753
|
+
};
|
|
2555
2754
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
2556
2755
|
return {
|
|
2557
2756
|
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
@@ -2632,6 +2831,7 @@ const deserializeAws_json1_1PutResourcePolicyResponse = (output, context) => {
|
|
|
2632
2831
|
};
|
|
2633
2832
|
const deserializeAws_json1_1RecoveryPoint = (output, context) => {
|
|
2634
2833
|
return {
|
|
2834
|
+
namespaceArn: __expectString(output.namespaceArn),
|
|
2635
2835
|
namespaceName: __expectString(output.namespaceName),
|
|
2636
2836
|
recoveryPointCreateTime: output.recoveryPointCreateTime != null
|
|
2637
2837
|
? __expectNonNull(__parseRfc3339DateTime(output.recoveryPointCreateTime))
|
|
@@ -2677,6 +2877,13 @@ const deserializeAws_json1_1RestoreFromSnapshotResponse = (output, context) => {
|
|
|
2677
2877
|
snapshotName: __expectString(output.snapshotName),
|
|
2678
2878
|
};
|
|
2679
2879
|
};
|
|
2880
|
+
const deserializeAws_json1_1RestoreTableFromSnapshotResponse = (output, context) => {
|
|
2881
|
+
return {
|
|
2882
|
+
tableRestoreStatus: output.tableRestoreStatus != null
|
|
2883
|
+
? deserializeAws_json1_1TableRestoreStatus(output.tableRestoreStatus, context)
|
|
2884
|
+
: undefined,
|
|
2885
|
+
};
|
|
2886
|
+
};
|
|
2680
2887
|
const deserializeAws_json1_1SecurityGroupIdList = (output, context) => {
|
|
2681
2888
|
const retVal = (output || [])
|
|
2682
2889
|
.filter((e) => e != null)
|
|
@@ -2747,6 +2954,38 @@ const deserializeAws_json1_1SubnetIdList = (output, context) => {
|
|
|
2747
2954
|
});
|
|
2748
2955
|
return retVal;
|
|
2749
2956
|
};
|
|
2957
|
+
const deserializeAws_json1_1TableRestoreStatus = (output, context) => {
|
|
2958
|
+
return {
|
|
2959
|
+
message: __expectString(output.message),
|
|
2960
|
+
namespaceName: __expectString(output.namespaceName),
|
|
2961
|
+
newTableName: __expectString(output.newTableName),
|
|
2962
|
+
progressInMegaBytes: __expectLong(output.progressInMegaBytes),
|
|
2963
|
+
requestTime: output.requestTime != null
|
|
2964
|
+
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.requestTime)))
|
|
2965
|
+
: undefined,
|
|
2966
|
+
snapshotName: __expectString(output.snapshotName),
|
|
2967
|
+
sourceDatabaseName: __expectString(output.sourceDatabaseName),
|
|
2968
|
+
sourceSchemaName: __expectString(output.sourceSchemaName),
|
|
2969
|
+
sourceTableName: __expectString(output.sourceTableName),
|
|
2970
|
+
status: __expectString(output.status),
|
|
2971
|
+
tableRestoreRequestId: __expectString(output.tableRestoreRequestId),
|
|
2972
|
+
targetDatabaseName: __expectString(output.targetDatabaseName),
|
|
2973
|
+
targetSchemaName: __expectString(output.targetSchemaName),
|
|
2974
|
+
totalDataInMegaBytes: __expectLong(output.totalDataInMegaBytes),
|
|
2975
|
+
workgroupName: __expectString(output.workgroupName),
|
|
2976
|
+
};
|
|
2977
|
+
};
|
|
2978
|
+
const deserializeAws_json1_1TableRestoreStatusList = (output, context) => {
|
|
2979
|
+
const retVal = (output || [])
|
|
2980
|
+
.filter((e) => e != null)
|
|
2981
|
+
.map((entry) => {
|
|
2982
|
+
if (entry === null) {
|
|
2983
|
+
return null;
|
|
2984
|
+
}
|
|
2985
|
+
return deserializeAws_json1_1TableRestoreStatus(entry, context);
|
|
2986
|
+
});
|
|
2987
|
+
return retVal;
|
|
2988
|
+
};
|
|
2750
2989
|
const deserializeAws_json1_1Tag = (output, context) => {
|
|
2751
2990
|
return {
|
|
2752
2991
|
key: __expectString(output.key),
|
|
@@ -2881,6 +3120,7 @@ const deserializeAws_json1_1Workgroup = (output, context) => {
|
|
|
2881
3120
|
endpoint: output.endpoint != null ? deserializeAws_json1_1Endpoint(output.endpoint, context) : undefined,
|
|
2882
3121
|
enhancedVpcRouting: __expectBoolean(output.enhancedVpcRouting),
|
|
2883
3122
|
namespaceName: __expectString(output.namespaceName),
|
|
3123
|
+
port: __expectInt32(output.port),
|
|
2884
3124
|
publiclyAccessible: __expectBoolean(output.publiclyAccessible),
|
|
2885
3125
|
securityGroupIds: output.securityGroupIds != null
|
|
2886
3126
|
? deserializeAws_json1_1SecurityGroupIdList(output.securityGroupIds, context)
|
|
@@ -17,18 +17,21 @@ import { GetNamespaceCommandInput, GetNamespaceCommandOutput } from "./commands/
|
|
|
17
17
|
import { GetRecoveryPointCommandInput, GetRecoveryPointCommandOutput } from "./commands/GetRecoveryPointCommand";
|
|
18
18
|
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
19
19
|
import { GetSnapshotCommandInput, GetSnapshotCommandOutput } from "./commands/GetSnapshotCommand";
|
|
20
|
+
import { GetTableRestoreStatusCommandInput, GetTableRestoreStatusCommandOutput } from "./commands/GetTableRestoreStatusCommand";
|
|
20
21
|
import { GetUsageLimitCommandInput, GetUsageLimitCommandOutput } from "./commands/GetUsageLimitCommand";
|
|
21
22
|
import { GetWorkgroupCommandInput, GetWorkgroupCommandOutput } from "./commands/GetWorkgroupCommand";
|
|
22
23
|
import { ListEndpointAccessCommandInput, ListEndpointAccessCommandOutput } from "./commands/ListEndpointAccessCommand";
|
|
23
24
|
import { ListNamespacesCommandInput, ListNamespacesCommandOutput } from "./commands/ListNamespacesCommand";
|
|
24
25
|
import { ListRecoveryPointsCommandInput, ListRecoveryPointsCommandOutput } from "./commands/ListRecoveryPointsCommand";
|
|
25
26
|
import { ListSnapshotsCommandInput, ListSnapshotsCommandOutput } from "./commands/ListSnapshotsCommand";
|
|
27
|
+
import { ListTableRestoreStatusCommandInput, ListTableRestoreStatusCommandOutput } from "./commands/ListTableRestoreStatusCommand";
|
|
26
28
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
27
29
|
import { ListUsageLimitsCommandInput, ListUsageLimitsCommandOutput } from "./commands/ListUsageLimitsCommand";
|
|
28
30
|
import { ListWorkgroupsCommandInput, ListWorkgroupsCommandOutput } from "./commands/ListWorkgroupsCommand";
|
|
29
31
|
import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
|
|
30
32
|
import { RestoreFromRecoveryPointCommandInput, RestoreFromRecoveryPointCommandOutput } from "./commands/RestoreFromRecoveryPointCommand";
|
|
31
33
|
import { RestoreFromSnapshotCommandInput, RestoreFromSnapshotCommandOutput } from "./commands/RestoreFromSnapshotCommand";
|
|
34
|
+
import { RestoreTableFromSnapshotCommandInput, RestoreTableFromSnapshotCommandOutput } from "./commands/RestoreTableFromSnapshotCommand";
|
|
32
35
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
33
36
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
34
37
|
import { UpdateEndpointAccessCommandInput, UpdateEndpointAccessCommandOutput } from "./commands/UpdateEndpointAccessCommand";
|
|
@@ -136,15 +139,12 @@ export declare class RedshiftServerless extends RedshiftServerlessClient {
|
|
|
136
139
|
* <p>By default, the temporary credentials expire in 900 seconds.
|
|
137
140
|
* You can optionally specify a duration between 900 seconds (15 minutes) and 3600 seconds (60 minutes).</p>
|
|
138
141
|
*
|
|
139
|
-
* <p>
|
|
140
|
-
*
|
|
141
|
-
*
|
|
142
|
-
* necessary actions and resources.
|
|
143
|
-
* </p>
|
|
142
|
+
* <p>The Identity and Access Management (IAM) user or role that runs
|
|
143
|
+
* GetCredentials must have an IAM policy attached that allows access to all
|
|
144
|
+
* necessary actions and resources.</p>
|
|
144
145
|
*
|
|
145
|
-
* <p>
|
|
146
|
-
*
|
|
147
|
-
* allow access to the resource dbname for the specified database name.</p>
|
|
146
|
+
* <p>If the <code>DbName</code> parameter is specified, the IAM policy must
|
|
147
|
+
* allow access to the resource dbname for the specified database name.</p>
|
|
148
148
|
*/
|
|
149
149
|
getCredentials(args: GetCredentialsCommandInput, options?: __HttpHandlerOptions): Promise<GetCredentialsCommandOutput>;
|
|
150
150
|
getCredentials(args: GetCredentialsCommandInput, cb: (err: any, data?: GetCredentialsCommandOutput) => void): void;
|
|
@@ -179,6 +179,12 @@ export declare class RedshiftServerless extends RedshiftServerlessClient {
|
|
|
179
179
|
getSnapshot(args: GetSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<GetSnapshotCommandOutput>;
|
|
180
180
|
getSnapshot(args: GetSnapshotCommandInput, cb: (err: any, data?: GetSnapshotCommandOutput) => void): void;
|
|
181
181
|
getSnapshot(args: GetSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSnapshotCommandOutput) => void): void;
|
|
182
|
+
/**
|
|
183
|
+
* <p>Returns information about a <code>TableRestoreStatus</code> object.</p>
|
|
184
|
+
*/
|
|
185
|
+
getTableRestoreStatus(args: GetTableRestoreStatusCommandInput, options?: __HttpHandlerOptions): Promise<GetTableRestoreStatusCommandOutput>;
|
|
186
|
+
getTableRestoreStatus(args: GetTableRestoreStatusCommandInput, cb: (err: any, data?: GetTableRestoreStatusCommandOutput) => void): void;
|
|
187
|
+
getTableRestoreStatus(args: GetTableRestoreStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetTableRestoreStatusCommandOutput) => void): void;
|
|
182
188
|
/**
|
|
183
189
|
* <p>Returns information about a usage limit.</p>
|
|
184
190
|
*/
|
|
@@ -215,6 +221,12 @@ export declare class RedshiftServerless extends RedshiftServerlessClient {
|
|
|
215
221
|
listSnapshots(args: ListSnapshotsCommandInput, options?: __HttpHandlerOptions): Promise<ListSnapshotsCommandOutput>;
|
|
216
222
|
listSnapshots(args: ListSnapshotsCommandInput, cb: (err: any, data?: ListSnapshotsCommandOutput) => void): void;
|
|
217
223
|
listSnapshots(args: ListSnapshotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListSnapshotsCommandOutput) => void): void;
|
|
224
|
+
/**
|
|
225
|
+
* <p>Returns information about an array of <code>TableRestoreStatus</code> objects.</p>
|
|
226
|
+
*/
|
|
227
|
+
listTableRestoreStatus(args: ListTableRestoreStatusCommandInput, options?: __HttpHandlerOptions): Promise<ListTableRestoreStatusCommandOutput>;
|
|
228
|
+
listTableRestoreStatus(args: ListTableRestoreStatusCommandInput, cb: (err: any, data?: ListTableRestoreStatusCommandOutput) => void): void;
|
|
229
|
+
listTableRestoreStatus(args: ListTableRestoreStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTableRestoreStatusCommandOutput) => void): void;
|
|
218
230
|
/**
|
|
219
231
|
* <p>Lists the tags assigned to a resource.</p>
|
|
220
232
|
*/
|
|
@@ -251,6 +263,12 @@ export declare class RedshiftServerless extends RedshiftServerlessClient {
|
|
|
251
263
|
restoreFromSnapshot(args: RestoreFromSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<RestoreFromSnapshotCommandOutput>;
|
|
252
264
|
restoreFromSnapshot(args: RestoreFromSnapshotCommandInput, cb: (err: any, data?: RestoreFromSnapshotCommandOutput) => void): void;
|
|
253
265
|
restoreFromSnapshot(args: RestoreFromSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RestoreFromSnapshotCommandOutput) => void): void;
|
|
266
|
+
/**
|
|
267
|
+
* <p>Restores a table from a snapshot to your Amazon Redshift Serverless instance.</p>
|
|
268
|
+
*/
|
|
269
|
+
restoreTableFromSnapshot(args: RestoreTableFromSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<RestoreTableFromSnapshotCommandOutput>;
|
|
270
|
+
restoreTableFromSnapshot(args: RestoreTableFromSnapshotCommandInput, cb: (err: any, data?: RestoreTableFromSnapshotCommandOutput) => void): void;
|
|
271
|
+
restoreTableFromSnapshot(args: RestoreTableFromSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RestoreTableFromSnapshotCommandOutput) => void): void;
|
|
254
272
|
/**
|
|
255
273
|
* <p>Assigns one or more tags to a resource.</p>
|
|
256
274
|
*/
|
|
@@ -25,18 +25,21 @@ import { GetNamespaceCommandInput, GetNamespaceCommandOutput } from "./commands/
|
|
|
25
25
|
import { GetRecoveryPointCommandInput, GetRecoveryPointCommandOutput } from "./commands/GetRecoveryPointCommand";
|
|
26
26
|
import { GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput } from "./commands/GetResourcePolicyCommand";
|
|
27
27
|
import { GetSnapshotCommandInput, GetSnapshotCommandOutput } from "./commands/GetSnapshotCommand";
|
|
28
|
+
import { GetTableRestoreStatusCommandInput, GetTableRestoreStatusCommandOutput } from "./commands/GetTableRestoreStatusCommand";
|
|
28
29
|
import { GetUsageLimitCommandInput, GetUsageLimitCommandOutput } from "./commands/GetUsageLimitCommand";
|
|
29
30
|
import { GetWorkgroupCommandInput, GetWorkgroupCommandOutput } from "./commands/GetWorkgroupCommand";
|
|
30
31
|
import { ListEndpointAccessCommandInput, ListEndpointAccessCommandOutput } from "./commands/ListEndpointAccessCommand";
|
|
31
32
|
import { ListNamespacesCommandInput, ListNamespacesCommandOutput } from "./commands/ListNamespacesCommand";
|
|
32
33
|
import { ListRecoveryPointsCommandInput, ListRecoveryPointsCommandOutput } from "./commands/ListRecoveryPointsCommand";
|
|
33
34
|
import { ListSnapshotsCommandInput, ListSnapshotsCommandOutput } from "./commands/ListSnapshotsCommand";
|
|
35
|
+
import { ListTableRestoreStatusCommandInput, ListTableRestoreStatusCommandOutput } from "./commands/ListTableRestoreStatusCommand";
|
|
34
36
|
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
35
37
|
import { ListUsageLimitsCommandInput, ListUsageLimitsCommandOutput } from "./commands/ListUsageLimitsCommand";
|
|
36
38
|
import { ListWorkgroupsCommandInput, ListWorkgroupsCommandOutput } from "./commands/ListWorkgroupsCommand";
|
|
37
39
|
import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand";
|
|
38
40
|
import { RestoreFromRecoveryPointCommandInput, RestoreFromRecoveryPointCommandOutput } from "./commands/RestoreFromRecoveryPointCommand";
|
|
39
41
|
import { RestoreFromSnapshotCommandInput, RestoreFromSnapshotCommandOutput } from "./commands/RestoreFromSnapshotCommand";
|
|
42
|
+
import { RestoreTableFromSnapshotCommandInput, RestoreTableFromSnapshotCommandOutput } from "./commands/RestoreTableFromSnapshotCommand";
|
|
40
43
|
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
41
44
|
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
42
45
|
import { UpdateEndpointAccessCommandInput, UpdateEndpointAccessCommandOutput } from "./commands/UpdateEndpointAccessCommand";
|
|
@@ -45,8 +48,8 @@ import { UpdateSnapshotCommandInput, UpdateSnapshotCommandOutput } from "./comma
|
|
|
45
48
|
import { UpdateUsageLimitCommandInput, UpdateUsageLimitCommandOutput } from "./commands/UpdateUsageLimitCommand";
|
|
46
49
|
import { UpdateWorkgroupCommandInput, UpdateWorkgroupCommandOutput } from "./commands/UpdateWorkgroupCommand";
|
|
47
50
|
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
48
|
-
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;
|
|
49
|
-
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;
|
|
51
|
+
export declare type ServiceInputTypes = ConvertRecoveryPointToSnapshotCommandInput | CreateEndpointAccessCommandInput | CreateNamespaceCommandInput | CreateSnapshotCommandInput | CreateUsageLimitCommandInput | CreateWorkgroupCommandInput | DeleteEndpointAccessCommandInput | DeleteNamespaceCommandInput | DeleteResourcePolicyCommandInput | DeleteSnapshotCommandInput | DeleteUsageLimitCommandInput | DeleteWorkgroupCommandInput | GetCredentialsCommandInput | GetEndpointAccessCommandInput | GetNamespaceCommandInput | GetRecoveryPointCommandInput | GetResourcePolicyCommandInput | GetSnapshotCommandInput | GetTableRestoreStatusCommandInput | GetUsageLimitCommandInput | GetWorkgroupCommandInput | ListEndpointAccessCommandInput | ListNamespacesCommandInput | ListRecoveryPointsCommandInput | ListSnapshotsCommandInput | ListTableRestoreStatusCommandInput | ListTagsForResourceCommandInput | ListUsageLimitsCommandInput | ListWorkgroupsCommandInput | PutResourcePolicyCommandInput | RestoreFromRecoveryPointCommandInput | RestoreFromSnapshotCommandInput | RestoreTableFromSnapshotCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateEndpointAccessCommandInput | UpdateNamespaceCommandInput | UpdateSnapshotCommandInput | UpdateUsageLimitCommandInput | UpdateWorkgroupCommandInput;
|
|
52
|
+
export declare type ServiceOutputTypes = ConvertRecoveryPointToSnapshotCommandOutput | CreateEndpointAccessCommandOutput | CreateNamespaceCommandOutput | CreateSnapshotCommandOutput | CreateUsageLimitCommandOutput | CreateWorkgroupCommandOutput | DeleteEndpointAccessCommandOutput | DeleteNamespaceCommandOutput | DeleteResourcePolicyCommandOutput | DeleteSnapshotCommandOutput | DeleteUsageLimitCommandOutput | DeleteWorkgroupCommandOutput | GetCredentialsCommandOutput | GetEndpointAccessCommandOutput | GetNamespaceCommandOutput | GetRecoveryPointCommandOutput | GetResourcePolicyCommandOutput | GetSnapshotCommandOutput | GetTableRestoreStatusCommandOutput | GetUsageLimitCommandOutput | GetWorkgroupCommandOutput | ListEndpointAccessCommandOutput | ListNamespacesCommandOutput | ListRecoveryPointsCommandOutput | ListSnapshotsCommandOutput | ListTableRestoreStatusCommandOutput | ListTagsForResourceCommandOutput | ListUsageLimitsCommandOutput | ListWorkgroupsCommandOutput | PutResourcePolicyCommandOutput | RestoreFromRecoveryPointCommandOutput | RestoreFromSnapshotCommandOutput | RestoreTableFromSnapshotCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateEndpointAccessCommandOutput | UpdateNamespaceCommandOutput | UpdateSnapshotCommandOutput | UpdateUsageLimitCommandOutput | UpdateWorkgroupCommandOutput;
|
|
50
53
|
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
51
54
|
/**
|
|
52
55
|
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|