ScalingRule class
A scale-in or scale-out rule that defines scaling activity, including the CloudWatch metric alarm that triggers activity, how EC2 instances are added or removed, and the periodicity of adjustments. The automatic scaling policy for an instance group can comprise one or more automatic scaling rules.
Constructors
- ScalingRule({required ScalingAction action, required String name, required ScalingTrigger trigger, String? description})
-
ScalingRule.fromJson(Map<
String, dynamic> json) -
factory
Properties
- action → ScalingAction
-
The conditions that trigger an automatic scaling activity.
final
- description → String?
-
A friendly, more verbose description of the automatic scaling rule.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The name used to identify an automatic scaling rule. Rule names must be
unique within a scaling policy.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- trigger → ScalingTrigger
-
The CloudWatch alarm definition that determines when automatic scaling
activity is triggered.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited