Class CfnScalingPolicy.StepScalingPolicyConfigurationProperty
StepScalingPolicyConfiguration
is a property of the AWS::ApplicationAutoScaling::ScalingPolicy resource that specifies a step scaling policy configuration for Application Auto Scaling.
Inheritance
Namespace: Amazon.CDK.AWS.ApplicationAutoScaling
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class StepScalingPolicyConfigurationProperty : Object, CfnScalingPolicy.IStepScalingPolicyConfigurationProperty
Syntax (vb)
Public Class StepScalingPolicyConfigurationProperty
Inherits Object
Implements CfnScalingPolicy.IStepScalingPolicyConfigurationProperty
Remarks
For more information, see Step scaling policies in the Application Auto Scaling User Guide .
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.ApplicationAutoScaling;
var stepScalingPolicyConfigurationProperty = new StepScalingPolicyConfigurationProperty {
AdjustmentType = "adjustmentType",
Cooldown = 123,
MetricAggregationType = "metricAggregationType",
MinAdjustmentMagnitude = 123,
StepAdjustments = new [] { new StepAdjustmentProperty {
ScalingAdjustment = 123,
// the properties below are optional
MetricIntervalLowerBound = 123,
MetricIntervalUpperBound = 123
} }
};
Synopsis
Constructors
StepScalingPolicyConfigurationProperty() |
Properties
AdjustmentType | Specifies whether the |
Cooldown | The amount of time, in seconds, to wait for a previous scaling activity to take effect. |
MetricAggregationType | The aggregation type for the CloudWatch metrics. |
MinAdjustmentMagnitude | The minimum value to scale by when the adjustment type is |
StepAdjustments | A set of adjustments that enable you to scale based on the size of the alarm breach. |
Constructors
StepScalingPolicyConfigurationProperty()
public StepScalingPolicyConfigurationProperty()
Properties
AdjustmentType
Specifies whether the ScalingAdjustment
value in the StepAdjustment
property is an absolute number or a percentage of the current capacity.
public string AdjustmentType { get; set; }
Property Value
System.String
Remarks
Cooldown
The amount of time, in seconds, to wait for a previous scaling activity to take effect.
public Nullable<double> Cooldown { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
If not specified, the default value is 300. For more information, see Cooldown period in the Application Auto Scaling User Guide .
MetricAggregationType
The aggregation type for the CloudWatch metrics.
public string MetricAggregationType { get; set; }
Property Value
System.String
Remarks
Valid values are Minimum
, Maximum
, and Average
. If the aggregation type is null, the value is treated as Average
.
MinAdjustmentMagnitude
The minimum value to scale by when the adjustment type is PercentChangeInCapacity
.
public Nullable<double> MinAdjustmentMagnitude { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
For example, suppose that you create a step scaling policy to scale out an Amazon ECS service by 25 percent and you specify a MinAdjustmentMagnitude
of 2. If the service has 4 tasks and the scaling policy is performed, 25 percent of 4 is 1. However, because you specified a MinAdjustmentMagnitude
of 2, Application Auto Scaling scales out the service by 2 tasks.
StepAdjustments
A set of adjustments that enable you to scale based on the size of the alarm breach.
public object StepAdjustments { get; set; }
Property Value
System.Object
Remarks
At least one step adjustment is required if you are adding a new step scaling policy configuration.