You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::OpsWorks::Types::SetLoadBasedAutoScalingRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::OpsWorks::Types::SetLoadBasedAutoScalingRequest
- Defined in:
- (unknown)
Overview
When passing SetLoadBasedAutoScalingRequest as input to an Aws::Client method, you can use a vanilla 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
-
#down_scaling ⇒ Types::AutoScalingThresholds
An
AutoScalingThresholds
object with the downscaling threshold configuration. -
#enable ⇒ Boolean
Enables load-based auto scaling for the layer.
-
#layer_id ⇒ String
The layer ID.
-
#up_scaling ⇒ Types::AutoScalingThresholds
An
AutoScalingThresholds
object with the upscaling threshold configuration.
Instance Attribute Details
#down_scaling ⇒ Types::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.
#enable ⇒ Boolean
Enables load-based auto scaling for the layer.
#layer_id ⇒ String
The layer ID.
#up_scaling ⇒ Types::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.