Skip to content

Commit

Permalink
set index name to forcenew (#2449)
Browse files Browse the repository at this point in the history
  • Loading branch information
nkzou authored Jun 19, 2024
1 parent d72a23b commit 5170e13
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion datadog/resource_datadog_logs_index.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,10 @@ var logsIndexMutex = sync.Mutex{}

var indexSchema = map[string]*schema.Schema{
"name": {
Description: "The name of the index.",
Description: "The name of the index. Index names cannot be modified after creation. If this value is changed, a new index will be created.",
Type: schema.TypeString,
Required: true,
ForceNew: true,
},
"disable_daily_limit": {
Description: "If true, sets the daily_limit value to null and the index is not limited on a daily basis (any specified daily_limit value in the request is ignored). If false or omitted, the index's current daily_limit is maintained.",
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/logs_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ resource "datadog_logs_index" "sample_index" {
### Required

- `filter` (Block List, Min: 1, Max: 1) Logs filter (see [below for nested schema](#nestedblock--filter))
- `name` (String) The name of the index.
- `name` (String) The name of the index. Index names cannot be modified after creation. If this value is changed, a new index will be created.

### Optional

Expand Down

0 comments on commit 5170e13

Please sign in to comment.