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
6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 | |