Skip to content

iter_list_bulk_operations async

iter_list_bulk_operations(
    *,
    config_overrides: Optional[AsyncDynamoDBClientConfig] = None,
    max_results: Optional[ListBulkOperationsMaxLimit] = None,
    next_token: Optional[BulkOperationNextToken] = None,
) -> AsyncIterator[BulkOperationSummary]
Source code in docs_src/capo_dynamodb/_services/async_dynamo_db.py
async def iter_list_bulk_operations(
    self,
    *,
    config_overrides: Optional[AsyncDynamoDBClientConfig] = 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,
) -> (
    "AsyncIterator[capo_dynamodb.types.bulk_operation_summary.BulkOperationSummary]"
):
    _token = next_token
    while True:
        _response = await 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