def iter_list_snapshots_in_recycle_bin(
self,
*,
config_overrides: Optional[EC2ClientConfig] = None,
max_results: Optional[
"capo_ec2.types.list_snapshots_in_recycle_bin_max_results.ListSnapshotsInRecycleBinMaxResults"
] = None,
next_token: Optional["capo_ec2.types.string.String"] = None,
snapshot_ids: Optional[
"capo_ec2.types.snapshot_id_string_list.SnapshotIdStringList"
] = None,
dry_run: Optional["capo_ec2.types.boolean.Boolean"] = None,
) -> "Iterator[capo_ec2.types.snapshot_recycle_bin_info.SnapshotRecycleBinInfo]":
_token = next_token
while True:
_response = self.list_snapshots_in_recycle_bin(
config_overrides=config_overrides,
max_results=max_results,
next_token=_token,
snapshot_ids=snapshot_ids,
dry_run=dry_run,
)
_page = _resolve_path(_response, ("snapshots",))
for _item in _page or []:
yield _item
_token = _resolve_path(_response, ("next_token",))
if not _token:
break