create_model_import_job
¶
create_model_import_job(
job_name: JobName,
imported_model_name: ImportedModelName,
role_arn: RoleArn,
model_data_source: ModelDataSource,
*,
config_overrides: Optional[BedrockClientConfig] = None,
job_tags: Optional[TagList] = None,
imported_model_tags: Optional[TagList] = None,
client_request_token: Optional[IdempotencyToken] = None,
vpc_config: Optional[VpcConfig] = None,
imported_model_kms_key_id: Optional[KmsKeyId] = None,
) -> CreateModelImportJobResponse
Creates a model import job to import model that you have customized in other environments, such as Amazon SageMaker. For more information, see Import a customized model
Parameters:
-
job_name(JobName) –The name of the import job.
-
imported_model_name(ImportedModelName) –The name of the imported model.
-
role_arn(RoleArn) –The Amazon Resource Name (ARN) of the model import job.
-
model_data_source(ModelDataSource) –The data source for the imported model.
-
job_tags(Optional[TagList], default:None) –Tags to attach to this import job.
-
imported_model_tags(Optional[TagList], default:None) –Tags to attach to the imported model.
-
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.
-
vpc_config(Optional[VpcConfig], default:None) –VPC configuration parameters for the private Virtual Private Cloud (VPC) that contains the resources you are using for the import job.
-
imported_model_kms_key_id(Optional[KmsKeyId], default:None) –The imported model is encrypted at rest using this key.
Raises:
-
AccessDeniedException–The request is denied because of missing access permissions.
-
ConflictException–Error occurred because of a conflict while performing an operation.
-
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.
-
ServiceQuotaExceededException–The number of requests exceeds the service quota. Resubmit your request later.
-
ThrottlingException–The number of requests exceeds the limit. Resubmit your request later.
-
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.
-
ValidationException–Input validation failed. Check your request parameters and retry the request.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_bedrock/_services/bedrock.py
6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 | |