@aws-sdk/client-dynamodb 3.145.0 → 3.154.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/CHANGELOG.md +27 -0
- package/dist-cjs/DynamoDB.js +45 -0
- package/dist-cjs/commands/DescribeImportCommand.js +36 -0
- package/dist-cjs/commands/ImportTableCommand.js +36 -0
- package/dist-cjs/commands/ListImportsCommand.js +36 -0
- package/dist-cjs/commands/index.js +3 -0
- package/dist-cjs/models/models_0.js +99 -5
- package/dist-cjs/pagination/ListImportsPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +1 -0
- package/dist-cjs/protocols/Aws_json1_0.js +390 -2
- package/dist-es/DynamoDB.js +45 -0
- package/dist-es/commands/DescribeImportCommand.js +39 -0
- package/dist-es/commands/ImportTableCommand.js +39 -0
- package/dist-es/commands/ListImportsCommand.js +39 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +56 -0
- package/dist-es/pagination/ListImportsPaginator.js +75 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_json1_0.js +414 -1
- package/dist-types/DynamoDB.d.ts +28 -0
- package/dist-types/DynamoDBClient.d.ts +5 -2
- package/dist-types/commands/DescribeImportCommand.d.ts +37 -0
- package/dist-types/commands/ImportTableCommand.d.ts +38 -0
- package/dist-types/commands/ListImportsCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +493 -2
- package/dist-types/pagination/ListImportsPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_json1_0.d.ts +9 -0
- package/dist-types/ts3.4/DynamoDB.d.ts +15 -0
- package/dist-types/ts3.4/DynamoDBClient.d.ts +5 -2
- package/dist-types/ts3.4/commands/DescribeImportCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ImportTableCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListImportsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +193 -0
- package/dist-types/ts3.4/pagination/ListImportsPaginator.d.ts +4 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +9 -0
- package/package.json +4 -4
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { DescribeImportInputFilterSensitiveLog, DescribeImportOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_0DescribeImportCommand, serializeAws_json1_0DescribeImportCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
var DescribeImportCommand = (function (_super) {
|
|
7
|
+
__extends(DescribeImportCommand, _super);
|
|
8
|
+
function DescribeImportCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
DescribeImportCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "DynamoDBClient";
|
|
18
|
+
var commandName = "DescribeImportCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: DescribeImportInputFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: DescribeImportOutputFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
DescribeImportCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_0DescribeImportCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
DescribeImportCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_0DescribeImportCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return DescribeImportCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { DescribeImportCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ImportTableInputFilterSensitiveLog, ImportTableOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_0ImportTableCommand, serializeAws_json1_0ImportTableCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
var ImportTableCommand = (function (_super) {
|
|
7
|
+
__extends(ImportTableCommand, _super);
|
|
8
|
+
function ImportTableCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ImportTableCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "DynamoDBClient";
|
|
18
|
+
var commandName = "ImportTableCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ImportTableInputFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ImportTableOutputFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ImportTableCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_0ImportTableCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ImportTableCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_0ImportTableCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ImportTableCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ImportTableCommand };
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { __extends } from "tslib";
|
|
2
|
+
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
4
|
+
import { ListImportsInputFilterSensitiveLog, ListImportsOutputFilterSensitiveLog, } from "../models/models_0";
|
|
5
|
+
import { deserializeAws_json1_0ListImportsCommand, serializeAws_json1_0ListImportsCommand, } from "../protocols/Aws_json1_0";
|
|
6
|
+
var ListImportsCommand = (function (_super) {
|
|
7
|
+
__extends(ListImportsCommand, _super);
|
|
8
|
+
function ListImportsCommand(input) {
|
|
9
|
+
var _this = _super.call(this) || this;
|
|
10
|
+
_this.input = input;
|
|
11
|
+
return _this;
|
|
12
|
+
}
|
|
13
|
+
ListImportsCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
|
|
14
|
+
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
15
|
+
var stack = clientStack.concat(this.middlewareStack);
|
|
16
|
+
var logger = configuration.logger;
|
|
17
|
+
var clientName = "DynamoDBClient";
|
|
18
|
+
var commandName = "ListImportsCommand";
|
|
19
|
+
var handlerExecutionContext = {
|
|
20
|
+
logger: logger,
|
|
21
|
+
clientName: clientName,
|
|
22
|
+
commandName: commandName,
|
|
23
|
+
inputFilterSensitiveLog: ListImportsInputFilterSensitiveLog,
|
|
24
|
+
outputFilterSensitiveLog: ListImportsOutputFilterSensitiveLog,
|
|
25
|
+
};
|
|
26
|
+
var requestHandler = configuration.requestHandler;
|
|
27
|
+
return stack.resolve(function (request) {
|
|
28
|
+
return requestHandler.handle(request.request, options || {});
|
|
29
|
+
}, handlerExecutionContext);
|
|
30
|
+
};
|
|
31
|
+
ListImportsCommand.prototype.serialize = function (input, context) {
|
|
32
|
+
return serializeAws_json1_0ListImportsCommand(input, context);
|
|
33
|
+
};
|
|
34
|
+
ListImportsCommand.prototype.deserialize = function (output, context) {
|
|
35
|
+
return deserializeAws_json1_0ListImportsCommand(output, context);
|
|
36
|
+
};
|
|
37
|
+
return ListImportsCommand;
|
|
38
|
+
}($Command));
|
|
39
|
+
export { ListImportsCommand };
|
|
@@ -14,6 +14,7 @@ export * from "./DescribeEndpointsCommand";
|
|
|
14
14
|
export * from "./DescribeExportCommand";
|
|
15
15
|
export * from "./DescribeGlobalTableCommand";
|
|
16
16
|
export * from "./DescribeGlobalTableSettingsCommand";
|
|
17
|
+
export * from "./DescribeImportCommand";
|
|
17
18
|
export * from "./DescribeKinesisStreamingDestinationCommand";
|
|
18
19
|
export * from "./DescribeLimitsCommand";
|
|
19
20
|
export * from "./DescribeTableCommand";
|
|
@@ -25,10 +26,12 @@ export * from "./ExecuteStatementCommand";
|
|
|
25
26
|
export * from "./ExecuteTransactionCommand";
|
|
26
27
|
export * from "./ExportTableToPointInTimeCommand";
|
|
27
28
|
export * from "./GetItemCommand";
|
|
29
|
+
export * from "./ImportTableCommand";
|
|
28
30
|
export * from "./ListBackupsCommand";
|
|
29
31
|
export * from "./ListContributorInsightsCommand";
|
|
30
32
|
export * from "./ListExportsCommand";
|
|
31
33
|
export * from "./ListGlobalTablesCommand";
|
|
34
|
+
export * from "./ListImportsCommand";
|
|
32
35
|
export * from "./ListTablesCommand";
|
|
33
36
|
export * from "./ListTagsOfResourceCommand";
|
|
34
37
|
export * from "./PutItemCommand";
|
|
@@ -260,6 +260,38 @@ var GlobalTableNotFoundException = (function (_super) {
|
|
|
260
260
|
return GlobalTableNotFoundException;
|
|
261
261
|
}(__BaseException));
|
|
262
262
|
export { GlobalTableNotFoundException };
|
|
263
|
+
export var ImportStatus;
|
|
264
|
+
(function (ImportStatus) {
|
|
265
|
+
ImportStatus["CANCELLED"] = "CANCELLED";
|
|
266
|
+
ImportStatus["CANCELLING"] = "CANCELLING";
|
|
267
|
+
ImportStatus["COMPLETED"] = "COMPLETED";
|
|
268
|
+
ImportStatus["FAILED"] = "FAILED";
|
|
269
|
+
ImportStatus["IN_PROGRESS"] = "IN_PROGRESS";
|
|
270
|
+
})(ImportStatus || (ImportStatus = {}));
|
|
271
|
+
export var InputCompressionType;
|
|
272
|
+
(function (InputCompressionType) {
|
|
273
|
+
InputCompressionType["GZIP"] = "GZIP";
|
|
274
|
+
InputCompressionType["NONE"] = "NONE";
|
|
275
|
+
InputCompressionType["ZSTD"] = "ZSTD";
|
|
276
|
+
})(InputCompressionType || (InputCompressionType = {}));
|
|
277
|
+
export var InputFormat;
|
|
278
|
+
(function (InputFormat) {
|
|
279
|
+
InputFormat["CSV"] = "CSV";
|
|
280
|
+
InputFormat["DYNAMODB_JSON"] = "DYNAMODB_JSON";
|
|
281
|
+
InputFormat["ION"] = "ION";
|
|
282
|
+
})(InputFormat || (InputFormat = {}));
|
|
283
|
+
var ImportNotFoundException = (function (_super) {
|
|
284
|
+
__extends(ImportNotFoundException, _super);
|
|
285
|
+
function ImportNotFoundException(opts) {
|
|
286
|
+
var _this = _super.call(this, __assign({ name: "ImportNotFoundException", $fault: "client" }, opts)) || this;
|
|
287
|
+
_this.name = "ImportNotFoundException";
|
|
288
|
+
_this.$fault = "client";
|
|
289
|
+
Object.setPrototypeOf(_this, ImportNotFoundException.prototype);
|
|
290
|
+
return _this;
|
|
291
|
+
}
|
|
292
|
+
return ImportNotFoundException;
|
|
293
|
+
}(__BaseException));
|
|
294
|
+
export { ImportNotFoundException };
|
|
263
295
|
var DuplicateItemException = (function (_super) {
|
|
264
296
|
__extends(DuplicateItemException, _super);
|
|
265
297
|
function DuplicateItemException(opts) {
|
|
@@ -334,6 +366,18 @@ var PointInTimeRecoveryUnavailableException = (function (_super) {
|
|
|
334
366
|
return PointInTimeRecoveryUnavailableException;
|
|
335
367
|
}(__BaseException));
|
|
336
368
|
export { PointInTimeRecoveryUnavailableException };
|
|
369
|
+
var ImportConflictException = (function (_super) {
|
|
370
|
+
__extends(ImportConflictException, _super);
|
|
371
|
+
function ImportConflictException(opts) {
|
|
372
|
+
var _this = _super.call(this, __assign({ name: "ImportConflictException", $fault: "client" }, opts)) || this;
|
|
373
|
+
_this.name = "ImportConflictException";
|
|
374
|
+
_this.$fault = "client";
|
|
375
|
+
Object.setPrototypeOf(_this, ImportConflictException.prototype);
|
|
376
|
+
return _this;
|
|
377
|
+
}
|
|
378
|
+
return ImportConflictException;
|
|
379
|
+
}(__BaseException));
|
|
380
|
+
export { ImportConflictException };
|
|
337
381
|
var TableAlreadyExistsException = (function (_super) {
|
|
338
382
|
__extends(TableAlreadyExistsException, _super);
|
|
339
383
|
function TableAlreadyExistsException(opts) {
|
|
@@ -487,6 +531,7 @@ export var LocalSecondaryIndexDescriptionFilterSensitiveLog = function (obj) { r
|
|
|
487
531
|
export var RestoreSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
488
532
|
export var TableDescriptionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
489
533
|
export var CreateTableOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
534
|
+
export var CsvOptionsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
490
535
|
export var DeleteBackupInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
491
536
|
export var DeleteBackupOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
492
537
|
export var DeleteGlobalSecondaryIndexActionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -513,6 +558,12 @@ export var DescribeGlobalTableSettingsInputFilterSensitiveLog = function (obj) {
|
|
|
513
558
|
export var ReplicaGlobalSecondaryIndexSettingsDescriptionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
514
559
|
export var ReplicaSettingsDescriptionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
515
560
|
export var DescribeGlobalTableSettingsOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
561
|
+
export var DescribeImportInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
562
|
+
export var InputFormatOptionsFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
563
|
+
export var S3BucketSourceFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
564
|
+
export var TableCreationParametersFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
565
|
+
export var ImportTableDescriptionFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
566
|
+
export var DescribeImportOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
516
567
|
export var DescribeKinesisStreamingDestinationInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
517
568
|
export var KinesisDataStreamDestinationFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
518
569
|
export var DescribeKinesisStreamingDestinationOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -531,6 +582,8 @@ export var KinesisStreamingDestinationInputFilterSensitiveLog = function (obj) {
|
|
|
531
582
|
export var KinesisStreamingDestinationOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
532
583
|
export var ExportTableToPointInTimeInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
533
584
|
export var ExportTableToPointInTimeOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
585
|
+
export var ImportTableInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
586
|
+
export var ImportTableOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
534
587
|
export var ListBackupsInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
535
588
|
export var ListBackupsOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
536
589
|
export var ListContributorInsightsInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -541,6 +594,9 @@ export var ListExportsOutputFilterSensitiveLog = function (obj) { return (__assi
|
|
|
541
594
|
export var ListGlobalTablesInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
542
595
|
export var GlobalTableFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
543
596
|
export var ListGlobalTablesOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
597
|
+
export var ListImportsInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
598
|
+
export var ImportSummaryFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
599
|
+
export var ListImportsOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
544
600
|
export var ListTablesInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
545
601
|
export var ListTablesOutputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
546
602
|
export var ListTagsOfResourceInputFilterSensitiveLog = function (obj) { return (__assign({}, obj)); };
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { __asyncGenerator, __await, __awaiter, __generator, __read, __spreadArray } from "tslib";
|
|
2
|
+
import { ListImportsCommand } from "../commands/ListImportsCommand";
|
|
3
|
+
import { DynamoDB } from "../DynamoDB";
|
|
4
|
+
import { DynamoDBClient } from "../DynamoDBClient";
|
|
5
|
+
var makePagedClientRequest = function (client, input) {
|
|
6
|
+
var args = [];
|
|
7
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
8
|
+
args[_i - 2] = arguments[_i];
|
|
9
|
+
}
|
|
10
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
|
+
return __generator(this, function (_a) {
|
|
12
|
+
switch (_a.label) {
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListImportsCommand(input)], __read(args), false))];
|
|
14
|
+
case 1: return [2, _a.sent()];
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
});
|
|
18
|
+
};
|
|
19
|
+
var makePagedRequest = function (client, input) {
|
|
20
|
+
var args = [];
|
|
21
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
22
|
+
args[_i - 2] = arguments[_i];
|
|
23
|
+
}
|
|
24
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
|
+
return __generator(this, function (_a) {
|
|
26
|
+
switch (_a.label) {
|
|
27
|
+
case 0: return [4, client.listImports.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
|
+
case 1: return [2, _a.sent()];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
};
|
|
33
|
+
export function paginateListImports(config, input) {
|
|
34
|
+
var additionalArguments = [];
|
|
35
|
+
for (var _i = 2; _i < arguments.length; _i++) {
|
|
36
|
+
additionalArguments[_i - 2] = arguments[_i];
|
|
37
|
+
}
|
|
38
|
+
return __asyncGenerator(this, arguments, function paginateListImports_1() {
|
|
39
|
+
var token, hasNext, page, prevToken;
|
|
40
|
+
return __generator(this, function (_a) {
|
|
41
|
+
switch (_a.label) {
|
|
42
|
+
case 0:
|
|
43
|
+
token = config.startingToken || undefined;
|
|
44
|
+
hasNext = true;
|
|
45
|
+
_a.label = 1;
|
|
46
|
+
case 1:
|
|
47
|
+
if (!hasNext) return [3, 9];
|
|
48
|
+
input.NextToken = token;
|
|
49
|
+
input["PageSize"] = config.pageSize;
|
|
50
|
+
if (!(config.client instanceof DynamoDB)) return [3, 3];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
|
+
case 2:
|
|
53
|
+
page = _a.sent();
|
|
54
|
+
return [3, 6];
|
|
55
|
+
case 3:
|
|
56
|
+
if (!(config.client instanceof DynamoDBClient)) return [3, 5];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
|
+
case 4:
|
|
59
|
+
page = _a.sent();
|
|
60
|
+
return [3, 6];
|
|
61
|
+
case 5: throw new Error("Invalid client, expected DynamoDB | DynamoDBClient");
|
|
62
|
+
case 6: return [4, __await(page)];
|
|
63
|
+
case 7: return [4, _a.sent()];
|
|
64
|
+
case 8:
|
|
65
|
+
_a.sent();
|
|
66
|
+
prevToken = token;
|
|
67
|
+
token = page.NextToken;
|
|
68
|
+
hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
|
|
69
|
+
return [3, 1];
|
|
70
|
+
case 9: return [4, __await(undefined)];
|
|
71
|
+
case 10: return [2, _a.sent()];
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
});
|
|
75
|
+
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export * from "./Interfaces";
|
|
2
2
|
export * from "./ListContributorInsightsPaginator";
|
|
3
3
|
export * from "./ListExportsPaginator";
|
|
4
|
+
export * from "./ListImportsPaginator";
|
|
4
5
|
export * from "./ListTablesPaginator";
|
|
5
6
|
export * from "./QueryPaginator";
|
|
6
7
|
export * from "./ScanPaginator";
|