@Stability(value=Stable) public static final class CfnScalableTarget.ScheduledActionProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnScalableTarget.ScheduledActionProperty>
CfnScalableTarget.ScheduledActionProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnScalableTarget.ScheduledActionProperty.Builder schedule(String schedule)
CfnScalableTarget.ScheduledActionProperty.getSchedule()schedule - The schedule for this action. The following formats are supported:. This parameter is required.
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 .
this@Stability(value=Stable) public CfnScalableTarget.ScheduledActionProperty.Builder scheduledActionName(String scheduledActionName)
CfnScalableTarget.ScheduledActionProperty.getScheduledActionName()scheduledActionName - The name of the scheduled action. This parameter is required.
This name must be unique among all other scheduled actions on the specified scalable target.this@Stability(value=Stable) public CfnScalableTarget.ScheduledActionProperty.Builder endTime(IResolvable endTime)
CfnScalableTarget.ScheduledActionProperty.getEndTime()endTime - The date and time that the action is scheduled to end, in UTC.this@Stability(value=Stable) public CfnScalableTarget.ScheduledActionProperty.Builder endTime(Instant endTime)
CfnScalableTarget.ScheduledActionProperty.getEndTime()endTime - The date and time that the action is scheduled to end, in UTC.this@Stability(value=Stable) public CfnScalableTarget.ScheduledActionProperty.Builder scalableTargetAction(CfnScalableTarget.ScalableTargetActionProperty scalableTargetAction)
CfnScalableTarget.ScheduledActionProperty.getScalableTargetAction()scalableTargetAction - The new minimum and maximum capacity.
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.this@Stability(value=Stable) public CfnScalableTarget.ScheduledActionProperty.Builder scalableTargetAction(IResolvable scalableTargetAction)
CfnScalableTarget.ScheduledActionProperty.getScalableTargetAction()scalableTargetAction - The new minimum and maximum capacity.
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.this@Stability(value=Stable) public CfnScalableTarget.ScheduledActionProperty.Builder startTime(IResolvable startTime)
CfnScalableTarget.ScheduledActionProperty.getStartTime()startTime - The date and time that the action is scheduled to begin, in UTC.this@Stability(value=Stable) public CfnScalableTarget.ScheduledActionProperty.Builder startTime(Instant startTime)
CfnScalableTarget.ScheduledActionProperty.getStartTime()startTime - The date and time that the action is scheduled to begin, in UTC.this@Stability(value=Stable) public CfnScalableTarget.ScheduledActionProperty.Builder timezone(String timezone)
CfnScalableTarget.ScheduledActionProperty.getTimezone()timezone - 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.this@Stability(value=Stable) public CfnScalableTarget.ScheduledActionProperty build()
build in interface software.amazon.jsii.Builder<CfnScalableTarget.ScheduledActionProperty>CfnScalableTarget.ScheduledActionPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.