Copyright | (c) 2013-2016 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
. For more information, see Importing a Virtual Machine Using the Amazon EC2 CLI .
For information about the import manifest referenced by this API action, see VM Import Manifest .
- importInstance :: PlatformValues -> ImportInstance
- data ImportInstance
- iiLaunchSpecification :: Lens' ImportInstance (Maybe ImportInstanceLaunchSpecification)
- iiDiskImages :: Lens' ImportInstance [DiskImage]
- iiDescription :: Lens' ImportInstance (Maybe Text)
- iiDryRun :: Lens' ImportInstance (Maybe Bool)
- iiPlatform :: Lens' ImportInstance PlatformValues
- importInstanceResponse :: Int -> ImportInstanceResponse
- data ImportInstanceResponse
- iirsConversionTask :: Lens' ImportInstanceResponse (Maybe ConversionTask)
- iirsResponseStatus :: 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:
iiLaunchSpecification
- The launch specification.iiDiskImages
- The disk image.iiDescription
- A description for the instance being imported.iiDryRun
- 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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.iiPlatform
- The instance operating system.
data ImportInstance Source #
Contains the parameters for ImportInstance.
See: importInstance
smart constructor.
Request Lenses
iiLaunchSpecification :: Lens' ImportInstance (Maybe ImportInstanceLaunchSpecification) Source #
The launch specification.
iiDiskImages :: Lens' ImportInstance [DiskImage] Source #
The disk image.
iiDescription :: Lens' ImportInstance (Maybe Text) Source #
A description for the instance being imported.
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
.
iiPlatform :: Lens' ImportInstance PlatformValues Source #
The instance operating system.
Destructuring the Response
importInstanceResponse Source #
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:
iirsConversionTask
- Information about the conversion task.iirsResponseStatus
- -- | The response status code.
data ImportInstanceResponse Source #
Contains the output for ImportInstance.
See: importInstanceResponse
smart constructor.
Response Lenses
iirsConversionTask :: Lens' ImportInstanceResponse (Maybe ConversionTask) Source #
Information about the conversion task.
iirsResponseStatus :: Lens' ImportInstanceResponse Int Source #
- - | The response status code.