Skip to content

iter_list_review_template_answers async

iter_list_review_template_answers(
    template_arn: TemplateArn,
    lens_alias: LensAlias,
    *,
    config_overrides: Optional[AsyncWellArchitectedClientConfig] = None,
    pillar_id: Optional[PillarId] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
) -> AsyncIterator[ListReviewTemplateAnswersOutput]
Source code in docs_src/capo_wellarchitected/_services/async_well_architected.py
async def iter_list_review_template_answers(
    self,
    template_arn: "capo_wellarchitected.types.template_arn.TemplateArn",
    lens_alias: "capo_wellarchitected.types.lens_alias.LensAlias",
    *,
    config_overrides: Optional[AsyncWellArchitectedClientConfig] = None,
    pillar_id: Optional["capo_wellarchitected.types.pillar_id.PillarId"] = None,
    next_token: Optional["capo_wellarchitected.types.next_token.NextToken"] = None,
    max_results: Optional[
        "capo_wellarchitected.types.max_results.MaxResults"
    ] = None,
) -> "AsyncIterator[capo_wellarchitected.types.list_review_template_answers_output.ListReviewTemplateAnswersOutput]":
    _token = next_token
    while True:
        _response = await self.list_review_template_answers(
            template_arn,
            lens_alias,
            config_overrides=config_overrides,
            pillar_id=pillar_id,
            next_token=_token,
            max_results=max_results,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break