AppStream.Client.
copy_image
(**kwargs)¶Copies the image within the same region or to a new region within the same AWS account. Note that any tags you added to the image will not be copied.
See also: AWS API Documentation
Request Syntax
response = client.copy_image(
SourceImageName='string',
DestinationImageName='string',
DestinationRegion='string',
DestinationImageDescription='string'
)
[REQUIRED]
The name of the image to copy.
[REQUIRED]
The name that the image will have when it is copied to the destination.
[REQUIRED]
The destination region to which the image will be copied. This parameter is required, even if you are copying an image within the same region.
dict
Response Syntax
{
'DestinationImageName': 'string'
}
Response Structure
(dict) --
DestinationImageName (string) --
The name of the destination image.
Exceptions
AppStream.Client.exceptions.ResourceAlreadyExistsException
AppStream.Client.exceptions.ResourceNotFoundException
AppStream.Client.exceptions.ResourceNotAvailableException
AppStream.Client.exceptions.LimitExceededException
AppStream.Client.exceptions.InvalidAccountStatusException
AppStream.Client.exceptions.IncompatibleImageException