Skip to content

iter_list_proposals

iter_list_proposals(
    network_id: ResourceIdString,
    *,
    config_overrides: Optional[ManagedBlockchainClientConfig] = None,
    max_results: Optional[ProposalListMaxResults] = None,
    next_token: Optional[PaginationToken] = None,
) -> Iterator[ListProposalsOutput]
Source code in docs_src/capo_managedblockchain/_services/managed_blockchain.py
def iter_list_proposals(
    self,
    network_id: "capo_managedblockchain.types.resource_id_string.ResourceIdString",
    *,
    config_overrides: Optional[ManagedBlockchainClientConfig] = None,
    max_results: Optional[
        "capo_managedblockchain.types.proposal_list_max_results.ProposalListMaxResults"
    ] = None,
    next_token: Optional[
        "capo_managedblockchain.types.pagination_token.PaginationToken"
    ] = None,
) -> "Iterator[capo_managedblockchain.types.list_proposals_output.ListProposalsOutput]":
    _token = next_token
    while True:
        _response = self.list_proposals(
            network_id,
            config_overrides=config_overrides,
            max_results=max_results,
            next_token=_token,
        )
        yield _response
        _token = _resolve_path(_response, ("next_token",))
        if not _token:
            break