@Stability(value=Stable)
public static interface CfnScalableTarget.ScheduledActionProperty
extends software.amazon.jsii.JsiiSerializable
For more information, see PutScheduledAction in the Application Auto Scaling API Reference . For more information about scheduled scaling, including the format for cron expressions, see Scheduled scaling in the Application Auto Scaling User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.applicationautoscaling.*;
ScheduledActionProperty scheduledActionProperty = ScheduledActionProperty.builder()
.schedule("schedule")
.scheduledActionName("scheduledActionName")
// the properties below are optional
.endTime(new Date())
.scalableTargetAction(ScalableTargetActionProperty.builder()
.maxCapacity(123)
.minCapacity(123)
.build())
.startTime(new Date())
.timezone("timezone")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnScalableTarget.ScheduledActionProperty.Builder
A builder for
CfnScalableTarget.ScheduledActionProperty |
static class |
CfnScalableTarget.ScheduledActionProperty.Jsii$Proxy
An implementation for
CfnScalableTarget.ScheduledActionProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnScalableTarget.ScheduledActionProperty.Builder |
builder() |
default Object |
getEndTime()
The date and time that the action is scheduled to end, in UTC.
|
default Object |
getScalableTargetAction()
The new minimum and maximum capacity.
|
String |
getSchedule()
The schedule for this action.
|
String |
getScheduledActionName()
The name of the scheduled action.
|
default Object |
getStartTime()
The date and time that the action is scheduled to begin, in UTC.
|
default String |
getTimezone()
The time zone used when referring to the date and time of a scheduled action, when the scheduled action uses an at or cron expression.
|
@Stability(value=Stable) @NotNull String getSchedule()
at( *yyyy* - *mm* - *dd* T *hh* : *mm* : *ss* ) "rate( *value* *unit* ) "cron( *fields* ) "At expressions are useful for one-time schedules. Cron expressions are useful for scheduled actions that run periodically at a specified date and time, and rate expressions are useful for scheduled actions that run at a regular interval.
At and cron expressions use Universal Coordinated Time (UTC) by default.
The cron format consists of six fields separated by white spaces: [Minutes] [Hours] [Day_of_Month] [Month] [Day_of_Week] [Year].
For rate expressions, value is a positive integer and unit is minute | minutes | hour | hours | day | days .
@Stability(value=Stable) @NotNull String getScheduledActionName()
This name must be unique among all other scheduled actions on the specified scalable target.
@Stability(value=Stable) @Nullable default Object getEndTime()
@Stability(value=Stable) @Nullable default Object getScalableTargetAction()
You can set both values or just one. At the scheduled time, if the current capacity is below the minimum capacity, Application Auto Scaling scales out to the minimum capacity. If the current capacity is above the maximum capacity, Application Auto Scaling scales in to the maximum capacity.
@Stability(value=Stable) @Nullable default Object getStartTime()
@Stability(value=Stable) @Nullable default String getTimezone()
@Stability(value=Stable) static CfnScalableTarget.ScheduledActionProperty.Builder builder()
Copyright © 2022. All rights reserved.