Interface CfnInferenceComponentProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnInferenceComponentProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-06T23:25:16.515Z")
@Stability(Stable)
public interface CfnInferenceComponentProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnInferenceComponent.
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.*;
CfnInferenceComponentProps cfnInferenceComponentProps = CfnInferenceComponentProps.builder()
.endpointName("endpointName")
.runtimeConfig(InferenceComponentRuntimeConfigProperty.builder()
.copyCount(123)
.currentCopyCount(123)
.desiredCopyCount(123)
.build())
.specification(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())
.variantName("variantName")
// the properties below are optional
.endpointArn("endpointArn")
.inferenceComponentName("inferenceComponentName")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnInferenceComponentPropsstatic final classAn implementation forCfnInferenceComponentProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe Amazon Resource Name (ARN) of the endpoint that hosts the inference component.The name of the endpoint that hosts the inference component.default StringThe name of the inference component.The runtime config for the inference component.The specification for the inference component.getTags()An array of tags to apply to the resource.The name of the production variant that hosts the inference component.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEndpointName
The name of the endpoint that hosts the inference component.- See Also:
-
getRuntimeConfig
The runtime config for the inference component.- See Also:
-
getSpecification
The specification for the inference component.- See Also:
-
getVariantName
The name of the production variant that hosts the inference component.- See Also:
-
getEndpointArn
The Amazon Resource Name (ARN) of the endpoint that hosts the inference component.- See Also:
-
getInferenceComponentName
The name of the inference component.- See Also:
-
getTags
An array of tags to apply to the resource.- See Also:
-
builder
- Returns:
- a
CfnInferenceComponentProps.BuilderofCfnInferenceComponentProps
-