def iter_list_ingestions(
self,
data_set_id: "capo_quicksight.types.string.String",
aws_account_id: "capo_quicksight.types.aws_account_id.AwsAccountId",
*,
config_overrides: Optional[QuickSightClientConfig] = None,
next_token: Optional["capo_quicksight.types.string.String"] = None,
max_results: Optional[
"capo_quicksight.types.ingestion_max_results.IngestionMaxResults"
] = None,
) -> "Iterator[capo_quicksight.types.ingestion.Ingestion]":
_token = next_token
while True:
_response = self.list_ingestions(
data_set_id,
aws_account_id,
config_overrides=config_overrides,
next_token=_token,
max_results=max_results,
)
_page = _resolve_path(_response, ("ingestions",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break