Interface CfnServiceEnvironment.CapacityLimitProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnServiceEnvironment.CapacityLimitProperty.Jsii$Proxy
- Enclosing class:
CfnServiceEnvironment
@Stability(Stable)
public static interface CfnServiceEnvironment.CapacityLimitProperty
extends software.amazon.jsii.JsiiSerializable
Defines the capacity limit for a service environment.
This structure specifies the maximum amount of resources that can be used by service jobs in the environment.
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.batch.*; CapacityLimitProperty capacityLimitProperty = CapacityLimitProperty.builder() .capacityUnit("capacityUnit") .maxCapacity(123) .build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCfnServiceEnvironment.CapacityLimitProperty
static final class
An implementation forCfnServiceEnvironment.CapacityLimitProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCapacityUnit
The unit of measure for the capacity limit.This defines how the maxCapacity value should be interpreted. For
SAGEMAKER_TRAINING
jobs, useNUM_INSTANCES
.- See Also:
-
getMaxCapacity
The maximum capacity available for the service environment.This value represents the maximum amount 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.- See Also:
-
builder
-