@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:54:56.967Z") @Stability(value=Experimental) public interface BasicTargetTrackingScalingPolicyProps extends software.amazon.jsii.JsiiSerializable, BaseTargetTrackingProps
| Modifier and Type | Interface and Description |
|---|---|
static class |
BasicTargetTrackingScalingPolicyProps.Builder
A builder for
BasicTargetTrackingScalingPolicyProps |
static class |
BasicTargetTrackingScalingPolicyProps.Jsii$Proxy
An implementation for
BasicTargetTrackingScalingPolicyProps |
| Modifier and Type | Method and Description |
|---|---|
static BasicTargetTrackingScalingPolicyProps.Builder |
builder() |
default IMetric |
getCustomMetric()
(experimental) A custom metric for application autoscaling.
|
default PredefinedMetric |
getPredefinedMetric()
(experimental) A predefined metric for application autoscaling.
|
default String |
getResourceLabel()
(experimental) Identify the resource associated with the metric type.
|
Number |
getTargetValue()
(experimental) The target value for the metric.
|
getDisableScaleIn, getPolicyName, getScaleInCooldown, getScaleOutCooldown@Stability(value=Experimental) @NotNull Number getTargetValue()
@Stability(value=Experimental) @Nullable default IMetric getCustomMetric()
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.
@Stability(value=Experimental) @Nullable default PredefinedMetric getPredefinedMetric()
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 metrics.
@Stability(value=Experimental) @Nullable default String getResourceLabel()
Only 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>;
@Stability(value=Experimental) static BasicTargetTrackingScalingPolicyProps.Builder builder()
builder in interface BaseTargetTrackingPropsBasicTargetTrackingScalingPolicyProps.Builder of BasicTargetTrackingScalingPolicyPropsCopyright © 2021. All rights reserved.