@Stability(value=Experimental) @Internal public static final class BasicTargetTrackingScalingPolicyProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements BasicTargetTrackingScalingPolicyProps
BasicTargetTrackingScalingPolicyProps
software.amazon.jsii.JsiiObject.InitializationMode
BasicTargetTrackingScalingPolicyProps.Builder, BasicTargetTrackingScalingPolicyProps.Jsii$Proxy
Modifier | Constructor and Description |
---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(Number targetValue,
IMetric customMetric,
PredefinedMetric predefinedMetric,
String resourceLabel,
Duration cooldown,
Boolean disableScaleIn,
Duration estimatedInstanceWarmup)
Constructor that initializes the object based on literal property values passed by the
BasicTargetTrackingScalingPolicyProps.Builder . |
Modifier and Type | Method and Description |
---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Duration |
getCooldown()
(experimental) Period after a scaling completes before another scaling activity can start.
|
IMetric |
getCustomMetric()
(experimental) A custom metric for application autoscaling.
|
Boolean |
getDisableScaleIn()
(experimental) Indicates whether scale in by the target tracking policy is disabled.
|
Duration |
getEstimatedInstanceWarmup()
(experimental) Estimated time until a newly launched instance can send metrics to CloudWatch.
|
PredefinedMetric |
getPredefinedMetric()
(experimental) A predefined metric for application autoscaling.
|
String |
getResourceLabel()
(experimental) The resource label associated with the predefined metric.
|
Number |
getTargetValue()
(experimental) The target value for the metric.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef
- Reference to the JSII managed object.protected Jsii$Proxy(Number targetValue, IMetric customMetric, PredefinedMetric predefinedMetric, String resourceLabel, Duration cooldown, Boolean disableScaleIn, Duration estimatedInstanceWarmup)
BasicTargetTrackingScalingPolicyProps.Builder
.public final Number getTargetValue()
BasicTargetTrackingScalingPolicyProps
getTargetValue
in interface BasicTargetTrackingScalingPolicyProps
public final IMetric getCustomMetric()
BasicTargetTrackingScalingPolicyProps
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.
getCustomMetric
in interface BasicTargetTrackingScalingPolicyProps
public final PredefinedMetric getPredefinedMetric()
BasicTargetTrackingScalingPolicyProps
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.
getPredefinedMetric
in interface BasicTargetTrackingScalingPolicyProps
public final String getResourceLabel()
BasicTargetTrackingScalingPolicyProps
Should be supplied if the predefined metric is ALBRequestCountPerTarget, and the format should be:
app/
Default: - No resource label.
getResourceLabel
in interface BasicTargetTrackingScalingPolicyProps
public final Duration getCooldown()
BaseTargetTrackingProps
Default: - The default cooldown configured on the AutoScalingGroup.
getCooldown
in interface BaseTargetTrackingProps
public final Boolean getDisableScaleIn()
BaseTargetTrackingProps
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
getDisableScaleIn
in interface BaseTargetTrackingProps
public final Duration getEstimatedInstanceWarmup()
BaseTargetTrackingProps
Default: - Same as the cooldown.
getEstimatedInstanceWarmup
in interface BaseTargetTrackingProps
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson
in interface software.amazon.jsii.JsiiSerializable
Copyright © 2021. All rights reserved.