Skip to content

Commit

Permalink
Document compute_backend_service set types (#1960)
Browse files Browse the repository at this point in the history
Merged PR #1960.
  • Loading branch information
danawillow authored and modular-magician committed Jun 24, 2019
1 parent 89a2f49 commit a9aa31d
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 9 deletions.
2 changes: 1 addition & 1 deletion build/inspec
2 changes: 1 addition & 1 deletion build/terraform
2 changes: 1 addition & 1 deletion build/terraform-beta
4 changes: 2 additions & 2 deletions products/compute/api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -602,7 +602,7 @@ objects:
- !ruby/object:Api::Type::Array
name: 'backends'
description: |
The list of backends that serve this BackendService.
The set of backends that serve this BackendService.
item_type: !ruby/object:Api::Type::NestedObject
properties:
- !ruby/object:Api::Type::Enum
Expand Down Expand Up @@ -819,7 +819,7 @@ objects:
min_size: 1
max_size: 1
description: |
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.
Expand Down
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.

0 comments on commit a9aa31d

Please sign in to comment.