Skip to content

iter_list_vehicles

iter_list_vehicles(
    *,
    config_overrides: Optional[IoTFleetWiseClientConfig] = None,
    model_manifest_arn: Optional[arn] = None,
    attribute_names: Optional[attributeNamesList] = None,
    attribute_values: Optional[attributeValuesList] = None,
    next_token: Optional[nextToken] = None,
    max_results: Optional[listVehiclesMaxResults] = None,
    list_response_scope: Optional[ListResponseScope] = None,
) -> Iterator[VehicleSummary]
Source code in docs_src/capo_iotfleetwise/_services/io_t_fleet_wise.py
def iter_list_vehicles(
    self,
    *,
    config_overrides: Optional[IoTFleetWiseClientConfig] = None,
    model_manifest_arn: Optional["capo_iotfleetwise.types.arn.arn"] = None,
    attribute_names: Optional[
        "capo_iotfleetwise.types.attribute_names_list.attributeNamesList"
    ] = None,
    attribute_values: Optional[
        "capo_iotfleetwise.types.attribute_values_list.attributeValuesList"
    ] = None,
    next_token: Optional["capo_iotfleetwise.types.next_token.nextToken"] = None,
    max_results: Optional[
        "capo_iotfleetwise.types.list_vehicles_max_results.listVehiclesMaxResults"
    ] = None,
    list_response_scope: Optional[
        "capo_iotfleetwise.types.list_response_scope.ListResponseScope"
    ] = None,
) -> "Iterator[capo_iotfleetwise.types.vehicle_summary.VehicleSummary]":
    _token = next_token
    while True:
        _response = self.list_vehicles(
            config_overrides=config_overrides,
            model_manifest_arn=model_manifest_arn,
            attribute_names=attribute_names,
            attribute_values=attribute_values,
            next_token=_token,
            max_results=max_results,
            list_response_scope=list_response_scope,
        )
        _page = _resolve_path(_response, ("vehicle_summaries",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break