Skip to content

iter_list_fargate_profiles

iter_list_fargate_profiles(
    cluster_name: String,
    *,
    config_overrides: Optional[EKSClientConfig] = None,
    max_results: Optional[FargateProfilesRequestMaxResults] = None,
    next_token: Optional[String] = None,
) -> Iterator[String]
Source code in docs_src/capo_eks/_services/eks.py
def iter_list_fargate_profiles(
    self,
    cluster_name: "capo_eks.types.string.String",
    *,
    config_overrides: Optional[EKSClientConfig] = None,
    max_results: Optional[
        "capo_eks.types.fargate_profiles_request_max_results.FargateProfilesRequestMaxResults"
    ] = None,
    next_token: Optional["capo_eks.types.string.String"] = None,
) -> "Iterator[capo_eks.types.string.String]":
    _token = next_token
    while True:
        _response = self.list_fargate_profiles(
            cluster_name,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("fargate_profile_names",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break