Show / Hide Table of Contents

Class CfnModelPackage.InferenceSpecificationProperty

Defines how to perform inference generation after a training job is run.

Inheritance
System.Object
CfnModelPackage.InferenceSpecificationProperty
Implements
CfnModelPackage.IInferenceSpecificationProperty
Namespace: Amazon.CDK.AWS.Sagemaker
Assembly: Amazon.CDK.AWS.Sagemaker.dll
Syntax (csharp)
public class InferenceSpecificationProperty : Object, CfnModelPackage.IInferenceSpecificationProperty
Syntax (vb)
Public Class InferenceSpecificationProperty
    Inherits Object
    Implements CfnModelPackage.IInferenceSpecificationProperty
Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-inferencespecification.html

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

Constructors

InferenceSpecificationProperty()

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.

Constructors

InferenceSpecificationProperty()

public InferenceSpecificationProperty()

Properties

Containers

The Amazon ECR registry path of the Docker image that contains the inference code.

public object Containers { get; set; }
Property Value

System.Object

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-inferencespecification.html#cfn-sagemaker-modelpackage-inferencespecification-containers

SupportedContentTypes

The supported MIME types for the input data.

public string[] SupportedContentTypes { get; set; }
Property Value

System.String[]

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-inferencespecification.html#cfn-sagemaker-modelpackage-inferencespecification-supportedcontenttypes

SupportedRealtimeInferenceInstanceTypes

A list of the instance types that are used to generate inferences in real-time.

public string[] SupportedRealtimeInferenceInstanceTypes { get; set; }
Property Value

System.String[]

Remarks

This parameter is required for unversioned models, and optional for versioned models.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-inferencespecification.html#cfn-sagemaker-modelpackage-inferencespecification-supportedrealtimeinferenceinstancetypes

SupportedResponseMimeTypes

The supported MIME types for the output data.

public string[] SupportedResponseMimeTypes { get; set; }
Property Value

System.String[]

Remarks

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-inferencespecification.html#cfn-sagemaker-modelpackage-inferencespecification-supportedresponsemimetypes

SupportedTransformInstanceTypes

A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.

public string[] SupportedTransformInstanceTypes { get; set; }
Property Value

System.String[]

Remarks

This parameter is required for unversioned models, and optional for versioned models.

Link: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-sagemaker-modelpackage-inferencespecification.html#cfn-sagemaker-modelpackage-inferencespecification-supportedtransforminstancetypes

Implements

CfnModelPackage.IInferenceSpecificationProperty
Back to top Generated by DocFX