Skip to content

iter_list_channel_placement_groups

iter_list_channel_placement_groups(
    cluster_id: __string,
    *,
    config_overrides: Optional[MediaLiveClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[__string] = None,
) -> Iterator[DescribeChannelPlacementGroupSummary]
Source code in docs_src/capo_medialive/_services/media_live.py
def iter_list_channel_placement_groups(
    self,
    cluster_id: "capo_medialive.types.__string.__string",
    *,
    config_overrides: Optional[MediaLiveClientConfig] = None,
    max_results: Optional["capo_medialive.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_medialive.types.__string.__string"] = None,
) -> "Iterator[capo_medialive.types.describe_channel_placement_group_summary.DescribeChannelPlacementGroupSummary]":
    _token = next_token
    while True:
        _response = self.list_channel_placement_groups(
            cluster_id,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("channel_placement_groups",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break