Skip to content

Commit

Permalink
Use AWS Go SDK '_Values()': #14601.
Browse files Browse the repository at this point in the history
  • Loading branch information
ewbankkit committed Nov 4, 2021
1 parent 81b9674 commit c81bf3f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/service/cloudfront/response_headers_policy.go
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ func ResourceResponseHeadersPolicy() *schema.Resource {
"frame_option": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice([]string{"DENY", "SAMEORIGIN"}, false),
ValidateFunc: validation.StringInSlice(cloudfront.FrameOptionsList_Values(), false),
},
"override": {
Type: schema.TypeBool,
Expand All @@ -206,7 +206,7 @@ func ResourceResponseHeadersPolicy() *schema.Resource {
"referrer_policy": {
Type: schema.TypeString,
Required: true,
ValidateFunc: validation.StringInSlice([]string{"no-referrer", "no-referrer-when-downgrade", "origin", "origin-when-cross-origin", "same-origin", "strict-origin", "strict-origin-when-cross-origin", "unsafe-url"}, false),
ValidateFunc: validation.StringInSlice(cloudfront.ReferrerPolicyList_Values(), false),
},
"override": {
Type: schema.TypeBool,
Expand Down

0 comments on commit c81bf3f

Please sign in to comment.