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
5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 | |