async def iter_get_device_position_history(
self,
tracker_name: "capo_location.types.resource_name.ResourceName",
device_id: "capo_location.types.id.Id",
*,
config_overrides: Optional[AsyncLocationClientConfig] = None,
next_token: Optional["capo_location.types.token.Token"] = None,
start_time_inclusive: Optional[
"capo_location.types.timestamp.Timestamp"
] = None,
end_time_exclusive: Optional["capo_location.types.timestamp.Timestamp"] = None,
max_results: Optional[int] = None,
) -> "AsyncIterator[capo_location.types.device_position.DevicePosition]":
_token = next_token
while True:
_response = await self.get_device_position_history(
tracker_name,
device_id,
config_overrides=config_overrides,
next_token=_token,
start_time_inclusive=start_time_inclusive,
end_time_exclusive=end_time_exclusive,
max_results=max_results,
)
_page = _resolve_path(_response, ("device_positions",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break