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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forBasicScheduledActionProps
static final class
An implementation forBasicScheduledActionProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Number
The new desired capacity.default Instant
When this scheduled action expires.default Number
The new maximum capacity.default Number
The new minimum capacity.When to perform this action.default Instant
When this scheduled action becomes active.default String
Specifies 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.Builder
ofBasicScheduledActionProps
-