@Stability(value=Experimental) @Internal public static final class BasicTargetTrackingScalingPolicyProps.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements BasicTargetTrackingScalingPolicyProps
BasicTargetTrackingScalingPolicyPropssoftware.amazon.jsii.JsiiObject.InitializationModeBasicTargetTrackingScalingPolicyProps.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,
Boolean disableScaleIn,
String policyName,
Duration scaleInCooldown,
Duration scaleOutCooldown)
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) |
IMetric |
getCustomMetric()
(experimental) A custom metric for application autoscaling.
|
Boolean |
getDisableScaleIn()
(experimental) Indicates whether scale in by the target tracking policy is disabled.
|
String |
getPolicyName()
(experimental) A name for the scaling policy.
|
PredefinedMetric |
getPredefinedMetric()
(experimental) A predefined metric for application autoscaling.
|
String |
getResourceLabel()
(experimental) Identify the resource associated with the metric type.
|
Duration |
getScaleInCooldown()
(experimental) Period after a scale in activity completes before another scale in activity can start.
|
Duration |
getScaleOutCooldown()
(experimental) Period after a scale out activity completes before another scale out activity can start.
|
Number |
getTargetValue()
(experimental) The target value for the metric.
|
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(Number targetValue, IMetric customMetric, PredefinedMetric predefinedMetric, String resourceLabel, Boolean disableScaleIn, String policyName, Duration scaleInCooldown, Duration scaleOutCooldown)
BasicTargetTrackingScalingPolicyProps.Builder.public final Number getTargetValue()
BasicTargetTrackingScalingPolicyPropsgetTargetValue in interface BasicTargetTrackingScalingPolicyPropspublic final IMetric getCustomMetric()
BasicTargetTrackingScalingPolicyPropsThe 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 BasicTargetTrackingScalingPolicyPropspublic final PredefinedMetric getPredefinedMetric()
BasicTargetTrackingScalingPolicyPropsThe 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 metrics.
getPredefinedMetric in interface BasicTargetTrackingScalingPolicyPropspublic final String getResourceLabel()
BasicTargetTrackingScalingPolicyPropsOnly used for predefined metric ALBRequestCountPerTarget.
Default: - No resource label.
Example:
// Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826 app / <load-balancer - name > /<load-balancer-id>/targetgroup / <target-group - name > /<target-group-id>;
getResourceLabel in interface BasicTargetTrackingScalingPolicyPropspublic final Boolean getDisableScaleIn()
BaseTargetTrackingPropsIf the value is true, scale in is disabled and the target tracking policy won't remove capacity from the scalable resource. Otherwise, scale in is enabled and the target tracking policy can remove capacity from the scalable resource.
Default: false
getDisableScaleIn in interface BaseTargetTrackingPropspublic final String getPolicyName()
BaseTargetTrackingPropsDefault: - Automatically generated name.
getPolicyName in interface BaseTargetTrackingPropspublic final Duration getScaleInCooldown()
BaseTargetTrackingPropsDefault: Duration.seconds(300) for the following scalable targets: ECS services, Spot Fleet requests, EMR clusters, AppStream 2.0 fleets, Aurora DB clusters, Amazon SageMaker endpoint variants, Custom resources. For all other scalable targets, the default value is Duration.seconds(0): DynamoDB tables, DynamoDB global secondary indexes, Amazon Comprehend document classification endpoints, Lambda provisioned concurrency
getScaleInCooldown in interface BaseTargetTrackingPropspublic final Duration getScaleOutCooldown()
BaseTargetTrackingPropsDefault: Duration.seconds(300) for the following scalable targets: ECS services, Spot Fleet requests, EMR clusters, AppStream 2.0 fleets, Aurora DB clusters, Amazon SageMaker endpoint variants, Custom resources. For all other scalable targets, the default value is Duration.seconds(0): DynamoDB tables, DynamoDB global secondary indexes, Amazon Comprehend document classification endpoints, Lambda provisioned concurrency
getScaleOutCooldown in interface BaseTargetTrackingProps@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.