Skip to content

iter_list_control_domain_insights async

iter_list_control_domain_insights(
    *,
    config_overrides: Optional[AsyncAuditManagerClientConfig] = None,
    next_token: Optional[Token] = None,
    max_results: Optional[MaxResults] = None,
) -> AsyncIterator[ListControlDomainInsightsResponse]
Source code in docs_src/capo_auditmanager/_services/async_audit_manager.py
async def iter_list_control_domain_insights(
    self,
    *,
    config_overrides: Optional[AsyncAuditManagerClientConfig] = None,
    next_token: Optional["capo_auditmanager.types.token.Token"] = None,
    max_results: Optional["capo_auditmanager.types.max_results.MaxResults"] = None,
) -> "AsyncIterator[capo_auditmanager.types.list_control_domain_insights_response.ListControlDomainInsightsResponse]":
    _token = next_token
    while True:
        _response = await self.list_control_domain_insights(
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break