Skip to content

Commit

Permalink
mark fields as computed
Browse files Browse the repository at this point in the history
  • Loading branch information
PeWu committed Dec 17, 2024
1 parent 80407ce commit 19410e3
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -734,17 +734,20 @@ func ResourceComposerEnvironment() *schema.Resource {
Type: schema.TypeList,
Description: `Optional. The configuration setting for database retention.`,
Optional: true,
Computed: true,
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"retention_mode": {
Type: schema.TypeString,
Optional: true,
Computed: true,
ValidateFunc: validation.StringInSlice([]string{"RETENTION_MODE_ENABLED", "RETENTION_MODE_DISABLED"}, false),
Description: `Whether database retention is enabled or not. This field is supported for Cloud Composer environments in composer 3 and newer.`,
},
"retention_days": {
Type: schema.TypeInt,
Optional: true,
Computed: true,
ValidateFunc: validation.IntBetween(30, 730),
Description: `How many days data should be retained for. This field is supported for Cloud Composer environments in composer 3 and newer.`,
},
Expand Down

0 comments on commit 19410e3

Please sign in to comment.