Skip to content

list_participant_events

list_participant_events(
    stage_arn: StageArn,
    session_id: StageSessionId,
    participant_id: ParticipantId,
    *,
    config_overrides: Optional[IVSRealTimeClientConfig] = None,
    next_token: Optional[PaginationToken] = None,
    max_results: Optional[MaxParticipantEventResults] = None,
) -> ListParticipantEventsResponse

Lists events for a specified participant that occurred during a specified stage session.

Parameters:

Raises:

Source code in docs_src/capo_ivs_realtime/_services/ivs_real_time.py
def list_participant_events(
    self,
    stage_arn: "capo_ivs_realtime.types.stage_arn.StageArn",
    session_id: "capo_ivs_realtime.types.stage_session_id.StageSessionId",
    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_event_results.MaxParticipantEventResults"
    ] = None,
) -> "capo_ivs_realtime.types.list_participant_events_response.ListParticipantEventsResponse":
    """<p>Lists events for a specified participant that occurred during a specified stage session.</p>

    Args:
        stage_arn: <p>Stage ARN.</p>
        session_id: <p>ID of a session within the stage.</p>
        participant_id: <p>Unique identifier for this participant. This is assigned by IVS and returned by <a>CreateParticipantToken</a>.</p>
        next_token: <p>The first participant event to retrieve. This is used for pagination; see the <code>nextToken</code> response field.</p>
        max_results: <p>Maximum number of results to return. Default: 50.</p>

    Raises:
        capo_ivs_realtime.errors.access_denied_exception.AccessDeniedException: <p>User does not have sufficient access to perform this action.</p>
        capo_ivs_realtime.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
        capo_ivs_realtime.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_ivs_realtime.types.list_participant_events_request.ListParticipantEventsRequest]",
    ) -> OperationResponse[
        "capo_ivs_realtime.types.list_participant_events_response.ListParticipantEventsResponse"
    ]:
        import capo_ivs_realtime._operations.amazon_interactive_video_service_real_time.list_participant_events

        output, http_response = (
            capo_ivs_realtime._operations.amazon_interactive_video_service_real_time.list_participant_events.list_participant_events(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("ListParticipantEvents")
    )
    input_: capo_ivs_realtime.types.list_participant_events_request.ListParticipantEventsRequest = {
        "stage_arn": stage_arn,
        "session_id": session_id,
        "participant_id": participant_id,
    }
    if next_token is not None:
        input_["next_token"] = next_token
    if max_results is not None:
        input_["max_results"] = max_results

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output