Class PolicyTargetTrackingScalingPolicyConfiguration


  • public final class PolicyTargetTrackingScalingPolicyConfiguration
    extends java.lang.Object
    • Method Detail

      • customizedMetricSpecification

        public java.util.Optional<PolicyTargetTrackingScalingPolicyConfigurationCustomizedMetricSpecification> customizedMetricSpecification()
        Returns:
        Custom CloudWatch metric. See the [AWS Customized Metric Specification](https://docs.aws.amazon.com/autoscaling/ec2/APIReference/API_CustomizedMetricSpecification.html) documentation. See `target_tracking_scaling_policy_configuration.customized_metric_specification` Block for details.
      • disableScaleIn

        public java.util.Optional<java.lang.Boolean> disableScaleIn()
        Returns:
        Whether scale in by the target tracking policy is disabled. If `true`, scale in is disabled and the target tracking policy does not remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource. Defaults to `false`.
      • scaleInCooldown

        public java.util.Optional<java.lang.Integer> scaleInCooldown()
        Returns:
        Amount of time, in seconds, after a scale in activity completes before another scale in activity can start.
      • scaleOutCooldown

        public java.util.Optional<java.lang.Integer> scaleOutCooldown()
        Returns:
        Amount of time, in seconds, after a scale out activity completes before another scale out activity can start.
      • targetValue

        public java.lang.Double targetValue()
        Returns:
        Target value for the metric.