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 volume task using metadata from the specified disk image. After importing the image, you then upload it using the 'ec2-import-volume' command in the Amazon EC2 command-line interface (CLI) 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.
For information about the import manifest referenced by this API action, see VM Import Manifest.
- importVolume :: Text -> DiskImageDetail -> VolumeDetail -> ImportVolume
- data ImportVolume
- ivDescription :: Lens' ImportVolume (Maybe Text)
- ivDryRun :: Lens' ImportVolume (Maybe Bool)
- ivAvailabilityZone :: Lens' ImportVolume Text
- ivImage :: Lens' ImportVolume DiskImageDetail
- ivVolume :: Lens' ImportVolume VolumeDetail
- importVolumeResponse :: Int -> ImportVolumeResponse
- data ImportVolumeResponse
- ivrsConversionTask :: Lens' ImportVolumeResponse (Maybe ConversionTask)
- ivrsResponseStatus :: Lens' ImportVolumeResponse Int
Creating a Request
Creates a value of ImportVolume
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ImportVolume Source #
Contains the parameters for ImportVolume.
See: importVolume
smart constructor.
Request Lenses
ivDescription :: Lens' ImportVolume (Maybe Text) Source #
A description of the volume.
ivDryRun :: 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
.
ivAvailabilityZone :: Lens' ImportVolume Text Source #
The Availability Zone for the resulting EBS volume.
ivImage :: Lens' ImportVolume DiskImageDetail Source #
The disk image.
ivVolume :: Lens' ImportVolume VolumeDetail Source #
The volume size.
Destructuring the Response
Creates a value of ImportVolumeResponse
with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
data ImportVolumeResponse Source #
Contains the output for ImportVolume.
See: importVolumeResponse
smart constructor.
Response Lenses
ivrsConversionTask :: Lens' ImportVolumeResponse (Maybe ConversionTask) Source #
Information about the conversion task.
ivrsResponseStatus :: Lens' ImportVolumeResponse Int Source #
The response status code.