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
5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 | |