Skip to content

Commit

Permalink
use enum slice
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFaust92 authored and ewbankkit committed Jun 16, 2021
1 parent d538543 commit 9ccf51c
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions aws/resource_aws_spot_fleet_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -546,14 +546,11 @@ func resourceAwsSpotFleetRequest() *schema.Resource {
Set: schema.HashString,
},
"on_demand_allocation_strategy": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Default: ec2.OnDemandAllocationStrategyLowestPrice,
ValidateFunc: validation.StringInSlice([]string{
ec2.OnDemandAllocationStrategyPrioritized,
ec2.OnDemandAllocationStrategyLowestPrice,
}, false),
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Default: ec2.OnDemandAllocationStrategyLowestPrice,
ValidateFunc: validation.StringInSlice(ec2.OnDemandAllocationStrategy_Values(), false),
},
"on_demand_max_total_price": {
Type: schema.TypeString,
Expand Down

0 comments on commit 9ccf51c

Please sign in to comment.