Skip to content

Commit

Permalink
make max_age.0.days and max_age.0.duration ForceNew for bigtable_gc_p…
Browse files Browse the repository at this point in the history
…olicy (#4533)
  • Loading branch information
ScottSuarez authored Feb 25, 2021
1 parent ccd41ff commit ede64dc
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,15 @@ func resourceBigtableGCPolicy() *schema.Resource {
"days": {
Type: schema.TypeInt,
Optional: true,
ForceNew: true,
Deprecated: "Deprecated in favor of duration",
Description: `Number of days before applying GC policy.`,
ExactlyOneOf: []string{"max_age.0.days", "max_age.0.duration"},
},
"duration": {
Type: schema.TypeString,
Optional: true,
ForceNew: true,
Description: `Duration before applying GC policy`,
ValidateFunc: validateDuration(),
ExactlyOneOf: []string{"max_age.0.days", "max_age.0.duration"},
Expand All @@ -89,6 +91,7 @@ func resourceBigtableGCPolicy() *schema.Resource {
"number": {
Type: schema.TypeInt,
Required: true,
ForceNew: true,
Description: `Number of version before applying the GC policy.`,
},
},
Expand Down

0 comments on commit ede64dc

Please sign in to comment.