Skip to content

iter_list_service_level_objective_exclusion_windows async

iter_list_service_level_objective_exclusion_windows(
    id: ServiceLevelObjectiveId,
    *,
    config_overrides: Optional[AsyncApplicationSignalsClientConfig] = None,
    max_results: Optional[ListServiceLevelObjectiveExclusionWindowsMaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[ExclusionWindow]
Source code in docs_src/capo_application_signals/_services/async_application_signals.py
async def iter_list_service_level_objective_exclusion_windows(
    self,
    id: "capo_application_signals.types.service_level_objective_id.ServiceLevelObjectiveId",
    *,
    config_overrides: Optional[AsyncApplicationSignalsClientConfig] = None,
    max_results: Optional[
        "capo_application_signals.types.list_service_level_objective_exclusion_windows_max_results.ListServiceLevelObjectiveExclusionWindowsMaxResults"
    ] = None,
    next_token: Optional[
        "capo_application_signals.types.next_token.NextToken"
    ] = None,
) -> (
    "AsyncIterator[capo_application_signals.types.exclusion_window.ExclusionWindow]"
):
    _token = next_token
    while True:
        _response = await self.list_service_level_objective_exclusion_windows(
            id,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("exclusion_windows",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break