Skip to content

iter_list_bulk_operations

iter_list_bulk_operations(
    *,
    config_overrides: Optional[DynamoDBClientConfig] = None,
    max_results: Optional[ListBulkOperationsMaxLimit] = None,
    next_token: Optional[BulkOperationNextToken] = None,
) -> Iterator[BulkOperationSummary]
Source code in docs_src/capo_dynamodb/_services/dynamo_db.py
def iter_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,
) -> "Iterator[capo_dynamodb.types.bulk_operation_summary.BulkOperationSummary]":
    _token = next_token
    while True:
        _response = self.list_bulk_operations(
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("bulk_operations_summary_list",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break