ListImportsCommand

Lists completed imports within the past 90 days.

Example Syntax

Use a bare-bones client and the command you need to make an API call.

import { DynamoDBClient, ListImportsCommand } from "@aws-sdk/client-dynamodb"; // ES Modules import
// const { DynamoDBClient, ListImportsCommand } = require("@aws-sdk/client-dynamodb"); // CommonJS import
const client = new DynamoDBClient(config);
const input = { // ListImportsInput
  TableArn: "STRING_VALUE",
  PageSize: Number("int"),
  NextToken: "STRING_VALUE",
};
const command = new ListImportsCommand(input);
const response = await client.send(command);
// { // ListImportsOutput
//   ImportSummaryList: [ // ImportSummaryList
//     { // ImportSummary
//       ImportArn: "STRING_VALUE",
//       ImportStatus: "IN_PROGRESS" || "COMPLETED" || "CANCELLING" || "CANCELLED" || "FAILED",
//       TableArn: "STRING_VALUE",
//       S3BucketSource: { // S3BucketSource
//         S3BucketOwner: "STRING_VALUE",
//         S3Bucket: "STRING_VALUE", // required
//         S3KeyPrefix: "STRING_VALUE",
//       },
//       CloudWatchLogGroupArn: "STRING_VALUE",
//       InputFormat: "DYNAMODB_JSON" || "ION" || "CSV",
//       StartTime: new Date("TIMESTAMP"),
//       EndTime: new Date("TIMESTAMP"),
//     },
//   ],
//   NextToken: "STRING_VALUE",
// };

ListImportsCommand Input

See ListImportsCommandInput for more details

Parameter
Type
Description
NextToken
string | undefined

An optional string that, if supplied, must be copied from the output of a previous call to ListImports. When provided in this manner, the API fetches the next page of results.

PageSize
number | undefined

The number of ImportSummary objects returned in a single page.

TableArn
string | undefined

The Amazon Resource Name (ARN) associated with the table that was imported to.

ListImportsCommand Output

See ListImportsCommandOutput for details

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.
ImportSummaryList
ImportSummary[] | undefined

A list of ImportSummary objects.

NextToken
string | undefined

If this value is returned, there are additional results to be displayed. To retrieve them, call ListImports again, with NextToken set to this value.

Throws

Name
Fault
Details
LimitExceededException
client

There is no limit to the number of daily on-demand backups that can be taken.

For most purposes, up to 500 simultaneous table operations are allowed per account. These operations include CreateTable, UpdateTable, DeleteTable,UpdateTimeToLive, RestoreTableFromBackup, and RestoreTableToPointInTime.

When you are creating a table with one or more secondary indexes, you can have up to 250 such requests running at a time. However, if the table or index specifications are complex, then DynamoDB might temporarily reduce the number of concurrent operations.

When importing into DynamoDB, up to 50 simultaneous import table operations are allowed per account.

There is a soft account quota of 2,500 tables.

GetRecords was called with a value of more than 1000 for the limit request parameter.

More than 2 processes are reading from the same streams shard at the same time. Exceeding this limit may result in request throttling.

DynamoDBServiceException
Base exception class for all service exceptions from DynamoDB service.