Skip to content

Commit

Permalink
Document compute_backend_service set types (#877)
Browse files Browse the repository at this point in the history
Signed-off-by: Modular Magician <[email protected]>
  • Loading branch information
modular-magician authored and danawillow committed Jun 24, 2019
1 parent 12fe5f0 commit a933c9b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ description: |-

# google\_compute\_backend\_service

Provide acces to a Backend Service's attribute. For more information
Provide access to a Backend Service's attribute. For more information
see [the official documentation](https://cloud.google.com/compute/docs/load-balancing/http/backend-service)
and the [API](https://cloud.google.com/compute/docs/reference/latest/backendServices).

Expand All @@ -18,6 +18,11 @@ and the [API](https://cloud.google.com/compute/docs/reference/latest/backendServ
data "google_compute_backend_service" "baz" {
name = "foobar"
}
resource "google_compute_backend_service" "default" {
name = "backend-service"
health_checks = ["${tolist(data.google_compute_backend_service.baz.health_checks)[0]}"]
}
```

## Argument Reference
Expand Down Expand Up @@ -52,6 +57,6 @@ In addition to the arguments listed above, the following attributes are exported

* `timeout_sec` - The number of seconds to wait for a backend to respond to a request before considering the request failed.

* `backend` - The list of backends that serve this Backend Service.
* `backend` - The set of backends that serve this Backend Service.

* `health_checks` - The list of HTTP/HTTPS health checks used by the Backend Service.
* `health_checks` - The set of HTTP/HTTPS health checks used by the Backend Service.
4 changes: 2 additions & 2 deletions website/docs/r/compute_backend_service.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ The following arguments are supported:

* `health_checks` -
(Required)
The list of URLs to the HttpHealthCheck or HttpsHealthCheck resource
The set of URLs to the HttpHealthCheck or HttpsHealthCheck resource
for health checking this BackendService. Currently at most one health
check can be specified, and a health check is required.
For internal load balancing, a URL to a HealthCheck resource must be specified instead.
Expand Down Expand Up @@ -94,7 +94,7 @@ The following arguments are supported:

* `backend` -
(Optional)
The list of backends that serve this BackendService. Structure is documented below.
The set of backends that serve this BackendService. Structure is documented below.

* `cdn_policy` -
(Optional)
Expand Down

0 comments on commit a933c9b

Please sign in to comment.