PolicyState constructor

const PolicyState({
  1. Input<List<String>?>? alarmArns,
  2. Input<String?>? arn,
  3. Input<String?>? name,
  4. Input<String?>? policyType,
  5. Input<PolicyPredictiveScalingPolicyConfiguration?>? predictiveScalingPolicyConfiguration,
  6. Input<String?>? region,
  7. Input<String?>? resourceId,
  8. Input<String?>? scalableDimension,
  9. Input<String?>? serviceNamespace,
  10. Input<PolicyStepScalingPolicyConfiguration?>? stepScalingPolicyConfiguration,
  11. Input<PolicyTargetTrackingScalingPolicyConfiguration?>? targetTrackingScalingPolicyConfiguration,
})

Creates a new PolicyState. alarmArns List of CloudWatch alarm ARNs associated with the scaling policy. arn ARN assigned by AWS to the scaling policy. name Name of the policy. Must be between 1 and 255 characters in length. policyType Policy type. Valid values are StepScaling, TargetTrackingScaling, and PredictiveScaling. Defaults to StepScaling. Certain services only support only one policy type. For more information see the Target Tracking Scaling Policies, Step Scaling Policies, and Predictive Scaling documentation. predictiveScalingPolicyConfiguration Predictive scaling policy configuration, requires policyType = "PredictiveScaling". See supported fields below. region Region where this resource will be managed. Defaults to the Region set in the provider configuration. resourceId Resource type and unique identifier string for the resource associated with the scaling policy. Documentation can be found in the ResourceId parameter at: AWS Application Auto Scaling API Reference scalableDimension Scalable dimension of the scalable target. Documentation can be found in the ScalableDimension parameter at: AWS Application Auto Scaling API Reference serviceNamespace AWS service namespace of the scalable target. Documentation can be found in the ServiceNamespace parameter at: AWS Application Auto Scaling API Reference stepScalingPolicyConfiguration Step scaling policy configuration, requires policyType = "StepScaling" (default). See supported fields below. targetTrackingScalingPolicyConfiguration Target tracking policy configuration, requires policyType = "TargetTrackingScaling". See supported fields below.

Implementation

const PolicyState({
  this.alarmArns,
  this.arn,
  this.name,
  this.policyType,
  this.predictiveScalingPolicyConfiguration,
  this.region,
  this.resourceId,
  this.scalableDimension,
  this.serviceNamespace,
  this.stepScalingPolicyConfiguration,
  this.targetTrackingScalingPolicyConfiguration,
});