Skip to content

iter_list_db_system_shapes async

iter_list_db_system_shapes(
    *,
    config_overrides: Optional[AsyncodbClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional[str] = None,
    availability_zone: Optional[str] = None,
    availability_zone_id: Optional[str] = None,
    shape_family: Optional[str] = None,
) -> AsyncIterator[DbSystemShapeSummary]
Source code in docs_src/capo_odb/_services/async_odb.py
async def iter_list_db_system_shapes(
    self,
    *,
    config_overrides: Optional[AsyncodbClientConfig] = None,
    max_results: Optional[int] = None,
    next_token: Optional[str] = None,
    availability_zone: Optional[str] = None,
    availability_zone_id: Optional[str] = None,
    shape_family: Optional[str] = None,
) -> "AsyncIterator[capo_odb.types.db_system_shape_summary.DbSystemShapeSummary]":
    _token = next_token
    while True:
        _response = await self.list_db_system_shapes(
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
            availability_zone=availability_zone,
            availability_zone_id=availability_zone_id,
            shape_family=shape_family,
        )
        _page = _resolve_path(_response, ("db_system_shapes",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break