Skip to content

Commit

Permalink
r/aws_appautoscaling_policy: Use '_Values()' (hashicorp#14601).
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Sep 29, 2022
1 parent 517026e commit f725c90
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions internal/service/appautoscaling/policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,9 @@ func ResourcePolicy() *schema.Resource {
Required: true,
},
"statistic": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice([]string{
applicationautoscaling.MetricStatisticAverage,
applicationautoscaling.MetricStatisticMinimum,
applicationautoscaling.MetricStatisticMaximum,
applicationautoscaling.MetricStatisticSampleCount,
applicationautoscaling.MetricStatisticSum,
}, false),
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice(applicationautoscaling.MetricStatistic_Values(), false),
},
"unit": {
Type: schema.TypeString,
Expand Down

0 comments on commit f725c90

Please sign in to comment.