Skip to content

iter_list_microsoft_teams_channel_configurations

iter_list_microsoft_teams_channel_configurations(
    *,
    config_overrides: Optional[chatbotClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[PaginationToken] = None,
    team_id: Optional[UUID] = None,
) -> Iterator[TeamsChannelConfiguration]
Source code in docs_src/capo_chatbot/_services/chatbot.py
def iter_list_microsoft_teams_channel_configurations(
    self,
    *,
    config_overrides: Optional[chatbotClientConfig] = None,
    max_results: Optional["capo_chatbot.types.max_results.MaxResults"] = None,
    next_token: Optional[
        "capo_chatbot.types.pagination_token.PaginationToken"
    ] = None,
    team_id: Optional["capo_chatbot.types.uuid.UUID"] = None,
) -> "Iterator[capo_chatbot.types.teams_channel_configuration.TeamsChannelConfiguration]":
    _token = next_token
    while True:
        _response = self.list_microsoft_teams_channel_configurations(
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
            team_id=team_id,
        )
        _page = _resolve_path(_response, ("team_channel_configurations",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break