简体   繁体   中英

Get latest object from S3 bucket?

I have an S3 bucket with thousands of objects in it. Is there a way I could get latest object (last created) from this bucket? I am using AWS Java SDK.

Please let me know.

Thanks!

You will need to list all the objects and pick out the one with the most recent date.

If this is something you will continually need in the future, you might want to look into sending S3 events to Lambda.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM