@Stability(value=Stable)
public static interface CfnModelPackage.InferenceSpecificationProperty
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;
InferenceSpecificationProperty inferenceSpecificationProperty = InferenceSpecificationProperty.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()))
.supportedContentTypes(List.of("supportedContentTypes"))
.supportedResponseMimeTypes(List.of("supportedResponseMimeTypes"))
// the properties below are optional
.supportedRealtimeInferenceInstanceTypes(List.of("supportedRealtimeInferenceInstanceTypes"))
.supportedTransformInstanceTypes(List.of("supportedTransformInstanceTypes"))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnModelPackage.InferenceSpecificationProperty.Builder
A builder for
CfnModelPackage.InferenceSpecificationProperty |
static class |
CfnModelPackage.InferenceSpecificationProperty.Jsii$Proxy
An implementation for
CfnModelPackage.InferenceSpecificationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnModelPackage.InferenceSpecificationProperty.Builder |
builder() |
Object |
getContainers()
The Amazon ECR registry path of the Docker image that contains the inference code.
|
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.
|
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 List<String> getSupportedContentTypes()
@Stability(value=Stable) @NotNull List<String> getSupportedResponseMimeTypes()
@Stability(value=Stable) @Nullable default List<String> getSupportedRealtimeInferenceInstanceTypes()
This parameter is required for unversioned models, and optional for versioned models.
@Stability(value=Stable) @Nullable default List<String> getSupportedTransformInstanceTypes()
This parameter is required for unversioned models, and optional for versioned models.
@Stability(value=Stable) static CfnModelPackage.InferenceSpecificationProperty.Builder builder()
Copyright © 2022. All rights reserved.