From 9ccf51c10340f8919d976adac7f9a09e8a0bab79 Mon Sep 17 00:00:00 2001 From: drfaust92 Date: Thu, 15 Oct 2020 21:04:17 +0300 Subject: [PATCH] use enum slice --- aws/resource_aws_spot_fleet_request.go | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/aws/resource_aws_spot_fleet_request.go b/aws/resource_aws_spot_fleet_request.go index b8cb369bdaa..f70337df841 100644 --- a/aws/resource_aws_spot_fleet_request.go +++ b/aws/resource_aws_spot_fleet_request.go @@ -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,