mirror of
https://github.com/letic/terraform-provider-google.git
synced 2024-10-01 16:21:06 +00:00
Restrict the number of health_checks in Backend Service resources to 1.
This commit is contained in:
parent
33abfb4b77
commit
6f8b415b42
@ -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{
|
||||
|
@ -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{
|
||||
|
@ -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.
|
||||
|
||||
- - -
|
||||
|
||||
|
@ -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.
|
||||
|
||||
- - -
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user