Initiates the copy of an AMI from the specified source region to the region in which the request was made. 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 Cloud User Guide .
 Declaration Syntax
 Declaration Syntax| C# | 
CopyImageResponse CopyImage( CopyImageRequest request )
 Parameters
 Parameters- request (CopyImageRequest)
- Copy Image request
 Return Value
 Return ValueCopy Image response from the service
 Exceptions
 Exceptions| Exception | Condition | 
|---|---|
| WebException | |
| AmazonEC2Exception |