Skip to content

iter_list_pod_identity_associations async

iter_list_pod_identity_associations(
    cluster_name: String,
    *,
    config_overrides: Optional[AsyncEKSClientConfig] = None,
    namespace: Optional[String] = None,
    service_account: Optional[String] = None,
    max_results: Optional[ListPodIdentityAssociationsMaxResults] = None,
    next_token: Optional[String] = None,
) -> AsyncIterator[PodIdentityAssociationSummary]
Source code in docs_src/capo_eks/_services/async_eks.py
async def iter_list_pod_identity_associations(
    self,
    cluster_name: "capo_eks.types.string.String",
    *,
    config_overrides: Optional[AsyncEKSClientConfig] = None,
    namespace: Optional["capo_eks.types.string.String"] = None,
    service_account: Optional["capo_eks.types.string.String"] = None,
    max_results: Optional[
        "capo_eks.types.list_pod_identity_associations_max_results.ListPodIdentityAssociationsMaxResults"
    ] = None,
    next_token: Optional["capo_eks.types.string.String"] = None,
) -> "AsyncIterator[capo_eks.types.pod_identity_association_summary.PodIdentityAssociationSummary]":
    _token = next_token
    while True:
        _response = await self.list_pod_identity_associations(
            cluster_name,
            config_overrides=config_overrides,
            namespace=namespace,
            service_account=service_account,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("associations",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break