Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates an import instance task using metadata from the specified disk image.
This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage instead.
This API action is not supported by the Command Line Interface (CLI). For information about using the Amazon EC2 CLI, which is deprecated, see Importing a VM to Amazon EC2 in the Amazon EC2 CLI Reference PDF file.
For information about the import manifest referenced by this API action, see VM Import Manifest.
Synopsis
- data ImportInstance = ImportInstance' {}
- newImportInstance :: PlatformValues -> ImportInstance
- importInstance_description :: Lens' ImportInstance (Maybe Text)
- importInstance_diskImages :: Lens' ImportInstance (Maybe [DiskImage])
- importInstance_dryRun :: Lens' ImportInstance (Maybe Bool)
- importInstance_launchSpecification :: Lens' ImportInstance (Maybe ImportInstanceLaunchSpecification)
- importInstance_platform :: Lens' ImportInstance PlatformValues
- data ImportInstanceResponse = ImportInstanceResponse' {}
- newImportInstanceResponse :: Int -> ImportInstanceResponse
- importInstanceResponse_conversionTask :: Lens' ImportInstanceResponse (Maybe ConversionTask)
- importInstanceResponse_httpStatus :: Lens' ImportInstanceResponse Int
Creating a Request
data ImportInstance Source #
See: newImportInstance
smart constructor.
ImportInstance' | |
|
Instances
Create a value of ImportInstance
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ImportInstance
, importInstance_description
- A description for the instance being imported.
$sel:diskImages:ImportInstance'
, importInstance_diskImages
- The disk image.
$sel:dryRun:ImportInstance'
, importInstance_dryRun
- 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
.
ImportInstance
, importInstance_launchSpecification
- The launch specification.
ImportInstance
, importInstance_platform
- The instance operating system.
Request Lenses
importInstance_description :: Lens' ImportInstance (Maybe Text) Source #
A description for the instance being imported.
importInstance_diskImages :: Lens' ImportInstance (Maybe [DiskImage]) Source #
The disk image.
importInstance_dryRun :: 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
.
importInstance_launchSpecification :: Lens' ImportInstance (Maybe ImportInstanceLaunchSpecification) Source #
The launch specification.
importInstance_platform :: Lens' ImportInstance PlatformValues Source #
The instance operating system.
Destructuring the Response
data ImportInstanceResponse Source #
See: newImportInstanceResponse
smart constructor.
ImportInstanceResponse' | |
|
Instances
newImportInstanceResponse Source #
Create a value of ImportInstanceResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:conversionTask:ImportInstanceResponse'
, importInstanceResponse_conversionTask
- Information about the conversion task.
$sel:httpStatus:ImportInstanceResponse'
, importInstanceResponse_httpStatus
- The response's http status code.
Response Lenses
importInstanceResponse_conversionTask :: Lens' ImportInstanceResponse (Maybe ConversionTask) Source #
Information about the conversion task.
importInstanceResponse_httpStatus :: Lens' ImportInstanceResponse Int Source #
The response's http status code.