@Stability(value=Stable)
public static interface CfnModelPackage.ModelPackageContainerDefinitionProperty
extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.sagemaker.*;
Object environment;
Object modelInput;
ModelPackageContainerDefinitionProperty modelPackageContainerDefinitionProperty = ModelPackageContainerDefinitionProperty.builder()
.image("image")
// the properties below are optional
.containerHostname("containerHostname")
.environment(environment)
.framework("framework")
.frameworkVersion("frameworkVersion")
.imageDigest("imageDigest")
.modelDataUrl("modelDataUrl")
.modelInput(modelInput)
.nearestModelName("nearestModelName")
.productId("productId")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder
A builder for
CfnModelPackage.ModelPackageContainerDefinitionProperty |
static class |
CfnModelPackage.ModelPackageContainerDefinitionProperty.Jsii$Proxy
An implementation for
CfnModelPackage.ModelPackageContainerDefinitionProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder |
builder() |
default String |
getContainerHostname()
The DNS host name for the Docker container.
|
default Object |
getEnvironment()
The environment variables to set in the Docker container.
|
default String |
getFramework()
The machine learning framework of the model package container image.
|
default String |
getFrameworkVersion()
The framework version of the Model Package Container Image.
|
String |
getImage()
The Amazon EC2 Container Registry (Amazon ECR) path where inference code is stored.
|
default String |
getImageDigest()
An MD5 hash of the training algorithm that identifies the Docker image used for training.
|
default String |
getModelDataUrl()
The Amazon S3 path where the model artifacts, which result from model training, are stored.
|
default Object |
getModelInput()
A structure with Model Input details.
|
default String |
getNearestModelName()
The name of a pre-trained machine learning benchmarked by Amazon SageMaker Inference Recommender model that matches your model.
|
default String |
getProductId()
The AWS Marketplace product ID of the model package.
|
@Stability(value=Stable) @NotNull String getImage()
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 .
@Stability(value=Stable) @Nullable default String getContainerHostname()
@Stability(value=Stable) @Nullable default Object getEnvironment()
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.
@Stability(value=Stable) @Nullable default String getFramework()
@Stability(value=Stable) @Nullable default String getFrameworkVersion()
@Stability(value=Stable) @Nullable default String getImageDigest()
@Stability(value=Stable) @Nullable default String getModelDataUrl()
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.
@Stability(value=Stable) @Nullable default Object getModelInput()
@Stability(value=Stable) @Nullable default String getNearestModelName()
You can find a list of benchmarked models by calling ListModelMetadata .
@Stability(value=Stable) @Nullable default String getProductId()
@Stability(value=Stable) static CfnModelPackage.ModelPackageContainerDefinitionProperty.Builder builder()
Copyright © 2022. All rights reserved.