Skip to content

iter_list_performance_analysis_reports async

iter_list_performance_analysis_reports(
    service_type: ServiceType,
    identifier: IdentifierString,
    *,
    config_overrides: Optional[AsyncPIClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
    list_tags: Optional[Boolean] = None,
) -> AsyncIterator[ListPerformanceAnalysisReportsResponse]
Source code in docs_src/capo_pi/_services/async_pi.py
async def iter_list_performance_analysis_reports(
    self,
    service_type: "capo_pi.types.service_type.ServiceType",
    identifier: "capo_pi.types.identifier_string.IdentifierString",
    *,
    config_overrides: Optional[AsyncPIClientConfig] = None,
    next_token: Optional["capo_pi.types.next_token.NextToken"] = None,
    max_results: Optional["capo_pi.types.max_results.MaxResults"] = None,
    list_tags: Optional["capo_pi.types.boolean.Boolean"] = None,
) -> "AsyncIterator[capo_pi.types.list_performance_analysis_reports_response.ListPerformanceAnalysisReportsResponse]":
    _token = next_token
    while True:
        _response = await self.list_performance_analysis_reports(
            service_type,
            identifier,
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
            list_tags=list_tags,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break