PolicyState constructor
- 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< ? stepAdjustments,PolicyStepAdjustment> ?> - 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:
Implementation
const PolicyState({
this.adjustmentType,
this.arn,
this.autoscalingGroupName,
this.cooldown,
this.enabled,
this.estimatedInstanceWarmup,
this.metricAggregationType,
this.minAdjustmentMagnitude,
this.name,
this.policyType,
this.predictiveScalingConfiguration,
this.region,
this.scalingAdjustment,
this.stepAdjustments,
this.targetTrackingConfiguration,
});