Skip to content

Commit d7e0e3f

Browse files
committed
Responding to feedback
1 parent 4bf24d5 commit d7e0e3f

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

website/source/docs/plugins/provider.html.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -143,10 +143,10 @@ The CRUD operations in more detail, along with their contracts:
143143
* `Create` - This is called to create a new instance of the resource.
144144
Terraform guarantees that an existing ID is not set on the resource
145145
data. That is, you're working with a new resource. Therefore, you are
146-
responsible for calling `setId` on your `schema.ResourceData` using a
146+
responsible for calling `SetId` on your `schema.ResourceData` using a
147147
value suitable for your resource. This ensures whatever resource
148148
state you set on `schema.ResourceData` will be persisted in local state.
149-
If you neglect to `setId`, no resource state will be persisted.
149+
If you neglect to `SetId`, no resource state will be persisted.
150150

151151
* `Read` - This is called to resync the local state with the remote state.
152152
Terraform guarantees that an existing ID will be set. This ID should be
@@ -164,7 +164,8 @@ The CRUD operations in more detail, along with their contracts:
164164

165165
* `Exists` - This is called to verify a resource still exists. It is
166166
called prior to `Read`, and lowers the burden of `Read` to be able
167-
to assume the resource exists.
167+
to assume the resource exists. If the resource is no longer present in
168+
remote state, calling `SetId` with an empty string will signal its removal.
168169

169170
## Schemas
170171

0 commit comments

Comments
 (0)