|
6 | 6 | "github.com/MakeNowJust/heredoc/v2" |
7 | 7 | "github.com/altinity/terraform-provider-altinitycloud/internal/provider/common" |
8 | 8 | "github.com/altinity/terraform-provider-altinitycloud/internal/provider/modifiers" |
| 9 | + "github.com/hashicorp/terraform-plugin-framework-timeouts/resource/timeouts" |
9 | 10 | "github.com/hashicorp/terraform-plugin-framework-validators/listvalidator" |
10 | 11 | "github.com/hashicorp/terraform-plugin-framework/attr" |
11 | 12 | "github.com/hashicorp/terraform-plugin-framework/datasource" |
@@ -43,6 +44,9 @@ func (r *AWSEnvResource) Schema(ctx context.Context, req resource.SchemaRequest, |
43 | 44 | "force_destroy": common.GetForceDestroyAttribute(false, true, true), |
44 | 45 | "force_destroy_clusters": common.GetForceDestroyClustersAttribute(false, true, true), |
45 | 46 | "skip_deprovision_on_destroy": common.GetSkipProvisioningOnDestroyAttribute(false, true, true), |
| 47 | + "timeouts": timeouts.Attributes(ctx, timeouts.Opts{ |
| 48 | + Delete: true, |
| 49 | + }), |
46 | 50 | }, |
47 | 51 | } |
48 | 52 | } |
@@ -74,6 +78,7 @@ func (d *AWSEnvDataSource) Schema(ctx context.Context, req datasource.SchemaRequ |
74 | 78 | "force_destroy": common.GetForceDestroyAttribute(false, false, true), |
75 | 79 | "force_destroy_clusters": common.GetForceDestroyClustersAttribute(false, false, true), |
76 | 80 | "skip_deprovision_on_destroy": common.GetSkipProvisioningOnDestroyAttribute(false, false, true), |
| 81 | + "timeouts": timeouts.Attributes(ctx, timeouts.Opts{}), |
77 | 82 | }, |
78 | 83 | } |
79 | 84 | } |
|
0 commit comments