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 |
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.
See: AWS API Reference for ImportVolume.
- importVolume :: Text -> DiskImageDetail -> VolumeDetail -> ImportVolume
- data ImportVolume
- ivDryRun :: Lens' ImportVolume (Maybe Bool)
- ivDescription :: Lens' ImportVolume (Maybe Text)
- ivAvailabilityZone :: Lens' ImportVolume Text
- ivImage :: Lens' ImportVolume DiskImageDetail
- ivVolume :: Lens' ImportVolume VolumeDetail
- importVolumeResponse :: Int -> ImportVolumeResponse
- data ImportVolumeResponse
- ivrsConversionTask :: Lens' ImportVolumeResponse (Maybe ConversionTask)
- ivrsStatus :: 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
See: importVolume
smart constructor.
Request Lenses
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
.
ivDescription :: Lens' ImportVolume (Maybe Text) Source
A description of the volume.
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
See: importVolumeResponse
smart constructor.
Response Lenses
ivrsConversionTask :: Lens' ImportVolumeResponse (Maybe ConversionTask) Source
Information about the conversion task.
ivrsStatus :: Lens' ImportVolumeResponse Int Source
The response status code.