async def iter_list_tunnels(
self,
*,
config_overrides: Optional[AsyncIoTSecureTunnelingClientConfig] = None,
thing_name: Optional[
"capo_iotsecuretunneling.types.thing_name.ThingName"
] = None,
max_results: Optional[
"capo_iotsecuretunneling.types.max_results.MaxResults"
] = None,
next_token: Optional[
"capo_iotsecuretunneling.types.next_token.NextToken"
] = None,
) -> "AsyncIterator[capo_iotsecuretunneling.types.list_tunnels_response.ListTunnelsResponse]":
_token = next_token
while True:
_response = await self.list_tunnels(
config_overrides=config_overrides,
thing_name=thing_name,
max_results=max_results,
next_token=_token,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break