create_model_copy_job
¶
create_model_copy_job(
source_model_arn: ModelArn,
target_model_name: CustomModelName,
*,
config_overrides: Optional[BedrockClientConfig] = 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/bedrock.py
5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 | |