async def iter_list_flow_execution_messages(
self,
flow_execution_id: "capo_iotthingsgraph.types.flow_execution_id.FlowExecutionId",
*,
config_overrides: Optional[AsyncIoTThingsGraphClientConfig] = None,
next_token: Optional["capo_iotthingsgraph.types.next_token.NextToken"] = None,
max_results: Optional[
"capo_iotthingsgraph.types.max_results.MaxResults"
] = None,
) -> "AsyncIterator[capo_iotthingsgraph.types.flow_execution_message.FlowExecutionMessage]":
_token = next_token
while True:
_response = await self.list_flow_execution_messages(
flow_execution_id,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("messages",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break