Interface BasicScheduledActionProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Subinterfaces:
ScheduledActionProps
- All Known Implementing Classes:
BasicScheduledActionProps.Jsii$Proxy,ScheduledActionProps.Jsii$Proxy
Example:
AutoScalingGroup autoScalingGroup;
autoScalingGroup.scaleOnSchedule("PrescaleInTheMorning", BasicScheduledActionProps.builder()
.schedule(Schedule.cron(CronOptions.builder().hour("8").minute("0").build()))
.minCapacity(20)
.build());
autoScalingGroup.scaleOnSchedule("AllowDownscalingAtNight", BasicScheduledActionProps.builder()
.schedule(Schedule.cron(CronOptions.builder().hour("20").minute("0").build()))
.minCapacity(1)
.build());
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forBasicScheduledActionPropsstatic final classAn implementation forBasicScheduledActionProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default NumberThe new desired capacity.default InstantWhen this scheduled action expires.default NumberThe new maximum capacity.default NumberThe new minimum capacity.When to perform this action.default InstantWhen this scheduled action becomes active.default StringSpecifies the time zone for a cron expression.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSchedule
When to perform this action.Supports cron expressions.
For more information about cron expressions, see https://en.wikipedia.org/wiki/Cron.
-
getDesiredCapacity
The new desired capacity.At the scheduled time, set the desired capacity to the given capacity.
At least one of maxCapacity, minCapacity, or desiredCapacity must be supplied.
Default: - No new desired capacity.
-
getEndTime
When this scheduled action expires.Default: - The rule never expires.
-
getMaxCapacity
The new maximum capacity.At the scheduled time, set the maximum capacity to the given capacity.
At least one of maxCapacity, minCapacity, or desiredCapacity must be supplied.
Default: - No new maximum capacity.
-
getMinCapacity
The new minimum capacity.At the scheduled time, set the minimum capacity to the given capacity.
At least one of maxCapacity, minCapacity, or desiredCapacity must be supplied.
Default: - No new minimum capacity.
-
getStartTime
When this scheduled action becomes active.Default: - The rule is activate immediately.
-
getTimeZone
Specifies the time zone for a cron expression.If a time zone is not provided, UTC is used by default.
Valid values are the canonical names of the IANA time zones, derived from the IANA Time Zone Database (such as Etc/GMT+9 or Pacific/Tahiti).
For more information, see https://en.wikipedia.org/wiki/List_of_tz_database_time_zones.
Default: - UTC
-
builder
- Returns:
- a
BasicScheduledActionProps.BuilderofBasicScheduledActionProps
-