Copyright | (c) 2013-2015 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Language | Haskell2010 |
Creates an import instance task using metadata from the specified disk
image. ImportInstance
only supports single-volume VMs. To import
multi-volume VMs, use ImportImage. After importing the image, you then
upload it using the 'ec2-import-volume' command in the EC2 command line
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.
See: AWS API Reference for ImportInstance.
- importInstance :: PlatformValues -> ImportInstance
- data ImportInstance
- iiLaunchSpecification :: Lens' ImportInstance (Maybe ImportInstanceLaunchSpecification)
- iiDiskImages :: Lens' ImportInstance [DiskImage]
- iiDryRun :: Lens' ImportInstance (Maybe Bool)
- iiDescription :: Lens' ImportInstance (Maybe Text)
- iiPlatform :: Lens' ImportInstance PlatformValues
- importInstanceResponse :: Int -> ImportInstanceResponse
- data ImportInstanceResponse
- iirsConversionTask :: Lens' ImportInstanceResponse (Maybe ConversionTask)
- iirsStatus :: Lens' ImportInstanceResponse Int
Creating a Request
Creates a value of ImportInstance
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ImportInstance Source
See: importInstance
smart constructor.
Request Lenses
iiLaunchSpecification :: Lens' ImportInstance (Maybe ImportInstanceLaunchSpecification) Source
The launch specification.
iiDiskImages :: Lens' ImportInstance [DiskImage] Source
The disk image.
iiDryRun :: Lens' ImportInstance (Maybe Bool) Source
Checks whether you have the required permissions for the action, without
actually making the request, and provides an error response. If you have
the required permissions, the error response is DryRunOperation
.
Otherwise, it is UnauthorizedOperation
.
iiDescription :: Lens' ImportInstance (Maybe Text) Source
A description for the instance being imported.
iiPlatform :: Lens' ImportInstance PlatformValues Source
The instance operating system.
Destructuring the Response
Creates a value of ImportInstanceResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ImportInstanceResponse Source
See: importInstanceResponse
smart constructor.
Response Lenses
iirsConversionTask :: Lens' ImportInstanceResponse (Maybe ConversionTask) Source
Information about the conversion task.
iirsStatus :: Lens' ImportInstanceResponse Int Source
The response status code.