Restrict the number of health_checks in Backend Service resources to 1.

This commit is contained in:
Riley Karson 2017-06-20 10:26:09 -07:00
parent 33abfb4b77
commit 6f8b415b42
4 changed files with 10 additions and 4 deletions

View File

@ -40,8 +40,10 @@ func resourceComputeBackendService() *schema.Resource {
"health_checks": &schema.Schema{
Type: schema.TypeSet,
Elem: &schema.Schema{Type: schema.TypeString},
Required: true,
Set: schema.HashString,
Required: true,
MinItems: 1,
MaxItems: 1,
},
"backend": &schema.Schema{

View File

@ -37,8 +37,10 @@ func resourceComputeRegionBackendService() *schema.Resource {
"health_checks": &schema.Schema{
Type: schema.TypeSet,
Elem: &schema.Schema{Type: schema.TypeString},
Required: true,
Set: schema.HashString,
Required: true,
MinItems: 1,
MaxItems: 1,
},
"backend": &schema.Schema{

View File

@ -70,7 +70,8 @@ The following arguments are supported:
* `name` - (Required) The name of the backend service.
* `health_checks` - (Required) Specifies a list of HTTP health check objects
for checking the health of the backend service.
for checking the health of the backend service. Currently at most one health
check can be specified, and a health check is required.
- - -

View File

@ -70,7 +70,8 @@ The following arguments are supported:
* `name` - (Required) The name of the backend service.
* `health_checks` - (Required) Specifies a list of health check objects
for checking the health of the backend service.
for checking the health of the backend service. Currently at most
one health check can be specified, and a health check is required.
- - -