AWS SDK Version 2 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.

.NET Framework 3.5
 
Describes a scaling policy.

Inheritance Hierarchy

System.Object
  Amazon.AutoScaling.Model.ScalingPolicy

Namespace: Amazon.AutoScaling.Model
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public class ScalingPolicy : Object

The ScalingPolicy type exposes the following members

Constructors

NameDescription
Public Method ScalingPolicy()

Properties

NameTypeDescription
Public Property AdjustmentType System.String Gets and sets the property AdjustmentType.

The adjustment type, which specifies how ScalingAdjustment is interpreted. Valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.

Public Property Alarms System.Collections.Generic.List<Amazon.AutoScaling.Model.Alarm> Gets and sets the property Alarms.

The CloudWatch alarms related to the policy.

Public Property AutoScalingGroupName System.String Gets and sets the property AutoScalingGroupName.

The name of the Auto Scaling group associated with this scaling policy.

Public Property Cooldown System.Int32 Gets and sets the property Cooldown.

The amount of time, in seconds, after a scaling activity completes before any further trigger-related scaling activities can start.

Public Property EstimatedInstanceWarmup System.Int32 Gets and sets the property EstimatedInstanceWarmup.

The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.

Public Property MetricAggregationType System.String Gets and sets the property MetricAggregationType.

The aggregation type for the CloudWatch metrics. Valid values are Minimum, Maximum, and Average.

Public Property MinAdjustmentMagnitude System.Int32 Gets and sets the property MinAdjustmentMagnitude.

The minimum number of instances to scale. If the value of AdjustmentType is PercentChangeInCapacity, the scaling policy changes the DesiredCapacity of the Auto Scaling group by at least this many instances. Otherwise, the error is ValidationError.

Public Property MinAdjustmentStep System.Int32 Gets and sets the property MinAdjustmentStep.

Available for backward compatibility. Use MinAdjustmentMagnitude instead.

Public Property PolicyARN System.String Gets and sets the property PolicyARN.

The Amazon Resource Name (ARN) of the policy.

Public Property PolicyName System.String Gets and sets the property PolicyName.

The name of the scaling policy.

Public Property PolicyType System.String Gets and sets the property PolicyType.

The policy type. Valid values are SimpleScaling and StepScaling.

Public Property ScalingAdjustment System.Int32 Gets and sets the property ScalingAdjustment.

The amount by which to scale, based on the specified adjustment type. A positive value adds to the current capacity while a negative number removes from the current capacity.

Public Property StepAdjustments System.Collections.Generic.List<Amazon.AutoScaling.Model.StepAdjustment> Gets and sets the property StepAdjustments.

A set of adjustments that enable you to scale based on the size of the alarm breach.

Version Information

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

.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8

.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8