Skip to content

iter_list_subscriptions

iter_list_subscriptions(
    client_id: ClientId,
    *,
    config_overrides: Optional[IoTDataPlaneClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
) -> Iterator[SubscriptionSummary]
Source code in docs_src/capo_iot_data_plane/_services/io_t_data_plane.py
def iter_list_subscriptions(
    self,
    client_id: "capo_iot_data_plane.types.client_id.ClientId",
    *,
    config_overrides: Optional[IoTDataPlaneClientConfig] = None,
    next_token: Optional["capo_iot_data_plane.types.next_token.NextToken"] = None,
    max_results: Optional[
        "capo_iot_data_plane.types.max_results.MaxResults"
    ] = None,
) -> "Iterator[capo_iot_data_plane.types.subscription_summary.SubscriptionSummary]":
    _token = next_token
    while True:
        _response = self.list_subscriptions(
            client_id,
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
        )
        _page = _resolve_path(_response, ("subscriptions",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break