Skip to content

Commit 1736ed2

Browse files
author
Sean Sain
committed
add docs for lookup tables
1 parent 743594e commit 1736ed2

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
layout: "sumologic"
3+
page_title: "SumoLogic: sumologic_lookup_table"
4+
description: |-
5+
Provides a Sumologic Lookup Table
6+
---
7+
8+
# sumologic_lookup_table
9+
Provides a [Sumologic Lookup Table][1].
10+
11+
## Example Usage
12+
```hcl
13+
data "sumologic_personal_folder" "personalFolder" {}
14+
15+
resource "sumologic_lookup_table" "lookupTable" {
16+
name = "a lookup table updated"
17+
fields {
18+
field_name = "FieldName1"
19+
field_type = "boolean"
20+
}
21+
ttl = 100
22+
primary_keys = ["FieldName1"]
23+
parent_folder_id = "${data.sumologic_personal_folder.personalFolder.id}"
24+
size_limit_action = "DeleteOldData"
25+
description = "some description"
26+
}
27+
```
28+
29+
## Argument reference
30+
31+
The following arguments are supported:
32+
33+
- `name` - (Required) The name of the lookup table.
34+
- `parent_folder_id` - (Required) The parent-folder-path identifier of the lookup table in the Library.
35+
- `description` - (Required) The description of the lookup table.
36+
- `fields` - (Required) The list of fields in the lookup table.
37+
- `fieldName` - (Required) The name of the field.
38+
- `fieldType` - (Required) The data type of the field. Supported types: boolean, int, long, double, string
39+
- `primaryKeys` - (Required) The names of the fields that make up the primary key for the lookup table. These will be a subset of the fields that the table will contain.
40+
- `ttl` - (Optional) A time to live for each entry in the lookup table (in minutes). 365 days is the maximum time to live for each entry that you can specify. Setting it to 0 means that the records will not expire automatically.
41+
- `sizeLimitAction` - (Optional) The action that needs to be taken when the size limit is reached for the table. The possible values can be StopIncomingMessages or DeleteOldData. DeleteOldData will start deleting old data once size limit is reached whereas StopIncomingMessages will discard all the updates made to the lookup table once size limit is reached.
42+
43+
## Attributes reference
44+
45+
The following attributes are exported:
46+
47+
- `id` - Unique identifier for the partition.
48+
49+
## Import
50+
Lookup Tables can be imported using the id, e.g.:
51+
52+
```hcl
53+
terraform import sumologic_lookup_table.test 1234567890
54+
```
55+
56+
[1]: https://help.sumologic.com/05Search/Lookup_Tables

0 commit comments

Comments
 (0)