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

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

Helper to populate a DiskImage instance from the SDK that will be used in an ImportInstance API request using data previously recorded in the import manifest.
public PopulateDiskImage ( string manifestFileKey, string description ) : DiskImage
manifestFileKey string The Amazon S3 object key of the manifest file.
description string Optional description for the image.
Результат Amazon.EC2.Model.DiskImage
        public DiskImage PopulateDiskImage(string manifestFileKey, string description)
        {
            if (ImportManifest == null)
                throw new InvalidOperationException("Expected import manifest to have been created prior to call.");

            var diskImageDetail = PopulateDiskImageDetail(manifestFileKey);
            var volumeDetail = PopulateVolumeDetail();

            return new DiskImage
            {
                Description = description,
                Image = diskImageDetail,
                Volume = volumeDetail
            };
        }