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 |
Import single or multi-volume disk images or EBS snapshots into an Amazon Machine Image (AMI).
See: AWS API Reference for ImportImage.
- importImage :: ImportImage
- data ImportImage
- impHypervisor :: Lens' ImportImage (Maybe Text)
- impPlatform :: Lens' ImportImage (Maybe Text)
- impClientToken :: Lens' ImportImage (Maybe Text)
- impLicenseType :: Lens' ImportImage (Maybe Text)
- impRoleName :: Lens' ImportImage (Maybe Text)
- impArchitecture :: Lens' ImportImage (Maybe Text)
- impDescription :: Lens' ImportImage (Maybe Text)
- impDryRun :: Lens' ImportImage (Maybe Bool)
- impClientData :: Lens' ImportImage (Maybe ClientData)
- impDiskContainers :: Lens' ImportImage [ImageDiskContainer]
- importImageResponse :: Int -> ImportImageResponse
- data ImportImageResponse
- irsStatus :: Lens' ImportImageResponse (Maybe Text)
- irsHypervisor :: Lens' ImportImageResponse (Maybe Text)
- irsPlatform :: Lens' ImportImageResponse (Maybe Text)
- irsProgress :: Lens' ImportImageResponse (Maybe Text)
- irsLicenseType :: Lens' ImportImageResponse (Maybe Text)
- irsSnapshotDetails :: Lens' ImportImageResponse [SnapshotDetail]
- irsStatusMessage :: Lens' ImportImageResponse (Maybe Text)
- irsImageId :: Lens' ImportImageResponse (Maybe Text)
- irsImportTaskId :: Lens' ImportImageResponse (Maybe Text)
- irsArchitecture :: Lens' ImportImageResponse (Maybe Text)
- irsDescription :: Lens' ImportImageResponse (Maybe Text)
- irsResponseStatus :: Lens' ImportImageResponse Int
Creating a Request
importImage :: ImportImage Source
Creates a value of ImportImage
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ImportImage Source
See: importImage
smart constructor.
Request Lenses
impHypervisor :: Lens' ImportImage (Maybe Text) Source
The target hypervisor platform.
Valid values: xen
impPlatform :: Lens' ImportImage (Maybe Text) Source
The operating system of the virtual machine.
Valid values: Windows
| Linux
impClientToken :: Lens' ImportImage (Maybe Text) Source
The token to enable idempotency for VM import requests.
impLicenseType :: Lens' ImportImage (Maybe Text) Source
The license type to be used for the Amazon Machine Image (AMI) after importing.
Note: You may only use BYOL if you have existing licenses with rights to use these licenses in a third party cloud like AWS. For more information, see VM Import/Export Prerequisites in the Amazon Elastic Compute Cloud User Guide.
Valid values: AWS
| BYOL
impRoleName :: Lens' ImportImage (Maybe Text) Source
The name of the role to use when not using the default role, 'vmimport'.
impArchitecture :: Lens' ImportImage (Maybe Text) Source
The architecture of the virtual machine.
Valid values: i386
| x86_64
impDescription :: Lens' ImportImage (Maybe Text) Source
A description string for the import image task.
impDryRun :: Lens' ImportImage (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
.
impClientData :: Lens' ImportImage (Maybe ClientData) Source
The client-specific data.
impDiskContainers :: Lens' ImportImage [ImageDiskContainer] Source
Information about the disk containers.
Destructuring the Response
Creates a value of ImportImageResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ImportImageResponse Source
See: importImageResponse
smart constructor.
Response Lenses
irsHypervisor :: Lens' ImportImageResponse (Maybe Text) Source
The target hypervisor of the import task.
irsPlatform :: Lens' ImportImageResponse (Maybe Text) Source
The operating system of the virtual machine.
irsProgress :: Lens' ImportImageResponse (Maybe Text) Source
The progress of the task.
irsLicenseType :: Lens' ImportImageResponse (Maybe Text) Source
The license type of the virtual machine.
irsSnapshotDetails :: Lens' ImportImageResponse [SnapshotDetail] Source
Information about the snapshots.
irsStatusMessage :: Lens' ImportImageResponse (Maybe Text) Source
A detailed status message of the import task.
irsImageId :: Lens' ImportImageResponse (Maybe Text) Source
The ID of the Amazon Machine Image (AMI) created by the import task.
irsImportTaskId :: Lens' ImportImageResponse (Maybe Text) Source
The task ID of the import image task.
irsArchitecture :: Lens' ImportImageResponse (Maybe Text) Source
The architecture of the virtual machine.
irsDescription :: Lens' ImportImageResponse (Maybe Text) Source
A description of the import task.
irsResponseStatus :: Lens' ImportImageResponse Int Source
The response status code.