@Stability(value=Stable) public static final class TrackCustomMetricProps.Builder extends Object implements software.amazon.jsii.Builder<TrackCustomMetricProps>
TrackCustomMetricProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
TrackCustomMetricProps |
build()
Builds the configured instance.
|
TrackCustomMetricProps.Builder |
disableScaleIn(Boolean disableScaleIn)
Sets the value of
BaseTargetTrackingProps.getDisableScaleIn() |
TrackCustomMetricProps.Builder |
metric(IMetric metric)
Sets the value of
TrackCustomMetricProps.getMetric() |
TrackCustomMetricProps.Builder |
policyName(String policyName)
Sets the value of
BaseTargetTrackingProps.getPolicyName() |
TrackCustomMetricProps.Builder |
scaleInCooldown(Duration scaleInCooldown)
Sets the value of
BaseTargetTrackingProps.getScaleInCooldown() |
TrackCustomMetricProps.Builder |
scaleOutCooldown(Duration scaleOutCooldown)
Sets the value of
BaseTargetTrackingProps.getScaleOutCooldown() |
TrackCustomMetricProps.Builder |
targetValue(Number targetValue)
Sets the value of
TrackCustomMetricProps.getTargetValue() |
@Stability(value=Stable) public TrackCustomMetricProps.Builder metric(IMetric metric)
TrackCustomMetricProps.getMetric()
metric
- The custom CloudWatch metric to track. This parameter is required.
The metric must represent utilization; that is, you will always get the following behavior:
this
@Stability(value=Stable) public TrackCustomMetricProps.Builder targetValue(Number targetValue)
TrackCustomMetricProps.getTargetValue()
targetValue
- The target value for the custom CloudWatch metric. This parameter is required.this
@Stability(value=Stable) public TrackCustomMetricProps.Builder disableScaleIn(Boolean disableScaleIn)
BaseTargetTrackingProps.getDisableScaleIn()
disableScaleIn
- Indicates whether scale in by the target tracking policy is disabled.
If 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.this
@Stability(value=Stable) public TrackCustomMetricProps.Builder policyName(String policyName)
BaseTargetTrackingProps.getPolicyName()
policyName
- A name for the scaling policy.this
@Stability(value=Stable) public TrackCustomMetricProps.Builder scaleInCooldown(Duration scaleInCooldown)
BaseTargetTrackingProps.getScaleInCooldown()
scaleInCooldown
- Period after a scale in activity completes before another scale in activity can start.this
@Stability(value=Stable) public TrackCustomMetricProps.Builder scaleOutCooldown(Duration scaleOutCooldown)
BaseTargetTrackingProps.getScaleOutCooldown()
scaleOutCooldown
- Period after a scale out activity completes before another scale out activity can start.this
@Stability(value=Stable) public TrackCustomMetricProps build()
build
in interface software.amazon.jsii.Builder<TrackCustomMetricProps>
TrackCustomMetricProps
NullPointerException
- if any required attribute was not providedCopyright © 2020. All rights reserved.