Module Values.ScalingPolicySource

Describes a scaling policy.

Sourcetype nonrec t = {
  1. autoScalingGroupName : XmlStringMaxLen255.t option;
    (*

    The name of the Auto Scaling group.

    *)
  2. policyName : XmlStringMaxLen255.t option;
    (*

    The name of the scaling policy.

    *)
  3. policyARN : ResourceName.t option;
    (*

    The Amazon Resource Name (ARN) of the policy.

    *)
  4. policyType : XmlStringMaxLen64.t option;
    (*

    One of the following policy types: TargetTrackingScaling StepScaling SimpleScaling (default) PredictiveScaling For more information, see Target tracking scaling policies and Step and simple scaling policies in the Amazon EC2 Auto Scaling User Guide.

    *)
  5. adjustmentType : XmlStringMaxLen255.t option;
    (*

    Specifies how the scaling adjustment is interpreted (for example, an absolute number or a percentage). The valid values are ChangeInCapacity, ExactCapacity, and PercentChangeInCapacity.

    *)
  6. minAdjustmentStep : MinAdjustmentStep.t option;
    (*

    Available for backward compatibility. Use MinAdjustmentMagnitude instead.

    *)
  7. minAdjustmentMagnitude : MinAdjustmentMagnitude.t option;
    (*

    The minimum value to scale by when the adjustment type is PercentChangeInCapacity.

    *)
  8. scalingAdjustment : PolicyIncrement.t option;
    (*

    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.

    *)
  9. cooldown : Cooldown.t option;
    (*

    The duration of the policy's cooldown period, in seconds.

    *)
  10. stepAdjustments : StepAdjustments.t option;
    (*

    A set of adjustments that enable you to scale based on the size of the alarm breach.

    *)
  11. metricAggregationType : XmlStringMaxLen32.t option;
    (*

    The aggregation type for the CloudWatch metrics. The valid values are Minimum, Maximum, and Average.

    *)
  12. estimatedInstanceWarmup : EstimatedInstanceWarmup.t option;
    (*

    The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.

    *)
  13. alarms : Alarms.t option;
    (*

    The CloudWatch alarms related to the policy.

    *)
  14. targetTrackingConfiguration : TargetTrackingConfiguration.t option;
    (*

    A target tracking scaling policy.

    *)
  15. enabled : ScalingPolicyEnabled.t option;
    (*

    Indicates whether the policy is enabled (true) or disabled (false).

    *)
  16. predictiveScalingConfiguration : PredictiveScalingConfiguration.t option;
    (*

    A predictive scaling policy.

    *)
}
Sourceval make : ?autoScalingGroupName:??? -> ?policyName:??? -> ?policyARN:??? -> ?policyType:??? -> ?adjustmentType:??? -> ?minAdjustmentStep:??? -> ?minAdjustmentMagnitude:??? -> ?scalingAdjustment:??? -> ?cooldown:??? -> ?stepAdjustments:??? -> ?metricAggregationType:??? -> ?estimatedInstanceWarmup:??? -> ?alarms:??? -> ?targetTrackingConfiguration:??? -> ?enabled:??? -> ?predictiveScalingConfiguration:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Boolean of ScalingPolicyEnabled.t | `Integer of MinAdjustmentStep.t | `List of [> `Structure of (string * [> `Double of MetricScale.t | `Integer of PolicyIncrement.t | `String of XmlStringMaxLen255.t ]) list ] list | `String of XmlStringMaxLen255.t | `Structure of (string * [> `Boolean of DisableScaleIn.t | `Double of MetricScale.t | `Enum of string | `Integer of PredictiveScalingSchedulingBufferTime.t | `List of [> `Structure of (string * [> `Double of MetricScale.t | `Structure of (string * [> `Enum of string | `List of [> `Structure of (string * [> `Boolean of ReturnData.t | `String of XmlStringMaxLen255.t | `Structure of (string * [> `String of XmlStringMetricStat.t | `Structure of (string * [> `List of [> `Structure of (string * [> `String of MetricDimensionName.t ]) list ] list | `String of MetricNamespace.t ]) list ]) list ]) list ] list | `String of XmlStringMaxLen1023.t ]) list ]) list ] list | `Structure of (string * [> `Enum of string | `Integer of MetricGranularityInSeconds.t | `List of [> `Structure of (string * [> `Boolean of ReturnData.t | `Integer of MetricGranularityInSeconds.t | `String of MetricDimensionName.t | `Structure of (string * [> `Integer of MetricGranularityInSeconds.t | `String of XmlStringMetricStat.t | `Structure of (string * [> `List of [> `Structure of (string * [> `String of MetricDimensionName.t ]) list ] list | `String of MetricNamespace.t ]) list ]) list ]) list ] list | `String of XmlStringMaxLen1023.t ]) list ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t