@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 (for example, an absolute number or a percentage).
|
String |
getAutoScalingGroupName()
The name of the Auto Scaling group.
|
String |
getCooldown()
A cooldown period, in seconds, that applies to a specific simple scaling policy.
|
Number |
getEstimatedInstanceWarmup()
*Not needed if the default instance warmup is defined for the group.*.
|
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
The valid values are ChangeInCapacity , ExactCapacity , and PercentChangeInCapacity .
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.
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 .
Default: None
getCooldown in interface CfnScalingPolicyPropspublic final Number getEstimatedInstanceWarmup()
CfnScalingPolicyPropsThe estimated time, in seconds, until a newly launched instance can contribute to the CloudWatch metrics. This warm-up period applies to instances launched due to a specific target tracking or step scaling policy. When a warm-up period is specified here, it overrides the default instance warmup.
Valid only if the policy type is TargetTrackingScaling or StepScaling .
The default is to use the value for the default instance warmup defined for the group. If default instance warmup is null, then
EstimatedInstanceWarmupfalls back to the value of default cooldown.
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)PredictiveScalinggetPolicyType in interface CfnScalingPolicyPropspublic final Object getPredictiveScalingConfiguration()
CfnScalingPolicyPropsPredefined metrics include CPU utilization, network in/out, and the Application Load Balancer request count.
Required if the policy type is PredictiveScaling .
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 .
Required if the policy type is TargetTrackingScaling .
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.