Skip to content

Commit

Permalink
use enum slice
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFaust92 committed Sep 21, 2020
1 parent 2f393cc commit 0f01600
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions aws/resource_aws_api_gateway_usage_plan.go
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,9 @@ func resourceAwsApiGatewayUsagePlan() *schema.Resource {
},

"period": {
Type: schema.TypeString,
Required: true, // Required as not removable
ValidateFunc: validation.StringInSlice([]string{
apigateway.QuotaPeriodTypeDay,
apigateway.QuotaPeriodTypeWeek,
apigateway.QuotaPeriodTypeMonth,
}, false),
Type: schema.TypeString,
Required: true, // Required as not removable
ValidateFunc: validation.StringInSlice(apigateway.QuotaPeriodType_Values(), false),
},
},
},
Expand Down

0 comments on commit 0f01600

Please sign in to comment.