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