Skip to content

iter_list_event_predictions

iter_list_event_predictions(
    *,
    config_overrides: Optional[FraudDetectorClientConfig] = None,
    event_id: Optional[FilterCondition] = None,
    event_type: Optional[FilterCondition] = None,
    detector_id: Optional[FilterCondition] = None,
    detector_version_id: Optional[FilterCondition] = None,
    prediction_time_range: Optional[PredictionTimeRange] = None,
    next_token: Optional[string] = None,
    max_results: Optional[EventPredictionsMaxResults] = None,
) -> Iterator[ListEventPredictionsResult]
Source code in docs_src/capo_frauddetector/_services/fraud_detector.py
def iter_list_event_predictions(
    self,
    *,
    config_overrides: Optional[FraudDetectorClientConfig] = None,
    event_id: Optional[
        "capo_frauddetector.types.filter_condition.FilterCondition"
    ] = None,
    event_type: Optional[
        "capo_frauddetector.types.filter_condition.FilterCondition"
    ] = None,
    detector_id: Optional[
        "capo_frauddetector.types.filter_condition.FilterCondition"
    ] = None,
    detector_version_id: Optional[
        "capo_frauddetector.types.filter_condition.FilterCondition"
    ] = None,
    prediction_time_range: Optional[
        "capo_frauddetector.types.prediction_time_range.PredictionTimeRange"
    ] = None,
    next_token: Optional["capo_frauddetector.types.string.string"] = None,
    max_results: Optional[
        "capo_frauddetector.types.event_predictions_max_results.EventPredictionsMaxResults"
    ] = None,
) -> "Iterator[capo_frauddetector.types.list_event_predictions_result.ListEventPredictionsResult]":
    _token = next_token
    while True:
        _response = self.list_event_predictions(
            config_overrides=config_overrides,
            event_id=event_id,
            event_type=event_type,
            detector_id=detector_id,
            detector_version_id=detector_version_id,
            prediction_time_range=prediction_time_range,
            next_token=_token,
            max_results=max_results,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break