@Stability(value=Stable)
public static interface CfnModelPackage.AdditionalInferenceSpecificationDefinitionProperty
extends software.amazon.jsii.JsiiSerializable
Additional Inference Specification specifies details about inference jobs that can be run with models based on this model package
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;
AdditionalInferenceSpecificationDefinitionProperty additionalInferenceSpecificationDefinitionProperty = AdditionalInferenceSpecificationDefinitionProperty.builder()
.containers(List.of(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()))
.name("name")
// the properties below are optional
.description("description")
.supportedContentTypes(List.of("supportedContentTypes"))
.supportedRealtimeInferenceInstanceTypes(List.of("supportedRealtimeInferenceInstanceTypes"))
.supportedResponseMimeTypes(List.of("supportedResponseMimeTypes"))
.supportedTransformInstanceTypes(List.of("supportedTransformInstanceTypes"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnModelPackage.AdditionalInferenceSpecificationDefinitionProperty.Builder
|
static class |
CfnModelPackage.AdditionalInferenceSpecificationDefinitionProperty.Jsii$Proxy
An implementation for
CfnModelPackage.AdditionalInferenceSpecificationDefinitionProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnModelPackage.AdditionalInferenceSpecificationDefinitionProperty.Builder |
builder() |
Object |
getContainers()
The Amazon ECR registry path of the Docker image that contains the inference code.
|
default String |
getDescription()
A description of the additional Inference specification.
|
String |
getName()
A unique name to identify the additional inference specification.
|
default List<String> |
getSupportedContentTypes()
The supported MIME types for the input data.
|
default List<String> |
getSupportedRealtimeInferenceInstanceTypes()
A list of the instance types that are used to generate inferences in real-time.
|
default List<String> |
getSupportedResponseMimeTypes()
The supported MIME types for the output data.
|
default List<String> |
getSupportedTransformInstanceTypes()
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
|
@Stability(value=Stable) @NotNull Object getContainers()
@Stability(value=Stable) @NotNull String getName()
The name must be unique within the list of your additional inference specifications for a particular model package.
@Stability(value=Stable) @Nullable default String getDescription()
@Stability(value=Stable) @Nullable default List<String> getSupportedContentTypes()
@Stability(value=Stable) @Nullable default List<String> getSupportedRealtimeInferenceInstanceTypes()
@Stability(value=Stable) @Nullable default List<String> getSupportedResponseMimeTypes()
@Stability(value=Stable) @Nullable default List<String> getSupportedTransformInstanceTypes()
@Stability(value=Stable) static CfnModelPackage.AdditionalInferenceSpecificationDefinitionProperty.Builder builder()
Copyright © 2022. All rights reserved.