Skip to content

iter_list_cloud_connectors async

iter_list_cloud_connectors(
    *,
    config_overrides: Optional[AsyncIoTManagedIntegrationsClientConfig] = None,
    type: Optional[CloudConnectorType] = None,
    lambda_arn: Optional[LambdaArn] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[ConnectorItem]
Source code in docs_src/capo_iot_managed_integrations/_services/async_io_t_managed_integrations.py
async def iter_list_cloud_connectors(
    self,
    *,
    config_overrides: Optional[AsyncIoTManagedIntegrationsClientConfig] = None,
    type: Optional[
        "capo_iot_managed_integrations.types.cloud_connector_type.CloudConnectorType"
    ] = None,
    lambda_arn: Optional[
        "capo_iot_managed_integrations.types.lambda_arn.LambdaArn"
    ] = None,
    max_results: Optional[
        "capo_iot_managed_integrations.types.max_results.MaxResults"
    ] = None,
    next_token: Optional[
        "capo_iot_managed_integrations.types.next_token.NextToken"
    ] = None,
) -> "AsyncIterator[capo_iot_managed_integrations.types.connector_item.ConnectorItem]":
    _token = next_token
    while True:
        _response = await self.list_cloud_connectors(
            config_overrides=config_overrides,
            type=type,
            lambda_arn=lambda_arn,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("items",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break