Skip to content

list_bulk_operations

list_bulk_operations(
    *,
    config_overrides: Optional[DynamoDBClientConfig] = None,
    max_results: Optional[ListBulkOperationsMaxLimit] = None,
    next_token: Optional[BulkOperationNextToken] = None,
) -> ListBulkOperationsOutput

Lists bulk operations that started within the past 90 days for the current Amazon Web Services account and Amazon Web Services Region, with the most recent operations first. Results are paginated. Use the NextToken parameter to retrieve additional results.

Parameters:

  • max_results (Optional[ListBulkOperationsMaxLimit], default: None ) –

    The maximum number of bulk operation summaries to return in one page. If you don't specify a value, DynamoDB uses 10.

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

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

Raises:

Source code in docs_src/capo_dynamodb/_services/dynamo_db.py
def list_bulk_operations(
    self,
    *,
    config_overrides: Optional[DynamoDBClientConfig] = None,
    max_results: Optional[
        "capo_dynamodb.types.list_bulk_operations_max_limit.ListBulkOperationsMaxLimit"
    ] = None,
    next_token: Optional[
        "capo_dynamodb.types.bulk_operation_next_token.BulkOperationNextToken"
    ] = None,
) -> "capo_dynamodb.types.list_bulk_operations_output.ListBulkOperationsOutput":
    """<p>Lists bulk operations that started within the past 90 days for the current Amazon Web Services account and Amazon Web Services Region, with the most recent operations first. Results are paginated. Use the <code>NextToken</code> parameter to retrieve additional results.</p>

    Args:
        max_results: <p>The maximum number of bulk operation summaries to return in one page. If you don't specify a value, DynamoDB uses 10.</p>
        next_token: <p>An optional string that, if supplied, must be copied from the output of a previous call to <code>ListBulkOperations</code>. When provided in this manner, the API fetches the next page of results.</p>

    Raises:
        capo_dynamodb.errors.invalid_endpoint_exception.InvalidEndpointException
        capo_dynamodb.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_dynamodb.types.list_bulk_operations_input.ListBulkOperationsInput]",
    ) -> OperationResponse[
        "capo_dynamodb.types.list_bulk_operations_output.ListBulkOperationsOutput"
    ]:
        import capo_dynamodb._operations.dynamo_db_20120810.list_bulk_operations

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

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListBulkOperations")
    )
    input_: capo_dynamodb.types.list_bulk_operations_input.ListBulkOperationsInput = {}
    if max_results is not None:
        input_["max_results"] = max_results
    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