Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Creates 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:
- Versioned - a model that is part of a model group in the model registry.
- Unversioned - a model package that is not part of a model group.
Synopsis
- data CreateModelPackage = CreateModelPackage' {
- additionalInferenceSpecifications :: Maybe (NonEmpty AdditionalInferenceSpecificationDefinition)
- certifyForMarketplace :: Maybe Bool
- clientToken :: Maybe Text
- customerMetadataProperties :: Maybe (HashMap Text Text)
- domain :: Maybe Text
- driftCheckBaselines :: Maybe DriftCheckBaselines
- inferenceSpecification :: Maybe InferenceSpecification
- metadataProperties :: Maybe MetadataProperties
- modelApprovalStatus :: Maybe ModelApprovalStatus
- modelMetrics :: Maybe ModelMetrics
- modelPackageDescription :: Maybe Text
- modelPackageGroupName :: Maybe Text
- modelPackageName :: Maybe Text
- samplePayloadUrl :: Maybe Text
- sourceAlgorithmSpecification :: Maybe SourceAlgorithmSpecification
- tags :: Maybe [Tag]
- task :: Maybe Text
- validationSpecification :: Maybe ModelPackageValidationSpecification
- newCreateModelPackage :: CreateModelPackage
- createModelPackage_additionalInferenceSpecifications :: Lens' CreateModelPackage (Maybe (NonEmpty AdditionalInferenceSpecificationDefinition))
- createModelPackage_certifyForMarketplace :: Lens' CreateModelPackage (Maybe Bool)
- createModelPackage_clientToken :: Lens' CreateModelPackage (Maybe Text)
- createModelPackage_customerMetadataProperties :: Lens' CreateModelPackage (Maybe (HashMap Text Text))
- createModelPackage_domain :: Lens' CreateModelPackage (Maybe Text)
- createModelPackage_driftCheckBaselines :: Lens' CreateModelPackage (Maybe DriftCheckBaselines)
- createModelPackage_inferenceSpecification :: Lens' CreateModelPackage (Maybe InferenceSpecification)
- createModelPackage_metadataProperties :: Lens' CreateModelPackage (Maybe MetadataProperties)
- createModelPackage_modelApprovalStatus :: Lens' CreateModelPackage (Maybe ModelApprovalStatus)
- createModelPackage_modelMetrics :: Lens' CreateModelPackage (Maybe ModelMetrics)
- createModelPackage_modelPackageDescription :: Lens' CreateModelPackage (Maybe Text)
- createModelPackage_modelPackageGroupName :: Lens' CreateModelPackage (Maybe Text)
- createModelPackage_modelPackageName :: Lens' CreateModelPackage (Maybe Text)
- createModelPackage_samplePayloadUrl :: Lens' CreateModelPackage (Maybe Text)
- createModelPackage_sourceAlgorithmSpecification :: Lens' CreateModelPackage (Maybe SourceAlgorithmSpecification)
- createModelPackage_tags :: Lens' CreateModelPackage (Maybe [Tag])
- createModelPackage_task :: Lens' CreateModelPackage (Maybe Text)
- createModelPackage_validationSpecification :: Lens' CreateModelPackage (Maybe ModelPackageValidationSpecification)
- data CreateModelPackageResponse = CreateModelPackageResponse' {
- httpStatus :: Int
- modelPackageArn :: Text
- newCreateModelPackageResponse :: Int -> Text -> CreateModelPackageResponse
- createModelPackageResponse_httpStatus :: Lens' CreateModelPackageResponse Int
- createModelPackageResponse_modelPackageArn :: Lens' CreateModelPackageResponse Text
Creating a Request
data CreateModelPackage Source #
See: newCreateModelPackage
smart constructor.
CreateModelPackage' | |
|
Instances
newCreateModelPackage :: CreateModelPackage Source #
Create a value of CreateModelPackage
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateModelPackage
, createModelPackage_additionalInferenceSpecifications
- An array of additional Inference Specification objects. Each additional
Inference Specification specifies artifacts based on this model package
that can be used on inference endpoints. Generally used with SageMaker
Neo to store the compiled artifacts.
CreateModelPackage
, createModelPackage_certifyForMarketplace
- Whether to certify the model package for listing on Amazon Web Services
Marketplace.
This parameter is optional for unversioned models, and does not apply to versioned models.
$sel:clientToken:CreateModelPackage'
, createModelPackage_clientToken
- A unique token that guarantees that the call to this API is idempotent.
CreateModelPackage
, createModelPackage_customerMetadataProperties
- The metadata properties associated with the model package versions.
CreateModelPackage
, createModelPackage_domain
- The machine learning domain of your model package and its components.
Common machine learning domains include computer vision and natural
language processing.
CreateModelPackage
, createModelPackage_driftCheckBaselines
- Represents the drift check baselines that can be used when the model
monitor is set using the model package. For more information, see the
topic on
Drift Detection against Previous Baselines in SageMaker Pipelines
in the Amazon SageMaker Developer Guide.
CreateModelPackage
, createModelPackage_inferenceSpecification
- Specifies details about inference jobs that can be run with models based
on this model package, including the following:
- The Amazon ECR paths of containers that contain the inference code and model artifacts.
- The instance types that the model package supports for transform jobs and real-time endpoints used for inference.
- The input and output content formats that the model package supports for inference.
CreateModelPackage
, createModelPackage_metadataProperties
- Undocumented member.
CreateModelPackage
, createModelPackage_modelApprovalStatus
- Whether the model is approved for deployment.
This parameter is optional for versioned models, and does not apply to unversioned models.
For versioned models, the value of this parameter must be set to
Approved
to deploy the model.
CreateModelPackage
, createModelPackage_modelMetrics
- A structure that contains model metrics reports.
CreateModelPackage
, createModelPackage_modelPackageDescription
- A description of the model package.
CreateModelPackage
, createModelPackage_modelPackageGroupName
- The name or Amazon Resource Name (ARN) of the model package group that
this model version belongs to.
This parameter is required for versioned models, and does not apply to unversioned models.
CreateModelPackage
, createModelPackage_modelPackageName
- The name of the model package. The name must have 1 to 63 characters.
Valid characters are a-z, A-Z, 0-9, and - (hyphen).
This parameter is required for unversioned models. It is not applicable to versioned models.
CreateModelPackage
, createModelPackage_samplePayloadUrl
- The Amazon Simple Storage Service (Amazon S3) path where the sample
payload are stored. This path must point to a single gzip compressed tar
archive (.tar.gz suffix).
CreateModelPackage
, createModelPackage_sourceAlgorithmSpecification
- Details about the algorithm that was used to create the model package.
CreateModelPackage
, createModelPackage_tags
- A list of key value pairs associated with the model. For more
information, see
Tagging Amazon Web Services resources
in the Amazon Web Services General Reference Guide.
CreateModelPackage
, createModelPackage_task
- The machine learning task your model package accomplishes. Common
machine learning tasks include object detection and image
classification. The following tasks are supported by Inference
Recommender: "IMAGE_CLASSIFICATION"
| "OBJECT_DETECTION"
|
"TEXT_GENERATION"
|"IMAGE_SEGMENTATION"
| "FILL_MASK"
|
"CLASSIFICATION"
| "REGRESSION"
| "OTHER"
.
Specify "OTHER" if none of the tasks listed fit your use case.
CreateModelPackage
, createModelPackage_validationSpecification
- Specifies configurations for one or more transform jobs that SageMaker
runs to test the model package.
Request Lenses
createModelPackage_additionalInferenceSpecifications :: Lens' CreateModelPackage (Maybe (NonEmpty AdditionalInferenceSpecificationDefinition)) Source #
An array of additional Inference Specification objects. Each additional Inference Specification specifies artifacts based on this model package that can be used on inference endpoints. Generally used with SageMaker Neo to store the compiled artifacts.
createModelPackage_certifyForMarketplace :: Lens' CreateModelPackage (Maybe Bool) Source #
Whether to certify the model package for listing on Amazon Web Services Marketplace.
This parameter is optional for unversioned models, and does not apply to versioned models.
createModelPackage_clientToken :: Lens' CreateModelPackage (Maybe Text) Source #
A unique token that guarantees that the call to this API is idempotent.
createModelPackage_customerMetadataProperties :: Lens' CreateModelPackage (Maybe (HashMap Text Text)) Source #
The metadata properties associated with the model package versions.
createModelPackage_domain :: Lens' CreateModelPackage (Maybe Text) Source #
The machine learning domain of your model package and its components. Common machine learning domains include computer vision and natural language processing.
createModelPackage_driftCheckBaselines :: Lens' CreateModelPackage (Maybe DriftCheckBaselines) Source #
Represents the drift check baselines that can be used when the model monitor is set using the model package. For more information, see the topic on Drift Detection against Previous Baselines in SageMaker Pipelines in the Amazon SageMaker Developer Guide.
createModelPackage_inferenceSpecification :: Lens' CreateModelPackage (Maybe InferenceSpecification) Source #
Specifies details about inference jobs that can be run with models based on this model package, including the following:
- The Amazon ECR paths of containers that contain the inference code and model artifacts.
- The instance types that the model package supports for transform jobs and real-time endpoints used for inference.
- The input and output content formats that the model package supports for inference.
createModelPackage_metadataProperties :: Lens' CreateModelPackage (Maybe MetadataProperties) Source #
Undocumented member.
createModelPackage_modelApprovalStatus :: Lens' CreateModelPackage (Maybe ModelApprovalStatus) Source #
Whether the model is approved for deployment.
This parameter is optional for versioned models, and does not apply to unversioned models.
For versioned models, the value of this parameter must be set to
Approved
to deploy the model.
createModelPackage_modelMetrics :: Lens' CreateModelPackage (Maybe ModelMetrics) Source #
A structure that contains model metrics reports.
createModelPackage_modelPackageDescription :: Lens' CreateModelPackage (Maybe Text) Source #
A description of the model package.
createModelPackage_modelPackageGroupName :: Lens' CreateModelPackage (Maybe Text) Source #
The name or Amazon Resource Name (ARN) of the model package group that this model version belongs to.
This parameter is required for versioned models, and does not apply to unversioned models.
createModelPackage_modelPackageName :: Lens' CreateModelPackage (Maybe Text) Source #
The name of the model package. The name must have 1 to 63 characters. Valid characters are a-z, A-Z, 0-9, and - (hyphen).
This parameter is required for unversioned models. It is not applicable to versioned models.
createModelPackage_samplePayloadUrl :: Lens' CreateModelPackage (Maybe Text) Source #
The Amazon Simple Storage Service (Amazon S3) path where the sample payload are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).
createModelPackage_sourceAlgorithmSpecification :: Lens' CreateModelPackage (Maybe SourceAlgorithmSpecification) Source #
Details about the algorithm that was used to create the model package.
createModelPackage_tags :: Lens' CreateModelPackage (Maybe [Tag]) Source #
A list of key value pairs associated with the model. For more information, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference Guide.
createModelPackage_task :: Lens' CreateModelPackage (Maybe Text) Source #
The machine learning task your model package accomplishes. Common
machine learning tasks include object detection and image
classification. The following tasks are supported by Inference
Recommender: "IMAGE_CLASSIFICATION"
| "OBJECT_DETECTION"
|
"TEXT_GENERATION"
|"IMAGE_SEGMENTATION"
| "FILL_MASK"
|
"CLASSIFICATION"
| "REGRESSION"
| "OTHER"
.
Specify "OTHER" if none of the tasks listed fit your use case.
createModelPackage_validationSpecification :: Lens' CreateModelPackage (Maybe ModelPackageValidationSpecification) Source #
Specifies configurations for one or more transform jobs that SageMaker runs to test the model package.
Destructuring the Response
data CreateModelPackageResponse Source #
See: newCreateModelPackageResponse
smart constructor.
CreateModelPackageResponse' | |
|
Instances
newCreateModelPackageResponse Source #
:: Int | |
-> Text | |
-> CreateModelPackageResponse |
Create a value of CreateModelPackageResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:CreateModelPackageResponse'
, createModelPackageResponse_httpStatus
- The response's http status code.
CreateModelPackageResponse
, createModelPackageResponse_modelPackageArn
- The Amazon Resource Name (ARN) of the new model package.
Response Lenses
createModelPackageResponse_httpStatus :: Lens' CreateModelPackageResponse Int Source #
The response's http status code.
createModelPackageResponse_modelPackageArn :: Lens' CreateModelPackageResponse Text Source #
The Amazon Resource Name (ARN) of the new model package.