You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.

Class: Aws::AutoScaling::Types::PutScheduledUpdateGroupActionType

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing PutScheduledUpdateGroupActionType as input to an Aws::Client method, you can use a vanilla Hash:

{
  auto_scaling_group_name: "ResourceName", # required
  scheduled_action_name: "XmlStringMaxLen255", # required
  time: Time.now,
  start_time: Time.now,
  end_time: Time.now,
  recurrence: "XmlStringMaxLen255",
  min_size: 1,
  max_size: 1,
  desired_capacity: 1,
}

Instance Attribute Summary collapse

Instance Attribute Details

#auto_scaling_group_name ⇒ String

The name of the Auto Scaling group.

Returns:

  • (String) —

    The name of the Auto Scaling group.

#desired_capacity ⇒ Integer

The desired capacity is the initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain. It can scale beyond this capacity if you add more scaling conditions.

Returns:

  • (Integer) —

    The desired capacity is the initial capacity of the Auto Scaling group after the scheduled action runs and the capacity it attempts to maintain.

#end_time ⇒ Time

The date and time for the recurring schedule to end. Amazon EC2 Auto Scaling does not perform the action after this time.

Returns:

  • (Time) —

    The date and time for the recurring schedule to end.

#max_size ⇒ Integer

The maximum size of the Auto Scaling group.

Returns:

  • (Integer) —

    The maximum size of the Auto Scaling group.

#min_size ⇒ Integer

The minimum size of the Auto Scaling group.

Returns:

  • (Integer) —

    The minimum size of the Auto Scaling group.

#recurrence ⇒ String

The recurring schedule for this action, in Unix cron syntax format. This format consists of five fields separated by white spaces: [Minute] [Hour] [Day_of_Month] [Month_of_Year] [Day_of_Week]. The value must be in quotes (for example, "30 0 1 1,6,12 *"). For more information about this format, see Crontab.

When StartTime and EndTime are specified with Recurrence, they form the boundaries of when the recurring action starts and stops.

Returns:

  • (String) —

    The recurring schedule for this action, in Unix cron syntax format.

#scheduled_action_name ⇒ String

The name of this scaling action.

Returns:

  • (String) —

    The name of this scaling action.

#start_time ⇒ Time

The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ format in UTC/GMT only and in quotes (for example, "2019-06-01T00:00:00Z").

If you specify Recurrence and StartTime, Amazon EC2 Auto Scaling performs the action at this time, and then performs the action based on the specified recurrence.

If you try to schedule your action in the past, Amazon EC2 Auto Scaling returns an error message.

Returns:

  • (Time) —

    The date and time for this action to start, in YYYY-MM-DDThh:mm:ssZ format in UTC/GMT only and in quotes (for example, "2019-06-01T00:00:00Z").

#time ⇒ Time

This parameter is no longer used.

Returns:

  • (Time) —

    This parameter is no longer used.