Class Schedule
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.autoscaling.Schedule
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:45.407Z")
@Stability(Stable)
public abstract class Schedule
extends software.amazon.jsii.JsiiObject
Schedule for scheduled scaling actions.
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
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Schedule
cron
(CronOptions options) Create a schedule from a set of cron fields.static Schedule
expression
(String expression) Construct a schedule from a literal schedule expression.abstract String
Retrieve the expression for this schedule.Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
Schedule
protected Schedule(software.amazon.jsii.JsiiObjectRef objRef) -
Schedule
protected Schedule(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Schedule
@Stability(Stable) protected Schedule()
-
-
Method Details
-
cron
Create a schedule from a set of cron fields.- Parameters:
options
- This parameter is required.
-
expression
Construct a schedule from a literal schedule expression.- Parameters:
expression
- The expression to use. This parameter is required.- See Also:
-
getExpressionString
Retrieve the expression for this schedule.
-