File tree Expand file tree Collapse file tree
website/source/docs/plugins Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments