To Rename a folder
aws s3 --recursive mv s3://bucketname/prefix_old/ s3://bucketname/prefix_new /
To Rename a file
aws s3 mv s3://bucketname/prefix/filename_old s3://bucketname/prefix/filename_new
To Rename a folder
aws s3 --recursive mv s3://bucketname/prefix_old/ s3://bucketname/prefix_new /
To Rename a file
aws s3 mv s3://bucketname/prefix/filename_old s3://bucketname/prefix/filename_new