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
Exception | Condition |
---|---|
ArgumentException | |
IOException | |
WebException | |
AmazonS3Exception |