Interface AutoScalingOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
AutoScalingOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.94.0 (build b380f01)", date="2024-03-01T20:58:26.438Z") @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());