@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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.deserializeAws_json1_1UpdateWorkgroupCommand = exports.deserializeAws_json1_1UpdateUsageLimitCommand = exports.deserializeAws_json1_1UpdateSnapshotCommand = exports.deserializeAws_json1_1UpdateNamespaceCommand = exports.deserializeAws_json1_1UpdateEndpointAccessCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1RestoreFromSnapshotCommand = exports.deserializeAws_json1_1RestoreFromRecoveryPointCommand = exports.deserializeAws_json1_1PutResourcePolicyCommand = exports.deserializeAws_json1_1ListWorkgroupsCommand = exports.deserializeAws_json1_1ListUsageLimitsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListSnapshotsCommand = exports.deserializeAws_json1_1ListRecoveryPointsCommand = exports.deserializeAws_json1_1ListNamespacesCommand = exports.deserializeAws_json1_1ListEndpointAccessCommand = exports.deserializeAws_json1_1GetWorkgroupCommand = exports.deserializeAws_json1_1GetUsageLimitCommand = exports.deserializeAws_json1_1GetSnapshotCommand = exports.deserializeAws_json1_1GetResourcePolicyCommand = exports.deserializeAws_json1_1GetRecoveryPointCommand = exports.deserializeAws_json1_1GetNamespaceCommand = exports.deserializeAws_json1_1GetEndpointAccessCommand = void 0;
|
|
3
|
+
exports.deserializeAws_json1_1DeleteSnapshotCommand = exports.deserializeAws_json1_1DeleteResourcePolicyCommand = exports.deserializeAws_json1_1DeleteNamespaceCommand = exports.deserializeAws_json1_1DeleteEndpointAccessCommand = exports.deserializeAws_json1_1CreateWorkgroupCommand = exports.deserializeAws_json1_1CreateUsageLimitCommand = exports.deserializeAws_json1_1CreateSnapshotCommand = exports.deserializeAws_json1_1CreateNamespaceCommand = exports.deserializeAws_json1_1CreateEndpointAccessCommand = exports.deserializeAws_json1_1ConvertRecoveryPointToSnapshotCommand = exports.serializeAws_json1_1UpdateWorkgroupCommand = exports.serializeAws_json1_1UpdateUsageLimitCommand = exports.serializeAws_json1_1UpdateSnapshotCommand = exports.serializeAws_json1_1UpdateNamespaceCommand = exports.serializeAws_json1_1UpdateEndpointAccessCommand = exports.serializeAws_json1_1UntagResourceCommand = exports.serializeAws_json1_1TagResourceCommand = exports.serializeAws_json1_1RestoreTableFromSnapshotCommand = exports.serializeAws_json1_1RestoreFromSnapshotCommand = exports.serializeAws_json1_1RestoreFromRecoveryPointCommand = exports.serializeAws_json1_1PutResourcePolicyCommand = exports.serializeAws_json1_1ListWorkgroupsCommand = exports.serializeAws_json1_1ListUsageLimitsCommand = exports.serializeAws_json1_1ListTagsForResourceCommand = exports.serializeAws_json1_1ListTableRestoreStatusCommand = exports.serializeAws_json1_1ListSnapshotsCommand = exports.serializeAws_json1_1ListRecoveryPointsCommand = exports.serializeAws_json1_1ListNamespacesCommand = exports.serializeAws_json1_1ListEndpointAccessCommand = exports.serializeAws_json1_1GetWorkgroupCommand = exports.serializeAws_json1_1GetUsageLimitCommand = exports.serializeAws_json1_1GetTableRestoreStatusCommand = exports.serializeAws_json1_1GetSnapshotCommand = exports.serializeAws_json1_1GetResourcePolicyCommand = exports.serializeAws_json1_1GetRecoveryPointCommand = exports.serializeAws_json1_1GetNamespaceCommand = exports.serializeAws_json1_1GetEndpointAccessCommand = exports.serializeAws_json1_1GetCredentialsCommand = exports.serializeAws_json1_1DeleteWorkgroupCommand = exports.serializeAws_json1_1DeleteUsageLimitCommand = exports.serializeAws_json1_1DeleteSnapshotCommand = exports.serializeAws_json1_1DeleteResourcePolicyCommand = exports.serializeAws_json1_1DeleteNamespaceCommand = exports.serializeAws_json1_1DeleteEndpointAccessCommand = exports.serializeAws_json1_1CreateWorkgroupCommand = exports.serializeAws_json1_1CreateUsageLimitCommand = exports.serializeAws_json1_1CreateSnapshotCommand = exports.serializeAws_json1_1CreateNamespaceCommand = exports.serializeAws_json1_1CreateEndpointAccessCommand = exports.serializeAws_json1_1ConvertRecoveryPointToSnapshotCommand = void 0;
|
|
4
|
+
exports.deserializeAws_json1_1UpdateWorkgroupCommand = exports.deserializeAws_json1_1UpdateUsageLimitCommand = exports.deserializeAws_json1_1UpdateSnapshotCommand = exports.deserializeAws_json1_1UpdateNamespaceCommand = exports.deserializeAws_json1_1UpdateEndpointAccessCommand = exports.deserializeAws_json1_1UntagResourceCommand = exports.deserializeAws_json1_1TagResourceCommand = exports.deserializeAws_json1_1RestoreTableFromSnapshotCommand = exports.deserializeAws_json1_1RestoreFromSnapshotCommand = exports.deserializeAws_json1_1RestoreFromRecoveryPointCommand = exports.deserializeAws_json1_1PutResourcePolicyCommand = exports.deserializeAws_json1_1ListWorkgroupsCommand = exports.deserializeAws_json1_1ListUsageLimitsCommand = exports.deserializeAws_json1_1ListTagsForResourceCommand = exports.deserializeAws_json1_1ListTableRestoreStatusCommand = exports.deserializeAws_json1_1ListSnapshotsCommand = exports.deserializeAws_json1_1ListRecoveryPointsCommand = exports.deserializeAws_json1_1ListNamespacesCommand = exports.deserializeAws_json1_1ListEndpointAccessCommand = exports.deserializeAws_json1_1GetWorkgroupCommand = exports.deserializeAws_json1_1GetUsageLimitCommand = exports.deserializeAws_json1_1GetTableRestoreStatusCommand = exports.deserializeAws_json1_1GetSnapshotCommand = exports.deserializeAws_json1_1GetResourcePolicyCommand = exports.deserializeAws_json1_1GetRecoveryPointCommand = exports.deserializeAws_json1_1GetNamespaceCommand = exports.deserializeAws_json1_1GetEndpointAccessCommand = exports.deserializeAws_json1_1GetCredentialsCommand = exports.deserializeAws_json1_1DeleteWorkgroupCommand = exports.deserializeAws_json1_1DeleteUsageLimitCommand = void 0;
|
|
5
5
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
6
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
7
|
const models_0_1 = require("../models/models_0");
|
|
@@ -186,6 +186,16 @@ const serializeAws_json1_1GetSnapshotCommand = async (input, context) => {
|
|
|
186
186
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
187
187
|
};
|
|
188
188
|
exports.serializeAws_json1_1GetSnapshotCommand = serializeAws_json1_1GetSnapshotCommand;
|
|
189
|
+
const serializeAws_json1_1GetTableRestoreStatusCommand = async (input, context) => {
|
|
190
|
+
const headers = {
|
|
191
|
+
"content-type": "application/x-amz-json-1.1",
|
|
192
|
+
"x-amz-target": "RedshiftServerless.GetTableRestoreStatus",
|
|
193
|
+
};
|
|
194
|
+
let body;
|
|
195
|
+
body = JSON.stringify(serializeAws_json1_1GetTableRestoreStatusRequest(input, context));
|
|
196
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
197
|
+
};
|
|
198
|
+
exports.serializeAws_json1_1GetTableRestoreStatusCommand = serializeAws_json1_1GetTableRestoreStatusCommand;
|
|
189
199
|
const serializeAws_json1_1GetUsageLimitCommand = async (input, context) => {
|
|
190
200
|
const headers = {
|
|
191
201
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -246,6 +256,16 @@ const serializeAws_json1_1ListSnapshotsCommand = async (input, context) => {
|
|
|
246
256
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
247
257
|
};
|
|
248
258
|
exports.serializeAws_json1_1ListSnapshotsCommand = serializeAws_json1_1ListSnapshotsCommand;
|
|
259
|
+
const serializeAws_json1_1ListTableRestoreStatusCommand = async (input, context) => {
|
|
260
|
+
const headers = {
|
|
261
|
+
"content-type": "application/x-amz-json-1.1",
|
|
262
|
+
"x-amz-target": "RedshiftServerless.ListTableRestoreStatus",
|
|
263
|
+
};
|
|
264
|
+
let body;
|
|
265
|
+
body = JSON.stringify(serializeAws_json1_1ListTableRestoreStatusRequest(input, context));
|
|
266
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
267
|
+
};
|
|
268
|
+
exports.serializeAws_json1_1ListTableRestoreStatusCommand = serializeAws_json1_1ListTableRestoreStatusCommand;
|
|
249
269
|
const serializeAws_json1_1ListTagsForResourceCommand = async (input, context) => {
|
|
250
270
|
const headers = {
|
|
251
271
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -306,6 +326,16 @@ const serializeAws_json1_1RestoreFromSnapshotCommand = async (input, context) =>
|
|
|
306
326
|
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
307
327
|
};
|
|
308
328
|
exports.serializeAws_json1_1RestoreFromSnapshotCommand = serializeAws_json1_1RestoreFromSnapshotCommand;
|
|
329
|
+
const serializeAws_json1_1RestoreTableFromSnapshotCommand = async (input, context) => {
|
|
330
|
+
const headers = {
|
|
331
|
+
"content-type": "application/x-amz-json-1.1",
|
|
332
|
+
"x-amz-target": "RedshiftServerless.RestoreTableFromSnapshot",
|
|
333
|
+
};
|
|
334
|
+
let body;
|
|
335
|
+
body = JSON.stringify(serializeAws_json1_1RestoreTableFromSnapshotRequest(input, context));
|
|
336
|
+
return buildHttpRpcRequest(context, headers, "/", undefined, body);
|
|
337
|
+
};
|
|
338
|
+
exports.serializeAws_json1_1RestoreTableFromSnapshotCommand = serializeAws_json1_1RestoreTableFromSnapshotCommand;
|
|
309
339
|
const serializeAws_json1_1TagResourceCommand = async (input, context) => {
|
|
310
340
|
const headers = {
|
|
311
341
|
"content-type": "application/x-amz-json-1.1",
|
|
@@ -409,6 +439,9 @@ const deserializeAws_json1_1ConvertRecoveryPointToSnapshotCommandError = async (
|
|
|
409
439
|
case "ServiceQuotaExceededException":
|
|
410
440
|
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
411
441
|
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
442
|
+
case "TooManyTagsException":
|
|
443
|
+
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
444
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
412
445
|
case "ValidationException":
|
|
413
446
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
414
447
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
@@ -547,6 +580,9 @@ const deserializeAws_json1_1CreateSnapshotCommandError = async (output, context)
|
|
|
547
580
|
case "ServiceQuotaExceededException":
|
|
548
581
|
case "com.amazonaws.redshiftserverless#ServiceQuotaExceededException":
|
|
549
582
|
throw await deserializeAws_json1_1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
583
|
+
case "TooManyTagsException":
|
|
584
|
+
case "com.amazonaws.redshiftserverless#TooManyTagsException":
|
|
585
|
+
throw await deserializeAws_json1_1TooManyTagsExceptionResponse(parsedOutput, context);
|
|
550
586
|
case "ValidationException":
|
|
551
587
|
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
552
588
|
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
@@ -1156,6 +1192,43 @@ const deserializeAws_json1_1GetSnapshotCommandError = async (output, context) =>
|
|
|
1156
1192
|
});
|
|
1157
1193
|
}
|
|
1158
1194
|
};
|
|
1195
|
+
const deserializeAws_json1_1GetTableRestoreStatusCommand = async (output, context) => {
|
|
1196
|
+
if (output.statusCode >= 300) {
|
|
1197
|
+
return deserializeAws_json1_1GetTableRestoreStatusCommandError(output, context);
|
|
1198
|
+
}
|
|
1199
|
+
const data = await parseBody(output.body, context);
|
|
1200
|
+
let contents = {};
|
|
1201
|
+
contents = deserializeAws_json1_1GetTableRestoreStatusResponse(data, context);
|
|
1202
|
+
const response = {
|
|
1203
|
+
$metadata: deserializeMetadata(output),
|
|
1204
|
+
...contents,
|
|
1205
|
+
};
|
|
1206
|
+
return Promise.resolve(response);
|
|
1207
|
+
};
|
|
1208
|
+
exports.deserializeAws_json1_1GetTableRestoreStatusCommand = deserializeAws_json1_1GetTableRestoreStatusCommand;
|
|
1209
|
+
const deserializeAws_json1_1GetTableRestoreStatusCommandError = async (output, context) => {
|
|
1210
|
+
const parsedOutput = {
|
|
1211
|
+
...output,
|
|
1212
|
+
body: await parseErrorBody(output.body, context),
|
|
1213
|
+
};
|
|
1214
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1215
|
+
switch (errorCode) {
|
|
1216
|
+
case "ResourceNotFoundException":
|
|
1217
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1218
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1219
|
+
case "ValidationException":
|
|
1220
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1221
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1222
|
+
default:
|
|
1223
|
+
const parsedBody = parsedOutput.body;
|
|
1224
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1225
|
+
output,
|
|
1226
|
+
parsedBody,
|
|
1227
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1228
|
+
errorCode,
|
|
1229
|
+
});
|
|
1230
|
+
}
|
|
1231
|
+
};
|
|
1159
1232
|
const deserializeAws_json1_1GetUsageLimitCommand = async (output, context) => {
|
|
1160
1233
|
if (output.statusCode >= 300) {
|
|
1161
1234
|
return deserializeAws_json1_1GetUsageLimitCommandError(output, context);
|
|
@@ -1396,6 +1469,46 @@ const deserializeAws_json1_1ListSnapshotsCommandError = async (output, context)
|
|
|
1396
1469
|
});
|
|
1397
1470
|
}
|
|
1398
1471
|
};
|
|
1472
|
+
const deserializeAws_json1_1ListTableRestoreStatusCommand = async (output, context) => {
|
|
1473
|
+
if (output.statusCode >= 300) {
|
|
1474
|
+
return deserializeAws_json1_1ListTableRestoreStatusCommandError(output, context);
|
|
1475
|
+
}
|
|
1476
|
+
const data = await parseBody(output.body, context);
|
|
1477
|
+
let contents = {};
|
|
1478
|
+
contents = deserializeAws_json1_1ListTableRestoreStatusResponse(data, context);
|
|
1479
|
+
const response = {
|
|
1480
|
+
$metadata: deserializeMetadata(output),
|
|
1481
|
+
...contents,
|
|
1482
|
+
};
|
|
1483
|
+
return Promise.resolve(response);
|
|
1484
|
+
};
|
|
1485
|
+
exports.deserializeAws_json1_1ListTableRestoreStatusCommand = deserializeAws_json1_1ListTableRestoreStatusCommand;
|
|
1486
|
+
const deserializeAws_json1_1ListTableRestoreStatusCommandError = async (output, context) => {
|
|
1487
|
+
const parsedOutput = {
|
|
1488
|
+
...output,
|
|
1489
|
+
body: await parseErrorBody(output.body, context),
|
|
1490
|
+
};
|
|
1491
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1492
|
+
switch (errorCode) {
|
|
1493
|
+
case "InvalidPaginationException":
|
|
1494
|
+
case "com.amazonaws.redshiftserverless#InvalidPaginationException":
|
|
1495
|
+
throw await deserializeAws_json1_1InvalidPaginationExceptionResponse(parsedOutput, context);
|
|
1496
|
+
case "ResourceNotFoundException":
|
|
1497
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1498
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1499
|
+
case "ValidationException":
|
|
1500
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1501
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1502
|
+
default:
|
|
1503
|
+
const parsedBody = parsedOutput.body;
|
|
1504
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1505
|
+
output,
|
|
1506
|
+
parsedBody,
|
|
1507
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1508
|
+
errorCode,
|
|
1509
|
+
});
|
|
1510
|
+
}
|
|
1511
|
+
};
|
|
1399
1512
|
const deserializeAws_json1_1ListTagsForResourceCommand = async (output, context) => {
|
|
1400
1513
|
if (output.statusCode >= 300) {
|
|
1401
1514
|
return deserializeAws_json1_1ListTagsForResourceCommandError(output, context);
|
|
@@ -1657,6 +1770,49 @@ const deserializeAws_json1_1RestoreFromSnapshotCommandError = async (output, con
|
|
|
1657
1770
|
});
|
|
1658
1771
|
}
|
|
1659
1772
|
};
|
|
1773
|
+
const deserializeAws_json1_1RestoreTableFromSnapshotCommand = async (output, context) => {
|
|
1774
|
+
if (output.statusCode >= 300) {
|
|
1775
|
+
return deserializeAws_json1_1RestoreTableFromSnapshotCommandError(output, context);
|
|
1776
|
+
}
|
|
1777
|
+
const data = await parseBody(output.body, context);
|
|
1778
|
+
let contents = {};
|
|
1779
|
+
contents = deserializeAws_json1_1RestoreTableFromSnapshotResponse(data, context);
|
|
1780
|
+
const response = {
|
|
1781
|
+
$metadata: deserializeMetadata(output),
|
|
1782
|
+
...contents,
|
|
1783
|
+
};
|
|
1784
|
+
return Promise.resolve(response);
|
|
1785
|
+
};
|
|
1786
|
+
exports.deserializeAws_json1_1RestoreTableFromSnapshotCommand = deserializeAws_json1_1RestoreTableFromSnapshotCommand;
|
|
1787
|
+
const deserializeAws_json1_1RestoreTableFromSnapshotCommandError = async (output, context) => {
|
|
1788
|
+
const parsedOutput = {
|
|
1789
|
+
...output,
|
|
1790
|
+
body: await parseErrorBody(output.body, context),
|
|
1791
|
+
};
|
|
1792
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1793
|
+
switch (errorCode) {
|
|
1794
|
+
case "ConflictException":
|
|
1795
|
+
case "com.amazonaws.redshiftserverless#ConflictException":
|
|
1796
|
+
throw await deserializeAws_json1_1ConflictExceptionResponse(parsedOutput, context);
|
|
1797
|
+
case "InternalServerException":
|
|
1798
|
+
case "com.amazonaws.redshiftserverless#InternalServerException":
|
|
1799
|
+
throw await deserializeAws_json1_1InternalServerExceptionResponse(parsedOutput, context);
|
|
1800
|
+
case "ResourceNotFoundException":
|
|
1801
|
+
case "com.amazonaws.redshiftserverless#ResourceNotFoundException":
|
|
1802
|
+
throw await deserializeAws_json1_1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1803
|
+
case "ValidationException":
|
|
1804
|
+
case "com.amazonaws.redshiftserverless#ValidationException":
|
|
1805
|
+
throw await deserializeAws_json1_1ValidationExceptionResponse(parsedOutput, context);
|
|
1806
|
+
default:
|
|
1807
|
+
const parsedBody = parsedOutput.body;
|
|
1808
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1809
|
+
output,
|
|
1810
|
+
parsedBody,
|
|
1811
|
+
exceptionCtor: RedshiftServerlessServiceException_1.RedshiftServerlessServiceException,
|
|
1812
|
+
errorCode,
|
|
1813
|
+
});
|
|
1814
|
+
}
|
|
1815
|
+
};
|
|
1660
1816
|
const deserializeAws_json1_1TagResourceCommand = async (output, context) => {
|
|
1661
1817
|
if (output.statusCode >= 300) {
|
|
1662
1818
|
return deserializeAws_json1_1TagResourceCommandError(output, context);
|
|
@@ -2075,6 +2231,7 @@ const serializeAws_json1_1ConvertRecoveryPointToSnapshotRequest = (input, contex
|
|
|
2075
2231
|
...(input.recoveryPointId != null && { recoveryPointId: input.recoveryPointId }),
|
|
2076
2232
|
...(input.retentionPeriod != null && { retentionPeriod: input.retentionPeriod }),
|
|
2077
2233
|
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2234
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2078
2235
|
};
|
|
2079
2236
|
};
|
|
2080
2237
|
const serializeAws_json1_1CreateEndpointAccessRequest = (input, context) => {
|
|
@@ -2105,6 +2262,7 @@ const serializeAws_json1_1CreateSnapshotRequest = (input, context) => {
|
|
|
2105
2262
|
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2106
2263
|
...(input.retentionPeriod != null && { retentionPeriod: input.retentionPeriod }),
|
|
2107
2264
|
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2265
|
+
...(input.tags != null && { tags: serializeAws_json1_1TagList(input.tags, context) }),
|
|
2108
2266
|
};
|
|
2109
2267
|
};
|
|
2110
2268
|
const serializeAws_json1_1CreateUsageLimitRequest = (input, context) => {
|
|
@@ -2124,6 +2282,7 @@ const serializeAws_json1_1CreateWorkgroupRequest = (input, context) => {
|
|
|
2124
2282
|
}),
|
|
2125
2283
|
...(input.enhancedVpcRouting != null && { enhancedVpcRouting: input.enhancedVpcRouting }),
|
|
2126
2284
|
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2285
|
+
...(input.port != null && { port: input.port }),
|
|
2127
2286
|
...(input.publiclyAccessible != null && { publiclyAccessible: input.publiclyAccessible }),
|
|
2128
2287
|
...(input.securityGroupIds != null && {
|
|
2129
2288
|
securityGroupIds: serializeAws_json1_1SecurityGroupIdList(input.securityGroupIds, context),
|
|
@@ -2201,6 +2360,11 @@ const serializeAws_json1_1GetSnapshotRequest = (input, context) => {
|
|
|
2201
2360
|
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2202
2361
|
};
|
|
2203
2362
|
};
|
|
2363
|
+
const serializeAws_json1_1GetTableRestoreStatusRequest = (input, context) => {
|
|
2364
|
+
return {
|
|
2365
|
+
...(input.tableRestoreRequestId != null && { tableRestoreRequestId: input.tableRestoreRequestId }),
|
|
2366
|
+
};
|
|
2367
|
+
};
|
|
2204
2368
|
const serializeAws_json1_1GetUsageLimitRequest = (input, context) => {
|
|
2205
2369
|
return {
|
|
2206
2370
|
...(input.usageLimitId != null && { usageLimitId: input.usageLimitId }),
|
|
@@ -2236,6 +2400,7 @@ const serializeAws_json1_1ListRecoveryPointsRequest = (input, context) => {
|
|
|
2236
2400
|
return {
|
|
2237
2401
|
...(input.endTime != null && { endTime: Math.round(input.endTime.getTime() / 1000) }),
|
|
2238
2402
|
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2403
|
+
...(input.namespaceArn != null && { namespaceArn: input.namespaceArn }),
|
|
2239
2404
|
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2240
2405
|
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2241
2406
|
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
@@ -2252,6 +2417,14 @@ const serializeAws_json1_1ListSnapshotsRequest = (input, context) => {
|
|
|
2252
2417
|
...(input.startTime != null && { startTime: Math.round(input.startTime.getTime() / 1000) }),
|
|
2253
2418
|
};
|
|
2254
2419
|
};
|
|
2420
|
+
const serializeAws_json1_1ListTableRestoreStatusRequest = (input, context) => {
|
|
2421
|
+
return {
|
|
2422
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
2423
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2424
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
2425
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2426
|
+
};
|
|
2427
|
+
};
|
|
2255
2428
|
const serializeAws_json1_1ListTagsForResourceRequest = (input, context) => {
|
|
2256
2429
|
return {
|
|
2257
2430
|
...(input.resourceArn != null && { resourceArn: input.resourceArn }),
|
|
@@ -2300,6 +2473,22 @@ const serializeAws_json1_1RestoreFromSnapshotRequest = (input, context) => {
|
|
|
2300
2473
|
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2301
2474
|
};
|
|
2302
2475
|
};
|
|
2476
|
+
const serializeAws_json1_1RestoreTableFromSnapshotRequest = (input, context) => {
|
|
2477
|
+
return {
|
|
2478
|
+
...(input.activateCaseSensitiveIdentifier != null && {
|
|
2479
|
+
activateCaseSensitiveIdentifier: input.activateCaseSensitiveIdentifier,
|
|
2480
|
+
}),
|
|
2481
|
+
...(input.namespaceName != null && { namespaceName: input.namespaceName }),
|
|
2482
|
+
...(input.newTableName != null && { newTableName: input.newTableName }),
|
|
2483
|
+
...(input.snapshotName != null && { snapshotName: input.snapshotName }),
|
|
2484
|
+
...(input.sourceDatabaseName != null && { sourceDatabaseName: input.sourceDatabaseName }),
|
|
2485
|
+
...(input.sourceSchemaName != null && { sourceSchemaName: input.sourceSchemaName }),
|
|
2486
|
+
...(input.sourceTableName != null && { sourceTableName: input.sourceTableName }),
|
|
2487
|
+
...(input.targetDatabaseName != null && { targetDatabaseName: input.targetDatabaseName }),
|
|
2488
|
+
...(input.targetSchemaName != null && { targetSchemaName: input.targetSchemaName }),
|
|
2489
|
+
...(input.workgroupName != null && { workgroupName: input.workgroupName }),
|
|
2490
|
+
};
|
|
2491
|
+
};
|
|
2303
2492
|
const serializeAws_json1_1SecurityGroupIdList = (input, context) => {
|
|
2304
2493
|
return input
|
|
2305
2494
|
.filter((e) => e != null)
|
|
@@ -2385,6 +2574,7 @@ const serializeAws_json1_1UpdateWorkgroupRequest = (input, context) => {
|
|
|
2385
2574
|
configParameters: serializeAws_json1_1ConfigParameterList(input.configParameters, context),
|
|
2386
2575
|
}),
|
|
2387
2576
|
...(input.enhancedVpcRouting != null && { enhancedVpcRouting: input.enhancedVpcRouting }),
|
|
2577
|
+
...(input.port != null && { port: input.port }),
|
|
2388
2578
|
...(input.publiclyAccessible != null && { publiclyAccessible: input.publiclyAccessible }),
|
|
2389
2579
|
...(input.securityGroupIds != null && {
|
|
2390
2580
|
securityGroupIds: serializeAws_json1_1SecurityGroupIdList(input.securityGroupIds, context),
|
|
@@ -2568,6 +2758,13 @@ const deserializeAws_json1_1GetSnapshotResponse = (output, context) => {
|
|
|
2568
2758
|
snapshot: output.snapshot != null ? deserializeAws_json1_1Snapshot(output.snapshot, context) : undefined,
|
|
2569
2759
|
};
|
|
2570
2760
|
};
|
|
2761
|
+
const deserializeAws_json1_1GetTableRestoreStatusResponse = (output, context) => {
|
|
2762
|
+
return {
|
|
2763
|
+
tableRestoreStatus: output.tableRestoreStatus != null
|
|
2764
|
+
? deserializeAws_json1_1TableRestoreStatus(output.tableRestoreStatus, context)
|
|
2765
|
+
: undefined,
|
|
2766
|
+
};
|
|
2767
|
+
};
|
|
2571
2768
|
const deserializeAws_json1_1GetUsageLimitResponse = (output, context) => {
|
|
2572
2769
|
return {
|
|
2573
2770
|
usageLimit: output.usageLimit != null ? deserializeAws_json1_1UsageLimit(output.usageLimit, context) : undefined,
|
|
@@ -2630,6 +2827,14 @@ const deserializeAws_json1_1ListSnapshotsResponse = (output, context) => {
|
|
|
2630
2827
|
snapshots: output.snapshots != null ? deserializeAws_json1_1SnapshotList(output.snapshots, context) : undefined,
|
|
2631
2828
|
};
|
|
2632
2829
|
};
|
|
2830
|
+
const deserializeAws_json1_1ListTableRestoreStatusResponse = (output, context) => {
|
|
2831
|
+
return {
|
|
2832
|
+
nextToken: (0, smithy_client_1.expectString)(output.nextToken),
|
|
2833
|
+
tableRestoreStatuses: output.tableRestoreStatuses != null
|
|
2834
|
+
? deserializeAws_json1_1TableRestoreStatusList(output.tableRestoreStatuses, context)
|
|
2835
|
+
: undefined,
|
|
2836
|
+
};
|
|
2837
|
+
};
|
|
2633
2838
|
const deserializeAws_json1_1ListTagsForResourceResponse = (output, context) => {
|
|
2634
2839
|
return {
|
|
2635
2840
|
tags: output.tags != null ? deserializeAws_json1_1TagList(output.tags, context) : undefined,
|
|
@@ -2710,6 +2915,7 @@ const deserializeAws_json1_1PutResourcePolicyResponse = (output, context) => {
|
|
|
2710
2915
|
};
|
|
2711
2916
|
const deserializeAws_json1_1RecoveryPoint = (output, context) => {
|
|
2712
2917
|
return {
|
|
2918
|
+
namespaceArn: (0, smithy_client_1.expectString)(output.namespaceArn),
|
|
2713
2919
|
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
2714
2920
|
recoveryPointCreateTime: output.recoveryPointCreateTime != null
|
|
2715
2921
|
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTime)(output.recoveryPointCreateTime))
|
|
@@ -2755,6 +2961,13 @@ const deserializeAws_json1_1RestoreFromSnapshotResponse = (output, context) => {
|
|
|
2755
2961
|
snapshotName: (0, smithy_client_1.expectString)(output.snapshotName),
|
|
2756
2962
|
};
|
|
2757
2963
|
};
|
|
2964
|
+
const deserializeAws_json1_1RestoreTableFromSnapshotResponse = (output, context) => {
|
|
2965
|
+
return {
|
|
2966
|
+
tableRestoreStatus: output.tableRestoreStatus != null
|
|
2967
|
+
? deserializeAws_json1_1TableRestoreStatus(output.tableRestoreStatus, context)
|
|
2968
|
+
: undefined,
|
|
2969
|
+
};
|
|
2970
|
+
};
|
|
2758
2971
|
const deserializeAws_json1_1SecurityGroupIdList = (output, context) => {
|
|
2759
2972
|
const retVal = (output || [])
|
|
2760
2973
|
.filter((e) => e != null)
|
|
@@ -2825,6 +3038,38 @@ const deserializeAws_json1_1SubnetIdList = (output, context) => {
|
|
|
2825
3038
|
});
|
|
2826
3039
|
return retVal;
|
|
2827
3040
|
};
|
|
3041
|
+
const deserializeAws_json1_1TableRestoreStatus = (output, context) => {
|
|
3042
|
+
return {
|
|
3043
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
3044
|
+
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
3045
|
+
newTableName: (0, smithy_client_1.expectString)(output.newTableName),
|
|
3046
|
+
progressInMegaBytes: (0, smithy_client_1.expectLong)(output.progressInMegaBytes),
|
|
3047
|
+
requestTime: output.requestTime != null
|
|
3048
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.requestTime)))
|
|
3049
|
+
: undefined,
|
|
3050
|
+
snapshotName: (0, smithy_client_1.expectString)(output.snapshotName),
|
|
3051
|
+
sourceDatabaseName: (0, smithy_client_1.expectString)(output.sourceDatabaseName),
|
|
3052
|
+
sourceSchemaName: (0, smithy_client_1.expectString)(output.sourceSchemaName),
|
|
3053
|
+
sourceTableName: (0, smithy_client_1.expectString)(output.sourceTableName),
|
|
3054
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
3055
|
+
tableRestoreRequestId: (0, smithy_client_1.expectString)(output.tableRestoreRequestId),
|
|
3056
|
+
targetDatabaseName: (0, smithy_client_1.expectString)(output.targetDatabaseName),
|
|
3057
|
+
targetSchemaName: (0, smithy_client_1.expectString)(output.targetSchemaName),
|
|
3058
|
+
totalDataInMegaBytes: (0, smithy_client_1.expectLong)(output.totalDataInMegaBytes),
|
|
3059
|
+
workgroupName: (0, smithy_client_1.expectString)(output.workgroupName),
|
|
3060
|
+
};
|
|
3061
|
+
};
|
|
3062
|
+
const deserializeAws_json1_1TableRestoreStatusList = (output, context) => {
|
|
3063
|
+
const retVal = (output || [])
|
|
3064
|
+
.filter((e) => e != null)
|
|
3065
|
+
.map((entry) => {
|
|
3066
|
+
if (entry === null) {
|
|
3067
|
+
return null;
|
|
3068
|
+
}
|
|
3069
|
+
return deserializeAws_json1_1TableRestoreStatus(entry, context);
|
|
3070
|
+
});
|
|
3071
|
+
return retVal;
|
|
3072
|
+
};
|
|
2828
3073
|
const deserializeAws_json1_1Tag = (output, context) => {
|
|
2829
3074
|
return {
|
|
2830
3075
|
key: (0, smithy_client_1.expectString)(output.key),
|
|
@@ -2959,6 +3204,7 @@ const deserializeAws_json1_1Workgroup = (output, context) => {
|
|
|
2959
3204
|
endpoint: output.endpoint != null ? deserializeAws_json1_1Endpoint(output.endpoint, context) : undefined,
|
|
2960
3205
|
enhancedVpcRouting: (0, smithy_client_1.expectBoolean)(output.enhancedVpcRouting),
|
|
2961
3206
|
namespaceName: (0, smithy_client_1.expectString)(output.namespaceName),
|
|
3207
|
+
port: (0, smithy_client_1.expectInt32)(output.port),
|
|
2962
3208
|
publiclyAccessible: (0, smithy_client_1.expectBoolean)(output.publiclyAccessible),
|
|
2963
3209
|
securityGroupIds: output.securityGroupIds != null
|
|
2964
3210
|
? deserializeAws_json1_1SecurityGroupIdList(output.securityGroupIds, context)
|
|
@@ -16,18 +16,21 @@ import { GetNamespaceCommand, } from "./commands/GetNamespaceCommand";
|
|
|
16
16
|
import { GetRecoveryPointCommand, } from "./commands/GetRecoveryPointCommand";
|
|
17
17
|
import { GetResourcePolicyCommand, } from "./commands/GetResourcePolicyCommand";
|
|
18
18
|
import { GetSnapshotCommand } from "./commands/GetSnapshotCommand";
|
|
19
|
+
import { GetTableRestoreStatusCommand, } from "./commands/GetTableRestoreStatusCommand";
|
|
19
20
|
import { GetUsageLimitCommand, } from "./commands/GetUsageLimitCommand";
|
|
20
21
|
import { GetWorkgroupCommand, } from "./commands/GetWorkgroupCommand";
|
|
21
22
|
import { ListEndpointAccessCommand, } from "./commands/ListEndpointAccessCommand";
|
|
22
23
|
import { ListNamespacesCommand, } from "./commands/ListNamespacesCommand";
|
|
23
24
|
import { ListRecoveryPointsCommand, } from "./commands/ListRecoveryPointsCommand";
|
|
24
25
|
import { ListSnapshotsCommand, } from "./commands/ListSnapshotsCommand";
|
|
26
|
+
import { ListTableRestoreStatusCommand, } from "./commands/ListTableRestoreStatusCommand";
|
|
25
27
|
import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
|
|
26
28
|
import { ListUsageLimitsCommand, } from "./commands/ListUsageLimitsCommand";
|
|
27
29
|
import { ListWorkgroupsCommand, } from "./commands/ListWorkgroupsCommand";
|
|
28
30
|
import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand";
|
|
29
31
|
import { RestoreFromRecoveryPointCommand, } from "./commands/RestoreFromRecoveryPointCommand";
|
|
30
32
|
import { RestoreFromSnapshotCommand, } from "./commands/RestoreFromSnapshotCommand";
|
|
33
|
+
import { RestoreTableFromSnapshotCommand, } from "./commands/RestoreTableFromSnapshotCommand";
|
|
31
34
|
import { TagResourceCommand } from "./commands/TagResourceCommand";
|
|
32
35
|
import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
|
|
33
36
|
import { UpdateEndpointAccessCommand, } from "./commands/UpdateEndpointAccessCommand";
|
|
@@ -289,6 +292,20 @@ export class RedshiftServerless extends RedshiftServerlessClient {
|
|
|
289
292
|
return this.send(command, optionsOrCb);
|
|
290
293
|
}
|
|
291
294
|
}
|
|
295
|
+
getTableRestoreStatus(args, optionsOrCb, cb) {
|
|
296
|
+
const command = new GetTableRestoreStatusCommand(args);
|
|
297
|
+
if (typeof optionsOrCb === "function") {
|
|
298
|
+
this.send(command, optionsOrCb);
|
|
299
|
+
}
|
|
300
|
+
else if (typeof cb === "function") {
|
|
301
|
+
if (typeof optionsOrCb !== "object")
|
|
302
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
303
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
304
|
+
}
|
|
305
|
+
else {
|
|
306
|
+
return this.send(command, optionsOrCb);
|
|
307
|
+
}
|
|
308
|
+
}
|
|
292
309
|
getUsageLimit(args, optionsOrCb, cb) {
|
|
293
310
|
const command = new GetUsageLimitCommand(args);
|
|
294
311
|
if (typeof optionsOrCb === "function") {
|
|
@@ -373,6 +390,20 @@ export class RedshiftServerless extends RedshiftServerlessClient {
|
|
|
373
390
|
return this.send(command, optionsOrCb);
|
|
374
391
|
}
|
|
375
392
|
}
|
|
393
|
+
listTableRestoreStatus(args, optionsOrCb, cb) {
|
|
394
|
+
const command = new ListTableRestoreStatusCommand(args);
|
|
395
|
+
if (typeof optionsOrCb === "function") {
|
|
396
|
+
this.send(command, optionsOrCb);
|
|
397
|
+
}
|
|
398
|
+
else if (typeof cb === "function") {
|
|
399
|
+
if (typeof optionsOrCb !== "object")
|
|
400
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
401
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
402
|
+
}
|
|
403
|
+
else {
|
|
404
|
+
return this.send(command, optionsOrCb);
|
|
405
|
+
}
|
|
406
|
+
}
|
|
376
407
|
listTagsForResource(args, optionsOrCb, cb) {
|
|
377
408
|
const command = new ListTagsForResourceCommand(args);
|
|
378
409
|
if (typeof optionsOrCb === "function") {
|
|
@@ -457,6 +488,20 @@ export class RedshiftServerless extends RedshiftServerlessClient {
|
|
|
457
488
|
return this.send(command, optionsOrCb);
|
|
458
489
|
}
|
|
459
490
|
}
|
|
491
|
+
restoreTableFromSnapshot(args, optionsOrCb, cb) {
|
|
492
|
+
const command = new RestoreTableFromSnapshotCommand(args);
|
|
493
|
+
if (typeof optionsOrCb === "function") {
|
|
494
|
+
this.send(command, optionsOrCb);
|
|
495
|
+
}
|
|
496
|
+
else if (typeof cb === "function") {
|
|
497
|
+
if (typeof optionsOrCb !== "object")
|
|
498
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
499
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
500
|
+
}
|
|
501
|
+
else {
|
|
502
|
+
return this.send(command, optionsOrCb);
|
|
503
|
+
}
|
|
504
|
+
}
|
|
460
505
|
tagResource(args, optionsOrCb, cb) {
|
|
461
506
|
const command = new TagResourceCommand(args);
|
|
462
507
|
if (typeof optionsOrCb === "function") {
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { GetTableRestoreStatusRequestFilterSensitiveLog, GetTableRestoreStatusResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1GetTableRestoreStatusCommand, serializeAws_json1_1GetTableRestoreStatusCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class GetTableRestoreStatusCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, GetTableRestoreStatusCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "RedshiftServerlessClient";
|
|
25
|
+
const commandName = "GetTableRestoreStatusCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: GetTableRestoreStatusRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: GetTableRestoreStatusResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1GetTableRestoreStatusCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1GetTableRestoreStatusCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListTableRestoreStatusRequestFilterSensitiveLog, ListTableRestoreStatusResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1ListTableRestoreStatusCommand, serializeAws_json1_1ListTableRestoreStatusCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class ListTableRestoreStatusCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, ListTableRestoreStatusCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "RedshiftServerlessClient";
|
|
25
|
+
const commandName = "ListTableRestoreStatusCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: ListTableRestoreStatusRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: ListTableRestoreStatusResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1ListTableRestoreStatusCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1ListTableRestoreStatusCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { RestoreTableFromSnapshotRequestFilterSensitiveLog, RestoreTableFromSnapshotResponseFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_1RestoreTableFromSnapshotCommand, serializeAws_json1_1RestoreTableFromSnapshotCommand, } from "../protocols/Aws_json1_1";
|
|
6
|
+
export class RestoreTableFromSnapshotCommand extends $Command {
|
|
7
|
+
constructor(input) {
|
|
8
|
+
super();
|
|
9
|
+
this.input = input;
|
|
10
|
+
}
|
|
11
|
+
static getEndpointParameterInstructions() {
|
|
12
|
+
return {
|
|
13
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
14
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
15
|
+
Region: { type: "builtInParams", name: "region" },
|
|
16
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
20
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
21
|
+
this.middlewareStack.use(getEndpointPlugin(configuration, RestoreTableFromSnapshotCommand.getEndpointParameterInstructions()));
|
|
22
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
23
|
+
const { logger } = configuration;
|
|
24
|
+
const clientName = "RedshiftServerlessClient";
|
|
25
|
+
const commandName = "RestoreTableFromSnapshotCommand";
|
|
26
|
+
const handlerExecutionContext = {
|
|
27
|
+
logger,
|
|
28
|
+
clientName,
|
|
29
|
+
commandName,
|
|
30
|
+
inputFilterSensitiveLog: RestoreTableFromSnapshotRequestFilterSensitiveLog,
|
|
31
|
+
outputFilterSensitiveLog: RestoreTableFromSnapshotResponseFilterSensitiveLog,
|
|
32
|
+
};
|
|
33
|
+
const { requestHandler } = configuration;
|
|
34
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
35
|
+
}
|
|
36
|
+
serialize(input, context) {
|
|
37
|
+
return serializeAws_json1_1RestoreTableFromSnapshotCommand(input, context);
|
|
38
|
+
}
|
|
39
|
+
deserialize(output, context) {
|
|
40
|
+
return deserializeAws_json1_1RestoreTableFromSnapshotCommand(output, context);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -16,18 +16,21 @@ export * from "./GetNamespaceCommand";
|
|
|
16
16
|
export * from "./GetRecoveryPointCommand";
|
|
17
17
|
export * from "./GetResourcePolicyCommand";
|
|
18
18
|
export * from "./GetSnapshotCommand";
|
|
19
|
+
export * from "./GetTableRestoreStatusCommand";
|
|
19
20
|
export * from "./GetUsageLimitCommand";
|
|
20
21
|
export * from "./GetWorkgroupCommand";
|
|
21
22
|
export * from "./ListEndpointAccessCommand";
|
|
22
23
|
export * from "./ListNamespacesCommand";
|
|
23
24
|
export * from "./ListRecoveryPointsCommand";
|
|
24
25
|
export * from "./ListSnapshotsCommand";
|
|
26
|
+
export * from "./ListTableRestoreStatusCommand";
|
|
25
27
|
export * from "./ListTagsForResourceCommand";
|
|
26
28
|
export * from "./ListUsageLimitsCommand";
|
|
27
29
|
export * from "./ListWorkgroupsCommand";
|
|
28
30
|
export * from "./PutResourcePolicyCommand";
|
|
29
31
|
export * from "./RestoreFromRecoveryPointCommand";
|
|
30
32
|
export * from "./RestoreFromSnapshotCommand";
|
|
33
|
+
export * from "./RestoreTableFromSnapshotCommand";
|
|
31
34
|
export * from "./TagResourceCommand";
|
|
32
35
|
export * from "./UntagResourceCommand";
|
|
33
36
|
export * from "./UpdateEndpointAccessCommand";
|