@aws-sdk/client-dynamodb 3.150.0 → 3.153.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (40) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/DynamoDB.js +45 -0
  3. package/dist-cjs/commands/DescribeImportCommand.js +36 -0
  4. package/dist-cjs/commands/ImportTableCommand.js +36 -0
  5. package/dist-cjs/commands/ListImportsCommand.js +36 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/models/models_0.js +99 -5
  8. package/dist-cjs/pagination/ListImportsPaginator.js +36 -0
  9. package/dist-cjs/pagination/index.js +1 -0
  10. package/dist-cjs/protocols/Aws_json1_0.js +390 -2
  11. package/dist-es/DynamoDB.js +45 -0
  12. package/dist-es/commands/DescribeImportCommand.js +39 -0
  13. package/dist-es/commands/ImportTableCommand.js +39 -0
  14. package/dist-es/commands/ListImportsCommand.js +39 -0
  15. package/dist-es/commands/index.js +3 -0
  16. package/dist-es/models/models_0.js +56 -0
  17. package/dist-es/pagination/ListImportsPaginator.js +75 -0
  18. package/dist-es/pagination/index.js +1 -0
  19. package/dist-es/protocols/Aws_json1_0.js +414 -1
  20. package/dist-types/DynamoDB.d.ts +28 -0
  21. package/dist-types/DynamoDBClient.d.ts +5 -2
  22. package/dist-types/commands/DescribeImportCommand.d.ts +37 -0
  23. package/dist-types/commands/ImportTableCommand.d.ts +38 -0
  24. package/dist-types/commands/ListImportsCommand.d.ts +37 -0
  25. package/dist-types/commands/index.d.ts +3 -0
  26. package/dist-types/models/models_0.d.ts +493 -2
  27. package/dist-types/pagination/ListImportsPaginator.d.ts +4 -0
  28. package/dist-types/pagination/index.d.ts +1 -0
  29. package/dist-types/protocols/Aws_json1_0.d.ts +9 -0
  30. package/dist-types/ts3.4/DynamoDB.d.ts +15 -0
  31. package/dist-types/ts3.4/DynamoDBClient.d.ts +5 -2
  32. package/dist-types/ts3.4/commands/DescribeImportCommand.d.ts +17 -0
  33. package/dist-types/ts3.4/commands/ImportTableCommand.d.ts +17 -0
  34. package/dist-types/ts3.4/commands/ListImportsCommand.d.ts +17 -0
  35. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  36. package/dist-types/ts3.4/models/models_0.d.ts +193 -0
  37. package/dist-types/ts3.4/pagination/ListImportsPaginator.d.ts +4 -0
  38. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  39. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +9 -0
  40. package/package.json +1 -1
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.serializeAws_json1_0UpdateTimeToLiveCommand = exports.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand = exports.serializeAws_json1_0UpdateTableCommand = exports.serializeAws_json1_0UpdateItemCommand = exports.serializeAws_json1_0UpdateGlobalTableSettingsCommand = exports.serializeAws_json1_0UpdateGlobalTableCommand = exports.serializeAws_json1_0UpdateContributorInsightsCommand = exports.serializeAws_json1_0UpdateContinuousBackupsCommand = exports.serializeAws_json1_0UntagResourceCommand = exports.serializeAws_json1_0TransactWriteItemsCommand = exports.serializeAws_json1_0TransactGetItemsCommand = exports.serializeAws_json1_0TagResourceCommand = exports.serializeAws_json1_0ScanCommand = exports.serializeAws_json1_0RestoreTableToPointInTimeCommand = exports.serializeAws_json1_0RestoreTableFromBackupCommand = exports.serializeAws_json1_0QueryCommand = exports.serializeAws_json1_0PutItemCommand = exports.serializeAws_json1_0ListTagsOfResourceCommand = exports.serializeAws_json1_0ListTablesCommand = exports.serializeAws_json1_0ListGlobalTablesCommand = exports.serializeAws_json1_0ListExportsCommand = exports.serializeAws_json1_0ListContributorInsightsCommand = exports.serializeAws_json1_0ListBackupsCommand = exports.serializeAws_json1_0GetItemCommand = exports.serializeAws_json1_0ExportTableToPointInTimeCommand = exports.serializeAws_json1_0ExecuteTransactionCommand = exports.serializeAws_json1_0ExecuteStatementCommand = exports.serializeAws_json1_0EnableKinesisStreamingDestinationCommand = exports.serializeAws_json1_0DisableKinesisStreamingDestinationCommand = exports.serializeAws_json1_0DescribeTimeToLiveCommand = exports.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand = exports.serializeAws_json1_0DescribeTableCommand = exports.serializeAws_json1_0DescribeLimitsCommand = exports.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand = exports.serializeAws_json1_0DescribeGlobalTableSettingsCommand = exports.serializeAws_json1_0DescribeGlobalTableCommand = exports.serializeAws_json1_0DescribeExportCommand = exports.serializeAws_json1_0DescribeEndpointsCommand = exports.serializeAws_json1_0DescribeContributorInsightsCommand = exports.serializeAws_json1_0DescribeContinuousBackupsCommand = exports.serializeAws_json1_0DescribeBackupCommand = exports.serializeAws_json1_0DeleteTableCommand = exports.serializeAws_json1_0DeleteItemCommand = exports.serializeAws_json1_0DeleteBackupCommand = exports.serializeAws_json1_0CreateTableCommand = exports.serializeAws_json1_0CreateGlobalTableCommand = exports.serializeAws_json1_0CreateBackupCommand = exports.serializeAws_json1_0BatchWriteItemCommand = exports.serializeAws_json1_0BatchGetItemCommand = exports.serializeAws_json1_0BatchExecuteStatementCommand = void 0;
4
- exports.deserializeAws_json1_0UpdateTimeToLiveCommand = exports.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand = exports.deserializeAws_json1_0UpdateTableCommand = exports.deserializeAws_json1_0UpdateItemCommand = exports.deserializeAws_json1_0UpdateGlobalTableSettingsCommand = exports.deserializeAws_json1_0UpdateGlobalTableCommand = exports.deserializeAws_json1_0UpdateContributorInsightsCommand = exports.deserializeAws_json1_0UpdateContinuousBackupsCommand = exports.deserializeAws_json1_0UntagResourceCommand = exports.deserializeAws_json1_0TransactWriteItemsCommand = exports.deserializeAws_json1_0TransactGetItemsCommand = exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0ScanCommand = exports.deserializeAws_json1_0RestoreTableToPointInTimeCommand = exports.deserializeAws_json1_0RestoreTableFromBackupCommand = exports.deserializeAws_json1_0QueryCommand = exports.deserializeAws_json1_0PutItemCommand = exports.deserializeAws_json1_0ListTagsOfResourceCommand = exports.deserializeAws_json1_0ListTablesCommand = exports.deserializeAws_json1_0ListGlobalTablesCommand = exports.deserializeAws_json1_0ListExportsCommand = exports.deserializeAws_json1_0ListContributorInsightsCommand = exports.deserializeAws_json1_0ListBackupsCommand = exports.deserializeAws_json1_0GetItemCommand = exports.deserializeAws_json1_0ExportTableToPointInTimeCommand = exports.deserializeAws_json1_0ExecuteTransactionCommand = exports.deserializeAws_json1_0ExecuteStatementCommand = exports.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand = exports.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand = exports.deserializeAws_json1_0DescribeTimeToLiveCommand = exports.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand = exports.deserializeAws_json1_0DescribeTableCommand = exports.deserializeAws_json1_0DescribeLimitsCommand = exports.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand = exports.deserializeAws_json1_0DescribeGlobalTableSettingsCommand = exports.deserializeAws_json1_0DescribeGlobalTableCommand = exports.deserializeAws_json1_0DescribeExportCommand = exports.deserializeAws_json1_0DescribeEndpointsCommand = exports.deserializeAws_json1_0DescribeContributorInsightsCommand = exports.deserializeAws_json1_0DescribeContinuousBackupsCommand = exports.deserializeAws_json1_0DescribeBackupCommand = exports.deserializeAws_json1_0DeleteTableCommand = exports.deserializeAws_json1_0DeleteItemCommand = exports.deserializeAws_json1_0DeleteBackupCommand = exports.deserializeAws_json1_0CreateTableCommand = exports.deserializeAws_json1_0CreateGlobalTableCommand = exports.deserializeAws_json1_0CreateBackupCommand = exports.deserializeAws_json1_0BatchWriteItemCommand = exports.deserializeAws_json1_0BatchGetItemCommand = exports.deserializeAws_json1_0BatchExecuteStatementCommand = void 0;
3
+ exports.serializeAws_json1_0UpdateItemCommand = exports.serializeAws_json1_0UpdateGlobalTableSettingsCommand = exports.serializeAws_json1_0UpdateGlobalTableCommand = exports.serializeAws_json1_0UpdateContributorInsightsCommand = exports.serializeAws_json1_0UpdateContinuousBackupsCommand = exports.serializeAws_json1_0UntagResourceCommand = exports.serializeAws_json1_0TransactWriteItemsCommand = exports.serializeAws_json1_0TransactGetItemsCommand = exports.serializeAws_json1_0TagResourceCommand = exports.serializeAws_json1_0ScanCommand = exports.serializeAws_json1_0RestoreTableToPointInTimeCommand = exports.serializeAws_json1_0RestoreTableFromBackupCommand = exports.serializeAws_json1_0QueryCommand = exports.serializeAws_json1_0PutItemCommand = exports.serializeAws_json1_0ListTagsOfResourceCommand = exports.serializeAws_json1_0ListTablesCommand = exports.serializeAws_json1_0ListImportsCommand = exports.serializeAws_json1_0ListGlobalTablesCommand = exports.serializeAws_json1_0ListExportsCommand = exports.serializeAws_json1_0ListContributorInsightsCommand = exports.serializeAws_json1_0ListBackupsCommand = exports.serializeAws_json1_0ImportTableCommand = exports.serializeAws_json1_0GetItemCommand = exports.serializeAws_json1_0ExportTableToPointInTimeCommand = exports.serializeAws_json1_0ExecuteTransactionCommand = exports.serializeAws_json1_0ExecuteStatementCommand = exports.serializeAws_json1_0EnableKinesisStreamingDestinationCommand = exports.serializeAws_json1_0DisableKinesisStreamingDestinationCommand = exports.serializeAws_json1_0DescribeTimeToLiveCommand = exports.serializeAws_json1_0DescribeTableReplicaAutoScalingCommand = exports.serializeAws_json1_0DescribeTableCommand = exports.serializeAws_json1_0DescribeLimitsCommand = exports.serializeAws_json1_0DescribeKinesisStreamingDestinationCommand = exports.serializeAws_json1_0DescribeImportCommand = exports.serializeAws_json1_0DescribeGlobalTableSettingsCommand = exports.serializeAws_json1_0DescribeGlobalTableCommand = exports.serializeAws_json1_0DescribeExportCommand = exports.serializeAws_json1_0DescribeEndpointsCommand = exports.serializeAws_json1_0DescribeContributorInsightsCommand = exports.serializeAws_json1_0DescribeContinuousBackupsCommand = exports.serializeAws_json1_0DescribeBackupCommand = exports.serializeAws_json1_0DeleteTableCommand = exports.serializeAws_json1_0DeleteItemCommand = exports.serializeAws_json1_0DeleteBackupCommand = exports.serializeAws_json1_0CreateTableCommand = exports.serializeAws_json1_0CreateGlobalTableCommand = exports.serializeAws_json1_0CreateBackupCommand = exports.serializeAws_json1_0BatchWriteItemCommand = exports.serializeAws_json1_0BatchGetItemCommand = exports.serializeAws_json1_0BatchExecuteStatementCommand = void 0;
4
+ exports.deserializeAws_json1_0UpdateContributorInsightsCommand = exports.deserializeAws_json1_0UpdateContinuousBackupsCommand = exports.deserializeAws_json1_0UntagResourceCommand = exports.deserializeAws_json1_0TransactWriteItemsCommand = exports.deserializeAws_json1_0TransactGetItemsCommand = exports.deserializeAws_json1_0TagResourceCommand = exports.deserializeAws_json1_0ScanCommand = exports.deserializeAws_json1_0RestoreTableToPointInTimeCommand = exports.deserializeAws_json1_0RestoreTableFromBackupCommand = exports.deserializeAws_json1_0QueryCommand = exports.deserializeAws_json1_0PutItemCommand = exports.deserializeAws_json1_0ListTagsOfResourceCommand = exports.deserializeAws_json1_0ListTablesCommand = exports.deserializeAws_json1_0ListImportsCommand = exports.deserializeAws_json1_0ListGlobalTablesCommand = exports.deserializeAws_json1_0ListExportsCommand = exports.deserializeAws_json1_0ListContributorInsightsCommand = exports.deserializeAws_json1_0ListBackupsCommand = exports.deserializeAws_json1_0ImportTableCommand = exports.deserializeAws_json1_0GetItemCommand = exports.deserializeAws_json1_0ExportTableToPointInTimeCommand = exports.deserializeAws_json1_0ExecuteTransactionCommand = exports.deserializeAws_json1_0ExecuteStatementCommand = exports.deserializeAws_json1_0EnableKinesisStreamingDestinationCommand = exports.deserializeAws_json1_0DisableKinesisStreamingDestinationCommand = exports.deserializeAws_json1_0DescribeTimeToLiveCommand = exports.deserializeAws_json1_0DescribeTableReplicaAutoScalingCommand = exports.deserializeAws_json1_0DescribeTableCommand = exports.deserializeAws_json1_0DescribeLimitsCommand = exports.deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand = exports.deserializeAws_json1_0DescribeImportCommand = exports.deserializeAws_json1_0DescribeGlobalTableSettingsCommand = exports.deserializeAws_json1_0DescribeGlobalTableCommand = exports.deserializeAws_json1_0DescribeExportCommand = exports.deserializeAws_json1_0DescribeEndpointsCommand = exports.deserializeAws_json1_0DescribeContributorInsightsCommand = exports.deserializeAws_json1_0DescribeContinuousBackupsCommand = exports.deserializeAws_json1_0DescribeBackupCommand = exports.deserializeAws_json1_0DeleteTableCommand = exports.deserializeAws_json1_0DeleteItemCommand = exports.deserializeAws_json1_0DeleteBackupCommand = exports.deserializeAws_json1_0CreateTableCommand = exports.deserializeAws_json1_0CreateGlobalTableCommand = exports.deserializeAws_json1_0CreateBackupCommand = exports.deserializeAws_json1_0BatchWriteItemCommand = exports.deserializeAws_json1_0BatchGetItemCommand = exports.deserializeAws_json1_0BatchExecuteStatementCommand = exports.serializeAws_json1_0UpdateTimeToLiveCommand = exports.serializeAws_json1_0UpdateTableReplicaAutoScalingCommand = exports.serializeAws_json1_0UpdateTableCommand = void 0;
5
+ exports.deserializeAws_json1_0UpdateTimeToLiveCommand = exports.deserializeAws_json1_0UpdateTableReplicaAutoScalingCommand = exports.deserializeAws_json1_0UpdateTableCommand = exports.deserializeAws_json1_0UpdateItemCommand = exports.deserializeAws_json1_0UpdateGlobalTableSettingsCommand = exports.deserializeAws_json1_0UpdateGlobalTableCommand = void 0;
5
6
  const protocol_http_1 = require("@aws-sdk/protocol-http");
6
7
  const smithy_client_1 = require("@aws-sdk/smithy-client");
7
8
  const uuid_1 = require("uuid");
@@ -167,6 +168,16 @@ const serializeAws_json1_0DescribeGlobalTableSettingsCommand = async (input, con
167
168
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
168
169
  };
169
170
  exports.serializeAws_json1_0DescribeGlobalTableSettingsCommand = serializeAws_json1_0DescribeGlobalTableSettingsCommand;
171
+ const serializeAws_json1_0DescribeImportCommand = async (input, context) => {
172
+ const headers = {
173
+ "content-type": "application/x-amz-json-1.0",
174
+ "x-amz-target": "DynamoDB_20120810.DescribeImport",
175
+ };
176
+ let body;
177
+ body = JSON.stringify(serializeAws_json1_0DescribeImportInput(input, context));
178
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
179
+ };
180
+ exports.serializeAws_json1_0DescribeImportCommand = serializeAws_json1_0DescribeImportCommand;
170
181
  const serializeAws_json1_0DescribeKinesisStreamingDestinationCommand = async (input, context) => {
171
182
  const headers = {
172
183
  "content-type": "application/x-amz-json-1.0",
@@ -277,6 +288,16 @@ const serializeAws_json1_0GetItemCommand = async (input, context) => {
277
288
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
278
289
  };
279
290
  exports.serializeAws_json1_0GetItemCommand = serializeAws_json1_0GetItemCommand;
291
+ const serializeAws_json1_0ImportTableCommand = async (input, context) => {
292
+ const headers = {
293
+ "content-type": "application/x-amz-json-1.0",
294
+ "x-amz-target": "DynamoDB_20120810.ImportTable",
295
+ };
296
+ let body;
297
+ body = JSON.stringify(serializeAws_json1_0ImportTableInput(input, context));
298
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
299
+ };
300
+ exports.serializeAws_json1_0ImportTableCommand = serializeAws_json1_0ImportTableCommand;
280
301
  const serializeAws_json1_0ListBackupsCommand = async (input, context) => {
281
302
  const headers = {
282
303
  "content-type": "application/x-amz-json-1.0",
@@ -317,6 +338,16 @@ const serializeAws_json1_0ListGlobalTablesCommand = async (input, context) => {
317
338
  return buildHttpRpcRequest(context, headers, "/", undefined, body);
318
339
  };
319
340
  exports.serializeAws_json1_0ListGlobalTablesCommand = serializeAws_json1_0ListGlobalTablesCommand;
341
+ const serializeAws_json1_0ListImportsCommand = async (input, context) => {
342
+ const headers = {
343
+ "content-type": "application/x-amz-json-1.0",
344
+ "x-amz-target": "DynamoDB_20120810.ListImports",
345
+ };
346
+ let body;
347
+ body = JSON.stringify(serializeAws_json1_0ListImportsInput(input, context));
348
+ return buildHttpRpcRequest(context, headers, "/", undefined, body);
349
+ };
350
+ exports.serializeAws_json1_0ListImportsCommand = serializeAws_json1_0ListImportsCommand;
320
351
  const serializeAws_json1_0ListTablesCommand = async (input, context) => {
321
352
  const headers = {
322
353
  "content-type": "application/x-amz-json-1.0",
@@ -1192,6 +1223,40 @@ const deserializeAws_json1_0DescribeGlobalTableSettingsCommandError = async (out
1192
1223
  });
1193
1224
  }
1194
1225
  };
1226
+ const deserializeAws_json1_0DescribeImportCommand = async (output, context) => {
1227
+ if (output.statusCode >= 300) {
1228
+ return deserializeAws_json1_0DescribeImportCommandError(output, context);
1229
+ }
1230
+ const data = await parseBody(output.body, context);
1231
+ let contents = {};
1232
+ contents = deserializeAws_json1_0DescribeImportOutput(data, context);
1233
+ const response = {
1234
+ $metadata: deserializeMetadata(output),
1235
+ ...contents,
1236
+ };
1237
+ return Promise.resolve(response);
1238
+ };
1239
+ exports.deserializeAws_json1_0DescribeImportCommand = deserializeAws_json1_0DescribeImportCommand;
1240
+ const deserializeAws_json1_0DescribeImportCommandError = async (output, context) => {
1241
+ const parsedOutput = {
1242
+ ...output,
1243
+ body: await parseBody(output.body, context),
1244
+ };
1245
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1246
+ switch (errorCode) {
1247
+ case "ImportNotFoundException":
1248
+ case "com.amazonaws.dynamodb#ImportNotFoundException":
1249
+ throw await deserializeAws_json1_0ImportNotFoundExceptionResponse(parsedOutput, context);
1250
+ default:
1251
+ const parsedBody = parsedOutput.body;
1252
+ (0, smithy_client_1.throwDefaultError)({
1253
+ output,
1254
+ parsedBody,
1255
+ exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
1256
+ errorCode,
1257
+ });
1258
+ }
1259
+ };
1195
1260
  const deserializeAws_json1_0DescribeKinesisStreamingDestinationCommand = async (output, context) => {
1196
1261
  if (output.statusCode >= 300) {
1197
1262
  return deserializeAws_json1_0DescribeKinesisStreamingDestinationCommandError(output, context);
@@ -1680,6 +1745,46 @@ const deserializeAws_json1_0GetItemCommandError = async (output, context) => {
1680
1745
  });
1681
1746
  }
1682
1747
  };
1748
+ const deserializeAws_json1_0ImportTableCommand = async (output, context) => {
1749
+ if (output.statusCode >= 300) {
1750
+ return deserializeAws_json1_0ImportTableCommandError(output, context);
1751
+ }
1752
+ const data = await parseBody(output.body, context);
1753
+ let contents = {};
1754
+ contents = deserializeAws_json1_0ImportTableOutput(data, context);
1755
+ const response = {
1756
+ $metadata: deserializeMetadata(output),
1757
+ ...contents,
1758
+ };
1759
+ return Promise.resolve(response);
1760
+ };
1761
+ exports.deserializeAws_json1_0ImportTableCommand = deserializeAws_json1_0ImportTableCommand;
1762
+ const deserializeAws_json1_0ImportTableCommandError = async (output, context) => {
1763
+ const parsedOutput = {
1764
+ ...output,
1765
+ body: await parseBody(output.body, context),
1766
+ };
1767
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1768
+ switch (errorCode) {
1769
+ case "ImportConflictException":
1770
+ case "com.amazonaws.dynamodb#ImportConflictException":
1771
+ throw await deserializeAws_json1_0ImportConflictExceptionResponse(parsedOutput, context);
1772
+ case "LimitExceededException":
1773
+ case "com.amazonaws.dynamodb#LimitExceededException":
1774
+ throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
1775
+ case "ResourceInUseException":
1776
+ case "com.amazonaws.dynamodb#ResourceInUseException":
1777
+ throw await deserializeAws_json1_0ResourceInUseExceptionResponse(parsedOutput, context);
1778
+ default:
1779
+ const parsedBody = parsedOutput.body;
1780
+ (0, smithy_client_1.throwDefaultError)({
1781
+ output,
1782
+ parsedBody,
1783
+ exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
1784
+ errorCode,
1785
+ });
1786
+ }
1787
+ };
1683
1788
  const deserializeAws_json1_0ListBackupsCommand = async (output, context) => {
1684
1789
  if (output.statusCode >= 300) {
1685
1790
  return deserializeAws_json1_0ListBackupsCommandError(output, context);
@@ -1828,6 +1933,40 @@ const deserializeAws_json1_0ListGlobalTablesCommandError = async (output, contex
1828
1933
  });
1829
1934
  }
1830
1935
  };
1936
+ const deserializeAws_json1_0ListImportsCommand = async (output, context) => {
1937
+ if (output.statusCode >= 300) {
1938
+ return deserializeAws_json1_0ListImportsCommandError(output, context);
1939
+ }
1940
+ const data = await parseBody(output.body, context);
1941
+ let contents = {};
1942
+ contents = deserializeAws_json1_0ListImportsOutput(data, context);
1943
+ const response = {
1944
+ $metadata: deserializeMetadata(output),
1945
+ ...contents,
1946
+ };
1947
+ return Promise.resolve(response);
1948
+ };
1949
+ exports.deserializeAws_json1_0ListImportsCommand = deserializeAws_json1_0ListImportsCommand;
1950
+ const deserializeAws_json1_0ListImportsCommandError = async (output, context) => {
1951
+ const parsedOutput = {
1952
+ ...output,
1953
+ body: await parseBody(output.body, context),
1954
+ };
1955
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1956
+ switch (errorCode) {
1957
+ case "LimitExceededException":
1958
+ case "com.amazonaws.dynamodb#LimitExceededException":
1959
+ throw await deserializeAws_json1_0LimitExceededExceptionResponse(parsedOutput, context);
1960
+ default:
1961
+ const parsedBody = parsedOutput.body;
1962
+ (0, smithy_client_1.throwDefaultError)({
1963
+ output,
1964
+ parsedBody,
1965
+ exceptionCtor: DynamoDBServiceException_1.DynamoDBServiceException,
1966
+ errorCode,
1967
+ });
1968
+ }
1969
+ };
1831
1970
  const deserializeAws_json1_0ListTablesCommand = async (output, context) => {
1832
1971
  if (output.statusCode >= 300) {
1833
1972
  return deserializeAws_json1_0ListTablesCommandError(output, context);
@@ -2810,6 +2949,24 @@ const deserializeAws_json1_0IdempotentParameterMismatchExceptionResponse = async
2810
2949
  });
2811
2950
  return (0, smithy_client_1.decorateServiceException)(exception, body);
2812
2951
  };
2952
+ const deserializeAws_json1_0ImportConflictExceptionResponse = async (parsedOutput, context) => {
2953
+ const body = parsedOutput.body;
2954
+ const deserialized = deserializeAws_json1_0ImportConflictException(body, context);
2955
+ const exception = new models_0_1.ImportConflictException({
2956
+ $metadata: deserializeMetadata(parsedOutput),
2957
+ ...deserialized,
2958
+ });
2959
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2960
+ };
2961
+ const deserializeAws_json1_0ImportNotFoundExceptionResponse = async (parsedOutput, context) => {
2962
+ const body = parsedOutput.body;
2963
+ const deserialized = deserializeAws_json1_0ImportNotFoundException(body, context);
2964
+ const exception = new models_0_1.ImportNotFoundException({
2965
+ $metadata: deserializeMetadata(parsedOutput),
2966
+ ...deserialized,
2967
+ });
2968
+ return (0, smithy_client_1.decorateServiceException)(exception, body);
2969
+ };
2813
2970
  const deserializeAws_json1_0IndexNotFoundExceptionResponse = async (parsedOutput, context) => {
2814
2971
  const body = parsedOutput.body;
2815
2972
  const deserialized = deserializeAws_json1_0IndexNotFoundException(body, context);
@@ -3232,6 +3389,19 @@ const serializeAws_json1_0CreateTableInput = (input, context) => {
3232
3389
  ...(input.Tags != null && { Tags: serializeAws_json1_0TagList(input.Tags, context) }),
3233
3390
  };
3234
3391
  };
3392
+ const serializeAws_json1_0CsvHeaderList = (input, context) => {
3393
+ return input
3394
+ .filter((e) => e != null)
3395
+ .map((entry) => {
3396
+ return entry;
3397
+ });
3398
+ };
3399
+ const serializeAws_json1_0CsvOptions = (input, context) => {
3400
+ return {
3401
+ ...(input.Delimiter != null && { Delimiter: input.Delimiter }),
3402
+ ...(input.HeaderList != null && { HeaderList: serializeAws_json1_0CsvHeaderList(input.HeaderList, context) }),
3403
+ };
3404
+ };
3235
3405
  const serializeAws_json1_0Delete = (input, context) => {
3236
3406
  return {
3237
3407
  ...(input.ConditionExpression != null && { ConditionExpression: input.ConditionExpression }),
@@ -3332,6 +3502,11 @@ const serializeAws_json1_0DescribeGlobalTableSettingsInput = (input, context) =>
3332
3502
  ...(input.GlobalTableName != null && { GlobalTableName: input.GlobalTableName }),
3333
3503
  };
3334
3504
  };
3505
+ const serializeAws_json1_0DescribeImportInput = (input, context) => {
3506
+ return {
3507
+ ...(input.ImportArn != null && { ImportArn: input.ImportArn }),
3508
+ };
3509
+ };
3335
3510
  const serializeAws_json1_0DescribeKinesisStreamingDestinationInput = (input, context) => {
3336
3511
  return {
3337
3512
  ...(input.TableName != null && { TableName: input.TableName }),
@@ -3540,6 +3715,28 @@ const serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdateList = (i
3540
3715
  return serializeAws_json1_0GlobalTableGlobalSecondaryIndexSettingsUpdate(entry, context);
3541
3716
  });
3542
3717
  };
3718
+ const serializeAws_json1_0ImportTableInput = (input, context) => {
3719
+ var _a;
3720
+ return {
3721
+ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
3722
+ ...(input.InputCompressionType != null && { InputCompressionType: input.InputCompressionType }),
3723
+ ...(input.InputFormat != null && { InputFormat: input.InputFormat }),
3724
+ ...(input.InputFormatOptions != null && {
3725
+ InputFormatOptions: serializeAws_json1_0InputFormatOptions(input.InputFormatOptions, context),
3726
+ }),
3727
+ ...(input.S3BucketSource != null && {
3728
+ S3BucketSource: serializeAws_json1_0S3BucketSource(input.S3BucketSource, context),
3729
+ }),
3730
+ ...(input.TableCreationParameters != null && {
3731
+ TableCreationParameters: serializeAws_json1_0TableCreationParameters(input.TableCreationParameters, context),
3732
+ }),
3733
+ };
3734
+ };
3735
+ const serializeAws_json1_0InputFormatOptions = (input, context) => {
3736
+ return {
3737
+ ...(input.Csv != null && { Csv: serializeAws_json1_0CsvOptions(input.Csv, context) }),
3738
+ };
3739
+ };
3543
3740
  const serializeAws_json1_0Key = (input, context) => {
3544
3741
  return Object.entries(input).reduce((acc, [key, value]) => {
3545
3742
  if (value === null) {
@@ -3645,6 +3842,13 @@ const serializeAws_json1_0ListGlobalTablesInput = (input, context) => {
3645
3842
  ...(input.RegionName != null && { RegionName: input.RegionName }),
3646
3843
  };
3647
3844
  };
3845
+ const serializeAws_json1_0ListImportsInput = (input, context) => {
3846
+ return {
3847
+ ...(input.NextToken != null && { NextToken: input.NextToken }),
3848
+ ...(input.PageSize != null && { PageSize: input.PageSize }),
3849
+ ...(input.TableArn != null && { TableArn: input.TableArn }),
3850
+ };
3851
+ };
3648
3852
  const serializeAws_json1_0ListTablesInput = (input, context) => {
3649
3853
  return {
3650
3854
  ...(input.ExclusiveStartTableName != null && { ExclusiveStartTableName: input.ExclusiveStartTableName }),
@@ -4008,6 +4212,13 @@ const serializeAws_json1_0RestoreTableToPointInTimeInput = (input, context) => {
4008
4212
  ...(input.UseLatestRestorableTime != null && { UseLatestRestorableTime: input.UseLatestRestorableTime }),
4009
4213
  };
4010
4214
  };
4215
+ const serializeAws_json1_0S3BucketSource = (input, context) => {
4216
+ return {
4217
+ ...(input.S3Bucket != null && { S3Bucket: input.S3Bucket }),
4218
+ ...(input.S3BucketOwner != null && { S3BucketOwner: input.S3BucketOwner }),
4219
+ ...(input.S3KeyPrefix != null && { S3KeyPrefix: input.S3KeyPrefix }),
4220
+ };
4221
+ };
4011
4222
  const serializeAws_json1_0ScanInput = (input, context) => {
4012
4223
  return {
4013
4224
  ...(input.AttributesToGet != null && {
@@ -4056,6 +4267,25 @@ const serializeAws_json1_0StringSetAttributeValue = (input, context) => {
4056
4267
  return entry;
4057
4268
  });
4058
4269
  };
4270
+ const serializeAws_json1_0TableCreationParameters = (input, context) => {
4271
+ return {
4272
+ ...(input.AttributeDefinitions != null && {
4273
+ AttributeDefinitions: serializeAws_json1_0AttributeDefinitions(input.AttributeDefinitions, context),
4274
+ }),
4275
+ ...(input.BillingMode != null && { BillingMode: input.BillingMode }),
4276
+ ...(input.GlobalSecondaryIndexes != null && {
4277
+ GlobalSecondaryIndexes: serializeAws_json1_0GlobalSecondaryIndexList(input.GlobalSecondaryIndexes, context),
4278
+ }),
4279
+ ...(input.KeySchema != null && { KeySchema: serializeAws_json1_0KeySchema(input.KeySchema, context) }),
4280
+ ...(input.ProvisionedThroughput != null && {
4281
+ ProvisionedThroughput: serializeAws_json1_0ProvisionedThroughput(input.ProvisionedThroughput, context),
4282
+ }),
4283
+ ...(input.SSESpecification != null && {
4284
+ SSESpecification: serializeAws_json1_0SSESpecification(input.SSESpecification, context),
4285
+ }),
4286
+ ...(input.TableName != null && { TableName: input.TableName }),
4287
+ };
4288
+ };
4059
4289
  const serializeAws_json1_0Tag = (input, context) => {
4060
4290
  return {
4061
4291
  ...(input.Key != null && { Key: input.Key }),
@@ -4719,6 +4949,23 @@ const deserializeAws_json1_0CreateTableOutput = (output, context) => {
4719
4949
  : undefined,
4720
4950
  };
4721
4951
  };
4952
+ const deserializeAws_json1_0CsvHeaderList = (output, context) => {
4953
+ const retVal = (output || [])
4954
+ .filter((e) => e != null)
4955
+ .map((entry) => {
4956
+ if (entry === null) {
4957
+ return null;
4958
+ }
4959
+ return (0, smithy_client_1.expectString)(entry);
4960
+ });
4961
+ return retVal;
4962
+ };
4963
+ const deserializeAws_json1_0CsvOptions = (output, context) => {
4964
+ return {
4965
+ Delimiter: (0, smithy_client_1.expectString)(output.Delimiter),
4966
+ HeaderList: output.HeaderList != null ? deserializeAws_json1_0CsvHeaderList(output.HeaderList, context) : undefined,
4967
+ };
4968
+ };
4722
4969
  const deserializeAws_json1_0DeleteBackupOutput = (output, context) => {
4723
4970
  return {
4724
4971
  BackupDescription: output.BackupDescription != null
@@ -4806,6 +5053,13 @@ const deserializeAws_json1_0DescribeGlobalTableSettingsOutput = (output, context
4806
5053
  : undefined,
4807
5054
  };
4808
5055
  };
5056
+ const deserializeAws_json1_0DescribeImportOutput = (output, context) => {
5057
+ return {
5058
+ ImportTableDescription: output.ImportTableDescription != null
5059
+ ? deserializeAws_json1_0ImportTableDescription(output.ImportTableDescription, context)
5060
+ : undefined,
5061
+ };
5062
+ };
4809
5063
  const deserializeAws_json1_0DescribeKinesisStreamingDestinationOutput = (output, context) => {
4810
5064
  return {
4811
5065
  KinesisDataStreamDestinations: output.KinesisDataStreamDestinations != null
@@ -4963,6 +5217,16 @@ const deserializeAws_json1_0GetItemOutput = (output, context) => {
4963
5217
  Item: output.Item != null ? deserializeAws_json1_0AttributeMap(output.Item, context) : undefined,
4964
5218
  };
4965
5219
  };
5220
+ const deserializeAws_json1_0GlobalSecondaryIndex = (output, context) => {
5221
+ return {
5222
+ IndexName: (0, smithy_client_1.expectString)(output.IndexName),
5223
+ KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
5224
+ Projection: output.Projection != null ? deserializeAws_json1_0Projection(output.Projection, context) : undefined,
5225
+ ProvisionedThroughput: output.ProvisionedThroughput != null
5226
+ ? deserializeAws_json1_0ProvisionedThroughput(output.ProvisionedThroughput, context)
5227
+ : undefined,
5228
+ };
5229
+ };
4966
5230
  const deserializeAws_json1_0GlobalSecondaryIndexDescription = (output, context) => {
4967
5231
  return {
4968
5232
  Backfilling: (0, smithy_client_1.expectBoolean)(output.Backfilling),
@@ -5010,6 +5274,17 @@ const deserializeAws_json1_0GlobalSecondaryIndexInfo = (output, context) => {
5010
5274
  : undefined,
5011
5275
  };
5012
5276
  };
5277
+ const deserializeAws_json1_0GlobalSecondaryIndexList = (output, context) => {
5278
+ const retVal = (output || [])
5279
+ .filter((e) => e != null)
5280
+ .map((entry) => {
5281
+ if (entry === null) {
5282
+ return null;
5283
+ }
5284
+ return deserializeAws_json1_0GlobalSecondaryIndex(entry, context);
5285
+ });
5286
+ return retVal;
5287
+ };
5013
5288
  const deserializeAws_json1_0GlobalTable = (output, context) => {
5014
5289
  return {
5015
5290
  GlobalTableName: (0, smithy_client_1.expectString)(output.GlobalTableName),
@@ -5055,11 +5330,83 @@ const deserializeAws_json1_0IdempotentParameterMismatchException = (output, cont
5055
5330
  Message: (0, smithy_client_1.expectString)(output.Message),
5056
5331
  };
5057
5332
  };
5333
+ const deserializeAws_json1_0ImportConflictException = (output, context) => {
5334
+ return {
5335
+ message: (0, smithy_client_1.expectString)(output.message),
5336
+ };
5337
+ };
5338
+ const deserializeAws_json1_0ImportNotFoundException = (output, context) => {
5339
+ return {
5340
+ message: (0, smithy_client_1.expectString)(output.message),
5341
+ };
5342
+ };
5343
+ const deserializeAws_json1_0ImportSummary = (output, context) => {
5344
+ return {
5345
+ CloudWatchLogGroupArn: (0, smithy_client_1.expectString)(output.CloudWatchLogGroupArn),
5346
+ EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
5347
+ ImportArn: (0, smithy_client_1.expectString)(output.ImportArn),
5348
+ ImportStatus: (0, smithy_client_1.expectString)(output.ImportStatus),
5349
+ InputFormat: (0, smithy_client_1.expectString)(output.InputFormat),
5350
+ S3BucketSource: output.S3BucketSource != null ? deserializeAws_json1_0S3BucketSource(output.S3BucketSource, context) : undefined,
5351
+ StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
5352
+ TableArn: (0, smithy_client_1.expectString)(output.TableArn),
5353
+ };
5354
+ };
5355
+ const deserializeAws_json1_0ImportSummaryList = (output, context) => {
5356
+ const retVal = (output || [])
5357
+ .filter((e) => e != null)
5358
+ .map((entry) => {
5359
+ if (entry === null) {
5360
+ return null;
5361
+ }
5362
+ return deserializeAws_json1_0ImportSummary(entry, context);
5363
+ });
5364
+ return retVal;
5365
+ };
5366
+ const deserializeAws_json1_0ImportTableDescription = (output, context) => {
5367
+ return {
5368
+ ClientToken: (0, smithy_client_1.expectString)(output.ClientToken),
5369
+ CloudWatchLogGroupArn: (0, smithy_client_1.expectString)(output.CloudWatchLogGroupArn),
5370
+ EndTime: output.EndTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EndTime))) : undefined,
5371
+ ErrorCount: (0, smithy_client_1.expectLong)(output.ErrorCount),
5372
+ FailureCode: (0, smithy_client_1.expectString)(output.FailureCode),
5373
+ FailureMessage: (0, smithy_client_1.expectString)(output.FailureMessage),
5374
+ ImportArn: (0, smithy_client_1.expectString)(output.ImportArn),
5375
+ ImportStatus: (0, smithy_client_1.expectString)(output.ImportStatus),
5376
+ ImportedItemCount: (0, smithy_client_1.expectLong)(output.ImportedItemCount),
5377
+ InputCompressionType: (0, smithy_client_1.expectString)(output.InputCompressionType),
5378
+ InputFormat: (0, smithy_client_1.expectString)(output.InputFormat),
5379
+ InputFormatOptions: output.InputFormatOptions != null
5380
+ ? deserializeAws_json1_0InputFormatOptions(output.InputFormatOptions, context)
5381
+ : undefined,
5382
+ ProcessedItemCount: (0, smithy_client_1.expectLong)(output.ProcessedItemCount),
5383
+ ProcessedSizeBytes: (0, smithy_client_1.expectLong)(output.ProcessedSizeBytes),
5384
+ S3BucketSource: output.S3BucketSource != null ? deserializeAws_json1_0S3BucketSource(output.S3BucketSource, context) : undefined,
5385
+ StartTime: output.StartTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.StartTime))) : undefined,
5386
+ TableArn: (0, smithy_client_1.expectString)(output.TableArn),
5387
+ TableCreationParameters: output.TableCreationParameters != null
5388
+ ? deserializeAws_json1_0TableCreationParameters(output.TableCreationParameters, context)
5389
+ : undefined,
5390
+ TableId: (0, smithy_client_1.expectString)(output.TableId),
5391
+ };
5392
+ };
5393
+ const deserializeAws_json1_0ImportTableOutput = (output, context) => {
5394
+ return {
5395
+ ImportTableDescription: output.ImportTableDescription != null
5396
+ ? deserializeAws_json1_0ImportTableDescription(output.ImportTableDescription, context)
5397
+ : undefined,
5398
+ };
5399
+ };
5058
5400
  const deserializeAws_json1_0IndexNotFoundException = (output, context) => {
5059
5401
  return {
5060
5402
  message: (0, smithy_client_1.expectString)(output.message),
5061
5403
  };
5062
5404
  };
5405
+ const deserializeAws_json1_0InputFormatOptions = (output, context) => {
5406
+ return {
5407
+ Csv: output.Csv != null ? deserializeAws_json1_0CsvOptions(output.Csv, context) : undefined,
5408
+ };
5409
+ };
5063
5410
  const deserializeAws_json1_0InternalServerError = (output, context) => {
5064
5411
  return {
5065
5412
  message: (0, smithy_client_1.expectString)(output.message),
@@ -5289,6 +5636,14 @@ const deserializeAws_json1_0ListGlobalTablesOutput = (output, context) => {
5289
5636
  LastEvaluatedGlobalTableName: (0, smithy_client_1.expectString)(output.LastEvaluatedGlobalTableName),
5290
5637
  };
5291
5638
  };
5639
+ const deserializeAws_json1_0ListImportsOutput = (output, context) => {
5640
+ return {
5641
+ ImportSummaryList: output.ImportSummaryList != null
5642
+ ? deserializeAws_json1_0ImportSummaryList(output.ImportSummaryList, context)
5643
+ : undefined,
5644
+ NextToken: (0, smithy_client_1.expectString)(output.NextToken),
5645
+ };
5646
+ };
5292
5647
  const deserializeAws_json1_0ListTablesOutput = (output, context) => {
5293
5648
  return {
5294
5649
  LastEvaluatedTableName: (0, smithy_client_1.expectString)(output.LastEvaluatedTableName),
@@ -5699,6 +6054,13 @@ const deserializeAws_json1_0RestoreTableToPointInTimeOutput = (output, context)
5699
6054
  : undefined,
5700
6055
  };
5701
6056
  };
6057
+ const deserializeAws_json1_0S3BucketSource = (output, context) => {
6058
+ return {
6059
+ S3Bucket: (0, smithy_client_1.expectString)(output.S3Bucket),
6060
+ S3BucketOwner: (0, smithy_client_1.expectString)(output.S3BucketOwner),
6061
+ S3KeyPrefix: (0, smithy_client_1.expectString)(output.S3KeyPrefix),
6062
+ };
6063
+ };
5702
6064
  const deserializeAws_json1_0ScanOutput = (output, context) => {
5703
6065
  return {
5704
6066
  ConsumedCapacity: output.ConsumedCapacity != null
@@ -5765,6 +6127,13 @@ const deserializeAws_json1_0SSEDescription = (output, context) => {
5765
6127
  Status: (0, smithy_client_1.expectString)(output.Status),
5766
6128
  };
5767
6129
  };
6130
+ const deserializeAws_json1_0SSESpecification = (output, context) => {
6131
+ return {
6132
+ Enabled: (0, smithy_client_1.expectBoolean)(output.Enabled),
6133
+ KMSMasterKeyId: (0, smithy_client_1.expectString)(output.KMSMasterKeyId),
6134
+ SSEType: (0, smithy_client_1.expectString)(output.SSEType),
6135
+ };
6136
+ };
5768
6137
  const deserializeAws_json1_0StreamSpecification = (output, context) => {
5769
6138
  return {
5770
6139
  StreamEnabled: (0, smithy_client_1.expectBoolean)(output.StreamEnabled),
@@ -5804,6 +6173,25 @@ const deserializeAws_json1_0TableClassSummary = (output, context) => {
5804
6173
  TableClass: (0, smithy_client_1.expectString)(output.TableClass),
5805
6174
  };
5806
6175
  };
6176
+ const deserializeAws_json1_0TableCreationParameters = (output, context) => {
6177
+ return {
6178
+ AttributeDefinitions: output.AttributeDefinitions != null
6179
+ ? deserializeAws_json1_0AttributeDefinitions(output.AttributeDefinitions, context)
6180
+ : undefined,
6181
+ BillingMode: (0, smithy_client_1.expectString)(output.BillingMode),
6182
+ GlobalSecondaryIndexes: output.GlobalSecondaryIndexes != null
6183
+ ? deserializeAws_json1_0GlobalSecondaryIndexList(output.GlobalSecondaryIndexes, context)
6184
+ : undefined,
6185
+ KeySchema: output.KeySchema != null ? deserializeAws_json1_0KeySchema(output.KeySchema, context) : undefined,
6186
+ ProvisionedThroughput: output.ProvisionedThroughput != null
6187
+ ? deserializeAws_json1_0ProvisionedThroughput(output.ProvisionedThroughput, context)
6188
+ : undefined,
6189
+ SSESpecification: output.SSESpecification != null
6190
+ ? deserializeAws_json1_0SSESpecification(output.SSESpecification, context)
6191
+ : undefined,
6192
+ TableName: (0, smithy_client_1.expectString)(output.TableName),
6193
+ };
6194
+ };
5807
6195
  const deserializeAws_json1_0TableDescription = (output, context) => {
5808
6196
  return {
5809
6197
  ArchivalSummary: output.ArchivalSummary != null
@@ -15,6 +15,7 @@ import { DescribeEndpointsCommand, } from "./commands/DescribeEndpointsCommand";
15
15
  import { DescribeExportCommand, } from "./commands/DescribeExportCommand";
16
16
  import { DescribeGlobalTableCommand, } from "./commands/DescribeGlobalTableCommand";
17
17
  import { DescribeGlobalTableSettingsCommand, } from "./commands/DescribeGlobalTableSettingsCommand";
18
+ import { DescribeImportCommand, } from "./commands/DescribeImportCommand";
18
19
  import { DescribeKinesisStreamingDestinationCommand, } from "./commands/DescribeKinesisStreamingDestinationCommand";
19
20
  import { DescribeLimitsCommand, } from "./commands/DescribeLimitsCommand";
20
21
  import { DescribeTableCommand, } from "./commands/DescribeTableCommand";
@@ -26,10 +27,12 @@ import { ExecuteStatementCommand, } from "./commands/ExecuteStatementCommand";
26
27
  import { ExecuteTransactionCommand, } from "./commands/ExecuteTransactionCommand";
27
28
  import { ExportTableToPointInTimeCommand, } from "./commands/ExportTableToPointInTimeCommand";
28
29
  import { GetItemCommand } from "./commands/GetItemCommand";
30
+ import { ImportTableCommand } from "./commands/ImportTableCommand";
29
31
  import { ListBackupsCommand } from "./commands/ListBackupsCommand";
30
32
  import { ListContributorInsightsCommand, } from "./commands/ListContributorInsightsCommand";
31
33
  import { ListExportsCommand } from "./commands/ListExportsCommand";
32
34
  import { ListGlobalTablesCommand, } from "./commands/ListGlobalTablesCommand";
35
+ import { ListImportsCommand } from "./commands/ListImportsCommand";
33
36
  import { ListTablesCommand } from "./commands/ListTablesCommand";
34
37
  import { ListTagsOfResourceCommand, } from "./commands/ListTagsOfResourceCommand";
35
38
  import { PutItemCommand } from "./commands/PutItemCommand";
@@ -279,6 +282,20 @@ var DynamoDB = (function (_super) {
279
282
  return this.send(command, optionsOrCb);
280
283
  }
281
284
  };
285
+ DynamoDB.prototype.describeImport = function (args, optionsOrCb, cb) {
286
+ var command = new DescribeImportCommand(args);
287
+ if (typeof optionsOrCb === "function") {
288
+ this.send(command, optionsOrCb);
289
+ }
290
+ else if (typeof cb === "function") {
291
+ if (typeof optionsOrCb !== "object")
292
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
293
+ this.send(command, optionsOrCb || {}, cb);
294
+ }
295
+ else {
296
+ return this.send(command, optionsOrCb);
297
+ }
298
+ };
282
299
  DynamoDB.prototype.describeKinesisStreamingDestination = function (args, optionsOrCb, cb) {
283
300
  var command = new DescribeKinesisStreamingDestinationCommand(args);
284
301
  if (typeof optionsOrCb === "function") {
@@ -433,6 +450,20 @@ var DynamoDB = (function (_super) {
433
450
  return this.send(command, optionsOrCb);
434
451
  }
435
452
  };
453
+ DynamoDB.prototype.importTable = function (args, optionsOrCb, cb) {
454
+ var command = new ImportTableCommand(args);
455
+ if (typeof optionsOrCb === "function") {
456
+ this.send(command, optionsOrCb);
457
+ }
458
+ else if (typeof cb === "function") {
459
+ if (typeof optionsOrCb !== "object")
460
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
461
+ this.send(command, optionsOrCb || {}, cb);
462
+ }
463
+ else {
464
+ return this.send(command, optionsOrCb);
465
+ }
466
+ };
436
467
  DynamoDB.prototype.listBackups = function (args, optionsOrCb, cb) {
437
468
  var command = new ListBackupsCommand(args);
438
469
  if (typeof optionsOrCb === "function") {
@@ -489,6 +520,20 @@ var DynamoDB = (function (_super) {
489
520
  return this.send(command, optionsOrCb);
490
521
  }
491
522
  };
523
+ DynamoDB.prototype.listImports = function (args, optionsOrCb, cb) {
524
+ var command = new ListImportsCommand(args);
525
+ if (typeof optionsOrCb === "function") {
526
+ this.send(command, optionsOrCb);
527
+ }
528
+ else if (typeof cb === "function") {
529
+ if (typeof optionsOrCb !== "object")
530
+ throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
531
+ this.send(command, optionsOrCb || {}, cb);
532
+ }
533
+ else {
534
+ return this.send(command, optionsOrCb);
535
+ }
536
+ };
492
537
  DynamoDB.prototype.listTables = function (args, optionsOrCb, cb) {
493
538
  var command = new ListTablesCommand(args);
494
539
  if (typeof optionsOrCb === "function") {