public static interface ModelPackageContainerDefinition.Builder extends SdkPojo, CopyableBuilder<ModelPackageContainerDefinition.Builder,ModelPackageContainerDefinition>
| Modifier and Type | Method and Description |
|---|---|
ModelPackageContainerDefinition.Builder |
containerHostname(String containerHostname)
The DNS host name for the Docker container.
|
ModelPackageContainerDefinition.Builder |
environment(Map<String,String> environment)
The environment variables to set in the Docker container.
|
ModelPackageContainerDefinition.Builder |
framework(String framework)
The machine learning framework of the model package container image.
|
ModelPackageContainerDefinition.Builder |
frameworkVersion(String frameworkVersion)
The framework version of the Model Package Container Image.
|
ModelPackageContainerDefinition.Builder |
image(String image)
The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.
|
ModelPackageContainerDefinition.Builder |
imageDigest(String imageDigest)
An MD5 hash of the training algorithm that identifies the Docker image used for training.
|
ModelPackageContainerDefinition.Builder |
modelDataUrl(String modelDataUrl)
The Amazon S3 path where the model artifacts, which result from model training, are stored.
|
default ModelPackageContainerDefinition.Builder |
modelInput(Consumer<ModelInput.Builder> modelInput)
A structure with Model Input details.
|
ModelPackageContainerDefinition.Builder |
modelInput(ModelInput modelInput)
A structure with Model Input details.
|
ModelPackageContainerDefinition.Builder |
nearestModelName(String nearestModelName)
The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that
matches your model.
|
ModelPackageContainerDefinition.Builder |
productId(String productId)
The Amazon Web Services Marketplace product ID of the model package.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildModelPackageContainerDefinition.Builder containerHostname(String containerHostname)
The DNS host name for the Docker container.
containerHostname - The DNS host name for the Docker container.ModelPackageContainerDefinition.Builder image(String image)
The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.
If you are using your own custom algorithm instead of an algorithm provided by SageMaker, the inference code
must meet SageMaker requirements. SageMaker supports both registry/repository[:tag] and
registry/repository[@digest] image path formats. For more information, see Using Your Own Algorithms with
Amazon SageMaker.
image - The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.
If you are using your own custom algorithm instead of an algorithm provided by SageMaker, the
inference code must meet SageMaker requirements. SageMaker supports both
registry/repository[:tag] and registry/repository[@digest] image path
formats. For more information, see Using Your Own Algorithms
with Amazon SageMaker.
ModelPackageContainerDefinition.Builder imageDigest(String imageDigest)
An MD5 hash of the training algorithm that identifies the Docker image used for training.
imageDigest - An MD5 hash of the training algorithm that identifies the Docker image used for training.ModelPackageContainerDefinition.Builder modelDataUrl(String modelDataUrl)
The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must
point to a single gzip compressed tar archive (.tar.gz suffix).
The model artifacts must be in an S3 bucket that is in the same region as the model package.
modelDataUrl - The Amazon S3 path where the model artifacts, which result from model training, are stored. This path
must point to a single gzip compressed tar archive (.tar.gz suffix).
The model artifacts must be in an S3 bucket that is in the same region as the model package.
ModelPackageContainerDefinition.Builder productId(String productId)
The Amazon Web Services Marketplace product ID of the model package.
productId - The Amazon Web Services Marketplace product ID of the model package.ModelPackageContainerDefinition.Builder environment(Map<String,String> environment)
The environment variables to set in the Docker container. Each key and value in the Environment
string to string map can have length of up to 1024. We support up to 16 entries in the map.
environment - The environment variables to set in the Docker container. Each key and value in the
Environment string to string map can have length of up to 1024. We support up to 16
entries in the map.ModelPackageContainerDefinition.Builder modelInput(ModelInput modelInput)
A structure with Model Input details.
modelInput - A structure with Model Input details.default ModelPackageContainerDefinition.Builder modelInput(Consumer<ModelInput.Builder> modelInput)
A structure with Model Input details.
This is a convenience method that creates an instance of theModelInput.Builder avoiding the need to
create one manually via ModelInput.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result
is passed to modelInput(ModelInput).
modelInput - a consumer that will call methods on ModelInput.BuildermodelInput(ModelInput)ModelPackageContainerDefinition.Builder framework(String framework)
The machine learning framework of the model package container image.
framework - The machine learning framework of the model package container image.ModelPackageContainerDefinition.Builder frameworkVersion(String frameworkVersion)
The framework version of the Model Package Container Image.
frameworkVersion - The framework version of the Model Package Container Image.ModelPackageContainerDefinition.Builder nearestModelName(String nearestModelName)
The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that
matches your model. You can find a list of benchmarked models by calling ListModelMetadata.
nearestModelName - The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model
that matches your model. You can find a list of benchmarked models by calling
ListModelMetadata.Copyright © 2023. All rights reserved.