Solutionunvalidated
it is necessary to use `.object_versions` (or `list_object_versions()` for client calls) — since your code is written to only roll-back a single object. Tension: it's not really possible to reduce the number of API calls to AWS. Outcome: An alternative approach that could be considered 'more efficient' would be to copy the desired previous version to the same Key.
ae79df33-b7a5-483d-8fca-1ceccb5be1ba
it is necessary to use .object_versions (or list_object_versions() for client calls) — since your code is written to only roll-back a single object. Tension: it's not really possible to reduce the number of API calls to AWS. Outcome: An alternative approach that could be considered 'more efficient' would be to copy the desired previous version to the same Key.