Interface AutoScalingOptions
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
AutoScalingOptions.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:40.558Z")
@Stability(Stable)
public interface AutoScalingOptions
extends software.amazon.jsii.JsiiSerializable
Properties for enabling Lambda autoscaling.
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 forAutoScalingOptions
static final class
An implementation forAutoScalingOptions
-
Method Summary
Modifier and TypeMethodDescriptionstatic AutoScalingOptions.Builder
builder()
Maximum capacity to scale to.default Number
Minimum capacity to scale to.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMaxCapacity
Maximum capacity to scale to. -
getMinCapacity
Minimum capacity to scale to.Default: 1
-
builder
- Returns:
- a
AutoScalingOptions.Builder
ofAutoScalingOptions
-