Class BaseScalableAttribute
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.services.applicationautoscaling.BaseScalableAttribute
- All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
- Direct Known Subclasses:
ScalableInstanceCount
,ScalableTaskCount
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-10T21:56:46.353Z")
@Stability(Stable)
public abstract class BaseScalableAttribute
extends software.constructs.Construct
Represent an attribute for which autoscaling can be configured.
This class is basically a light wrapper around ScalableTarget, but with all methods protected instead of public so they can be selectively exposed and/or more specific versions of them can be exposed by derived classes for individual services support autoscaling.
Typical use cases:
- Hide away the PredefinedMetric enum for target tracking policies.
- Don't expose all scaling methods (for example Dynamo tables don't support Step Scaling, so the Dynamo subclass won't expose this method).
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
-
Constructor Summary
ModifierConstructorDescriptionprotected
BaseScalableAttribute
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
BaseScalableAttribute
(software.amazon.jsii.JsiiObjectRef objRef) protected
BaseScalableAttribute
(software.constructs.Construct scope, String id, BaseScalableAttributeProps props) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
doScaleOnMetric
(String id, BasicStepScalingPolicyProps props) Scale out or in based on a metric value.protected void
doScaleOnSchedule
(String id, ScalingSchedule props) Scale out or in based on time.protected void
Scale out or in in order to keep a metric around a target value.protected BaseScalableAttributeProps
getProps()
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Constructor Details
-
BaseScalableAttribute
protected BaseScalableAttribute(software.amazon.jsii.JsiiObjectRef objRef) -
BaseScalableAttribute
protected BaseScalableAttribute(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
BaseScalableAttribute
@Stability(Stable) protected BaseScalableAttribute(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull BaseScalableAttributeProps props) - Parameters:
scope
- This parameter is required.id
- This parameter is required.props
- This parameter is required.
-
-
Method Details
-
doScaleOnMetric
@Stability(Stable) protected void doScaleOnMetric(@NotNull String id, @NotNull BasicStepScalingPolicyProps props) Scale out or in based on a metric value.- Parameters:
id
- This parameter is required.props
- This parameter is required.
-
doScaleOnSchedule
@Stability(Stable) protected void doScaleOnSchedule(@NotNull String id, @NotNull ScalingSchedule props) Scale out or in based on time.- Parameters:
id
- This parameter is required.props
- This parameter is required.
-
doScaleToTrackMetric
@Stability(Stable) protected void doScaleToTrackMetric(@NotNull String id, @NotNull BasicTargetTrackingScalingPolicyProps props) Scale out or in in order to keep a metric around a target value.- Parameters:
id
- This parameter is required.props
- This parameter is required.
-
getProps
-