Interface InferenceComponentContainerSpecification.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<InferenceComponentContainerSpecification.Builder,,InferenceComponentContainerSpecification> SdkBuilder<InferenceComponentContainerSpecification.Builder,,InferenceComponentContainerSpecification> SdkPojo
- Enclosing class:
InferenceComponentContainerSpecification
-
Method Summary
Modifier and TypeMethodDescriptionartifactUrl(String artifactUrl) The Amazon S3 path where the model artifacts, which result from model training, are stored.containerMetricsConfig(Consumer<ContainerMetricsConfig.Builder> containerMetricsConfig) The configuration for container metrics scraping.containerMetricsConfig(ContainerMetricsConfig containerMetricsConfig) The configuration for container metrics scraping.environment(Map<String, String> environment) The environment variables to set in the Docker container.The Amazon Elastic Container Registry (Amazon ECR) path where the Docker image for the model is stored.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
image
The Amazon Elastic Container Registry (Amazon ECR) path where the Docker image for the model is stored.
- Parameters:
image- The Amazon Elastic Container Registry (Amazon ECR) path where the Docker image for the model is stored.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
artifactUrl
The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).
- Parameters:
artifactUrl- The Amazon S3 path where the model artifacts, which result from model training, are stored. This path must point to a single gzip compressed tar archive (.tar.gz suffix).- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
The environment variables to set in the Docker container. Each key and value in the Environment string-to-string map can have length of up to 1024. We support up to 16 entries in the map.
- Parameters:
environment- The environment variables to set in the Docker container. Each key and value in the Environment string-to-string map can have length of up to 1024. We support up to 16 entries in the map.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerMetricsConfig
InferenceComponentContainerSpecification.Builder containerMetricsConfig(ContainerMetricsConfig containerMetricsConfig) The configuration for container metrics scraping. Specifies the metrics endpoint path and publishing frequency for the inference component's container. If not specified when
EnableDetailedObservabilityisTrue, the default path/metricson port8080is used. For first-party and Deep Learning Containers (DLC), the endpoint path is determined automatically and this configuration is optional.- Parameters:
containerMetricsConfig- The configuration for container metrics scraping. Specifies the metrics endpoint path and publishing frequency for the inference component's container. If not specified whenEnableDetailedObservabilityisTrue, the default path/metricson port8080is used. For first-party and Deep Learning Containers (DLC), the endpoint path is determined automatically and this configuration is optional.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
containerMetricsConfig
default InferenceComponentContainerSpecification.Builder containerMetricsConfig(Consumer<ContainerMetricsConfig.Builder> containerMetricsConfig) The configuration for container metrics scraping. Specifies the metrics endpoint path and publishing frequency for the inference component's container. If not specified when
This is a convenience method that creates an instance of theEnableDetailedObservabilityisTrue, the default path/metricson port8080is used. For first-party and Deep Learning Containers (DLC), the endpoint path is determined automatically and this configuration is optional.ContainerMetricsConfig.Builderavoiding the need to create one manually viaContainerMetricsConfig.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tocontainerMetricsConfig(ContainerMetricsConfig).- Parameters:
containerMetricsConfig- a consumer that will call methods onContainerMetricsConfig.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-