I\'m trying to rename a file in my s3 bucket using python boto3, I couldn\'t clearly understand the arguments. can someone help me here?
What I\'m planing is to copy
You cannot rename objects in S3, so as you indicated, you need to copy it to a new name and then deleted the old one:
client.copy_object(Bucket="BucketName", CopySource="BucketName/OriginalName", Key="NewName") client.delete_object(Bucket="BucketName", Key="OriginalName")