Safe Haskell | None |
---|---|
Language | Haskell2010 |
Initiates the copy of an AMI from the specified source region to the current region. You specify the destination region by using its endpoint when making the request. AMIs that use encrypted Amazon EBS snapshots cannot be copied with this method.
For more information, see Copying AMIs in the Amazon Elastic Compute CloudUser Guide for Linux.
http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-CopyImage.html
- data CopyImage
- copyImage :: Text -> Text -> Text -> CopyImage
- ciClientToken :: Lens' CopyImage (Maybe Text)
- ciDescription :: Lens' CopyImage (Maybe Text)
- ciDryRun :: Lens' CopyImage (Maybe Bool)
- ciName :: Lens' CopyImage Text
- ciSourceImageId :: Lens' CopyImage Text
- ciSourceRegion :: Lens' CopyImage Text
- data CopyImageResponse
- copyImageResponse :: CopyImageResponse
- cir1ImageId :: Lens' CopyImageResponse (Maybe Text)
Request
Request constructor
CopyImage
constructor.
The fields accessible through corresponding lenses are:
ciClientToken
::
Maybe
Text
ciDescription
::
Maybe
Text
ciDryRun
::
Maybe
Bool
ciName
::
Text
ciSourceImageId
::
Text
ciSourceRegion
::
Text
Request lenses
ciClientToken :: Lens' CopyImage (Maybe Text) Source
Unique, case-sensitive identifier you provide to ensure idempotency of the request. For more information, see How to Ensure Idempotency in the AmazonElastic Compute Cloud User Guide for Linux.
ciDescription :: Lens' CopyImage (Maybe Text) Source
A description for the new AMI in the destination region.
ciSourceImageId :: Lens' CopyImage Text Source
The ID of the AMI to copy.
ciSourceRegion :: Lens' CopyImage Text Source
The name of the region that contains the AMI to copy.
Response
data CopyImageResponse Source
Response constructor
copyImageResponse :: CopyImageResponse Source
CopyImageResponse
constructor.
The fields accessible through corresponding lenses are:
cir1ImageId
::
Maybe
Text
Response lenses
cir1ImageId :: Lens' CopyImageResponse (Maybe Text) Source
The ID of the new AMI.