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
6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 | |