Smaws_Client_SageMaker.CreateModelPackageCreates a model package that you can use to create SageMaker models or list on Amazon Web Services Marketplace, or a versioned model that is part of a model group. Buyers can subscribe to model packages listed on Amazon Web Services Marketplace to create models in SageMaker.
To create a model package by specifying a Docker container that contains your inference code and the Amazon S3 location of your model artifacts, provide values for InferenceSpecification. To create a model from an algorithm resource that you created or subscribed to in Amazon Web Services Marketplace, provide a value for SourceAlgorithmSpecification.
There are two types of model packages:
val error_to_string :
[ Smaws_Lib.Protocols.AwsJson.error
| `ConflictException of Types.conflict_exception
| `ResourceLimitExceeded of Types.resource_limit_exceeded ] ->
stringval request :
'http_type Smaws_Lib.Context.t ->
Types.create_model_package_input ->
(Types.create_model_package_output,
[> Smaws_Lib.Protocols.AwsJson.error
| `ConflictException of Types.conflict_exception
| `ResourceLimitExceeded of Types.resource_limit_exceeded ])
Stdlib.resultval request_with_metadata :
'http_type Smaws_Lib.Context.t ->
Types.create_model_package_input ->
(Types.create_model_package_output Smaws_Lib.Response.t,
[> Smaws_Lib.Protocols.AwsJson.error
| `ConflictException of Types.conflict_exception
| `ResourceLimitExceeded of Types.resource_limit_exceeded ]
* Smaws_Lib.Response.metadata)
Stdlib.result