PolicyState class

Input properties used for looking up and filtering Policy resources.

Constructors

PolicyState({Input<String?>? adjustmentType, Input<String?>? arn, Input<String?>? autoscalingGroupName, Input<int?>? cooldown, Input<bool?>? enabled, Input<int?>? estimatedInstanceWarmup, Input<String?>? metricAggregationType, Input<int?>? minAdjustmentMagnitude, Input<String?>? name, Input<String?>? policyType, Input<PolicyPredictiveScalingConfiguration?>? predictiveScalingConfiguration, Input<String?>? region, Input<int?>? scalingAdjustment, Input<List<PolicyStepAdjustment>?>? stepAdjustments, Input<PolicyTargetTrackingConfiguration?>? targetTrackingConfiguration})
Creates a new PolicyState. adjustmentType Whether the adjustment is an absolute number or a percentage of the current capacity. Valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity. arn ARN assigned by AWS to the scaling policy. autoscalingGroupName Name of the autoscaling group. cooldown Amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start. enabled Whether the scaling policy is enabled or disabled. Default: true. estimatedInstanceWarmup Estimated time, in seconds, until a newly launched instance will contribute CloudWatch metrics. Without a value, AWS will default to the group's specified cooldown period. metricAggregationType Aggregation type for the policy's metrics. Valid values are "Minimum", "Maximum", and "Average". Without a value, AWS will treat the aggregation type as "Average". minAdjustmentMagnitude Minimum value to scale by when adjustmentType is set to PercentChangeInCapacity. name Name of the policy. policyType Policy type, either "SimpleScaling", "StepScaling", "TargetTrackingScaling", or "PredictiveScaling". If this value isn't provided, AWS will default to "SimpleScaling." predictiveScalingConfiguration Predictive scaling policy configuration to use with Amazon EC2 Auto Scaling. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. scalingAdjustment Number of members by which to stepAdjustments Set of adjustments that manage targetTrackingConfiguration Target tracking policy. These have the following structure:
const
PolicyState.fromMap(Map<String, dynamic> map)
factory

Properties

adjustmentType → Input<String?>?
Whether the adjustment is an absolute number or a percentage of the current capacity. Valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.
final
arn → Input<String?>?
ARN assigned by AWS to the scaling policy.
final
autoscalingGroupName → Input<String?>?
Name of the autoscaling group.
final
cooldown → Input<int?>?
Amount of time, in seconds, after a scaling activity completes and before the next scaling activity can start.
final
enabled → Input<bool?>?
Whether the scaling policy is enabled or disabled. Default: true.
final
estimatedInstanceWarmup → Input<int?>?
Estimated time, in seconds, until a newly launched instance will contribute CloudWatch metrics. Without a value, AWS will default to the group's specified cooldown period.
final
hashCode → int
The hash code for this object.
no setterinherited
metricAggregationType → Input<String?>?
Aggregation type for the policy's metrics. Valid values are "Minimum", "Maximum", and "Average". Without a value, AWS will treat the aggregation type as "Average".
final
minAdjustmentMagnitude → Input<int?>?
Minimum value to scale by when adjustmentType is set to PercentChangeInCapacity.
final
name → Input<String?>?
Name of the policy.
final
policyType → Input<String?>?
Policy type, either "SimpleScaling", "StepScaling", "TargetTrackingScaling", or "PredictiveScaling". If this value isn't provided, AWS will default to "SimpleScaling."
final
predictiveScalingConfiguration → Input<PolicyPredictiveScalingConfiguration?>?
Predictive scaling policy configuration to use with Amazon EC2 Auto Scaling.
final
region → Input<String?>?
Region where this resource will be managed. Defaults to the Region set in the provider configuration.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scalingAdjustment → Input<int?>?
Number of members by which to scale, when the adjustment bounds are breached. A positive value scales up. A negative value scales down.
final
stepAdjustments → Input<List<PolicyStepAdjustment>?>?
Set of adjustments that manage group scaling. These have the following structure:
final
targetTrackingConfiguration → Input<PolicyTargetTrackingConfiguration?>?
Target tracking policy. These have the following structure:
final

Methods

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

Operators

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