Interface CapacityLimit.Builder

  • Method Details

    • maxCapacity

      CapacityLimit.Builder maxCapacity(Integer maxCapacity)

      The maximum capacity available for the service environment. This value represents the maximum amount of resources that can be allocated to service jobs.

      For example, maxCapacity=50, capacityUnit=NUM_INSTANCES. This indicates that the maximum number of instances that can be run on this service environment is 50. You could then run 5 SageMaker Training jobs that each use 10 instances. However, if you submit another job that requires 10 instances, it will wait in the queue.

      Parameters:
      maxCapacity - The maximum capacity available for the service environment. This value represents the maximum amount of resources that can be allocated to service jobs.

      For example, maxCapacity=50, capacityUnit=NUM_INSTANCES. This indicates that the maximum number of instances that can be run on this service environment is 50. You could then run 5 SageMaker Training jobs that each use 10 instances. However, if you submit another job that requires 10 instances, it will wait in the queue.

      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • capacityUnit

      CapacityLimit.Builder capacityUnit(String capacityUnit)

      The unit of measure for the capacity limit. This defines how the maxCapacity value should be interpreted. For SAGEMAKER_TRAINING jobs, use NUM_INSTANCES.

      Parameters:
      capacityUnit - The unit of measure for the capacity limit. This defines how the maxCapacity value should be interpreted. For SAGEMAKER_TRAINING jobs, use NUM_INSTANCES.
      Returns:
      Returns a reference to this object so that method calls can be chained together.