@Stability(value=Stable) public static final class CpuUtilizationScalingProps.Builder extends Object implements software.amazon.jsii.Builder<CpuUtilizationScalingProps>
CpuUtilizationScalingProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CpuUtilizationScalingProps |
build()
Builds the configured instance.
|
CpuUtilizationScalingProps.Builder |
disableScaleIn(Boolean disableScaleIn)
Sets the value of
BaseTargetTrackingProps.getDisableScaleIn() |
CpuUtilizationScalingProps.Builder |
policyName(String policyName)
Sets the value of
BaseTargetTrackingProps.getPolicyName() |
CpuUtilizationScalingProps.Builder |
scaleInCooldown(Duration scaleInCooldown)
Sets the value of
BaseTargetTrackingProps.getScaleInCooldown() |
CpuUtilizationScalingProps.Builder |
scaleOutCooldown(Duration scaleOutCooldown)
Sets the value of
BaseTargetTrackingProps.getScaleOutCooldown() |
CpuUtilizationScalingProps.Builder |
targetUtilizationPercent(Number targetUtilizationPercent)
Sets the value of
CpuUtilizationScalingProps.getTargetUtilizationPercent() |
@Stability(value=Stable) public CpuUtilizationScalingProps.Builder targetUtilizationPercent(Number targetUtilizationPercent)
CpuUtilizationScalingProps.getTargetUtilizationPercent()
targetUtilizationPercent
- The target value for CPU utilization across all tasks in the service. This parameter is required.this
@Stability(value=Stable) public CpuUtilizationScalingProps.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 CpuUtilizationScalingProps.Builder policyName(String policyName)
BaseTargetTrackingProps.getPolicyName()
policyName
- A name for the scaling policy.this
@Stability(value=Stable) public CpuUtilizationScalingProps.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 CpuUtilizationScalingProps.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 CpuUtilizationScalingProps build()
build
in interface software.amazon.jsii.Builder<CpuUtilizationScalingProps>
CpuUtilizationScalingProps
NullPointerException
- if any required attribute was not providedCopyright © 2020. All rights reserved.