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

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

Uploads and requests import conversion of a virtual machine image file to an Amazon EC2 instance.
public ImportInstance ( string imageFilepath, string fileFormat, long volumeSize, string keyPrefix, ImportLaunchConfiguration launchConfiguration, ImportProgressCallback progressCallback ) : ImportInstanceResponse
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. Note that the minimum required boot /// volume size for EC2 is 8GB. ///
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. ///
launchConfiguration ImportLaunchConfiguration Launch configuration settings for the imported instance
progressCallback ImportProgressCallback Optional callback delegate for upload progress reporting
Результат Amazon.EC2.Model.ImportInstanceResponse
        public ImportInstanceResponse ImportInstance(string imageFilepath,
                                                     string fileFormat,
                                                     long? volumeSize,
                                                     string keyPrefix,
                                                     ImportLaunchConfiguration launchConfiguration,
                                                     ImportProgressCallback progressCallback)
        {
            Upload(imageFilepath, fileFormat, volumeSize, keyPrefix, progressCallback, false);
            return StartInstanceConversion(launchConfiguration);
        }