Skip to content

iter_list_change_sets

iter_list_change_sets(
    *,
    config_overrides: Optional[CloudFormationClientConfig] = None,
    stack_name: Optional[StackNameOrId] = None,
    next_token: Optional[NextToken] = None,
) -> Iterator[ChangeSetSummary]
Source code in docs_src/capo_cloudformation/_services/cloud_formation.py
def iter_list_change_sets(
    self,
    *,
    config_overrides: Optional[CloudFormationClientConfig] = None,
    stack_name: Optional[
        "capo_cloudformation.types.stack_name_or_id.StackNameOrId"
    ] = None,
    next_token: Optional["capo_cloudformation.types.next_token.NextToken"] = None,
) -> "Iterator[capo_cloudformation.types.change_set_summary.ChangeSetSummary]":
    _token = next_token
    while True:
        _response = self.list_change_sets(
            config_overrides=config_overrides,
            stack_name=stack_name,
            next_token=_token,
        )
        _page = _resolve_path(_response, ("summaries",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break