@Stability(value=Stable) public static final class BasicScheduledActionProps.Builder extends Object implements software.amazon.jsii.Builder<BasicScheduledActionProps>
BasicScheduledActionProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public BasicScheduledActionProps.Builder schedule(Schedule schedule)
BasicScheduledActionProps.getSchedule()schedule - When to perform this action. This parameter is required.
Supports cron expressions.
For more information about cron expressions, see https://en.wikipedia.org/wiki/Cron.
this@Stability(value=Stable) public BasicScheduledActionProps.Builder desiredCapacity(Number desiredCapacity)
BasicScheduledActionProps.getDesiredCapacity()desiredCapacity - 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.
this@Stability(value=Stable) public BasicScheduledActionProps.Builder endTime(Instant endTime)
BasicScheduledActionProps.getEndTime()endTime - When this scheduled action expires.this@Stability(value=Stable) public BasicScheduledActionProps.Builder maxCapacity(Number maxCapacity)
BasicScheduledActionProps.getMaxCapacity()maxCapacity - 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.
this@Stability(value=Stable) public BasicScheduledActionProps.Builder minCapacity(Number minCapacity)
BasicScheduledActionProps.getMinCapacity()minCapacity - 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.
this@Stability(value=Stable) public BasicScheduledActionProps.Builder startTime(Instant startTime)
BasicScheduledActionProps.getStartTime()startTime - When this scheduled action becomes active.this@Stability(value=Stable) public BasicScheduledActionProps.Builder timeZone(String timeZone)
BasicScheduledActionProps.getTimeZone()timeZone - 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.
this@Stability(value=Stable) public BasicScheduledActionProps build()
build in interface software.amazon.jsii.Builder<BasicScheduledActionProps>BasicScheduledActionPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.