docs: Fix inaccurate plugin CRUD description

This commit is contained in:
Radek Simko 2018-09-20 17:17:44 +01:00
parent 5522500777
commit ecac80fd8e
No known key found for this signature in database
GPG Key ID: 1F1C84FE689A88D7
1 changed files with 6 additions and 2 deletions

View File

@ -211,6 +211,8 @@ The CRUD operations in more detail, along with their contracts:
Terraform guarantees that an existing ID will be set. This ID should be
used to look up the resource. Any remote data should be updated into
the local data. **No changes to the remote resource are to be made.**
If the resource is no longer present, calling `SetId`
with an empty string will signal its removal.
* `Update` - This is called to update properties of an existing resource.
Terraform guarantees that an existing ID will be set. Additionally,
@ -223,8 +225,10 @@ The CRUD operations in more detail, along with their contracts:
* `Exists` - This is called to verify a resource still exists. It is
called prior to `Read`, and lowers the burden of `Read` to be able
to assume the resource exists. If the resource is no longer present in
remote state, calling `SetId` with an empty string will signal its removal.
to assume the resource exists. `false` should be returned if
the resources is no longer present, which has the same effect
as calling `SetId("")` from `Read` (i.e. removal of the resource data
from state).
## Schemas