create_model_copy_job
async
¶
create_model_copy_job(
source_model_arn: ModelArn,
target_model_name: CustomModelName,
*,
config_overrides: Optional[AsyncBedrockClientConfig] = None,
model_kms_key_id: Optional[KmsKeyId] = None,
target_model_tags: Optional[TagList] = None,
client_request_token: Optional[IdempotencyToken] = None,
) -> CreateModelCopyJobResponse
Copies a model to another region so that it can be used there. For more information, see Copy models to be used in other regions in the Amazon Bedrock User Guide.
Parameters:
-
source_model_arn(ModelArn) –The Amazon Resource Name (ARN) of the model to be copied.
-
target_model_name(CustomModelName) –A name for the copied model.
-
model_kms_key_id(Optional[KmsKeyId], default:None) –The ARN of the KMS key that you use to encrypt the model copy.
-
target_model_tags(Optional[TagList], default:None) –Tags to associate with the target model. For more information, see Tag resources in the Amazon Bedrock User Guide.
-
client_request_token(Optional[IdempotencyToken], default:None) –A unique, case-sensitive identifier to ensure that the API request completes no more than one time. If this token matches a previous request, Amazon Bedrock ignores the request, but does not return an error. For more information, see Ensuring idempotency.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
InternalServerException–An internal server error occurred. Retry your request.
-
ResourceNotFoundException–The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.
-
TooManyTagsException–The request contains more tags than can be associated with a resource (50 tags per resource). The maximum number of tags includes both existing tags and those included in your current request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock/_services/async_bedrock.py
5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 | |