public static final class CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder
extends java.lang.Object
CfnModelPackage.ModelPackageContainerDefinitionProperty
Constructor and Description |
---|
Builder() |
public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder image(java.lang.String image)
CfnModelPackage.ModelPackageContainerDefinitionProperty.getImage()
image
- The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored. This parameter is required.
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 .this
public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder containerHostname(java.lang.String containerHostname)
containerHostname
- The DNS host name for the Docker container.this
public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder environment(IResolvable environment)
CfnModelPackage.ModelPackageContainerDefinitionProperty.getEnvironment()
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.this
public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder environment(java.util.Map<java.lang.String,java.lang.String> environment)
CfnModelPackage.ModelPackageContainerDefinitionProperty.getEnvironment()
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.this
public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder framework(java.lang.String framework)
CfnModelPackage.ModelPackageContainerDefinitionProperty.getFramework()
framework
- The machine learning framework of the model package container image.this
public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder frameworkVersion(java.lang.String frameworkVersion)
frameworkVersion
- The framework version of the Model Package Container Image.this
public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder imageDigest(java.lang.String imageDigest)
CfnModelPackage.ModelPackageContainerDefinitionProperty.getImageDigest()
imageDigest
- An MD5 hash of the training algorithm that identifies the Docker image used for training.this
public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder modelDataUrl(java.lang.String modelDataUrl)
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.
this
public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder modelInput(java.lang.Object modelInput)
CfnModelPackage.ModelPackageContainerDefinitionProperty.getModelInput()
modelInput
- A structure with Model Input details.this
public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder nearestModelName(java.lang.String nearestModelName)
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
.this
public CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder productId(java.lang.String productId)
CfnModelPackage.ModelPackageContainerDefinitionProperty.getProductId()
productId
- The AWS Marketplace product ID of the model package.this
public CfnModelPackage.ModelPackageContainerDefinitionProperty build()
CfnModelPackage.ModelPackageContainerDefinitionProperty
java.lang.NullPointerException
- if any required attribute was not provided