Add service type validation
This commit is contained in:
parent
ee20c11907
commit
effec42278
|
@ -28,6 +28,17 @@ func resourcePagerDutyServiceIntegration() *schema.Resource {
|
|||
"type": &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
Required: true,
|
||||
ValidateFunc: validateValueFunc([]string{
|
||||
"aws_cloudwatch_inbound_integration",
|
||||
"cloudkick_inbound_integration",
|
||||
"event_transformer_api_inbound_integration",
|
||||
"generic_email_inbound_integration",
|
||||
"generic_events_api_inbound_integration",
|
||||
"keynote_inbound_integration",
|
||||
"nagios_inbound_integration",
|
||||
"pingdom_inbound_integration",
|
||||
"sql_monitor_inbound_integration",
|
||||
}),
|
||||
},
|
||||
"integration_key": &schema.Schema{
|
||||
Type: schema.TypeString,
|
||||
|
|
Loading…
Reference in New Issue