Interface CfnInferenceComponentProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnInferenceComponentProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.139.0 (build 26a6b54)",
date="2026-09-02T11:03:18.564Z")
@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")
// the properties below are optional
.deploymentConfig(InferenceComponentDeploymentConfigProperty.builder()
.autoRollbackConfiguration(AutoRollbackConfigurationProperty.builder()
.alarms(List.of(AlarmProperty.builder()
.alarmName("alarmName")
.build()))
.build())
.rollingUpdatePolicy(InferenceComponentRollingUpdatePolicyProperty.builder()
.maximumBatchSize(InferenceComponentCapacitySizeProperty.builder()
.type("type")
.value(123)
.build())
.maximumExecutionTimeoutInSeconds(123)
.rollbackMaximumBatchSize(InferenceComponentCapacitySizeProperty.builder()
.type("type")
.value(123)
.build())
.waitIntervalInSeconds(123)
.build())
.build())
.endpointArn("endpointArn")
.inferenceComponentName("inferenceComponentName")
.runtimeConfig(InferenceComponentRuntimeConfigProperty.builder()
.copyCount(123)
.currentCopyCount(123)
.desiredCopyCount(123)
.placementStatus(List.of(InferenceComponentPlacementStatusProperty.builder()
.currentCopyCount(123)
.instanceType("instanceType")
.build()))
.build())
.specification(InferenceComponentSpecificationProperty.builder()
.baseInferenceComponentName("baseInferenceComponentName")
.computeResourceRequirements(InferenceComponentComputeResourceRequirementsProperty.builder()
.maxMemoryRequiredInMb(123)
.minMemoryRequiredInMb(123)
.numberOfAcceleratorDevicesRequired(123)
.numberOfCpuCoresRequired(123)
.build())
.container(InferenceComponentContainerSpecificationProperty.builder()
.artifactUrl("artifactUrl")
.containerMetricsConfig(ContainerMetricsConfigProperty.builder()
.metricsEndpoints(List.of(MetricsEndpointProperty.builder()
.metricsEndpointPath("metricsEndpointPath")
// the properties below are optional
.metricPublishFrequencyInSeconds(123)
.build()))
.build())
.deployedImage(DeployedImageProperty.builder()
.resolutionTime("resolutionTime")
.resolvedImage("resolvedImage")
.specifiedImage("specifiedImage")
.build())
.environment(Map.of(
"environmentKey", "environment"))
.image("image")
.build())
.currentDataCacheConfig(InferenceComponentDataCacheConfigProperty.builder()
.enableCaching(false)
.build())
.dataCacheConfig(InferenceComponentDataCacheConfigProperty.builder()
.enableCaching(false)
.build())
.modelName("modelName")
.schedulingConfig(InferenceComponentSchedulingConfigProperty.builder()
.availabilityZoneBalance(InferenceComponentAvailabilityZoneBalanceProperty.builder()
.enforcementMode("enforcementMode")
// the properties below are optional
.maxImbalance(123)
.build())
.placementStrategy("placementStrategy")
.build())
.startupParameters(InferenceComponentStartupParametersProperty.builder()
.containerStartupHealthCheckTimeoutInSeconds(123)
.modelDataDownloadTimeoutInSeconds(123)
.build())
.build())
.specifications(List.of(InferenceComponentSpecificationForInstanceTypeProperty.builder()
.instanceType("instanceType")
// the properties below are optional
.computeResourceRequirements(InferenceComponentComputeResourceRequirementsProperty.builder()
.maxMemoryRequiredInMb(123)
.minMemoryRequiredInMb(123)
.numberOfAcceleratorDevicesRequired(123)
.numberOfCpuCoresRequired(123)
.build())
.container(InferenceComponentContainerSpecificationForInstanceTypeProperty.builder()
.artifactUrl("artifactUrl")
.containerMetricsConfig(ContainerMetricsConfigProperty.builder()
.metricsEndpoints(List.of(MetricsEndpointProperty.builder()
.metricsEndpointPath("metricsEndpointPath")
// the properties below are optional
.metricPublishFrequencyInSeconds(123)
.build()))
.build())
.environment(Map.of(
"environmentKey", "environment"))
.image("image")
.build())
.currentDataCacheConfig(InferenceComponentDataCacheConfigProperty.builder()
.enableCaching(false)
.build())
.dataCacheConfig(InferenceComponentDataCacheConfigProperty.builder()
.enableCaching(false)
.build())
.modelName("modelName")
.schedulingConfig(InferenceComponentSchedulingConfigProperty.builder()
.availabilityZoneBalance(InferenceComponentAvailabilityZoneBalanceProperty.builder()
.enforcementMode("enforcementMode")
// the properties below are optional
.maxImbalance(123)
.build())
.placementStrategy("placementStrategy")
.build())
.startupParameters(InferenceComponentStartupParametersProperty.builder()
.containerStartupHealthCheckTimeoutInSeconds(123)
.modelDataDownloadTimeoutInSeconds(123)
.build())
.build()))
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.variantName("variantName")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnInferenceComponentPropsstatic final classAn implementation forCfnInferenceComponentProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThe deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.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.default ObjectThe runtime config for the inference component.default ObjectThe specification for the inference component, for an endpoint with a single instance type.default ObjectA list of specification objects for the inference component, one per instance type.getTags()An array of tags to apply to the resource.default StringThe 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:
-
getDeploymentConfig
The deployment configuration for an endpoint, which contains the desired deployment strategy and rollback configurations.Returns union: either
IResolvableorCfnInferenceComponent.InferenceComponentDeploymentConfigProperty- 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:
-
getRuntimeConfig
The runtime config for the inference component.Returns union: either
IResolvableorCfnInferenceComponent.InferenceComponentRuntimeConfigProperty- See Also:
-
getSpecification
The specification for the inference component, for an endpoint with a single instance type.Specify exactly one of Specification or Specifications. InstanceType is not accepted here; use Specifications for per instance type configuration.
Returns union: either
IResolvableorCfnInferenceComponent.InferenceComponentSpecificationProperty- See Also:
-
getSpecifications
A list of specification objects for the inference component, one per instance type.The service requires at least two entries; use the singular Specification for a single instance type.
Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnInferenceComponent.InferenceComponentSpecificationForInstanceTypeProperty>- See Also:
-
getTags
An array of tags to apply to the resource.- See Also:
-
getVariantName
The name of the production variant that hosts the inference component.- See Also:
-
builder
- Returns:
- a
CfnInferenceComponentProps.BuilderofCfnInferenceComponentProps
-