AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: Aws::OpsWorks::Types::WeeklyAutoScalingSchedule

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb

Overview

Note:

When making an API call, you may pass WeeklyAutoScalingSchedule data as a hash:

{
  monday: {
    "Hour" => "Switch",
  },
  tuesday: {
    "Hour" => "Switch",
  },
  wednesday: {
    "Hour" => "Switch",
  },
  thursday: {
    "Hour" => "Switch",
  },
  friday: {
    "Hour" => "Switch",
  },
  saturday: {
    "Hour" => "Switch",
  },
  sunday: {
    "Hour" => "Switch",
  },
}

Describes a time-based instance's auto scaling schedule. The schedule consists of a set of key-value pairs.

  • The key is the time period (a UTC hour) and must be an integer from 0 - 23.

  • The value indicates whether the instance should be online or offline for the specified period, and must be set to "on" or "off"

The default setting for all time periods is off, so you use the following parameters primarily to specify the online periods. You don't have to explicitly specify offline periods unless you want to change an online period to an offline period.

The following example specifies that the instance should be online for four hours, from UTC 1200 - 1600. It will be off for the remainder of the day.

\{ "12":"on", "13":"on", "14":"on", "15":"on" \}

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#fridayHash<String,String>

The schedule for Friday.

Returns:

  • (Hash<String,String>)


7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 7510

class WeeklyAutoScalingSchedule < Struct.new(
  :monday,
  :tuesday,
  :wednesday,
  :thursday,
  :friday,
  :saturday,
  :sunday)
  SENSITIVE = []
  include Aws::Structure
end

#mondayHash<String,String>

The schedule for Monday.

Returns:

  • (Hash<String,String>)


7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 7510

class WeeklyAutoScalingSchedule < Struct.new(
  :monday,
  :tuesday,
  :wednesday,
  :thursday,
  :friday,
  :saturday,
  :sunday)
  SENSITIVE = []
  include Aws::Structure
end

#saturdayHash<String,String>

The schedule for Saturday.

Returns:

  • (Hash<String,String>)


7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 7510

class WeeklyAutoScalingSchedule < Struct.new(
  :monday,
  :tuesday,
  :wednesday,
  :thursday,
  :friday,
  :saturday,
  :sunday)
  SENSITIVE = []
  include Aws::Structure
end

#sundayHash<String,String>

The schedule for Sunday.

Returns:

  • (Hash<String,String>)


7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 7510

class WeeklyAutoScalingSchedule < Struct.new(
  :monday,
  :tuesday,
  :wednesday,
  :thursday,
  :friday,
  :saturday,
  :sunday)
  SENSITIVE = []
  include Aws::Structure
end

#thursdayHash<String,String>

The schedule for Thursday.

Returns:

  • (Hash<String,String>)


7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 7510

class WeeklyAutoScalingSchedule < Struct.new(
  :monday,
  :tuesday,
  :wednesday,
  :thursday,
  :friday,
  :saturday,
  :sunday)
  SENSITIVE = []
  include Aws::Structure
end

#tuesdayHash<String,String>

The schedule for Tuesday.

Returns:

  • (Hash<String,String>)


7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 7510

class WeeklyAutoScalingSchedule < Struct.new(
  :monday,
  :tuesday,
  :wednesday,
  :thursday,
  :friday,
  :saturday,
  :sunday)
  SENSITIVE = []
  include Aws::Structure
end

#wednesdayHash<String,String>

The schedule for Wednesday.

Returns:

  • (Hash<String,String>)


7510
7511
7512
7513
7514
7515
7516
7517
7518
7519
7520
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 7510

class WeeklyAutoScalingSchedule < Struct.new(
  :monday,
  :tuesday,
  :wednesday,
  :thursday,
  :friday,
  :saturday,
  :sunday)
  SENSITIVE = []
  include Aws::Structure
end