Interface CfnInferenceComponent.InferenceComponentSpecificationProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnInferenceComponent.InferenceComponentSpecificationProperty.Jsii$Proxy
Enclosing class:
CfnInferenceComponent

@Stability(Stable) public static interface CfnInferenceComponent.InferenceComponentSpecificationProperty extends software.amazon.jsii.JsiiSerializable
Details about the resources to deploy with this inference component, including the model, container, and compute resources.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.sagemaker.*;
 InferenceComponentSpecificationProperty inferenceComponentSpecificationProperty = InferenceComponentSpecificationProperty.builder()
         .computeResourceRequirements(InferenceComponentComputeResourceRequirementsProperty.builder()
                 .maxMemoryRequiredInMb(123)
                 .minMemoryRequiredInMb(123)
                 .numberOfAcceleratorDevicesRequired(123)
                 .numberOfCpuCoresRequired(123)
                 .build())
         // the properties below are optional
         .container(InferenceComponentContainerSpecificationProperty.builder()
                 .artifactUrl("artifactUrl")
                 .deployedImage(DeployedImageProperty.builder()
                         .resolutionTime("resolutionTime")
                         .resolvedImage("resolvedImage")
                         .specifiedImage("specifiedImage")
                         .build())
                 .environment(Map.of(
                         "environmentKey", "environment"))
                 .image("image")
                 .build())
         .modelName("modelName")
         .startupParameters(InferenceComponentStartupParametersProperty.builder()
                 .containerStartupHealthCheckTimeoutInSeconds(123)
                 .modelDataDownloadTimeoutInSeconds(123)
                 .build())
         .build();
 

See Also: