Class CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty
A structure of additional Inference Specification.
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.SageMaker.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty : CfnModelPackagePropsMixin.IAdditionalInferenceSpecificationDefinitionProperty
Syntax (vb)
Public Class CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty Implements CfnModelPackagePropsMixin.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.Mixins.Preview.AWS.SageMaker.Mixins;
var modelInput;
var additionalInferenceSpecificationDefinitionProperty = new AdditionalInferenceSpecificationDefinitionProperty {
Containers = new [] { new ModelPackageContainerDefinitionProperty {
ContainerHostname = "containerHostname",
Environment = new Dictionary<string, string> {
{ "environmentKey", "environment" }
},
Framework = "framework",
FrameworkVersion = "frameworkVersion",
Image = "image",
ImageDigest = "imageDigest",
ModelDataSource = new ModelDataSourceProperty {
S3DataSource = new S3ModelDataSourceProperty {
CompressionType = "compressionType",
ModelAccessConfig = new ModelAccessConfigProperty {
AcceptEula = false
},
S3DataType = "s3DataType",
S3Uri = "s3Uri"
}
},
ModelDataUrl = "modelDataUrl",
ModelInput = modelInput,
NearestModelName = "nearestModelName"
} },
Description = "description",
Name = "name",
SupportedContentTypes = new [] { "supportedContentTypes" },
SupportedRealtimeInferenceInstanceTypes = new [] { "supportedRealtimeInferenceInstanceTypes" },
SupportedResponseMimeTypes = new [] { "supportedResponseMimeTypes" },
SupportedTransformInstanceTypes = new [] { "supportedTransformInstanceTypes" }
};
Synopsis
Constructors
| AdditionalInferenceSpecificationDefinitionProperty() | A structure of additional Inference Specification. |
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()
A structure of additional Inference Specification.
public AdditionalInferenceSpecificationDefinitionProperty()
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.Mixins.Preview.AWS.SageMaker.Mixins;
var modelInput;
var additionalInferenceSpecificationDefinitionProperty = new AdditionalInferenceSpecificationDefinitionProperty {
Containers = new [] { new ModelPackageContainerDefinitionProperty {
ContainerHostname = "containerHostname",
Environment = new Dictionary<string, string> {
{ "environmentKey", "environment" }
},
Framework = "framework",
FrameworkVersion = "frameworkVersion",
Image = "image",
ImageDigest = "imageDigest",
ModelDataSource = new ModelDataSourceProperty {
S3DataSource = new S3ModelDataSourceProperty {
CompressionType = "compressionType",
ModelAccessConfig = new ModelAccessConfigProperty {
AcceptEula = false
},
S3DataType = "s3DataType",
S3Uri = "s3Uri"
}
},
ModelDataUrl = "modelDataUrl",
ModelInput = modelInput,
NearestModelName = "nearestModelName"
} },
Description = "description",
Name = "name",
SupportedContentTypes = new [] { "supportedContentTypes" },
SupportedRealtimeInferenceInstanceTypes = new [] { "supportedRealtimeInferenceInstanceTypes" },
SupportedResponseMimeTypes = new [] { "supportedResponseMimeTypes" },
SupportedTransformInstanceTypes = new [] { "supportedTransformInstanceTypes" }
};
Properties
Containers
The Amazon ECR registry path of the Docker image that contains the inference code.
public object? Containers { get; set; }
Property Value
Remarks
Type union: either IResolvable or (either IResolvable or CfnModelPackagePropsMixin.IModelPackageContainerDefinitionProperty)[]
Description
A description of the additional Inference specification.
public string? Description { get; set; }
Property Value
Remarks
Name
A unique name to identify the additional inference specification.
public string? Name { get; set; }
Property Value
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
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
string[]
Remarks
SupportedResponseMimeTypes
The supported MIME types for the output data.
public string[]? SupportedResponseMimeTypes { get; set; }
Property Value
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
string[]