Class CfnInferenceComponent.InferenceComponentSpecificationProperty
Details about the resources to deploy with this inference component, including the model, container, and compute resources.
Inheritance
Namespace: Amazon.CDK.AWS.Sagemaker
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class InferenceComponentSpecificationProperty : Object, CfnInferenceComponent.IInferenceComponentSpecificationProperty
Syntax (vb)
Public Class InferenceComponentSpecificationProperty
Inherits Object
Implements CfnInferenceComponent.IInferenceComponentSpecificationProperty
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 inferenceComponentSpecificationProperty = new InferenceComponentSpecificationProperty {
ComputeResourceRequirements = new InferenceComponentComputeResourceRequirementsProperty {
MaxMemoryRequiredInMb = 123,
MinMemoryRequiredInMb = 123,
NumberOfAcceleratorDevicesRequired = 123,
NumberOfCpuCoresRequired = 123
},
// the properties below are optional
Container = new InferenceComponentContainerSpecificationProperty {
ArtifactUrl = "artifactUrl",
DeployedImage = new DeployedImageProperty {
ResolutionTime = "resolutionTime",
ResolvedImage = "resolvedImage",
SpecifiedImage = "specifiedImage"
},
Environment = new Dictionary<string, string> {
{ "environmentKey", "environment" }
},
Image = "image"
},
ModelName = "modelName",
StartupParameters = new InferenceComponentStartupParametersProperty {
ContainerStartupHealthCheckTimeoutInSeconds = 123,
ModelDataDownloadTimeoutInSeconds = 123
}
};
Synopsis
Constructors
InferenceComponentSpecificationProperty() |
Properties
ComputeResourceRequirements | The compute resources allocated to run the model assigned to the inference component. |
Container | Defines a container that provides the runtime environment for a model that you deploy with an inference component. |
ModelName | The name of an existing SageMaker model object in your account that you want to deploy with the inference component. |
StartupParameters | Settings that take effect while the model container starts up. |
Constructors
InferenceComponentSpecificationProperty()
public InferenceComponentSpecificationProperty()
Properties
ComputeResourceRequirements
The compute resources allocated to run the model assigned to the inference component.
public object ComputeResourceRequirements { get; set; }
Property Value
System.Object
Remarks
Container
Defines a container that provides the runtime environment for a model that you deploy with an inference component.
public object Container { get; set; }
Property Value
System.Object
Remarks
ModelName
The name of an existing SageMaker model object in your account that you want to deploy with the inference component.
public string ModelName { get; set; }
Property Value
System.String
Remarks
StartupParameters
Settings that take effect while the model container starts up.
public object StartupParameters { get; set; }
Property Value
System.Object