amazonka-ec2-0.3.1: Amazon Elastic Compute Cloud SDK.

Safe HaskellNone
LanguageHaskell2010

Network.AWS.EC2.CopyImage

Contents

Description

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

Synopsis

Request

data CopyImage Source

Instances

Eq CopyImage 
Ord CopyImage 
Read CopyImage 
Show CopyImage 
AWSRequest CopyImage 
ToQuery CopyImage 
ToPath CopyImage 
ToHeaders CopyImage 
type Sv CopyImage = EC2 
type Rs CopyImage = CopyImageResponse 

Request constructor

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.

ciName :: Lens' CopyImage Text Source

The name of 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

Response constructor

copyImageResponse :: CopyImageResponse Source

CopyImageResponse constructor.

The fields accessible through corresponding lenses are:

Response lenses

cir1ImageId :: Lens' CopyImageResponse (Maybe Text) Source

The ID of the new AMI.