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

Class: Aws::OpsWorks::Types::SetTimeBasedAutoScalingRequest

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 SetTimeBasedAutoScalingRequest data as a hash:

{
  instance_id: "String", # required
  auto_scaling_schedule: {
    monday: {
      "Hour" => "Switch",
    },
    tuesday: {
      "Hour" => "Switch",
    },
    wednesday: {
      "Hour" => "Switch",
    },
    thursday: {
      "Hour" => "Switch",
    },
    friday: {
      "Hour" => "Switch",
    },
    saturday: {
      "Hour" => "Switch",
    },
    sunday: {
      "Hour" => "Switch",
    },
  },
}

Instance Attribute Summary collapse

Instance Attribute Details

#auto_scaling_scheduleTypes::WeeklyAutoScalingSchedule

An AutoScalingSchedule with the instance schedule.



5295
5296
5297
5298
5299
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 5295

class SetTimeBasedAutoScalingRequest < Struct.new(
  :instance_id,
  :auto_scaling_schedule)
  include Aws::Structure
end

#instance_idString

The instance ID.

Returns:

  • (String)


5295
5296
5297
5298
5299
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 5295

class SetTimeBasedAutoScalingRequest < Struct.new(
  :instance_id,
  :auto_scaling_schedule)
  include Aws::Structure
end