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.
Source code in docs_src/capo_appstream/_services/async_app_stream.py
930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 | |