copy_product
¶
copy_product(
source_product_arn: ProductArn,
idempotency_token: IdempotencyToken,
*,
config_overrides: Optional[ServiceCatalogClientConfig] = None,
accept_language: Optional[AcceptLanguage] = None,
target_product_id: Optional[Id] = None,
target_product_name: Optional[ProductViewName] = None,
source_provisioning_artifact_identifiers: Optional[
SourceProvisioningArtifactProperties
] = None,
copy_options: Optional[CopyOptions] = None,
) -> CopyProductOutput
Copies 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.
Parameters:
-
accept_language(Optional[AcceptLanguage], default:None) –The language code.
-
jp- Japanese -
zh- Chinese
-
-
source_product_arn(ProductArn) –The Amazon Resource Name (ARN) of the source product.
-
target_product_id(Optional[Id], default:None) –The identifier of the target product. By default, a new product is created.
-
target_product_name(Optional[ProductViewName], default:None) –A name for the target product. The default is the name of the source product.
-
source_provisioning_artifact_identifiers(Optional[SourceProvisioningArtifactProperties], default:None) –The identifiers of the provisioning artifacts (also known as versions) of the product to copy. By default, all provisioning artifacts are copied.
-
copy_options(Optional[CopyOptions], default:None) –The copy options. If the value is
CopyTags, the tags from the source product are copied to the target product. -
idempotency_token(IdempotencyToken) –A unique identifier that you provide to ensure idempotency. If multiple requests differ only by the idempotency token, the same response is returned for each repeated request.
Raises:
-
InvalidParametersException–One or more parameters provided to the operation are not valid.
-
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_service_catalog/_services/service_catalog.py
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 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 | |