You do not need to close the “connection”, because when using AmazonS3Client there is no such thing as a continuous connection to S3.
The Java SDK SDK sends REST requests to S3 where REST does not have a status, for each REST request it will be signed with user credential information, so it does not need a long connection (for example, something like a session).
source
share