Merge pull request #18910 from hashicorp/docs-fix-plugin-crud

docs: Fix inaccurate plugin CRUD description
This commit is contained in:
Radek Simko 2018-09-21 07:17:18 +01:00 committed by GitHub
commit 0a99df29c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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