I need to use Amazon S3 to load some static content programmatically in Java. When I started reading, I found that the way to do this was either through their SDK (wrapper over the REST API) or using the REST API. The following was found on the Amazon AWS website:
"You can send requests to Amazon S3 using the REST API or AWS SDK."
I wanted to understand which approach is better. I think that using the SDK will certainly make programming easier, but what are the advantages and disadvantages of using the Vs Rest SDK API directly.
For some reason, I found using the REST API more complex than the SDK. I was able to do the basic things using the SDk - create a bucket, list objects, get an object, invalidate the cache, etc. But it was hard to write code for the REST API — especially signature creation.
Maybe it doesn't really matter if I ultimately use the SDK, but I would still like to know how to do this using the REST API. If anyone has some good Java code examples for adding objects, getting objects, getting a list, etc., that would be very helpful.
Thank!
source
share