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
* Adding description for each of the timeout attributes (#51)
* Adding changelog entries (#51)
* Amend attribute description to make valid time units clearer (#51)
* Amend attribute description for read and delete to indicate when these timeouts would be applicable (#51)
* Adding additional options to allow overriding of default descriptions (#51)
* Adding changelog entries (#51)
* Fixing changelog entry (#51)
* Updating README (#51)
* Apply suggestions from code review
Co-authored-by: Brian Flad <bflad417@gmail.com>
* Updating to latest version of terraform-plugin-framework and fixing tests (#51)
---------
Co-authored-by: Brian Flad <bflad417@gmail.com>
Copy file name to clipboardexpand all lines: README.md
+11-3
Original file line number
Diff line number
Diff line change
@@ -60,7 +60,9 @@ data "timeouts_example" "example" {
60
60
61
61
Use this module to mutate the `schema.Schema`:
62
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`.
63
+
You must supply `timeouts.Opts` when calling `timeouts.Block()` on a resource. The supplied `timeouts.Opts` allows specifying which timeouts to create and whether to override the default description for the timeout.
64
+
65
+
Alternatively, `timeouts.BlockAll()` will generate attributes for `create`, `read`, `update` and `delete`.
The `timeouts.Block()` call does not accept options on a data source as `read` is the only option.
85
87
88
+
However, the `timeouts.BlockWithOpts()` function is available for overriding the default description.
89
+
86
90
```go
87
91
import (
88
92
/* ... */
@@ -126,7 +130,9 @@ data "timeouts_example" "example" {
126
130
127
131
Use this module to mutate the `schema.Schema` as follows:
128
132
129
-
You must supply `timeouts.Opts` when calling `timeouts.Attributes()` on a resource.
133
+
You must supply `timeouts.Opts` when calling `timeouts.Attributes()` on a resource. The supplied `timeouts.Opts` allows specifying which timeouts to create and whether to override the default description for the timeout.
134
+
135
+
Alternatively, `timeouts.AttributesAll()` will generate attributes for `create`, `read`, `update` and `delete`.
0 commit comments