Interface InferenceComponentContainerSpecification.Builder

  • 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 EnableDetailedObservability is True, the default path /metrics on port 8080 is 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 when EnableDetailedObservability is True, the default path /metrics on port 8080 is 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 EnableDetailedObservability is True, the default path /metrics on port 8080 is used. For first-party and Deep Learning Containers (DLC), the endpoint path is determined automatically and this configuration is optional.

      This is a convenience method that creates an instance of the ContainerMetricsConfig.Builder avoiding the need to create one manually via ContainerMetricsConfig.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to containerMetricsConfig(ContainerMetricsConfig).

      Parameters:
      containerMetricsConfig - a consumer that will call methods on ContainerMetricsConfig.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: