Skip to content

list_imports

list_imports(
    *,
    config_overrides: Optional[DynamoDBClientConfig] = None,
    table_arn: Optional[TableArn] = None,
    page_size: Optional[ListImportsMaxLimit] = None,
    next_token: Optional[ImportNextToken] = None,
) -> ListImportsOutput

Lists completed imports within the past 90 days.

Parameters:

  • table_arn (Optional[TableArn], default: None ) –

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

  • page_size (Optional[ListImportsMaxLimit], default: None ) –

    The number of ImportSummary objects returned in a single page.

  • next_token (Optional[ImportNextToken], default: None ) –

    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.

Raises:

  • LimitExceededException –

    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.

  • UnknownServiceError –

    The service returned an error code this client does not model.

Source code in docs_src/capo_dynamodb/_services/dynamo_db.py
def list_imports(
    self,
    *,
    config_overrides: Optional[DynamoDBClientConfig] = None,
    table_arn: Optional["capo_dynamodb.types.table_arn.TableArn"] = None,
    page_size: Optional[
        "capo_dynamodb.types.list_imports_max_limit.ListImportsMaxLimit"
    ] = None,
    next_token: Optional[
        "capo_dynamodb.types.import_next_token.ImportNextToken"
    ] = None,
) -> "capo_dynamodb.types.list_imports_output.ListImportsOutput":
    """<p> Lists completed imports within the past 90 days. </p>

    Args:
        table_arn: <p> The Amazon Resource Name (ARN) associated with the table that was imported to. </p>
        page_size: <p> The number of <code>ImportSummary </code>objects returned in a single page. </p>
        next_token: <p> An optional string that, if supplied, must be copied from the output of a previous call to <code>ListImports</code>. When provided in this manner, the API fetches the next page of results. </p>

    Raises:
        capo_dynamodb.errors.limit_exceeded_exception.LimitExceededException: <p>There is no limit to the number of daily on-demand backups that can be taken. </p> <p>For most purposes, up to 500 simultaneous table operations are allowed per account. These operations include <code>CreateTable</code>, <code>UpdateTable</code>, <code>DeleteTable</code>,<code>UpdateTimeToLive</code>, <code>RestoreTableFromBackup</code>, and <code>RestoreTableToPointInTime</code>. </p> <p>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.</p> <p>When importing into DynamoDB, up to 50 simultaneous import table operations are allowed per account.</p> <p>There is a soft account quota of 2,500 tables.</p> <p>GetRecords was called with a value of more than 1000 for the limit request parameter.</p> <p>More than 2 processes are reading from the same streams shard at the same time. Exceeding this limit may result in request throttling.</p>
        capo_dynamodb.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_dynamodb.types.list_imports_input.ListImportsInput]",
    ) -> OperationResponse[
        "capo_dynamodb.types.list_imports_output.ListImportsOutput"
    ]:
        import capo_dynamodb._operations.dynamo_db_20120810.list_imports

        output, http_response = (
            capo_dynamodb._operations.dynamo_db_20120810.list_imports.list_imports(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListImports")
    )
    input_: capo_dynamodb.types.list_imports_input.ListImportsInput = {}
    if table_arn is not None:
        input_["table_arn"] = table_arn
    if page_size is not None:
        input_["page_size"] = page_size
    if next_token is not None:
        input_["next_token"] = next_token

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output