@Stability(value=Stable) public static final class ScheduledActionProps.Builder extends Object implements software.amazon.jsii.Builder<ScheduledActionProps>
ScheduledActionProps| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public ScheduledActionProps.Builder autoScalingGroup(IAutoScalingGroup autoScalingGroup)
ScheduledActionProps.getAutoScalingGroup()autoScalingGroup - The AutoScalingGroup to apply the scheduled actions to. This parameter is required.this@Stability(value=Stable) public ScheduledActionProps.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 ScheduledActionProps.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 ScheduledActionProps.Builder endTime(Instant endTime)
BasicScheduledActionProps.getEndTime()endTime - When this scheduled action expires.this@Stability(value=Stable) public ScheduledActionProps.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 ScheduledActionProps.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 ScheduledActionProps.Builder startTime(Instant startTime)
BasicScheduledActionProps.getStartTime()startTime - When this scheduled action becomes active.this@Stability(value=Stable) public ScheduledActionProps.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 ScheduledActionProps build()
build in interface software.amazon.jsii.Builder<ScheduledActionProps>ScheduledActionPropsNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.