Module Smaws_Client_WorkSpaces.CopyWorkspaceImage

Copies the specified image from the specified Region to the current Region. For more information about copying images, see Copy a Custom WorkSpaces Image.

In the China (Ningxia) Region, you can copy images only within the same Region.

In Amazon Web Services GovCloud (US), to copy images to and from other Regions, contact Amazon Web Services Support.

Before copying a shared image, be sure to verify that it has been shared from the correct Amazon Web Services account. To determine if an image has been shared and to see the ID of the Amazon Web Services account that owns an image, use the DescribeWorkSpaceImages and DescribeWorkspaceImagePermissions API operations.

val error_to_string : [ Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `InvalidParameterValuesException of Types.invalid_parameter_values_exception | `OperationNotSupportedException of Types.operation_not_supported_exception | `ResourceAlreadyExistsException of Types.resource_already_exists_exception | `ResourceLimitExceededException of Types.resource_limit_exceeded_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `ResourceUnavailableException of Types.resource_unavailable_exception ] -> string
val request : 'http_type Smaws_Lib.Context.t -> Types.copy_workspace_image_request -> (Types.copy_workspace_image_result, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `InvalidParameterValuesException of Types.invalid_parameter_values_exception | `OperationNotSupportedException of Types.operation_not_supported_exception | `ResourceAlreadyExistsException of Types.resource_already_exists_exception | `ResourceLimitExceededException of Types.resource_limit_exceeded_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `ResourceUnavailableException of Types.resource_unavailable_exception ]) Stdlib.result
val request_with_metadata : 'http_type Smaws_Lib.Context.t -> Types.copy_workspace_image_request -> (Types.copy_workspace_image_result Smaws_Lib.Response.t, [> Smaws_Lib.Protocols.AwsJson.error | `AccessDeniedException of Types.access_denied_exception | `InvalidParameterValuesException of Types.invalid_parameter_values_exception | `OperationNotSupportedException of Types.operation_not_supported_exception | `ResourceAlreadyExistsException of Types.resource_already_exists_exception | `ResourceLimitExceededException of Types.resource_limit_exceeded_exception | `ResourceNotFoundException of Types.resource_not_found_exception | `ResourceUnavailableException of Types.resource_unavailable_exception ] * Smaws_Lib.Response.metadata) Stdlib.result