Interface CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty.Jsii$Proxy
- Enclosing class:
CfnModelPackagePropsMixin
@Stability(Stable)
public static interface CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty
extends software.amazon.jsii.JsiiSerializable
A structure of additional Inference Specification.
Additional Inference Specification specifies details about inference jobs that can be run with models based on this model package
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.sagemaker.*;
Object modelInput;
AdditionalInferenceSpecificationDefinitionProperty additionalInferenceSpecificationDefinitionProperty = AdditionalInferenceSpecificationDefinitionProperty.builder()
.containers(List.of(ModelPackageContainerDefinitionProperty.builder()
.containerHostname("containerHostname")
.environment(Map.of(
"environmentKey", "environment"))
.framework("framework")
.frameworkVersion("frameworkVersion")
.image("image")
.imageDigest("imageDigest")
.modelDataSource(ModelDataSourceProperty.builder()
.s3DataSource(S3ModelDataSourceProperty.builder()
.compressionType("compressionType")
.modelAccessConfig(ModelAccessConfigProperty.builder()
.acceptEula(false)
.build())
.s3DataType("s3DataType")
.s3Uri("s3Uri")
.build())
.build())
.modelDataUrl("modelDataUrl")
.modelInput(modelInput)
.nearestModelName("nearestModelName")
.build()))
.description("description")
.name("name")
.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 classstatic final classAn implementation forCfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectThe Amazon ECR registry path of the Docker image that contains the inference code.default StringA description of the additional Inference specification.default StringgetName()A unique name to identify the additional inference specification.The supported MIME types for the input data.A list of the instance types that are used to generate inferences in real-time.The supported MIME types for the output data.A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getContainers
The Amazon ECR registry path of the Docker image that contains the inference code.Returns union: either
IResolvableor Listinvalid input: '<'eitherIResolvableorCfnModelPackagePropsMixin.ModelPackageContainerDefinitionProperty>- See Also:
-
getDescription
A description of the additional Inference specification.- See Also:
-
getName
A unique name to identify the additional inference specification.The name must be unique within the list of your additional inference specifications for a particular model package.
- See Also:
-
getSupportedContentTypes
The supported MIME types for the input data.- See Also:
-
getSupportedRealtimeInferenceInstanceTypes
A list of the instance types that are used to generate inferences in real-time.- See Also:
-
getSupportedResponseMimeTypes
The supported MIME types for the output data.- See Also:
-
getSupportedTransformInstanceTypes
A list of the instance types on which a transformation job can be run or on which an endpoint can be deployed.- See Also:
-
builder
@Stability(Stable) static CfnModelPackagePropsMixin.AdditionalInferenceSpecificationDefinitionProperty.Builder builder()
-