Class BasicTargetTrackingScalingPolicyProps.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.autoscaling.BasicTargetTrackingScalingPolicyProps.Jsii$Proxy
All Implemented Interfaces:
BaseTargetTrackingProps, BasicTargetTrackingScalingPolicyProps, software.amazon.jsii.JsiiSerializable
Enclosing interface:
BasicTargetTrackingScalingPolicyProps

@Stability(Stable) @Internal public static final class BasicTargetTrackingScalingPolicyProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements BasicTargetTrackingScalingPolicyProps
  • Constructor Details

  • Method Details

    • getTargetValue

      public final Number getTargetValue()
      Description copied from interface: BasicTargetTrackingScalingPolicyProps
      The target value for the metric.
      Specified by:
      getTargetValue in interface BasicTargetTrackingScalingPolicyProps
    • getCustomMetric

      public final IMetric getCustomMetric()
      Description copied from interface: BasicTargetTrackingScalingPolicyProps
      A custom metric for application autoscaling.

      The metric must track utilization. Scaling out will happen if the metric is higher than the target value, scaling in will happen in the metric is lower than the target value.

      Exactly one of customMetric or predefinedMetric must be specified.

      Default: - No custom metric.

      Specified by:
      getCustomMetric in interface BasicTargetTrackingScalingPolicyProps
    • getPredefinedMetric

      public final PredefinedMetric getPredefinedMetric()
      Description copied from interface: BasicTargetTrackingScalingPolicyProps
      A predefined metric for application autoscaling.

      The metric must track utilization. Scaling out will happen if the metric is higher than the target value, scaling in will happen in the metric is lower than the target value.

      Exactly one of customMetric or predefinedMetric must be specified.

      Default: - No predefined metric.

      Specified by:
      getPredefinedMetric in interface BasicTargetTrackingScalingPolicyProps
    • getResourceLabel

      public final String getResourceLabel()
      Description copied from interface: BasicTargetTrackingScalingPolicyProps
      The resource label associated with the predefined metric.

      Should be supplied if the predefined metric is ALBRequestCountPerTarget, and the format should be:

      app/invalid input: '<'load-balancer-name>/invalid input: '<'load-balancer-id>/targetgroup/invalid input: '<'target-group-name>/invalid input: '<'target-group-id>

      Default: - No resource label.

      Specified by:
      getResourceLabel in interface BasicTargetTrackingScalingPolicyProps
    • getCooldown

      public final Duration getCooldown()
      Description copied from interface: BaseTargetTrackingProps
      Period after a scaling completes before another scaling activity can start.

      Default: - The default cooldown configured on the AutoScalingGroup.

      Specified by:
      getCooldown in interface BaseTargetTrackingProps
    • getDisableScaleIn

      public final Boolean getDisableScaleIn()
      Description copied from interface: BaseTargetTrackingProps
      Indicates whether scale in by the target tracking policy is disabled.

      If the value is true, scale in is disabled and the target tracking policy won't remove capacity from the autoscaling group. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the group.

      Default: false

      Specified by:
      getDisableScaleIn in interface BaseTargetTrackingProps
    • getEstimatedInstanceWarmup

      public final Duration getEstimatedInstanceWarmup()
      Description copied from interface: BaseTargetTrackingProps
      Estimated time until a newly launched instance can send metrics to CloudWatch.

      Default: - Same as the cooldown.

      Specified by:
      getEstimatedInstanceWarmup in interface BaseTargetTrackingProps
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object