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());