@Stability(value=Stable) @Internal public static final class CfnScalingPolicyProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnScalingPolicyProps
CfnScalingPolicyPropssoftware.amazon.jsii.JsiiObject.InitializationModeCfnScalingPolicyProps.Builder, CfnScalingPolicyProps.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(CfnScalingPolicyProps.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CfnScalingPolicyProps.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
String |
getAdjustmentType()
Specifies how the scaling adjustment is interpreted.
|
String |
getAutoScalingGroupName()
The name of the Auto Scaling group.
|
String |
getCooldown()
The duration of the policy's cooldown period, in seconds.
|
Number |
getEstimatedInstanceWarmup()
The estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics.
|
String |
getMetricAggregationType()
The aggregation type for the CloudWatch metrics.
|
Number |
getMinAdjustmentMagnitude()
The minimum value to scale by when the adjustment type is `PercentChangeInCapacity` .
|
String |
getPolicyType()
One of the following policy types:.
|
Object |
getPredictiveScalingConfiguration()
A predictive scaling policy.
|
Number |
getScalingAdjustment()
The amount by which to scale, based on the specified adjustment type.
|
Object |
getStepAdjustments()
A set of adjustments that enable you to scale based on the size of the alarm breach.
|
Object |
getTargetTrackingConfiguration()
A target tracking scaling policy.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(CfnScalingPolicyProps.Builder builder)
CfnScalingPolicyProps.Builder.public final String getAutoScalingGroupName()
CfnScalingPolicyPropsgetAutoScalingGroupName in interface CfnScalingPolicyPropspublic final String getAdjustmentType()
CfnScalingPolicyProps
Required if the policy type is StepScaling or SimpleScaling . For more information, see Scaling adjustment types in the Amazon EC2 Auto Scaling User Guide .
getAdjustmentType in interface CfnScalingPolicyPropspublic final String getCooldown()
CfnScalingPolicyPropsWhen a cooldown period is specified here, it overrides the default cooldown period defined for the Auto Scaling group.
Valid only if the policy type is SimpleScaling . For more information, see Scaling cooldowns for Amazon EC2 Auto Scaling in the Amazon EC2 Auto Scaling User Guide .
getCooldown in interface CfnScalingPolicyPropspublic final Number getEstimatedInstanceWarmup()
CfnScalingPolicyPropsIf not provided, the default is to use the value from the default cooldown period for the Auto Scaling group.
Valid only if the policy type is TargetTrackingScaling or StepScaling .
getEstimatedInstanceWarmup in interface CfnScalingPolicyPropspublic final String getMetricAggregationType()
CfnScalingPolicyProps
The valid values are Minimum , Maximum , and Average . If the aggregation type is null, the value is treated as Average .
Valid only if the policy type is StepScaling .
getMetricAggregationType in interface CfnScalingPolicyPropspublic final Number getMinAdjustmentMagnitude()
CfnScalingPolicyProps
For example, suppose that you create a step scaling policy to scale out an Auto Scaling group by 25 percent and you specify a MinAdjustmentMagnitude of 2. If the group has 4 instances and the scaling policy is performed, 25 percent of 4 is 1. However, because you specified a MinAdjustmentMagnitude of 2, Amazon EC2 Auto Scaling scales out the group by 2 instances.
Valid only if the policy type is StepScaling or SimpleScaling . For more information, see Scaling adjustment types in the Amazon EC2 Auto Scaling User Guide .
Some Auto Scaling groups use instance weights. In this case, set the
MinAdjustmentMagnitudeto a value that is at least as large as your largest instance weight.
getMinAdjustmentMagnitude in interface CfnScalingPolicyPropspublic final String getPolicyType()
CfnScalingPolicyProps
TargetTrackingScalingStepScalingSimpleScaling (default)PredictiveScalingFor more information, see Target tracking scaling policies and Step and simple scaling policies in the Amazon EC2 Auto Scaling User Guide .
getPolicyType in interface CfnScalingPolicyPropspublic final Object getPredictiveScalingConfiguration()
CfnScalingPolicyPropsIncludes support for predefined metrics only.
getPredictiveScalingConfiguration in interface CfnScalingPolicyPropspublic final Number getScalingAdjustment()
CfnScalingPolicyPropsA positive value adds to the current capacity while a negative number removes from the current capacity. For exact capacity, you must specify a positive value.
Required if the policy type is SimpleScaling . (Not used with any other policy type.)
getScalingAdjustment in interface CfnScalingPolicyPropspublic final Object getStepAdjustments()
CfnScalingPolicyProps
Required if the policy type is StepScaling . (Not used with any other policy type.)
getStepAdjustments in interface CfnScalingPolicyPropspublic final Object getTargetTrackingConfiguration()
CfnScalingPolicyPropsThe following predefined metrics are available:
ASGAverageCPUUtilizationASGAverageNetworkInASGAverageNetworkOutALBRequestCountPerTarget
If you specify ALBRequestCountPerTarget for the metric, you must specify the ResourceLabel property with the PredefinedMetricSpecification .
getTargetTrackingConfiguration in interface CfnScalingPolicyProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.