Interface UtilizationScalingOptions
- All Superinterfaces:
BaseTargetTrackingProps
,software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
UtilizationScalingOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.850Z")
@Stability(Stable)
public interface UtilizationScalingOptions
extends software.amazon.jsii.JsiiSerializable, BaseTargetTrackingProps
Options for enabling Lambda utilization tracking.
Example:
import software.amazon.awscdk.services.autoscaling.*; Function fn; Alias alias = fn.addAlias("prod"); // Create AutoScaling target IScalableFunctionAttribute as = alias.addAutoScaling(AutoScalingOptions.builder().maxCapacity(50).build()); // Configure Target Tracking as.scaleOnUtilization(UtilizationScalingOptions.builder() .utilizationTarget(0.5) .build()); // Configure Scheduled Scaling as.scaleOnSchedule("ScaleUpInTheMorning", ScalingSchedule.builder() .schedule(Schedule.cron(CronOptions.builder().hour("8").minute("0").build())) .minCapacity(20) .build());
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forUtilizationScalingOptions
static final class
An implementation forUtilizationScalingOptions
-
Method Summary
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
-
getUtilizationTarget
Utilization target for the attribute.For example, .5 indicates that 50 percent of allocated provisioned concurrency is in use.
-
builder
- Returns:
- a
UtilizationScalingOptions.Builder
ofUtilizationScalingOptions
-