@Stability(value=Experimental) public static final class ScheduledAction.Builder extends Object implements software.amazon.jsii.Builder<ScheduledAction>
ScheduledAction.| Modifier and Type | Method and Description |
|---|---|
ScheduledAction.Builder |
autoScalingGroup(IAutoScalingGroup autoScalingGroup)
(experimental) The AutoScalingGroup to apply the scheduled actions to.
|
ScheduledAction |
build() |
static ScheduledAction.Builder |
create(software.constructs.Construct scope,
String id) |
ScheduledAction.Builder |
desiredCapacity(Number desiredCapacity)
(experimental) The new desired capacity.
|
ScheduledAction.Builder |
endTime(Instant endTime)
(experimental) When this scheduled action expires.
|
ScheduledAction.Builder |
maxCapacity(Number maxCapacity)
(experimental) The new maximum capacity.
|
ScheduledAction.Builder |
minCapacity(Number minCapacity)
(experimental) The new minimum capacity.
|
ScheduledAction.Builder |
schedule(Schedule schedule)
(experimental) When to perform this action.
|
ScheduledAction.Builder |
startTime(Instant startTime)
(experimental) When this scheduled action becomes active.
|
@Stability(value=Experimental) public static ScheduledAction.Builder create(software.constructs.Construct scope, String id)
scope - This parameter is required.id - This parameter is required.ScheduledAction.Builder.@Stability(value=Experimental) public ScheduledAction.Builder schedule(Schedule schedule)
Supports cron expressions.
For more information about cron expressions, see https://en.wikipedia.org/wiki/Cron.
Example:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 0;8 * * ?;
schedule - When to perform this action. This parameter is required.this@Stability(value=Experimental) public ScheduledAction.Builder desiredCapacity(Number desiredCapacity)
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.
desiredCapacity - The new desired capacity. This parameter is required.this@Stability(value=Experimental) public ScheduledAction.Builder endTime(Instant endTime)
Default: - The rule never expires.
endTime - When this scheduled action expires. This parameter is required.this@Stability(value=Experimental) public ScheduledAction.Builder maxCapacity(Number maxCapacity)
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.
maxCapacity - The new maximum capacity. This parameter is required.this@Stability(value=Experimental) public ScheduledAction.Builder minCapacity(Number minCapacity)
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.
minCapacity - The new minimum capacity. This parameter is required.this@Stability(value=Experimental) public ScheduledAction.Builder startTime(Instant startTime)
Default: - The rule is activate immediately.
startTime - When this scheduled action becomes active. This parameter is required.this@Stability(value=Experimental) public ScheduledAction.Builder autoScalingGroup(IAutoScalingGroup autoScalingGroup)
autoScalingGroup - The AutoScalingGroup to apply the scheduled actions to. This parameter is required.this@Stability(value=Experimental) public ScheduledAction build()
build in interface software.amazon.jsii.Builder<ScheduledAction>Copyright © 2021. All rights reserved.