Class CfnModelPackage.AdditionalInferenceSpecificationDefinitionProperty
A structure of additional Inference Specification.
Inheritance
Namespace: Amazon.CDK.AWS.Sagemaker
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AdditionalInferenceSpecificationDefinitionProperty : Object, CfnModelPackage.IAdditionalInferenceSpecificationDefinitionProperty
Syntax (vb)
Public Class AdditionalInferenceSpecificationDefinitionProperty
Inherits Object
Implements CfnModelPackage.IAdditionalInferenceSpecificationDefinitionProperty
Remarks
Additional Inference Specification specifies details about inference jobs that can be run with models based on this model package
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 additionalInferenceSpecificationDefinitionProperty = new AdditionalInferenceSpecificationDefinitionProperty {
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"
} },
Name = "name",
// the properties below are optional
Description = "description",
SupportedContentTypes = new [] { "supportedContentTypes" },
SupportedRealtimeInferenceInstanceTypes = new [] { "supportedRealtimeInferenceInstanceTypes" },
SupportedResponseMimeTypes = new [] { "supportedResponseMimeTypes" },
SupportedTransformInstanceTypes = new [] { "supportedTransformInstanceTypes" }
};
Synopsis
Constructors
AdditionalInferenceSpecificationDefinitionProperty() |
Properties
Containers | The Amazon ECR registry path of the Docker image that contains the inference code. |
Description | A description of the additional Inference specification. |
Name | A unique name to identify the additional inference specification. |
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
AdditionalInferenceSpecificationDefinitionProperty()
public AdditionalInferenceSpecificationDefinitionProperty()
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
Description
A description of the additional Inference specification.
public string Description { get; set; }
Property Value
System.String
Remarks
Name
A unique name to identify the additional inference specification.
public string Name { get; set; }
Property Value
System.String
Remarks
The name must be unique within the list of your additional inference specifications for a particular model package.
SupportedContentTypes
The supported MIME types for the input data.
public string[] SupportedContentTypes { get; set; }
Property Value
System.String[]
Remarks
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
SupportedResponseMimeTypes
The supported MIME types for the output data.
public string[] SupportedResponseMimeTypes { get; set; }
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.
public string[] SupportedTransformInstanceTypes { get; set; }
Property Value
System.String[]