ScalingPolicy class

Describes a scaling policy.

Constructors

ScalingPolicy({String? adjustmentType, List<Alarm>? alarms, String? autoScalingGroupName, int? cooldown, bool? enabled, int? estimatedInstanceWarmup, String? metricAggregationType, int? minAdjustmentMagnitude, int? minAdjustmentStep, String? policyARN, String? policyName, String? policyType, int? scalingAdjustment, List<StepAdjustment>? stepAdjustments, TargetTrackingConfiguration? targetTrackingConfiguration})
ScalingPolicy.fromXml(XmlElement elem)
factory

Properties

adjustmentType String?
Specifies how the scaling adjustment is interpreted (for example, an absolute number or a percentage). The valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.
final
alarms List<Alarm>?
The CloudWatch alarms related to the policy.
final
autoScalingGroupName String?
The name of the Auto Scaling group.
final
cooldown int?
The duration of the policy's cooldown period, in seconds.
final
enabled bool?
Indicates whether the policy is enabled (true) or disabled (false).
final
estimatedInstanceWarmup int?
The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.
final
hashCode int
The hash code for this object.
no setterinherited
metricAggregationType String?
The aggregation type for the CloudWatch metrics. The valid values are Minimum, Maximum, and Average.
final
minAdjustmentMagnitude int?
The minimum value to scale by when the adjustment type is PercentChangeInCapacity.
final
minAdjustmentStep int?
Available for backward compatibility. Use MinAdjustmentMagnitude instead.
final
policyARN String?
The Amazon Resource Name (ARN) of the policy.
final
policyName String?
The name of the scaling policy.
final
policyType String?
One of the following policy types:
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scalingAdjustment int?
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.
final
stepAdjustments List<StepAdjustment>?
A set of adjustments that enable you to scale based on the size of the alarm breach.
final
targetTrackingConfiguration TargetTrackingConfiguration?
A target tracking scaling policy.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited