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.

Uploads and requests import conversion of a virtual machine image file to an Amazon EC2 instance.

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


public ImportInstanceResponse ImportInstance(
         String imageFilepath,
         String fileFormat,
         Nullable<Int64> volumeSize,
         String keyPrefix,
         ImportLaunchConfiguration launchConfiguration,
         ImportProgressCallback progressCallback
Type: System.String

The full path to the image file to be processed

Type: System.String

The format of the image file (VMDK | RAW | VHD). If not specified, it will be inferred from the extension of the image file.

Type: System.Nullable<System.Int64>

The requested size (in GiB) for the resulting image volume. If not specified a suitable value based on the size of the image file is used. Note that the minimum required boot volume size for EC2 is 8GB.

Type: System.String

Optional root-level key prefix that will be applied to the uploaded artifacts in S3. The artifacts will be placed beneath this (or the root if not set) in a key composed of a GUID.

Type: Amazon.EC2.Import.ImportLaunchConfiguration

Launch configuration settings for the imported instance

Type: Amazon.EC2.Import.ImportProgressCallback

Optional callback delegate for upload progress reporting

Return Value
The service response containing a ConversionTask object that can be used to monitor the progress of the requested conversion.

Version Information

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