AWS SDK Version 2 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.

.NET Framework 4.5
 
Uploads and requests import conversion of a virtual disk file to an Amazon EBS volume.

Namespace: Amazon.EC2.Import
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public ImportVolumeResponse ImportVolume(
         String imageFilepath,
         String fileFormat,
         Nullable<Int64> volumeSize,
         String keyPrefix,
         String availabilityZone,
         String description,
         ImportProgressCallback progressCallback
)

Parameters

imageFilepath
Type: System.String

The full path to the image file to be processed

fileFormat
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.

volumeSize
Type: 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.

keyPrefix
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.

availabilityZone
Type: System.String

The Availability Zone for the resulting Amazon EBS volume.

description
Type: System.String

An optional description for the volume being imported.

progressCallback
Type: Amazon.EC2.Import.ImportProgressCallback

Optional callback delegate for upload progress reporting

Return Value
Type: Amazon.EC2.Model.ImportVolumeResponse
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