Skip to content

iter_list_change_sets async

iter_list_change_sets(
    *,
    config_overrides: Optional[AsyncCloudFormationClientConfig] = None,
    stack_name: Optional[StackNameOrId] = None,
    next_token: Optional[NextToken] = None,
) -> AsyncIterator[ChangeSetSummary]
Source code in docs_src/capo_cloudformation/_services/async_cloud_formation.py
async def iter_list_change_sets(
    self,
    *,
    config_overrides: Optional[AsyncCloudFormationClientConfig] = None,
    stack_name: Optional[
        "capo_cloudformation.types.stack_name_or_id.StackNameOrId"
    ] = None,
    next_token: Optional["capo_cloudformation.types.next_token.NextToken"] = None,
) -> "AsyncIterator[capo_cloudformation.types.change_set_summary.ChangeSetSummary]":
    _token = next_token
    while True:
        _response = await 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