Skip to content

iter_list_platform_branches

iter_list_platform_branches(
    *,
    config_overrides: Optional[ElasticBeanstalkClientConfig] = None,
    filters: Optional[SearchFilters] = None,
    max_records: Optional[PlatformBranchMaxRecords] = None,
    next_token: Optional[Token] = None,
) -> Iterator[ListPlatformBranchesResult]
Source code in docs_src/capo_elastic_beanstalk/_services/elastic_beanstalk.py
def iter_list_platform_branches(
    self,
    *,
    config_overrides: Optional[ElasticBeanstalkClientConfig] = None,
    filters: Optional[
        "capo_elastic_beanstalk.types.search_filters.SearchFilters"
    ] = None,
    max_records: Optional[
        "capo_elastic_beanstalk.types.platform_branch_max_records.PlatformBranchMaxRecords"
    ] = None,
    next_token: Optional["capo_elastic_beanstalk.types.token.Token"] = None,
) -> "Iterator[capo_elastic_beanstalk.types.list_platform_branches_result.ListPlatformBranchesResult]":
    _token = next_token
    while True:
        _response = self.list_platform_branches(
            config_overrides=config_overrides,
            filters=filters,
            max_records=max_records,
            next_token=_token,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break