Skip to content

Commit

Permalink
use enum list for object_acl
Browse files Browse the repository at this point in the history
  • Loading branch information
DrFaust92 committed Aug 20, 2020
1 parent fe802d5 commit c927676
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions aws/resource_aws_storagegateway_nfs_file_share.go
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,10 @@ func resourceAwsStorageGatewayNfsFileShare() *schema.Resource {
},
},
"object_acl": {
Type: schema.TypeString,
Optional: true,
Default: storagegateway.ObjectACLPrivate,
ValidateFunc: validation.StringInSlice([]string{
storagegateway.ObjectACLAuthenticatedRead,
storagegateway.ObjectACLAwsExecRead,
storagegateway.ObjectACLBucketOwnerFullControl,
storagegateway.ObjectACLBucketOwnerRead,
storagegateway.ObjectACLPrivate,
storagegateway.ObjectACLPublicRead,
storagegateway.ObjectACLPublicReadWrite,
}, false),
Type: schema.TypeString,
Optional: true,
Default: storagegateway.ObjectACLPrivate,
ValidateFunc: validation.StringInSlice(storagegateway.ObjectACL_Values(), false),
},
"path": {
Type: schema.TypeString,
Expand Down

0 comments on commit c927676

Please sign in to comment.