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

Class: Aws::OpsWorks::Types::SetLoadBasedAutoScalingRequest

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

{
  layer_id: "String", # required
  enable: false,
  up_scaling: {
    instance_count: 1,
    thresholds_wait_time: 1,
    ignore_metrics_time: 1,
    cpu_threshold: 1.0,
    memory_threshold: 1.0,
    load_threshold: 1.0,
    alarms: ["String"],
  },
  down_scaling: {
    instance_count: 1,
    thresholds_wait_time: 1,
    ignore_metrics_time: 1,
    cpu_threshold: 1.0,
    memory_threshold: 1.0,
    load_threshold: 1.0,
    alarms: ["String"],
  },
}

Instance Attribute Summary collapse

Instance Attribute Details

#down_scalingTypes::AutoScalingThresholds

An AutoScalingThresholds object with the downscaling threshold configuration. If the load falls below these thresholds for a specified amount of time, AWS OpsWorks Stacks stops a specified number of instances.



5187
5188
5189
5190
5191
5192
5193
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 5187

class SetLoadBasedAutoScalingRequest < Struct.new(
  :layer_id,
  :enable,
  :up_scaling,
  :down_scaling)
  include Aws::Structure
end

#enableBoolean

Enables load-based auto scaling for the layer.

Returns:

  • (Boolean)


5187
5188
5189
5190
5191
5192
5193
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 5187

class SetLoadBasedAutoScalingRequest < Struct.new(
  :layer_id,
  :enable,
  :up_scaling,
  :down_scaling)
  include Aws::Structure
end

#layer_idString

The layer ID.

Returns:

  • (String)


5187
5188
5189
5190
5191
5192
5193
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 5187

class SetLoadBasedAutoScalingRequest < Struct.new(
  :layer_id,
  :enable,
  :up_scaling,
  :down_scaling)
  include Aws::Structure
end

#up_scalingTypes::AutoScalingThresholds

An AutoScalingThresholds object with the upscaling threshold configuration. If the load exceeds these thresholds for a specified amount of time, AWS OpsWorks Stacks starts a specified number of instances.



5187
5188
5189
5190
5191
5192
5193
# File 'gems/aws-sdk-opsworks/lib/aws-sdk-opsworks/types.rb', line 5187

class SetLoadBasedAutoScalingRequest < Struct.new(
  :layer_id,
  :enable,
  :up_scaling,
  :down_scaling)
  include Aws::Structure
end