How do I close an AWS S3 client connection

What is the protocol for closing an aws s3 client connection?

@Override
public boolean connect() {

    if (connected)
        return false;
    else
        s3Client = new AmazonS3Client(credentials);
    return true;
}

@Override
public boolean diconnect() {
    // what should take place here? 
    return false;
}

Answer

You don’t need to close a ‘connection”, as there’s no such thing as a continuous connection to S3 when using AmazonS3Client.

The AWS java SDK send REST requests to S3, where REST is stateless, for each REST request, it will be signed with the user credentials information, so it doesn’t need a long connection(such as something like session).