@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.725Z") @Stability(value=Stable) public interface BasicScheduledActionProps extends software.amazon.jsii.JsiiSerializable
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());
| Modifier and Type | Interface and Description |
|---|---|
static class |
BasicScheduledActionProps.Builder
A builder for
BasicScheduledActionProps |
static class |
BasicScheduledActionProps.Jsii$Proxy
An implementation for
BasicScheduledActionProps |
| Modifier and Type | Method and Description |
|---|---|
static BasicScheduledActionProps.Builder |
builder() |
default Number |
getDesiredCapacity()
The new desired capacity.
|
default Instant |
getEndTime()
When this scheduled action expires.
|
default Number |
getMaxCapacity()
The new maximum capacity.
|
default Number |
getMinCapacity()
The new minimum capacity.
|
Schedule |
getSchedule()
When to perform this action.
|
default Instant |
getStartTime()
When this scheduled action becomes active.
|
default String |
getTimeZone()
Specifies the time zone for a cron expression.
|
@Stability(value=Stable) @NotNull Schedule getSchedule()
Supports cron expressions.
For more information about cron expressions, see https://en.wikipedia.org/wiki/Cron.
@Stability(value=Stable) @Nullable default Number getDesiredCapacity()
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.
@Stability(value=Stable) @Nullable default Instant getEndTime()
Default: - The rule never expires.
@Stability(value=Stable) @Nullable default Number getMaxCapacity()
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.
@Stability(value=Stable) @Nullable default Number getMinCapacity()
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.
@Stability(value=Stable) @Nullable default Instant getStartTime()
Default: - The rule is activate immediately.
@Stability(value=Stable) @Nullable default String getTimeZone()
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
@Stability(value=Stable) static BasicScheduledActionProps.Builder builder()
BasicScheduledActionProps.Builder of BasicScheduledActionPropsCopyright © 2022. All rights reserved.