Skip to content

iter_list_agent_recommendation_items async

iter_list_agent_recommendation_items(
    recommendation_arn: AgentRecommendationArn,
    *,
    config_overrides: Optional[AsyncWellArchitectedClientConfig] = None,
    type: Optional[RecommendationItemType] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[AgentRecommendationItemSummary]
Source code in docs_src/capo_wellarchitected/_services/async_well_architected.py
async def iter_list_agent_recommendation_items(
    self,
    recommendation_arn: "capo_wellarchitected.types.agent_recommendation_arn.AgentRecommendationArn",
    *,
    config_overrides: Optional[AsyncWellArchitectedClientConfig] = None,
    type: Optional[
        "capo_wellarchitected.types.recommendation_item_type.RecommendationItemType"
    ] = None,
    max_results: Optional[
        "capo_wellarchitected.types.max_results.MaxResults"
    ] = None,
    next_token: Optional["capo_wellarchitected.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_wellarchitected.types.agent_recommendation_item_summary.AgentRecommendationItemSummary]":
    _token = next_token
    while True:
        _response = await self.list_agent_recommendation_items(
            recommendation_arn,
            config_overrides=config_overrides,
            type=type,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("items",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break