Skip to content

iter_list_deployment_strategies

iter_list_deployment_strategies(
    *,
    config_overrides: Optional[AppConfigClientConfig] = None,
    max_results: Optional[MaxResults] = None,
    next_token: Optional[NextToken] = None,
) -> Iterator[DeploymentStrategy]
Source code in docs_src/capo_appconfig/_services/app_config.py
def iter_list_deployment_strategies(
    self,
    *,
    config_overrides: Optional[AppConfigClientConfig] = None,
    max_results: Optional["capo_appconfig.types.max_results.MaxResults"] = None,
    next_token: Optional["capo_appconfig.types.next_token.NextToken"] = None,
) -> "Iterator[capo_appconfig.types.deployment_strategy.DeploymentStrategy]":
    _token = next_token
    while True:
        _response = self.list_deployment_strategies(
            config_overrides=config_overrides,
            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