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 scaling policy.
Namespace: Amazon.AutoScaling.Model
Assembly: AWSSDK.AutoScaling.dll
Version: 3.x.y.z
public class ScalingPolicy
The ScalingPolicy type exposes the following members
Name | Description | |
---|---|---|
ScalingPolicy() |
Name | Type | Description | |
---|---|---|---|
AdjustmentType | System.String |
Gets and sets the property AdjustmentType.
Specifies how the scaling adjustment is interpreted (for example, an absolute number
or a percentage). The valid values are |
|
Alarms | System.Collections.Generic.List<Amazon.AutoScaling.Model.Alarm> |
Gets and sets the property Alarms. The CloudWatch alarms related to the policy. |
|
AutoScalingGroupName | System.String |
Gets and sets the property AutoScalingGroupName. The name of the Auto Scaling group. |
|
Cooldown | System.Int32 |
Gets and sets the property Cooldown. The duration of the policy's cooldown period, in seconds. |
|
Enabled | System.Boolean |
Gets and sets the property Enabled.
Indicates whether the policy is enabled ( |
|
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. |
|
MetricAggregationType | System.String |
Gets and sets the property MetricAggregationType.
The aggregation type for the CloudWatch metrics. The valid values are |
|
MinAdjustmentMagnitude | System.Int32 |
Gets and sets the property MinAdjustmentMagnitude.
The minimum value to scale by when the adjustment type is |
|
MinAdjustmentStep | System.Int32 |
Gets and sets the property MinAdjustmentStep.
Available for backward compatibility. Use |
|
PolicyARN | System.String |
Gets and sets the property PolicyARN. The Amazon Resource Name (ARN) of the policy. |
|
PolicyName | System.String |
Gets and sets the property PolicyName. The name of the scaling policy. |
|
PolicyType | System.String |
Gets and sets the property PolicyType. One of the following policy types:
For more information, see Target tracking scaling policies and Step and simple scaling policies in the Amazon EC2 Auto Scaling User Guide. |
|
PredictiveScalingConfiguration | Amazon.AutoScaling.Model.PredictiveScalingConfiguration |
Gets and sets the property PredictiveScalingConfiguration. A predictive scaling policy. |
|
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. |
|
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. |
|
TargetTrackingConfiguration | Amazon.AutoScaling.Model.TargetTrackingConfiguration |
Gets and sets the property TargetTrackingConfiguration. A target tracking scaling policy. |
.NET:
Supported in: 8.0 and newer, Core 3.1
.NET Standard:
Supported in: 2.0
.NET Framework:
Supported in: 4.5 and newer, 3.5