Amazon.EC2.Import.DiskImageImporter.ImportVolume C# (CSharp) Метод

ImportVolume() публичный Метод

Uploads and requests import conversion of a virtual disk file to an Amazon EBS volume.
public ImportVolume ( string imageFilepath, string fileFormat, long volumeSize, string keyPrefix, string availabilityZone, string description, ImportProgressCallback progressCallback ) : ImportVolumeResponse
imageFilepath string The full path to the image file to be processed
fileFormat 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 long /// 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 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 string The Availability Zone for the resulting Amazon EBS volume.
description string An optional description for the volume being imported.
progressCallback ImportProgressCallback Optional callback delegate for upload progress reporting
Результат Amazon.EC2.Model.ImportVolumeResponse
        public ImportVolumeResponse ImportVolume(string imageFilepath,
                                                 string fileFormat,
                                                 long? volumeSize,
                                                 string keyPrefix,
                                                 string availabilityZone, 
                                                 string description,
                                                 ImportProgressCallback progressCallback)
        {
            Upload(imageFilepath, fileFormat, volumeSize, keyPrefix, progressCallback, false);
            return StartVolumeConversion(availabilityZone, description);
        }