@Stability(value=Stable) public static final class CfnScalingPolicy.PredefinedMetricSpecificationProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnScalingPolicy.PredefinedMetricSpecificationProperty>
CfnScalingPolicy.PredefinedMetricSpecificationProperty| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
CfnScalingPolicy.PredefinedMetricSpecificationProperty |
build()
Builds the configured instance.
|
CfnScalingPolicy.PredefinedMetricSpecificationProperty.Builder |
predefinedMetricType(String predefinedMetricType)
|
CfnScalingPolicy.PredefinedMetricSpecificationProperty.Builder |
resourceLabel(String resourceLabel)
|
@Stability(value=Stable) public CfnScalingPolicy.PredefinedMetricSpecificationProperty.Builder predefinedMetricType(String predefinedMetricType)
predefinedMetricType - The metric type. The following predefined metrics are available. This parameter is required.
ASGAverageCPUUtilization - Average CPU utilization of the Auto Scaling group.ASGAverageNetworkIn - Average number of bytes received on all network interfaces by the Auto Scaling group.ASGAverageNetworkOut - Average number of bytes sent out on all network interfaces by the Auto Scaling group.ALBRequestCountPerTarget - Number of requests completed per target in an Application Load Balancer target group.this@Stability(value=Stable) public CfnScalingPolicy.PredefinedMetricSpecificationProperty.Builder resourceLabel(String resourceLabel)
resourceLabel - Identifies the resource associated with the metric type.
You can't specify a resource label unless the metric type is ALBRequestCountPerTarget and there is a target group attached to the Auto Scaling group.
The format is app/ *load-balancer-name* / *load-balancer-id* /targetgroup/ *target-group-name* / *target-group-id* , where
app/ *load-balancer-name* / *load-balancer-id* is the final portion of the load balancer ARN, andtargetgroup/ *target-group-name* / *target-group-id* is the final portion of the target group ARN.this@Stability(value=Stable) public CfnScalingPolicy.PredefinedMetricSpecificationProperty build()
build in interface software.amazon.jsii.Builder<CfnScalingPolicy.PredefinedMetricSpecificationProperty>CfnScalingPolicy.PredefinedMetricSpecificationPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.