Interface CfnScalableTarget.SuspendedStateProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnScalableTarget.SuspendedStateProperty.Jsii$Proxy
Enclosing class:
CfnScalableTarget

@Stability(Stable) public static interface CfnScalableTarget.SuspendedStateProperty extends software.amazon.jsii.JsiiSerializable
SuspendedState is a property of the AWS::ApplicationAutoScaling::ScalableTarget resource that specifies whether the scaling activities for a scalable target are in a suspended state.

For more information, see Suspending and resuming scaling in the Application Auto Scaling User Guide .

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.applicationautoscaling.*;
 SuspendedStateProperty suspendedStateProperty = SuspendedStateProperty.builder()
         .dynamicScalingInSuspended(false)
         .dynamicScalingOutSuspended(false)
         .scheduledScalingSuspended(false)
         .build();
 
  • Method Details

    • getDynamicScalingInSuspended

      @Stability(Stable) @Nullable default Object getDynamicScalingInSuspended()
      Whether scale in by a target tracking scaling policy or a step scaling policy is suspended.

      Set the value to true if you don't want Application Auto Scaling to remove capacity when a scaling policy is triggered. The default is false .

    • getDynamicScalingOutSuspended

      @Stability(Stable) @Nullable default Object getDynamicScalingOutSuspended()
      Whether scale out by a target tracking scaling policy or a step scaling policy is suspended.

      Set the value to true if you don't want Application Auto Scaling to add capacity when a scaling policy is triggered. The default is false .

    • getScheduledScalingSuspended

      @Stability(Stable) @Nullable default Object getScheduledScalingSuspended()
      Whether scheduled scaling is suspended.

      Set the value to true if you don't want Application Auto Scaling to add or remove capacity by initiating scheduled actions. The default is false .

    • builder

      @Stability(Stable) static CfnScalableTarget.SuspendedStateProperty.Builder builder()
      Returns:
      a CfnScalableTarget.SuspendedStateProperty.Builder of CfnScalableTarget.SuspendedStateProperty