@@ -200,14 +200,19 @@ func (r *serverlessCacheResource) Schema(ctx context.Context, request resource.S
200
200
Attributes : map [string ]schema.Attribute {
201
201
"maximum" : schema.Int64Attribute {
202
202
Optional : true ,
203
+ Computed : true ,
204
+ PlanModifiers : []planmodifier.Int64 {
205
+ int64planmodifier .UseStateForUnknown (),
206
+ },
203
207
},
204
208
"minimum" : schema.Int64Attribute {
205
209
Optional : true ,
210
+ Computed : true ,
206
211
Validators : []validator.Int64 {
207
- int64validator .Any (
208
- int64validator . OneOf ( 0 ) ,
209
- int64validator . Between ( 1 , 5000 ),
210
- ),
212
+ int64validator .Between ( 1 , 5000 ),
213
+ } ,
214
+ PlanModifiers : []planmodifier. Int64 {
215
+ int64planmodifier . UseStateForUnknown ( ),
211
216
},
212
217
},
213
218
names .AttrUnit : schema.StringAttribute {
@@ -226,17 +231,23 @@ func (r *serverlessCacheResource) Schema(ctx context.Context, request resource.S
226
231
Attributes : map [string ]schema.Attribute {
227
232
"maximum" : schema.Int64Attribute {
228
233
Optional : true ,
234
+ Computed : true ,
229
235
Validators : []validator.Int64 {
230
236
int64validator .Between (1000 , 15000000 ),
231
237
},
238
+ PlanModifiers : []planmodifier.Int64 {
239
+ int64planmodifier .UseStateForUnknown (),
240
+ },
232
241
},
233
242
"minimum" : schema.Int64Attribute {
234
243
Optional : true ,
244
+ Computed : true ,
235
245
Validators : []validator.Int64 {
236
- int64validator .Any (
237
- int64validator .OneOf (0 ),
238
- int64validator .Between (1000 , 15000000 ),
239
- )},
246
+ int64validator .Between (1000 , 15000000 ),
247
+ },
248
+ PlanModifiers : []planmodifier.Int64 {
249
+ int64planmodifier .UseStateForUnknown (),
250
+ },
240
251
},
241
252
},
242
253
},
0 commit comments