@Stability(value=Stable) public static final class RequestCountScalingProps.Builder extends Object implements software.amazon.jsii.Builder<RequestCountScalingProps>
RequestCountScalingProps
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
RequestCountScalingProps |
build()
Builds the configured instance.
|
RequestCountScalingProps.Builder |
disableScaleIn(Boolean disableScaleIn)
Sets the value of
BaseTargetTrackingProps.getDisableScaleIn() |
RequestCountScalingProps.Builder |
policyName(String policyName)
Sets the value of
BaseTargetTrackingProps.getPolicyName() |
RequestCountScalingProps.Builder |
requestsPerTarget(Number requestsPerTarget)
Sets the value of
RequestCountScalingProps.getRequestsPerTarget() |
RequestCountScalingProps.Builder |
scaleInCooldown(Duration scaleInCooldown)
Sets the value of
BaseTargetTrackingProps.getScaleInCooldown() |
RequestCountScalingProps.Builder |
scaleOutCooldown(Duration scaleOutCooldown)
Sets the value of
BaseTargetTrackingProps.getScaleOutCooldown() |
RequestCountScalingProps.Builder |
targetGroup(ApplicationTargetGroup targetGroup)
Sets the value of
RequestCountScalingProps.getTargetGroup() |
@Stability(value=Stable) public RequestCountScalingProps.Builder requestsPerTarget(Number requestsPerTarget)
RequestCountScalingProps.getRequestsPerTarget()
requestsPerTarget
- The number of ALB requests per target. This parameter is required.this
@Stability(value=Stable) public RequestCountScalingProps.Builder targetGroup(ApplicationTargetGroup targetGroup)
RequestCountScalingProps.getTargetGroup()
targetGroup
- The ALB target group name. This parameter is required.this
@Stability(value=Stable) public RequestCountScalingProps.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 RequestCountScalingProps.Builder policyName(String policyName)
BaseTargetTrackingProps.getPolicyName()
policyName
- A name for the scaling policy.this
@Stability(value=Stable) public RequestCountScalingProps.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 RequestCountScalingProps.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 RequestCountScalingProps build()
build
in interface software.amazon.jsii.Builder<RequestCountScalingProps>
RequestCountScalingProps
NullPointerException
- if any required attribute was not providedCopyright © 2020. All rights reserved.