def iter_list_snapshot_blocks(
self,
snapshot_id: "capo_ebs.types.snapshot_id.SnapshotId",
*,
config_overrides: Optional[EBSClientConfig] = None,
next_token: Optional["capo_ebs.types.page_token.PageToken"] = None,
max_results: Optional["capo_ebs.types.max_results.MaxResults"] = None,
starting_block_index: Optional["capo_ebs.types.block_index.BlockIndex"] = None,
) -> "Iterator[capo_ebs.types.list_snapshot_blocks_response.ListSnapshotBlocksResponse]":
_token = next_token
while True:
_response = self.list_snapshot_blocks(
snapshot_id,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
starting_block_index=starting_block_index,
)
yield _response
_token = _resolve_path(_response, ("next_token",))
if not _token:
break