Interface CpuUtilizationScalingProps
- All Superinterfaces:
BaseTargetTrackingProps
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CpuUtilizationScalingProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:47.281Z")
@Stability(Stable)
public interface CpuUtilizationScalingProps
extends software.amazon.jsii.JsiiSerializable, BaseTargetTrackingProps
The properties for enabling scaling based on CPU utilization.
Example:
ApplicationTargetGroup target; BaseService service; ScalableTaskCount scaling = service.autoScaleTaskCount(EnableScalingProps.builder().maxCapacity(10).build()); scaling.scaleOnCpuUtilization("CpuScaling", CpuUtilizationScalingProps.builder() .targetUtilizationPercent(50) .build()); scaling.scaleOnRequestCount("RequestScaling", RequestCountScalingProps.builder() .requestsPerTarget(10000) .targetGroup(target) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCpuUtilizationScalingProps
static final class
An implementation forCpuUtilizationScalingProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The target value for CPU utilization across all tasks in the service.Methods inherited from interface software.amazon.awscdk.services.applicationautoscaling.BaseTargetTrackingProps
getDisableScaleIn, getPolicyName, getScaleInCooldown, getScaleOutCooldown
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getTargetUtilizationPercent
The target value for CPU utilization across all tasks in the service. -
builder
- Returns:
- a
CpuUtilizationScalingProps.Builder
ofCpuUtilizationScalingProps
-