Interface CfnModelPackage.IInferenceSpecificationProperty
Defines how to perform inference generation after a training job is run.
Namespace: Amazon.CDK.AWS.Sagemaker
Assembly: Amazon.CDK.AWS.Sagemaker.dll
Syntax (csharp)
public interface IInferenceSpecificationPropertySyntax (vb)
Public Interface IInferenceSpecificationPropertyRemarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Sagemaker;
var modelInput;
var inferenceSpecificationProperty = new InferenceSpecificationProperty {
    Containers = new [] { new ModelPackageContainerDefinitionProperty {
        Image = "image",
        // the properties below are optional
        ContainerHostname = "containerHostname",
        Environment = new Dictionary<string, string> {
            { "environmentKey", "environment" }
        },
        Framework = "framework",
        FrameworkVersion = "frameworkVersion",
        ImageDigest = "imageDigest",
        ModelDataUrl = "modelDataUrl",
        ModelInput = modelInput,
        NearestModelName = "nearestModelName",
        ProductId = "productId"
    } },
    SupportedContentTypes = new [] { "supportedContentTypes" },
    SupportedResponseMimeTypes = new [] { "supportedResponseMimeTypes" },
    // the properties below are optional
    SupportedRealtimeInferenceInstanceTypes = new [] { "supportedRealtimeInferenceInstanceTypes" },
    SupportedTransformInstanceTypes = new [] { "supportedTransformInstanceTypes" }
};Synopsis
Properties
| Containers | The Amazon ECR registry path of the Docker image that contains the inference code. | 
| SupportedContentTypes | The supported MIME types for the input data. | 
| SupportedRealtimeInferenceInstanceTypes | A list of the instance types that are used to generate inferences in real-time. | 
| SupportedResponseMimeTypes | The supported MIME types for the output data. | 
| SupportedTransformInstanceTypes | A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed. | 
Properties
Containers
The Amazon ECR registry path of the Docker image that contains the inference code.
object Containers { get; }Property Value
System.Object
Remarks
SupportedContentTypes
The supported MIME types for the input data.
string[] SupportedContentTypes { get; }Property Value
System.String[]
Remarks
SupportedRealtimeInferenceInstanceTypes
A list of the instance types that are used to generate inferences in real-time.
virtual string[] SupportedRealtimeInferenceInstanceTypes { get; }Property Value
System.String[]
Remarks
This parameter is required for unversioned models, and optional for versioned models.
SupportedResponseMimeTypes
The supported MIME types for the output data.
string[] SupportedResponseMimeTypes { get; }Property Value
System.String[]
Remarks
SupportedTransformInstanceTypes
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.
virtual string[] SupportedTransformInstanceTypes { get; }Property Value
System.String[]
Remarks
This parameter is required for unversioned models, and optional for versioned models.