Skip to content

Commit 2784022

Browse files
modular-magicianrosbo
authored andcommitted
Generate google_target_http_proxy using MagicModule (hashicorp#1391)
1 parent 83676c9 commit 2784022

File tree

1 file changed

+61
-20
lines changed

1 file changed

+61
-20
lines changed

docs/r/compute_target_http_proxy.html.markdown

+61-20
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,38 @@
1+
<!--
2+
----------------------------------------------------------------------------
3+
4+
*** AUTO GENERATED CODE *** AUTO GENERATED CODE ***
5+
6+
----------------------------------------------------------------------------
7+
8+
This file is automatically generated by Magic Modules and manual
9+
changes will be clobbered when the file is regenerated.
10+
11+
Please read more about how to change this file in
12+
.github/CONTRIBUTING.md.
13+
14+
----------------------------------------------------------------------------
15+
-->
16+
117
---
218
layout: "google"
319
page_title: "Google: google_compute_target_http_proxy"
420
sidebar_current: "docs-google-compute-target-http-proxy"
521
description: |-
6-
Creates a Target HTTP Proxy resource in GCE.
22+
Represents a TargetHttpProxy resource, which is used by one or more global
23+
forwarding rule to route incoming HTTP requests to a URL map.
724
---
825

926
# google\_compute\_target\_http\_proxy
1027

11-
Creates a target HTTP proxy resource in GCE. For more information see
12-
[the official
13-
documentation](https://cloud.google.com/compute/docs/load-balancing/http/target-proxies) and
14-
[API](https://cloud.google.com/compute/docs/reference/latest/targetHttpProxies).
28+
Represents a TargetHttpProxy resource, which is used by one or more global
29+
forwarding rule to route incoming HTTP requests to a URL map.
30+
31+
To get more information about TargetHttpProxy, see:
1532

33+
* [API documentation](https://cloud.google.com/compute/docs/reference/latest/targetHttpProxies)
34+
* How-to Guides
35+
* [Official Documentation](https://cloud.google.com/compute/docs/load-balancing/http/target-proxies)
1636

1737
## Example Usage
1838

@@ -66,34 +86,55 @@ resource "google_compute_http_health_check" "default" {
6686

6787
The following arguments are supported:
6888

69-
* `name` - (Required) A unique name for the resource, required by GCE. Changing
70-
this forces a new resource to be created.
89+
* `name` -
90+
(Required)
91+
Name of the resource. Provided by the client when the resource is
92+
created. The name must be 1-63 characters long, and comply with
93+
RFC1035. Specifically, the name must be 1-63 characters long and match
94+
the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?` which means the
95+
first character must be a lowercase letter, and all following
96+
characters must be a dash, lowercase letter, or digit, except the last
97+
character, which cannot be a dash.
98+
* `url_map` -
99+
(Required)
100+
A reference to UrlMap resource
71101

72-
* `url_map` - (Required) The URL of a URL Map resource that defines the mapping
73-
from the URL to the BackendService.
74-
75-
* `project` - (Optional) The ID of the project in which the resource belongs. If it
76-
is not provided, the provider project is used.
77102

78103
- - -
79104

80-
* `description` - (Optional) A description of this resource. Changing this
81-
forces a new resource to be created.
105+
* `description` -
106+
(Optional)
107+
An optional description of this resource.
108+
* `project` (Optional) The ID of the project in which the resource belongs.
109+
If it is not provided, the provider project is used.
82110

83111

84112
## Attributes Reference
85113

86-
In addition to the arguments listed above, the following computed attributes are
87-
exported:
88-
89-
* `proxy_id` - A unique ID assigned by GCE.
114+
In addition to the arguments listed above, the following computed attributes are exported:
90115

116+
* `creation_timestamp` -
117+
Creation timestamp in RFC3339 text format.
118+
* `proxy_id` -
119+
The unique identifier for the resource.
91120
* `self_link` - The URI of the created resource.
92121

122+
123+
## Timeouts
124+
125+
This resource provides the following
126+
[Timeouts](/docs/configuration/resources.html#timeouts) configuration options:
127+
128+
- `create` - Default is 4 minutes.
129+
- `update` - Default is 4 minutes.
130+
- `delete` - Default is 4 minutes.
131+
93132
## Import
94133

95-
Target HTTP Proxy can be imported using the `name`, e.g.
134+
TargetHttpProxy can be imported using any of these accepted formats:
96135

97136
```
98-
$ terraform import compute_target_http_proxy.foobar foobar
137+
$ terraform import google_compute_target_http_proxy.default projects/{{project}}/global/targetHttpProxies/{{name}}
138+
$ terraform import google_compute_target_http_proxy.default {{project}}/{{name}}
139+
$ terraform import google_compute_target_http_proxy.default {{name}}
99140
```

0 commit comments

Comments
 (0)