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
863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 | |