Skip to content

Commit 32b1d8d

Browse files
author
Sean Sain
committed
Deprecate destroy and lookup_by_name for sources
1 parent c378393 commit 32b1d8d

File tree

2 files changed

+12
-9
lines changed

2 files changed

+12
-9
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ BUG FIXES:
1717
DEPRECATIONS:
1818

1919
* resource/sumologic_collector_ingest_budget_assignment: Deprecated in favor of assigning ingest budgets through the _budget field attribute of collectors [GH-135]
20-
* resource/sumologic_collector: Deprecated `lookup_by_name` and `destroy` attributes
20+
* resource/sumologic_collector: Deprecated `lookup_by_name` and `destroy` attributes
21+
* resource/sumologic_sources: Deprecated `lookup_by_name` and `destroy` attributes

sumologic/sumologic_sources.go

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -179,16 +179,18 @@ func resourceSumologicSource() *schema.Resource {
179179
ForceNew: true,
180180
},
181181
"lookup_by_name": {
182-
Type: schema.TypeBool,
183-
Optional: true,
184-
ForceNew: false,
185-
Default: false,
182+
Deprecated: "We are deprecating the lookup_by_name attribute as sources can be imported using the format collectorID/sourceID.",
183+
Type: schema.TypeBool,
184+
Optional: true,
185+
ForceNew: false,
186+
Default: false,
186187
},
187188
"destroy": {
188-
Type: schema.TypeBool,
189-
Optional: true,
190-
ForceNew: false,
191-
Default: true,
189+
Deprecated: "We are deprecating the destroy attribute as all resources support lifecycle attribute prevent_destroy",
190+
Type: schema.TypeBool,
191+
Optional: true,
192+
ForceNew: false,
193+
Default: true,
192194
},
193195
},
194196
}

0 commit comments

Comments
 (0)