Interface CfnAlgorithm.InferenceSpecificationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAlgorithm.InferenceSpecificationProperty.Jsii$Proxy
- Enclosing class:
CfnAlgorithm
@Stability(Stable)
public static interface CfnAlgorithm.InferenceSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
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.*;
InferenceSpecificationProperty inferenceSpecificationProperty = InferenceSpecificationProperty.builder()
.containers(List.of(ModelPackageContainerDefinitionProperty.builder()
.image("image")
// the properties below are optional
.containerHostname("containerHostname")
.environment(Map.of(
"environmentKey", "environment"))
.framework("framework")
.frameworkVersion("frameworkVersion")
.imageDigest("imageDigest")
.isCheckpoint(false)
.modelInput(ModelInputProperty.builder()
.dataInputConfig("dataInputConfig")
.build())
.nearestModelName("nearestModelName")
.build()))
// the properties below are optional
.supportedContentTypes(List.of("supportedContentTypes"))
.supportedRealtimeInferenceInstanceTypes(List.of("supportedRealtimeInferenceInstanceTypes"))
.supportedResponseMimeTypes(List.of("supportedResponseMimeTypes"))
.supportedTransformInstanceTypes(List.of("supportedTransformInstanceTypes"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAlgorithm.InferenceSpecificationPropertystatic final classAn implementation forCfnAlgorithm.InferenceSpecificationProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Returns union: eitherIResolvableor Listinvalid input: '<'eitherIResolvableorCfnAlgorithm.ModelPackageContainerDefinitionProperty>Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContainers
Returns union: eitherIResolvableor Listinvalid input: '<'eitherIResolvableorCfnAlgorithm.ModelPackageContainerDefinitionProperty>- See Also:
-
getSupportedContentTypes
- See Also:
-
getSupportedRealtimeInferenceInstanceTypes
- See Also:
-
getSupportedResponseMimeTypes
- See Also:
-
getSupportedTransformInstanceTypes
- See Also:
-
builder
-