Method: AWS::S3::S3Object#rename

Defined in:
lib/aws/s3/object.rb

#rename(to, options = {}) ⇒ Object

Rename the current object. Keep in mind that due to limitations in S3’s API, this operation requires retransmitting the entire object to S3.



558
559
560
# File 'lib/aws/s3/object.rb', line 558

def rename(to, options = {})
  self.class.rename(key, to, bucket.name, options)
end