Skip to content

iter_list_recipes async

iter_list_recipes(
    *,
    config_overrides: Optional[AsyncDataBrewClientConfig] = None,
    max_results: Optional[MaxResults100] = None,
    next_token: Optional[NextToken] = None,
    recipe_version: Optional[RecipeVersion] = None,
) -> AsyncIterator[Recipe]
Source code in docs_src/capo_databrew/_services/async_data_brew.py
async def iter_list_recipes(
    self,
    *,
    config_overrides: Optional[AsyncDataBrewClientConfig] = None,
    max_results: Optional[
        "capo_databrew.types.max_results100.MaxResults100"
    ] = None,
    next_token: Optional["capo_databrew.types.next_token.NextToken"] = None,
    recipe_version: Optional[
        "capo_databrew.types.recipe_version.RecipeVersion"
    ] = None,
) -> "AsyncIterator[capo_databrew.types.recipe.Recipe]":
    _token = next_token
    while True:
        _response = await self.list_recipes(
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
            recipe_version=recipe_version,
        )
        _page = _resolve_path(_response, ("recipes",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break