Smaws_Client_ServiceCatalog.CopyProductCopies the specified source product to the specified target product or a new product.
You can copy a product to the same account or another account. You can copy a product to the same Region or another Region. If you copy a product to another account, you must first share the product in a portfolio using CreatePortfolioShare.
This operation is performed asynchronously. To track the progress of the operation, use DescribeCopyProductStatus.
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `InvalidParametersException of Types.invalid_parameters_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.copy_product_input ->
(Types.copy_product_output,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidParametersException of Types.invalid_parameters_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.copy_product_input ->
(Types.copy_product_output Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `InvalidParametersException of Types.invalid_parameters_exception
| `ResourceNotFoundException of Types.resource_not_found_exception ]
* Smaws_Lib.Response.metadata)
Stdlib.result