You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Introduced `datasource/timeouts` package for use with datasource schema
3
+
```
4
+
5
+
```release-note:feature
6
+
Introduced `resource/timeouts` package for use with resource schema
7
+
```
8
+
9
+
```release-note:breaking-change
10
+
all: The `Block() tfsdk.Block` method has been removed. Use the resource `Block() schema.Block` or data source `Block() schema.Block` function instead.
11
+
```
12
+
13
+
```release-note:breaking-change
14
+
all: The `BlockAll() tfsdk.Block` method has been removed. Use the resource `BlockAll() schema.Block` or data source `Block() schema.Block` function instead.
15
+
```
16
+
17
+
```release-note:breaking-change
18
+
all: The `Attributes() tfsdk.Attribute` method has been removed. Use the resource `Attributes() schema.Attribute` or data source `Attributes() schema.Attribute` function instead.
19
+
```
20
+
21
+
```release-note:breaking-change
22
+
all: The `AttributesAll() tfsdk.Attribute` method has been removed. Use the resource `AttributesAll() schema.Attribute` or data source `Attributes() schema.Attribute` function instead.
You can use this module to mutate the `tfsdk.Schema` as follows:
51
+
```terraform
52
+
data "timeouts_example" "example" {
53
+
/* ... */
54
+
55
+
timeouts {
56
+
read = "30m"
57
+
}
58
+
}
59
+
```
60
+
61
+
Use this module to mutate the `schema.Schema`:
62
+
63
+
You must supply `timeouts.Opts` when calling `timeouts.Block()` on a resource. Alternatively, `timeouts.BlockAll()` will generate attributes for `create`, `read`, `update` and `delete`.
0 commit comments