Skip to content

Commit b1543e5

Browse files
committed
docs/aws_appautoscaling_policy: link AWS API reference for predictive metric types
Address review feedback from @justinretzolk on PR #47641: enum values change over time, so link to the canonical AWS API reference for each of the three predictive scaling metric specifications instead of hard-coding the list of valid values inline. The note that resource_label is required for ALB-based metric types is retained but no longer parenthetically lists the specific ALB values, since those are also documented at the linked references.
1 parent b5f6fac commit b1543e5

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

website/docs/r/appautoscaling_policy.html.markdown

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -297,22 +297,22 @@ The `predictive_scaling_policy_configuration` `metric_specification` `customized
297297

298298
The `predictive_scaling_policy_configuration` `metric_specification` `predefined_load_metric_specification` configuration block supports the following arguments:
299299

300-
* `predefined_metric_type` - (Required) Predefined load metric type. Valid values are `ECSServiceAverageCPUUtilization`, `ECSServiceAverageMemoryUtilization`, `ECSServiceCPUUtilization`, `ECSServiceMemoryUtilization`, `ECSServiceTotalCPUUtilization`, `ECSServiceTotalMemoryUtilization`, `ALBRequestCount`, `ALBRequestCountPerTarget`, and `TotalALBRequestCount`.
301-
* `resource_label` - (Optional) Label that uniquely identifies a target group. Required when `predefined_metric_type` is one of the ALB-based values (`ALBRequestCount`, `ALBRequestCountPerTarget`, `TotalALBRequestCount`).
300+
* `predefined_metric_type` - (Required) Predefined load metric type. See the [`PredictiveScalingPredefinedLoadMetricSpecification`](https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredictiveScalingPredefinedLoadMetricSpecification.html) AWS API reference for valid values.
301+
* `resource_label` - (Optional) Label that uniquely identifies a target group. Required when `predefined_metric_type` is an ALB-based value.
302302

303303
### predictive_scaling_policy_configuration metric_specification predefined_metric_pair_specification
304304

305305
The `predictive_scaling_policy_configuration` `metric_specification` `predefined_metric_pair_specification` configuration block supports the following arguments:
306306

307-
* `predefined_metric_type` - (Required) Pair of predefined metrics (one load metric and one scaling metric) to use. Valid values are `ECSServiceAverageCPUUtilization`, `ECSServiceAverageMemoryUtilization`, `ECSServiceCPUUtilization`, `ECSServiceMemoryUtilization`, `ECSServiceTotalCPUUtilization`, `ECSServiceTotalMemoryUtilization`, `ALBRequestCount`, `ALBRequestCountPerTarget`, and `TotalALBRequestCount`.
308-
* `resource_label` - (Optional) Label that uniquely identifies a specific target group from which to determine the total and average request count. Required when `predefined_metric_type` is one of the ALB-based values (`ALBRequestCount`, `ALBRequestCountPerTarget`, `TotalALBRequestCount`).
307+
* `predefined_metric_type` - (Required) Pair of predefined metrics (one load metric and one scaling metric) to use. See the [`PredictiveScalingPredefinedMetricPairSpecification`](https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredictiveScalingPredefinedMetricPairSpecification.html) AWS API reference for valid values.
308+
* `resource_label` - (Optional) Label that uniquely identifies a specific target group from which to determine the total and average request count. Required when `predefined_metric_type` is an ALB-based value.
309309

310310
### predictive_scaling_policy_configuration metric_specification predefined_scaling_metric_specification
311311

312312
The `predictive_scaling_policy_configuration` `metric_specification` `predefined_scaling_metric_specification` configuration block supports the following arguments:
313313

314-
* `predefined_metric_type` - (Required) Predefined scaling metric type. Valid values are `ECSServiceAverageCPUUtilization`, `ECSServiceAverageMemoryUtilization`, `ECSServiceCPUUtilization`, `ECSServiceMemoryUtilization`, `ECSServiceTotalCPUUtilization`, `ECSServiceTotalMemoryUtilization`, `ALBRequestCount`, `ALBRequestCountPerTarget`, and `TotalALBRequestCount`.
315-
* `resource_label` - (Optional) Label that uniquely identifies a specific target group from which to determine the average request count. Required when `predefined_metric_type` is one of the ALB-based values (`ALBRequestCount`, `ALBRequestCountPerTarget`, `TotalALBRequestCount`).
314+
* `predefined_metric_type` - (Required) Predefined scaling metric type. See the [`PredictiveScalingPredefinedScalingMetricSpecification`](https://docs.aws.amazon.com/autoscaling/application/APIReference/API_PredictiveScalingPredefinedScalingMetricSpecification.html) AWS API reference for valid values.
315+
* `resource_label` - (Optional) Label that uniquely identifies a specific target group from which to determine the average request count. Required when `predefined_metric_type` is an ALB-based value.
316316

317317
### step_scaling_policy_configuration
318318

0 commit comments

Comments
 (0)