You can not rename bucket functionality for S3 because there are technically no folders in S3 so we have to handle every file within the bucket.
You will have to create a new bucket, copy the contents from the new bucket and delete the old bucket. You can do all these steps in AWS CLI.