Skip to content

iter_describe_change_set

iter_describe_change_set(
    *,
    config_overrides: Optional[CloudFormationClientConfig] = None,
    change_set_name: Optional[ChangeSetNameOrId] = None,
    stack_name: Optional[StackNameOrId] = None,
    next_token: Optional[NextToken] = None,
    include_property_values: Optional[IncludePropertyValues] = None,
) -> Iterator[Change]
Source code in docs_src/capo_cloudformation/_services/cloud_formation.py
def iter_describe_change_set(
    self,
    *,
    config_overrides: Optional[CloudFormationClientConfig] = None,
    change_set_name: Optional[
        "capo_cloudformation.types.change_set_name_or_id.ChangeSetNameOrId"
    ] = None,
    stack_name: Optional[
        "capo_cloudformation.types.stack_name_or_id.StackNameOrId"
    ] = None,
    next_token: Optional["capo_cloudformation.types.next_token.NextToken"] = None,
    include_property_values: Optional[
        "capo_cloudformation.types.include_property_values.IncludePropertyValues"
    ] = None,
) -> "Iterator[capo_cloudformation.types.change.Change]":
    _token = next_token
    while True:
        _response = self.describe_change_set(
            config_overrides=config_overrides,
            change_set_name=change_set_name,
            stack_name=stack_name,
            next_token=_token,
            include_property_values=include_property_values,
        )
        _page = _resolve_path(_response, ("changes",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break