create_model_import_job
async
¶
create_model_import_job(
job_name: JobName,
imported_model_name: ImportedModelName,
role_arn: RoleArn,
model_data_source: ModelDataSource,
*,
config_overrides: Optional[AsyncBedrockClientConfig] = 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/async_bedrock.py
6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 | |