Skip to content

iter_list_stack_sets async

iter_list_stack_sets(
    *,
    config_overrides: Optional[AsyncCloudFormationClientConfig] = None,
    next_token: Optional[NextToken] = None,
    max_results: Optional[MaxResults] = None,
    status: Optional[StackSetStatus] = None,
    call_as: Optional[CallAs] = None,
) -> AsyncIterator[StackSetSummary]
Source code in docs_src/capo_cloudformation/_services/async_cloud_formation.py
async def iter_list_stack_sets(
    self,
    *,
    config_overrides: Optional[AsyncCloudFormationClientConfig] = None,
    next_token: Optional["capo_cloudformation.types.next_token.NextToken"] = None,
    max_results: Optional[
        "capo_cloudformation.types.max_results.MaxResults"
    ] = None,
    status: Optional[
        "capo_cloudformation.types.stack_set_status.StackSetStatus"
    ] = None,
    call_as: Optional["capo_cloudformation.types.call_as.CallAs"] = None,
) -> "AsyncIterator[capo_cloudformation.types.stack_set_summary.StackSetSummary]":
    _token = next_token
    while True:
        _response = await self.list_stack_sets(
            config_overrides=config_overrides,
            next_token=_token,
            max_results=max_results,
            status=status,
            call_as=call_as,
        )
        _page = _resolve_path(_response, ("summaries",))
        for _item in _page or []:
            yield _item
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break