async def iter_describe_bot_analyzer_recommendation(
self,
bot_id: "capo_lex_models_v2.types.id.Id",
bot_analyzer_request_id: "capo_lex_models_v2.types.uuid.UUID",
*,
config_overrides: Optional[AsyncLexModelsV2ClientConfig] = None,
next_token: Optional["capo_lex_models_v2.types.next_token.NextToken"] = None,
max_results: Optional["capo_lex_models_v2.types.max_results.MaxResults"] = None,
) -> "AsyncIterator[capo_lex_models_v2.types.bot_analyzer_recommendation.BotAnalyzerRecommendation]":
_token = next_token
while True:
_response = await self.describe_bot_analyzer_recommendation(
bot_id,
bot_analyzer_request_id,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("bot_analyzer_recommendation_list",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break