Class CfnScalingPolicyPropsMixin.TargetTrackingConfigurationProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.autoscaling.CfnScalingPolicyPropsMixin.TargetTrackingConfigurationProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnScalingPolicyPropsMixin.TargetTrackingConfigurationProperty>
- Enclosing interface:
CfnScalingPolicyPropsMixin.TargetTrackingConfigurationProperty
@Stability(Stable)
public static final class CfnScalingPolicyPropsMixin.TargetTrackingConfigurationProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnScalingPolicyPropsMixin.TargetTrackingConfigurationProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.customizedMetricSpecification(CfnScalingPolicyPropsMixin.CustomizedMetricSpecificationProperty customizedMetricSpecification) customizedMetricSpecification(IResolvable customizedMetricSpecification) disableScaleIn(Boolean disableScaleIn) disableScaleIn(IResolvable disableScaleIn) predefinedMetricSpecification(CfnScalingPolicyPropsMixin.PredefinedMetricSpecificationProperty predefinedMetricSpecification) predefinedMetricSpecification(IResolvable predefinedMetricSpecification) targetValue(Number targetValue)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
customizedMetricSpecification
@Stability(Stable) public CfnScalingPolicyPropsMixin.TargetTrackingConfigurationProperty.Builder customizedMetricSpecification(IResolvable customizedMetricSpecification) Sets the value ofCfnScalingPolicyPropsMixin.TargetTrackingConfigurationProperty.getCustomizedMetricSpecification()- Parameters:
customizedMetricSpecification- A customized metric. You must specify either a predefined metric or a customized metric.- Returns:
this
-
customizedMetricSpecification
@Stability(Stable) public CfnScalingPolicyPropsMixin.TargetTrackingConfigurationProperty.Builder customizedMetricSpecification(CfnScalingPolicyPropsMixin.CustomizedMetricSpecificationProperty customizedMetricSpecification) Sets the value ofCfnScalingPolicyPropsMixin.TargetTrackingConfigurationProperty.getCustomizedMetricSpecification()- Parameters:
customizedMetricSpecification- A customized metric. You must specify either a predefined metric or a customized metric.- Returns:
this
-
disableScaleIn
@Stability(Stable) public CfnScalingPolicyPropsMixin.TargetTrackingConfigurationProperty.Builder disableScaleIn(Boolean disableScaleIn) Sets the value ofCfnScalingPolicyPropsMixin.TargetTrackingConfigurationProperty.getDisableScaleIn()- Parameters:
disableScaleIn- Indicates whether scaling in by the target tracking scaling policy is disabled. If scaling in is disabled, the target tracking scaling policy doesn't remove instances from the Auto Scaling group. Otherwise, the target tracking scaling policy can remove instances from the Auto Scaling group. The default isfalse.- Returns:
this
-
disableScaleIn
@Stability(Stable) public CfnScalingPolicyPropsMixin.TargetTrackingConfigurationProperty.Builder disableScaleIn(IResolvable disableScaleIn) Sets the value ofCfnScalingPolicyPropsMixin.TargetTrackingConfigurationProperty.getDisableScaleIn()- Parameters:
disableScaleIn- Indicates whether scaling in by the target tracking scaling policy is disabled. If scaling in is disabled, the target tracking scaling policy doesn't remove instances from the Auto Scaling group. Otherwise, the target tracking scaling policy can remove instances from the Auto Scaling group. The default isfalse.- Returns:
this
-
predefinedMetricSpecification
@Stability(Stable) public CfnScalingPolicyPropsMixin.TargetTrackingConfigurationProperty.Builder predefinedMetricSpecification(IResolvable predefinedMetricSpecification) Sets the value ofCfnScalingPolicyPropsMixin.TargetTrackingConfigurationProperty.getPredefinedMetricSpecification()- Parameters:
predefinedMetricSpecification- A predefined metric. You must specify either a predefined metric or a customized metric.- Returns:
this
-
predefinedMetricSpecification
@Stability(Stable) public CfnScalingPolicyPropsMixin.TargetTrackingConfigurationProperty.Builder predefinedMetricSpecification(CfnScalingPolicyPropsMixin.PredefinedMetricSpecificationProperty predefinedMetricSpecification) Sets the value ofCfnScalingPolicyPropsMixin.TargetTrackingConfigurationProperty.getPredefinedMetricSpecification()- Parameters:
predefinedMetricSpecification- A predefined metric. You must specify either a predefined metric or a customized metric.- Returns:
this
-
targetValue
@Stability(Stable) public CfnScalingPolicyPropsMixin.TargetTrackingConfigurationProperty.Builder targetValue(Number targetValue) - Parameters:
targetValue- The target value for the metric.Some metrics are based on a count instead of a percentage, such as the request count for an Application Load Balancer or the number of messages in an SQS queue. If the scaling policy specifies one of these metrics, specify the target utilization as the optimal average request or message count per instance during any one-minute interval.
- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnScalingPolicyPropsMixin.TargetTrackingConfigurationProperty>- Returns:
- a new instance of
CfnScalingPolicyPropsMixin.TargetTrackingConfigurationProperty - Throws:
NullPointerException- if any required attribute was not provided
-