Creates an import volume task using metadata from the specified disk image. After importing the image, you then upload it using the ec2-import-volume command in the Amazon EC2 command-line interface (CLI) tools. For more information, see Using the Command Line Tools to Import Your Virtual Machine to Amazon EC2 in the Amazon Elastic Compute Cloud User Guide .
 Declaration Syntax
 Declaration Syntax| C# | 
ImportVolumeResponse ImportVolume( ImportVolumeRequest request )
 Parameters
 Parameters- request (ImportVolumeRequest)
- Import Volume request
 Return Value
 Return ValueImport Volume  Response from the service
 Exceptions
 Exceptions| Exception | Condition | 
|---|---|
| WebException | |
| AmazonEC2Exception |