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 volume task using metadata from the specified disk image.
This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage instead. To import a disk to a snapshot, use ImportSnapshot 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 Disks to Amazon EBS 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 ImportVolume = ImportVolume' {}
- newImportVolume :: Text -> DiskImageDetail -> VolumeDetail -> ImportVolume
- importVolume_description :: Lens' ImportVolume (Maybe Text)
- importVolume_dryRun :: Lens' ImportVolume (Maybe Bool)
- importVolume_availabilityZone :: Lens' ImportVolume Text
- importVolume_image :: Lens' ImportVolume DiskImageDetail
- importVolume_volume :: Lens' ImportVolume VolumeDetail
- data ImportVolumeResponse = ImportVolumeResponse' {}
- newImportVolumeResponse :: Int -> ImportVolumeResponse
- importVolumeResponse_conversionTask :: Lens' ImportVolumeResponse (Maybe ConversionTask)
- importVolumeResponse_httpStatus :: Lens' ImportVolumeResponse Int
Creating a Request
data ImportVolume Source #
See: newImportVolume
smart constructor.
ImportVolume' | |
|
Instances
Create a value of ImportVolume
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:
ImportVolume
, importVolume_description
- A description of the volume.
$sel:dryRun:ImportVolume'
, importVolume_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
.
ImportVolume
, importVolume_availabilityZone
- The Availability Zone for the resulting EBS volume.
ImportVolume
, importVolume_image
- The disk image.
ImportVolume
, importVolume_volume
- The volume size.
Request Lenses
importVolume_description :: Lens' ImportVolume (Maybe Text) Source #
A description of the volume.
importVolume_dryRun :: Lens' ImportVolume (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
.
importVolume_availabilityZone :: Lens' ImportVolume Text Source #
The Availability Zone for the resulting EBS volume.
importVolume_image :: Lens' ImportVolume DiskImageDetail Source #
The disk image.
importVolume_volume :: Lens' ImportVolume VolumeDetail Source #
The volume size.
Destructuring the Response
data ImportVolumeResponse Source #
See: newImportVolumeResponse
smart constructor.
ImportVolumeResponse' | |
|
Instances
newImportVolumeResponse Source #
Create a value of ImportVolumeResponse
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:ImportVolumeResponse'
, importVolumeResponse_conversionTask
- Information about the conversion task.
$sel:httpStatus:ImportVolumeResponse'
, importVolumeResponse_httpStatus
- The response's http status code.
Response Lenses
importVolumeResponse_conversionTask :: Lens' ImportVolumeResponse (Maybe ConversionTask) Source #
Information about the conversion task.
importVolumeResponse_httpStatus :: Lens' ImportVolumeResponse Int Source #
The response's http status code.