AWS SDK Version 3 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Constructs the import manifest for the image and then uploads it and the virtual machine image or disk image to Amazon S3. The S3 key to the uploaded manifest file is returned.

If an error occurs during upload of the image file the RetainArtifactsOnUploadError property governs whether the partially uploaded content is deleted or retained. If the content is retained, the import can be resumed. By default the RetainArtifactsOnUploadError property is false and the content deleted, avoiding storage charges for potentially orphaned content if the command is not re-run.

Namespace: Amazon.EC2.Import
Assembly: AWSSDK.EC2.dll
Version: 3.x.y.z


public String Upload(
         String imageFilepath
Type: System.String

The full path to the image file to be processed

Return Value
Type: String
The S3 object key of the uploaded manifest file

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5