Class CfnAlgorithm.InferenceSpecificationProperty
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Sagemaker
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnAlgorithm.InferenceSpecificationProperty : CfnAlgorithm.IInferenceSpecificationProperty
Syntax (vb)
Public Class CfnAlgorithm.InferenceSpecificationProperty Implements CfnAlgorithm.IInferenceSpecificationProperty
Remarks
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 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",
IsCheckpoint = false,
ModelInput = new ModelInputProperty {
DataInputConfig = "dataInputConfig"
},
NearestModelName = "nearestModelName"
} },
// the properties below are optional
SupportedContentTypes = new [] { "supportedContentTypes" },
SupportedRealtimeInferenceInstanceTypes = new [] { "supportedRealtimeInferenceInstanceTypes" },
SupportedResponseMimeTypes = new [] { "supportedResponseMimeTypes" },
SupportedTransformInstanceTypes = new [] { "supportedTransformInstanceTypes" }
};
Synopsis
Constructors
| InferenceSpecificationProperty() |
Properties
| Containers | |
| SupportedContentTypes | |
| SupportedRealtimeInferenceInstanceTypes | |
| SupportedResponseMimeTypes | |
| SupportedTransformInstanceTypes |
Constructors
InferenceSpecificationProperty()
public InferenceSpecificationProperty()
Remarks
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 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",
IsCheckpoint = false,
ModelInput = new ModelInputProperty {
DataInputConfig = "dataInputConfig"
},
NearestModelName = "nearestModelName"
} },
// the properties below are optional
SupportedContentTypes = new [] { "supportedContentTypes" },
SupportedRealtimeInferenceInstanceTypes = new [] { "supportedRealtimeInferenceInstanceTypes" },
SupportedResponseMimeTypes = new [] { "supportedResponseMimeTypes" },
SupportedTransformInstanceTypes = new [] { "supportedTransformInstanceTypes" }
};
Properties
Containers
public object Containers { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnAlgorithm.IModelPackageContainerDefinitionProperty)[]
SupportedContentTypes
SupportedRealtimeInferenceInstanceTypes
public string[]? SupportedRealtimeInferenceInstanceTypes { get; set; }
Property Value
string[]