AWS SDK for .NET Documentation
Replace Method (destinationBucket, destinationKey, backupBucket, backupKey)
AmazonAmazon.S3.IOS3FileInfoReplace(String, String, String, String) Did this page help you?   Yes   No    Tell us about it...
Replaces the destination file with the content of this file and then deletes the orignial file. If a backup location is specifed then the content of destination file is backup to it.
Declaration Syntax
C#
public S3FileInfo Replace(
	string destinationBucket,
	string destinationKey,
	string backupBucket,
	string backupKey
)
Parameters
destinationBucket (String)
Destination bucket of this file will be copy to.
destinationKey (String)
Destination object key of this file will be copy to.
backupBucket (String)
Backup bucket to store the contents of the destination file.
backupKey (String)
Backup object key to store the contents of the destination file.
Return Value
S3FileInfo of the destination file.
Exceptions

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)