Interface CfnModelPackage.InferenceSpecificationProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnModelPackage.InferenceSpecificationProperty.Jsii$Proxy
Enclosing class:
CfnModelPackage

@Stability(Stable) public static interface CfnModelPackage.InferenceSpecificationProperty extends software.amazon.jsii.JsiiSerializable
Defines how to perform inference generation after a training job is run.

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 modelInput;
 InferenceSpecificationProperty inferenceSpecificationProperty = InferenceSpecificationProperty.builder()
         .containers(List.of(ModelPackageContainerDefinitionProperty.builder()
                 .image("image")
                 // the properties below are optional
                 .containerHostname("containerHostname")
                 .environment(Map.of(
                         "environmentKey", "environment"))
                 .framework("framework")
                 .frameworkVersion("frameworkVersion")
                 .imageDigest("imageDigest")
                 .modelDataUrl("modelDataUrl")
                 .modelInput(modelInput)
                 .nearestModelName("nearestModelName")
                 .build()))
         .supportedContentTypes(List.of("supportedContentTypes"))
         .supportedResponseMimeTypes(List.of("supportedResponseMimeTypes"))
         // the properties below are optional
         .supportedRealtimeInferenceInstanceTypes(List.of("supportedRealtimeInferenceInstanceTypes"))
         .supportedTransformInstanceTypes(List.of("supportedTransformInstanceTypes"))
         .build();
 

See Also: