async def iter_list_vehicles(
self,
*,
config_overrides: Optional[AsyncIoTFleetWiseClientConfig] = 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,
) -> "AsyncIterator[capo_iotfleetwise.types.vehicle_summary.VehicleSummary]":
_token = next_token
while True:
_response = await 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