Skip to content

Commit c4b5b43

Browse files
committed
add validation
1 parent 2d512bf commit c4b5b43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

sysdig/data_source_sysdig_secure_onboarding.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -355,8 +355,9 @@ func dataSourceSysdigSecureCloudIngestionAssets() *schema.Resource {
355355
Optional: true,
356356
},
357357
"component_type": {
358-
Type: schema.TypeString,
359-
Optional: true,
358+
Type: schema.TypeString,
359+
Optional: true,
360+
ValidateFunc: validation.StringInSlice([]string{"COMPONENT_WEBHOOK_DATASOURCE"}, false),
360361
},
361362
"aws": {
362363
Type: schema.TypeMap,

0 commit comments

Comments
 (0)