ScalingSchedule

class aws_cdk.aws_applicationautoscaling.ScalingSchedule(*, schedule, end_time=None, max_capacity=None, min_capacity=None, start_time=None)

Bases: object

A scheduled scaling action.

Parameters
  • schedule (Schedule) – When to perform this action.

  • end_time (Optional[datetime]) – When this scheduled action expires. Default: The rule never expires.

  • max_capacity (Union[int, float, None]) – The new maximum capacity. During the scheduled time, the current capacity is above the maximum capacity, Application Auto Scaling scales in to the maximum capacity. At least one of maxCapacity and minCapacity must be supplied. Default: No new maximum capacity

  • min_capacity (Union[int, float, None]) – The new minimum capacity. During the scheduled time, if the current capacity is below the minimum capacity, Application Auto Scaling scales out to the minimum capacity. At least one of maxCapacity and minCapacity must be supplied. Default: No new minimum capacity

  • start_time (Optional[datetime]) – When this scheduled action becomes active. Default: The rule is activate immediately

Attributes

end_time

When this scheduled action expires.

Default

The rule never expires.

Return type

Optional[datetime]

max_capacity

The new maximum capacity.

During the scheduled time, the current capacity is above the maximum capacity, Application Auto Scaling scales in to the maximum capacity.

At least one of maxCapacity and minCapacity must be supplied.

Default

No new maximum capacity

Return type

Union[int, float, None]

min_capacity

The new minimum capacity.

During the scheduled time, if the current capacity is below the minimum capacity, Application Auto Scaling scales out to the minimum capacity.

At least one of maxCapacity and minCapacity must be supplied.

Default

No new minimum capacity

Return type

Union[int, float, None]

schedule

When to perform this action.

Return type

Schedule

start_time

When this scheduled action becomes active.

Default

The rule is activate immediately

Return type

Optional[datetime]