AWS SDK Version 3 for .NET
API Reference

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.

Describes a load-based auto scaling upscaling or downscaling threshold configuration, which specifies when AWS OpsWorks Stacks starts or stops load-based instances.

Inheritance Hierarchy

System.Object
  Amazon.OpsWorks.Model.AutoScalingThresholds

Namespace: Amazon.OpsWorks.Model
Assembly: AWSSDK.OpsWorks.dll
Version: 3.x.y.z

Syntax

C#
public class AutoScalingThresholds

The AutoScalingThresholds type exposes the following members

Constructors

NameDescription
Public Method AutoScalingThresholds()

Properties

NameTypeDescription
Public Property Alarms System.Collections.Generic.List<System.String>

Gets and sets the property Alarms.

Custom Cloudwatch auto scaling alarms, to be used as thresholds. This parameter takes a list of up to five alarm names, which are case sensitive and must be in the same region as the stack.

To use custom alarms, you must update your service role to allow cloudwatch:DescribeAlarms. You can either have AWS OpsWorks Stacks update the role for you when you first use this feature or you can edit the role manually. For more information, see Allowing AWS OpsWorks Stacks to Act on Your Behalf.

Public Property CpuThreshold System.Double

Gets and sets the property CpuThreshold.

The CPU utilization threshold, as a percent of the available CPU. A value of -1 disables the threshold.

Public Property IgnoreMetricsTime System.Int32

Gets and sets the property IgnoreMetricsTime.

The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events. For example, AWS OpsWorks Stacks adds new instances following an upscaling event but the instances won't start reducing the load until they have been booted and configured. There is no point in raising additional scaling events during that operation, which typically takes several minutes. IgnoreMetricsTime allows you to direct AWS OpsWorks Stacks to suppress scaling events long enough to get the new instances online.

Public Property InstanceCount System.Int32

Gets and sets the property InstanceCount.

The number of instances to add or remove when the load exceeds a threshold.

Public Property LoadThreshold System.Double

Gets and sets the property LoadThreshold.

The load threshold. A value of -1 disables the threshold. For more information about how load is computed, see Load (computing).

Public Property MemoryThreshold System.Double

Gets and sets the property MemoryThreshold.

The memory utilization threshold, as a percent of the available memory. A value of -1 disables the threshold.

Public Property ThresholdsWaitTime System.Int32

Gets and sets the property ThresholdsWaitTime.

The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.

Version Information

.NET Standard:
Supported in: 1.3

.NET Framework:
Supported in: 4.5, 4.0, 3.5

Portable Class Library:
Supported in: Windows Store Apps
Supported in: Windows Phone 8.1
Supported in: Xamarin Android
Supported in: Xamarin iOS (Unified)
Supported in: Xamarin.Forms