def iter_list_images_in_recycle_bin(
self,
*,
config_overrides: Optional[EC2ClientConfig] = None,
image_ids: Optional[
"capo_ec2.types.image_id_string_list.ImageIdStringList"
] = None,
next_token: Optional["capo_ec2.types.string.String"] = None,
max_results: Optional[
"capo_ec2.types.list_images_in_recycle_bin_max_results.ListImagesInRecycleBinMaxResults"
] = None,
dry_run: Optional["capo_ec2.types.boolean.Boolean"] = None,
) -> "Iterator[capo_ec2.types.image_recycle_bin_info.ImageRecycleBinInfo]":
_token = next_token
while True:
_response = self.list_images_in_recycle_bin(
config_overrides=config_overrides,
image_ids=image_ids,
next_token=_token,
max_results=max_results,
dry_run=dry_run,
)
_page = _resolve_path(_response, ("images",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break