Skip to content

iter_list_investigation_groups

iter_list_investigation_groups(
    *,
    config_overrides: Optional[AIOpsClientConfig] = None,
    next_token: Optional[SensitiveStringWithLengthLimits] = None,
    max_results: Optional[int] = None,
) -> Iterator[ListInvestigationGroupsModel]
Source code in docs_src/capo_aiops/_services/ai_ops.py
def iter_list_investigation_groups(
    self,
    *,
    config_overrides: Optional[AIOpsClientConfig] = None,
    next_token: Optional[
        "capo_aiops.types.sensitive_string_with_length_limits.SensitiveStringWithLengthLimits"
    ] = None,
    max_results: Optional[int] = None,
) -> "Iterator[capo_aiops.types.list_investigation_groups_model.ListInvestigationGroupsModel]":
    _token = next_token
    while True:
        _response = self.list_investigation_groups(
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
        )
        _page = _resolve_path(_response, ("investigation_groups",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break