Skip to content

iter_list_subscribed_workteams async

iter_list_subscribed_workteams(
    *,
    config_overrides: Optional[AsyncSageMakerClientConfig] = None,
    name_contains: Optional[WorkteamName] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
) -> AsyncIterator[SubscribedWorkteam]
Source code in docs_src/capo_sagemaker/_services/async_sage_maker.py
async def iter_list_subscribed_workteams(
    self,
    *,
    config_overrides: Optional[AsyncSageMakerClientConfig] = None,
    name_contains: Optional[
        "capo_sagemaker.types.workteam_name.WorkteamName"
    ] = None,
    next_token: Optional["capo_sagemaker.types.next_token.NextToken"] = None,
    max_results: Optional["capo_sagemaker.types.max_results.MaxResults"] = None,
) -> "AsyncIterator[capo_sagemaker.types.subscribed_workteam.SubscribedWorkteam]":
    _token = next_token
    while True:
        _response = await self.list_subscribed_workteams(
            config_overrides=config_overrides,
            name_contains=name_contains,
            next_token=_token,
            max_results=max_results,
        )
        _page = _resolve_path(_response, ("subscribed_workteams",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break