Skip to content

iter_list_eks_anywhere_subscriptions async

iter_list_eks_anywhere_subscriptions(
    *,
    config_overrides: Optional[AsyncEKSClientConfig] = None,
    max_results: Optional[ListEksAnywhereSubscriptionsRequestMaxResults] = None,
    next_token: Optional[String] = None,
    include_status: Optional[EksAnywhereSubscriptionStatusValues] = None,
) -> AsyncIterator[EksAnywhereSubscription]
Source code in docs_src/capo_eks/_services/async_eks.py
async def iter_list_eks_anywhere_subscriptions(
    self,
    *,
    config_overrides: Optional[AsyncEKSClientConfig] = None,
    max_results: Optional[
        "capo_eks.types.list_eks_anywhere_subscriptions_request_max_results.ListEksAnywhereSubscriptionsRequestMaxResults"
    ] = None,
    next_token: Optional["capo_eks.types.string.String"] = None,
    include_status: Optional[
        "capo_eks.types.eks_anywhere_subscription_status_values.EksAnywhereSubscriptionStatusValues"
    ] = None,
) -> "AsyncIterator[capo_eks.types.eks_anywhere_subscription.EksAnywhereSubscription]":
    _token = next_token
    while True:
        _response = await self.list_eks_anywhere_subscriptions(
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
            include_status=include_status,
        )
        _page = _resolve_path(_response, ("subscriptions",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break