copy_image
async
¶
copy_image(
*,
config_overrides: Optional[AsyncAppStreamClientConfig] = None,
source_image_name: Optional[Name] = None,
destination_image_name: Optional[Name] = None,
destination_region: Optional[RegionName] = None,
destination_image_description: Optional[Description] = None,
) -> CopyImageResponse
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.
Parameters:
-
source_image_name(Optional[Name], default:None) –The name of the image to copy.
-
destination_image_name(Optional[Name], default:None) –The name that the image will have when it is copied to the destination.
-
destination_region(Optional[RegionName], default:None) –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.
-
destination_image_description(Optional[Description], default:None) –The description that the image will have when it is copied to the destination.
Raises:
-
IncompatibleImageException–The image can't be updated because it's not compatible for updates.
-
InvalidAccountStatusException–The resource cannot be created because your AWS account is suspended. For assistance, contact AWS Support.
-
LimitExceededException–The requested limit exceeds the permitted limit for an account.
-
ResourceAlreadyExistsException–The specified resource already exists.
-
ResourceNotAvailableException–The specified resource exists and is not in use, but isn't available.
-
ResourceNotFoundException–The specified resource was not found.
-
UnknownServiceError–The service returned an error code this client does not model.