Interface CfnModelPackage.AdditionalInferenceSpecificationDefinitionProperty

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

@Stability(Stable) public static interface CfnModelPackage.AdditionalInferenceSpecificationDefinitionProperty extends software.amazon.jsii.JsiiSerializable
A structure of additional Inference Specification.

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 modelInput;
 AdditionalInferenceSpecificationDefinitionProperty additionalInferenceSpecificationDefinitionProperty = AdditionalInferenceSpecificationDefinitionProperty.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")
                 .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();
 
  • Method Details

    • getContainers

      @Stability(Stable) @NotNull Object getContainers()
      The Amazon ECR registry path of the Docker image that contains the inference code.
    • getName

      @Stability(Stable) @NotNull String getName()
      A unique name to identify the additional inference specification.

      The name must be unique within the list of your additional inference specifications for a particular model package.

    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      A description of the additional Inference specification.
    • getSupportedContentTypes

      @Stability(Stable) @Nullable default List<String> getSupportedContentTypes()
      The supported MIME types for the input data.
    • getSupportedRealtimeInferenceInstanceTypes

      @Stability(Stable) @Nullable default List<String> getSupportedRealtimeInferenceInstanceTypes()
      A list of the instance types that are used to generate inferences in real-time.
    • getSupportedResponseMimeTypes

      @Stability(Stable) @Nullable default List<String> getSupportedResponseMimeTypes()
      The supported MIME types for the output data.
    • getSupportedTransformInstanceTypes

      @Stability(Stable) @Nullable 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.
    • builder

      Returns:
      a CfnModelPackage.AdditionalInferenceSpecificationDefinitionProperty.Builder of CfnModelPackage.AdditionalInferenceSpecificationDefinitionProperty