Skip to content

iter_list_participant_replicas

iter_list_participant_replicas(
    source_stage_arn: StageArn,
    participant_id: ParticipantId,
    *,
    config_overrides: Optional[IVSRealTimeClientConfig] = None,
    next_token: Optional[PaginationToken] = None,
    max_results: Optional[MaxParticipantReplicaResults] = None,
) -> Iterator[ParticipantReplica]
Source code in docs_src/capo_ivs_realtime/_services/ivs_real_time.py
def iter_list_participant_replicas(
    self,
    source_stage_arn: "capo_ivs_realtime.types.stage_arn.StageArn",
    participant_id: "capo_ivs_realtime.types.participant_id.ParticipantId",
    *,
    config_overrides: Optional[IVSRealTimeClientConfig] = None,
    next_token: Optional[
        "capo_ivs_realtime.types.pagination_token.PaginationToken"
    ] = None,
    max_results: Optional[
        "capo_ivs_realtime.types.max_participant_replica_results.MaxParticipantReplicaResults"
    ] = None,
) -> "Iterator[capo_ivs_realtime.types.participant_replica.ParticipantReplica]":
    _token = next_token
    while True:
        _response = self.list_participant_replicas(
            source_stage_arn,
            participant_id,
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
        )
        _page = _resolve_path(_response, ("replicas",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break