Skip to content

Commit aeb48d6

Browse files
author
Sean Sain
committed
add jsonencode to content doc
1 parent 6e075c8 commit aeb48d6

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

website/docs/r/content.html.markdown

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,12 @@ Provides a way to interact with Sumologic Content.
1010

1111
## Example Usage
1212
```hcl
13+
data "sumologic_personal_folder" "personalFolder" {}
14+
1315
resource "sumologic_content" "test" {
14-
parent_id = "%s"
15-
config =
16-
{
16+
parent_id = "${data.sumologic_personal_folder.personalFolder.id}"
17+
config =
18+
jsonencode({
1719
"type": "SavedSearchWithScheduleSyncDefinition",
1820
"name": "test-333",
1921
"search": {
@@ -52,7 +54,7 @@ parent_id = "%s"
5254
"parameters": []
5355
},
5456
"description": "Runs every hour with timerange of 15m and sends email notifications"
55-
}
57+
})
5658
}
5759
```
5860

0 commit comments

Comments
 (0)