-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: KeisukeYamashita <19yamashita15@gmail.com>
- Loading branch information
1 parent
eeec3f3
commit 7d92b72
Showing
5 changed files
with
81 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "typesense_document Data Source - terraform-provider-typesense" | ||
subcategory: "" | ||
description: |- | ||
Item in a collection | ||
--- | ||
|
||
# typesense_document (Data Source) | ||
|
||
Item in a collection | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
data "typesense_document" "my_doc" { | ||
name = "my-doc" | ||
collection_name = "my-collection" | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- **collection_name** (String) Name of the collection | ||
- **id** (String) ID of the document | ||
|
||
### Read-Only | ||
|
||
- **document** (Map of String) Document's body | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
--- | ||
# generated by https://github.com/hashicorp/terraform-plugin-docs | ||
page_title: "typesense_document Resource - terraform-provider-typesense" | ||
subcategory: "" | ||
description: |- | ||
Item in a collection | ||
--- | ||
|
||
# typesense_document (Resource) | ||
|
||
Item in a collection | ||
|
||
## Example Usage | ||
|
||
```terraform | ||
resource "typesense_document" "doc" { | ||
id = "doc" | ||
collection_name = typesense_collection.my_collection.name | ||
document = { | ||
"company_name" = "Stark Industries" | ||
"num_employees" = 5215 | ||
"country" = "USA" | ||
} | ||
} | ||
``` | ||
|
||
<!-- schema generated by tfplugindocs --> | ||
## Schema | ||
|
||
### Required | ||
|
||
- **collection_name** (String) Name of the collection | ||
- **document** (Map of String) Document's body | ||
- **id** (String) ID of the document | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
```shell | ||
terraform import typesense_document.my_doc my_collection.my-doc | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters