Copyright | (c) 2013-2018 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@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.For more information, see Importing Disks to Amazon EBS .
For information about the import manifest referenced by this API action, see VM Import Manifest .
Synopsis
- 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:
ivDescription
- A description of the volume.ivDryRun
- 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 isDryRunOperation
. Otherwise, it isUnauthorizedOperation
.ivAvailabilityZone
- The Availability Zone for the resulting EBS volume.ivImage
- The disk image.ivVolume
- The volume size.
data ImportVolume Source #
Contains the parameters for ImportVolume.
See: importVolume
smart constructor.
Instances
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:
ivrsConversionTask
- Information about the conversion task.ivrsResponseStatus
- -- | The response status code.
data ImportVolumeResponse Source #
Contains the output for ImportVolume.
See: importVolumeResponse
smart constructor.
Instances
Response Lenses
ivrsConversionTask :: Lens' ImportVolumeResponse (Maybe ConversionTask) Source #
Information about the conversion task.
ivrsResponseStatus :: Lens' ImportVolumeResponse Int Source #
- - | The response status code.