Skip to content

Commit 81b5a5d

Browse files
authored
Merge branch 'main' into auth_via_cli
2 parents f59eb17 + 0aba8b8 commit 81b5a5d

File tree

1 file changed

+23
-31
lines changed

1 file changed

+23
-31
lines changed

internal/auth0/logstream/resource.go

Lines changed: 23 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -255,47 +255,40 @@ func NewResource() *schema.Resource {
255255
Description: "Additional HTTP headers to be included as part of the HTTP request.",
256256
},
257257
"datadog_region": {
258-
Type: schema.TypeString,
259-
Optional: true,
260-
RequiredWith: []string{"sink.0.datadog_api_key"},
258+
Type: schema.TypeString,
259+
Optional: true,
261260
ValidateFunc: validation.StringInSlice(
262261
[]string{"us", "eu", "us3", "us5"},
263262
false,
264263
),
265264
Description: "The Datadog region. Possible values: `us`, `eu`, `us3`, `us5`.",
266265
},
267266
"datadog_api_key": {
268-
Type: schema.TypeString,
269-
Optional: true,
270-
Sensitive: true,
271-
RequiredWith: []string{"sink.0.datadog_region"},
272-
Description: "The Datadog API key.",
267+
Type: schema.TypeString,
268+
Optional: true,
269+
Sensitive: true,
270+
Description: "The Datadog API key.",
273271
},
274272
"splunk_domain": {
275-
Type: schema.TypeString,
276-
Optional: true,
277-
RequiredWith: []string{"sink.0.splunk_token", "sink.0.splunk_port", "sink.0.splunk_secure"},
278-
Description: "The Splunk domain name.",
273+
Type: schema.TypeString,
274+
Optional: true,
275+
Description: "The Splunk domain name.",
279276
},
280277
"splunk_token": {
281-
Type: schema.TypeString,
282-
Optional: true,
283-
Sensitive: true,
284-
RequiredWith: []string{"sink.0.splunk_domain", "sink.0.splunk_port", "sink.0.splunk_secure"},
285-
Description: "The Splunk access token.",
278+
Type: schema.TypeString,
279+
Optional: true,
280+
Sensitive: true,
281+
Description: "The Splunk access token.",
286282
},
287283
"splunk_port": {
288-
Type: schema.TypeString,
289-
Optional: true,
290-
RequiredWith: []string{"sink.0.splunk_domain", "sink.0.splunk_token", "sink.0.splunk_secure"},
291-
Description: "The Splunk port.",
284+
Type: schema.TypeString,
285+
Optional: true,
286+
Description: "The Splunk port.",
292287
},
293288
"splunk_secure": {
294-
Type: schema.TypeBool,
295-
Optional: true,
296-
Default: nil,
297-
RequiredWith: []string{"sink.0.splunk_domain", "sink.0.splunk_port", "sink.0.splunk_token"},
298-
Description: "This toggle should be turned off when using self-signed certificates.",
289+
Type: schema.TypeBool,
290+
Optional: true,
291+
Description: "This toggle should be turned off when using self-signed certificates.",
299292
},
300293
"sumo_source_address": {
301294
Type: schema.TypeString,
@@ -324,11 +317,10 @@ func NewResource() *schema.Resource {
324317
Description: "The Mixpanel Service Account username. Services Accounts can be created in the Project Settings page.",
325318
},
326319
"mixpanel_service_account_password": {
327-
Type: schema.TypeString,
328-
Optional: true,
329-
Sensitive: true,
330-
RequiredWith: []string{"sink.0.mixpanel_region", "sink.0.mixpanel_project_id", "sink.0.mixpanel_service_account_username"},
331-
Description: "The Mixpanel Service Account password.",
320+
Type: schema.TypeString,
321+
Optional: true,
322+
Sensitive: true,
323+
Description: "The Mixpanel Service Account password.",
332324
},
333325
"segment_write_key": {
334326
Type: schema.TypeString,

0 commit comments

Comments
 (0)