Skip to content

Commit

Permalink
aws_docdbelastic_cluster: add plan modifier for backup_retention_period
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsonaj committed Sep 5, 2024
1 parent 015bbf8 commit 1f93c52
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/service/docdbelastic/cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import (
"github.com/hashicorp/terraform-plugin-framework/path"
"github.com/hashicorp/terraform-plugin-framework/resource"
"github.com/hashicorp/terraform-plugin-framework/resource/schema"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/int32planmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/planmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/setplanmodifier"
"github.com/hashicorp/terraform-plugin-framework/resource/schema/stringplanmodifier"
Expand Down Expand Up @@ -88,6 +89,9 @@ func (r *resourceCluster) Schema(ctx context.Context, _ resource.SchemaRequest,
Validators: []validator.Int32{
int32validator.Between(1, 35),
},
PlanModifiers: []planmodifier.Int32{
int32planmodifier.UseStateForUnknown(),
},
},
names.AttrEndpoint: schema.StringAttribute{
Computed: true,
Expand Down

0 comments on commit 1f93c52

Please sign in to comment.