diff --git a/pkg/provider/resource_cluster.go b/pkg/provider/resource_cluster.go index 12576983..d6b4cee4 100644 --- a/pkg/provider/resource_cluster.go +++ b/pkg/provider/resource_cluster.go @@ -69,6 +69,7 @@ type ClusterResourceModel struct { ServiceAccountIds types.Set `tfsdk:"service_account_ids"` PeAllowedPrincipalIds types.Set `tfsdk:"pe_allowed_principal_ids"` SuperuserAccess types.Bool `tfsdk:"superuser_access"` + FromDeleted *bool `tfsdk:"from_deleted"` Pgvector types.Bool `tfsdk:"pgvector"` Timeouts timeouts.Value `tfsdk:"timeouts"` @@ -392,6 +393,10 @@ func (c *clusterResource) Schema(ctx context.Context, req resource.SchemaRequest Optional: true, Computed: true, }, + "from_deleted": schema.BoolAttribute{ + Description: "For restoring a cluster. Specifies if the cluster you want to restore is deleted", + Optional: true, + }, "pgvector": schema.BoolAttribute{ MarkdownDescription: "Is pgvector extension enabled. Adds support for vector storage and vector similarity search to Postgres.", Optional: true, diff --git a/pkg/provider/resource_pgd.go b/pkg/provider/resource_pgd.go index cd50fbb4..fd441757 100644 --- a/pkg/provider/resource_pgd.go +++ b/pkg/provider/resource_pgd.go @@ -82,6 +82,10 @@ func PgdSchema(ctx context.Context) schema.Schema { Description: "Show the most recent cluster when there are multiple clusters with the same name", Optional: true, }, + "from_deleted": schema.BoolAttribute{ + Description: "For restoring a cluster. Specifies if the cluster you want to restore is deleted", + Optional: true, + }, "password": schema.StringAttribute{ Description: "Password for the user edb_admin. It must be 12 characters or more.", Required: true, @@ -606,6 +610,7 @@ type PGD struct { ClusterId *string `tfsdk:"cluster_id"` ClusterName *string `tfsdk:"cluster_name"` MostRecent *bool `tfsdk:"most_recent"` + FromDeleted *bool `tfsdk:"from_deleted"` Password *string `tfsdk:"password"` Timeouts timeouts.Value `tfsdk:"timeouts"` DataGroups []terraform.DataGroup `tfsdk:"data_groups"`