Skip to content

iter_list_tunnels

iter_list_tunnels(
    *,
    config_overrides: Optional[IoTSecureTunnelingClientConfig] = None,
    thing_name: Optional[ThingName] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> Iterator[ListTunnelsResponse]
Source code in docs_src/capo_iotsecuretunneling/_services/io_t_secure_tunneling.py
def iter_list_tunnels(
    self,
    *,
    config_overrides: Optional[IoTSecureTunnelingClientConfig] = 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,
) -> "Iterator[capo_iotsecuretunneling.types.list_tunnels_response.ListTunnelsResponse]":
    _token = next_token
    while True:
        _response = 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