Add service type validation

This commit is contained in:
Alexander Hellbom 2016-10-17 23:20:03 +02:00
parent ee20c11907
commit effec42278
1 changed files with 11 additions and 0 deletions

View File

@ -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,