Class StepScalingActionProps
Properties for a scaling policy.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.ApplicationAutoScaling
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class StepScalingActionProps : Object, IStepScalingActionProps
Syntax (vb)
Public Class StepScalingActionProps
Inherits Object
Implements IStepScalingActionProps
Remarks
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;
using Amazon.CDK.AWS.ApplicationAutoScaling;
ScalableTarget scalableTarget;
var stepScalingActionProps = new StepScalingActionProps {
ScalingTarget = scalableTarget,
// the properties below are optional
AdjustmentType = AdjustmentType.CHANGE_IN_CAPACITY,
Cooldown = Duration.Minutes(30),
MetricAggregationType = MetricAggregationType.AVERAGE,
MinAdjustmentMagnitude = 123,
PolicyName = "policyName"
};
Synopsis
Constructors
StepScalingActionProps() |
Properties
AdjustmentType | How the adjustment numbers are interpreted. |
Cooldown | Grace period after scaling activity. |
MetricAggregationType | The aggregation type for the CloudWatch metrics. |
MinAdjustmentMagnitude | Minimum absolute number to adjust capacity with as result of percentage scaling. |
PolicyName | A name for the scaling policy. |
ScalingTarget | The scalable target. |
Constructors
StepScalingActionProps()
public StepScalingActionProps()
Properties
AdjustmentType
How the adjustment numbers are interpreted.
public Nullable<AdjustmentType> AdjustmentType { get; set; }
Property Value
System.Nullable<AdjustmentType>
Remarks
Default: ChangeInCapacity
Cooldown
Grace period after scaling activity.
public Duration Cooldown { get; set; }
Property Value
Remarks
For scale out policies, multiple scale outs during the cooldown period are squashed so that only the biggest scale out happens.
For scale in policies, subsequent scale ins during the cooldown period are ignored.
Default: No cooldown period
MetricAggregationType
The aggregation type for the CloudWatch metrics.
public Nullable<MetricAggregationType> MetricAggregationType { get; set; }
Property Value
System.Nullable<MetricAggregationType>
Remarks
Default: Average
MinAdjustmentMagnitude
Minimum absolute number to adjust capacity with as result of percentage scaling.
public Nullable<double> MinAdjustmentMagnitude { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Only when using AdjustmentType = PercentChangeInCapacity, this number controls the minimum absolute effect size.
Default: No minimum scaling effect
PolicyName
A name for the scaling policy.
public string PolicyName { get; set; }
Property Value
System.String
Remarks
Default: Automatically generated name
ScalingTarget
The scalable target.
public IScalableTarget ScalingTarget { get; set; }
Property Value