async def iter_list_stream_sessions(
self,
identifier: "capo_gameliftstreams.types.identifier.Identifier",
*,
config_overrides: Optional[AsyncGameLiftStreamsClientConfig] = None,
status: Optional[
"capo_gameliftstreams.types.stream_session_status.StreamSessionStatus"
] = None,
export_files_status: Optional[
"capo_gameliftstreams.types.export_files_status.ExportFilesStatus"
] = None,
next_token: Optional["capo_gameliftstreams.types.next_token.NextToken"] = None,
max_results: Optional[
"capo_gameliftstreams.types.max_results.MaxResults"
] = None,
) -> "AsyncIterator[capo_gameliftstreams.types.stream_session_summary.StreamSessionSummary]":
_token = next_token
while True:
_response = await self.list_stream_sessions(
identifier,
config_overrides=config_overrides,
status=status,
export_files_status=export_files_status,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("items",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break