AWS SDK for .NET Documentation
Replace Method (destFile, backupFile)
AmazonAmazon.S3.IOS3FileInfoReplace(S3FileInfo, S3FileInfo) 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 backupFile is specifed then the content of destination file is backup to it.
Declaration Syntax
C#
public S3FileInfo Replace(
	S3FileInfo destFile,
	S3FileInfo backupFile
)
Parameters
destFile (S3FileInfo)
Where the contents of this file will be copy to.
backupFile (S3FileInfo)
If specified the destFile is backup to it.
Return Value
S3FileInfo of the destination file.
Exceptions

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