pulumi-gcp 7.23.0a1715621482__py3-none-any.whl → 7.23.0a1715808346__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- pulumi_gcp/__init__.py +24 -0
- pulumi_gcp/bigquery/table.py +47 -0
- pulumi_gcp/bigtable/__init__.py +1 -0
- pulumi_gcp/bigtable/_inputs.py +101 -0
- pulumi_gcp/bigtable/authorized_view.py +440 -0
- pulumi_gcp/bigtable/outputs.py +119 -0
- pulumi_gcp/certificateauthority/certificate_template.py +70 -0
- pulumi_gcp/cloudbuildv2/repository.py +2 -2
- pulumi_gcp/clouddeploy/_inputs.py +96 -0
- pulumi_gcp/clouddeploy/custom_target_type.py +46 -0
- pulumi_gcp/clouddeploy/delivery_pipeline.py +7 -7
- pulumi_gcp/clouddeploy/outputs.py +96 -1
- pulumi_gcp/clouddeploy/target.py +54 -7
- pulumi_gcp/compute/_inputs.py +689 -0
- pulumi_gcp/compute/firewall_policy_rule.py +125 -10
- pulumi_gcp/compute/network_firewall_policy_rule.py +125 -10
- pulumi_gcp/compute/outputs.py +684 -0
- pulumi_gcp/compute/region_network_firewall_policy_rule.py +125 -10
- pulumi_gcp/compute/region_security_policy_rule.py +230 -1
- pulumi_gcp/container/_inputs.py +67 -3
- pulumi_gcp/container/outputs.py +93 -4
- pulumi_gcp/dataflow/flex_template_job.py +7 -7
- pulumi_gcp/dataflow/job.py +7 -7
- pulumi_gcp/iam/_inputs.py +191 -2
- pulumi_gcp/iam/outputs.py +197 -2
- pulumi_gcp/iam/workforce_pool_provider.py +245 -0
- pulumi_gcp/integrationconnectors/__init__.py +1 -0
- pulumi_gcp/integrationconnectors/managed_zone.py +753 -0
- pulumi_gcp/networkconnectivity/__init__.py +1 -0
- pulumi_gcp/networkconnectivity/regional_endpoint.py +946 -0
- pulumi_gcp/networksecurity/firewall_endpoint.py +34 -0
- pulumi_gcp/networksecurity/firewall_endpoint_association.py +24 -0
- pulumi_gcp/networksecurity/security_profile.py +16 -0
- pulumi_gcp/networksecurity/security_profile_group.py +18 -0
- pulumi_gcp/networksecurity/tls_inspection_policy.py +16 -0
- pulumi_gcp/orgpolicy/policy.py +2 -2
- pulumi_gcp/pubsub/subscription.py +4 -4
- pulumi_gcp/pulumi-plugin.json +2 -1
- {pulumi_gcp-7.23.0a1715621482.dist-info → pulumi_gcp-7.23.0a1715808346.dist-info}/METADATA +1 -1
- {pulumi_gcp-7.23.0a1715621482.dist-info → pulumi_gcp-7.23.0a1715808346.dist-info}/RECORD +42 -39
- {pulumi_gcp-7.23.0a1715621482.dist-info → pulumi_gcp-7.23.0a1715808346.dist-info}/WHEEL +0 -0
- {pulumi_gcp-7.23.0a1715621482.dist-info → pulumi_gcp-7.23.0a1715808346.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,946 @@
|
|
1
|
+
# coding=utf-8
|
2
|
+
# *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
|
3
|
+
# *** Do not edit by hand unless you're certain you know what you are doing! ***
|
4
|
+
|
5
|
+
import copy
|
6
|
+
import warnings
|
7
|
+
import pulumi
|
8
|
+
import pulumi.runtime
|
9
|
+
from typing import Any, Mapping, Optional, Sequence, Union, overload
|
10
|
+
from .. import _utilities
|
11
|
+
|
12
|
+
__all__ = ['RegionalEndpointArgs', 'RegionalEndpoint']
|
13
|
+
|
14
|
+
@pulumi.input_type
|
15
|
+
class RegionalEndpointArgs:
|
16
|
+
def __init__(__self__, *,
|
17
|
+
access_type: pulumi.Input[str],
|
18
|
+
location: pulumi.Input[str],
|
19
|
+
target_google_api: pulumi.Input[str],
|
20
|
+
address: Optional[pulumi.Input[str]] = None,
|
21
|
+
description: Optional[pulumi.Input[str]] = None,
|
22
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
23
|
+
name: Optional[pulumi.Input[str]] = None,
|
24
|
+
network: Optional[pulumi.Input[str]] = None,
|
25
|
+
project: Optional[pulumi.Input[str]] = None,
|
26
|
+
subnetwork: Optional[pulumi.Input[str]] = None):
|
27
|
+
"""
|
28
|
+
The set of arguments for constructing a RegionalEndpoint resource.
|
29
|
+
:param pulumi.Input[str] access_type: The access type of this regional endpoint. This field is reflected in the PSC Forwarding Rule configuration to enable global access.
|
30
|
+
Possible values are: `GLOBAL`, `REGIONAL`.
|
31
|
+
:param pulumi.Input[str] location: The location of the RegionalEndpoint.
|
32
|
+
|
33
|
+
|
34
|
+
- - -
|
35
|
+
:param pulumi.Input[str] target_google_api: The service endpoint this private regional endpoint connects to. Format: `{apiname}.{region}.p.rep.googleapis.com` Example: \\"cloudkms.us-central1.p.rep.googleapis.com\\".
|
36
|
+
:param pulumi.Input[str] address: The IP Address of the Regional Endpoint. When no address is provided, an IP from the subnetwork is allocated. Use one of the following formats: * IPv4 address as in `10.0.0.1` * Address resource URI as in `projects/{project}/regions/{region}/addresses/{address_name}`
|
37
|
+
> **Note:** This field accepts both a reference to a Compute Address resource, which is the resource name of which format is given in the description, and IP literal value. If the user chooses to input a reserved address value; they need to make sure that the reserved address is in IPv4 version, its purpose is GCE_ENDPOINT, its type is INTERNAL and its status is RESERVED. If the user chooses to input an IP literal, they need to make sure that it's a valid IPv4 address (x.x.x.x) within the subnetwork.
|
38
|
+
:param pulumi.Input[str] description: A description of this resource.
|
39
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: User-defined labels.
|
40
|
+
|
41
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
42
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
43
|
+
:param pulumi.Input[str] name: The name of the RegionalEndpoint.
|
44
|
+
:param pulumi.Input[str] network: The name of the VPC network for this private regional endpoint. Format: `projects/{project}/global/networks/{network}`
|
45
|
+
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
46
|
+
If it is not provided, the provider project is used.
|
47
|
+
:param pulumi.Input[str] subnetwork: The name of the subnetwork from which the IP address will be allocated. Format: `projects/{project}/regions/{region}/subnetworks/{subnetwork}`
|
48
|
+
"""
|
49
|
+
pulumi.set(__self__, "access_type", access_type)
|
50
|
+
pulumi.set(__self__, "location", location)
|
51
|
+
pulumi.set(__self__, "target_google_api", target_google_api)
|
52
|
+
if address is not None:
|
53
|
+
pulumi.set(__self__, "address", address)
|
54
|
+
if description is not None:
|
55
|
+
pulumi.set(__self__, "description", description)
|
56
|
+
if labels is not None:
|
57
|
+
pulumi.set(__self__, "labels", labels)
|
58
|
+
if name is not None:
|
59
|
+
pulumi.set(__self__, "name", name)
|
60
|
+
if network is not None:
|
61
|
+
pulumi.set(__self__, "network", network)
|
62
|
+
if project is not None:
|
63
|
+
pulumi.set(__self__, "project", project)
|
64
|
+
if subnetwork is not None:
|
65
|
+
pulumi.set(__self__, "subnetwork", subnetwork)
|
66
|
+
|
67
|
+
@property
|
68
|
+
@pulumi.getter(name="accessType")
|
69
|
+
def access_type(self) -> pulumi.Input[str]:
|
70
|
+
"""
|
71
|
+
The access type of this regional endpoint. This field is reflected in the PSC Forwarding Rule configuration to enable global access.
|
72
|
+
Possible values are: `GLOBAL`, `REGIONAL`.
|
73
|
+
"""
|
74
|
+
return pulumi.get(self, "access_type")
|
75
|
+
|
76
|
+
@access_type.setter
|
77
|
+
def access_type(self, value: pulumi.Input[str]):
|
78
|
+
pulumi.set(self, "access_type", value)
|
79
|
+
|
80
|
+
@property
|
81
|
+
@pulumi.getter
|
82
|
+
def location(self) -> pulumi.Input[str]:
|
83
|
+
"""
|
84
|
+
The location of the RegionalEndpoint.
|
85
|
+
|
86
|
+
|
87
|
+
- - -
|
88
|
+
"""
|
89
|
+
return pulumi.get(self, "location")
|
90
|
+
|
91
|
+
@location.setter
|
92
|
+
def location(self, value: pulumi.Input[str]):
|
93
|
+
pulumi.set(self, "location", value)
|
94
|
+
|
95
|
+
@property
|
96
|
+
@pulumi.getter(name="targetGoogleApi")
|
97
|
+
def target_google_api(self) -> pulumi.Input[str]:
|
98
|
+
"""
|
99
|
+
The service endpoint this private regional endpoint connects to. Format: `{apiname}.{region}.p.rep.googleapis.com` Example: \\"cloudkms.us-central1.p.rep.googleapis.com\\".
|
100
|
+
"""
|
101
|
+
return pulumi.get(self, "target_google_api")
|
102
|
+
|
103
|
+
@target_google_api.setter
|
104
|
+
def target_google_api(self, value: pulumi.Input[str]):
|
105
|
+
pulumi.set(self, "target_google_api", value)
|
106
|
+
|
107
|
+
@property
|
108
|
+
@pulumi.getter
|
109
|
+
def address(self) -> Optional[pulumi.Input[str]]:
|
110
|
+
"""
|
111
|
+
The IP Address of the Regional Endpoint. When no address is provided, an IP from the subnetwork is allocated. Use one of the following formats: * IPv4 address as in `10.0.0.1` * Address resource URI as in `projects/{project}/regions/{region}/addresses/{address_name}`
|
112
|
+
> **Note:** This field accepts both a reference to a Compute Address resource, which is the resource name of which format is given in the description, and IP literal value. If the user chooses to input a reserved address value; they need to make sure that the reserved address is in IPv4 version, its purpose is GCE_ENDPOINT, its type is INTERNAL and its status is RESERVED. If the user chooses to input an IP literal, they need to make sure that it's a valid IPv4 address (x.x.x.x) within the subnetwork.
|
113
|
+
"""
|
114
|
+
return pulumi.get(self, "address")
|
115
|
+
|
116
|
+
@address.setter
|
117
|
+
def address(self, value: Optional[pulumi.Input[str]]):
|
118
|
+
pulumi.set(self, "address", value)
|
119
|
+
|
120
|
+
@property
|
121
|
+
@pulumi.getter
|
122
|
+
def description(self) -> Optional[pulumi.Input[str]]:
|
123
|
+
"""
|
124
|
+
A description of this resource.
|
125
|
+
"""
|
126
|
+
return pulumi.get(self, "description")
|
127
|
+
|
128
|
+
@description.setter
|
129
|
+
def description(self, value: Optional[pulumi.Input[str]]):
|
130
|
+
pulumi.set(self, "description", value)
|
131
|
+
|
132
|
+
@property
|
133
|
+
@pulumi.getter
|
134
|
+
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
135
|
+
"""
|
136
|
+
User-defined labels.
|
137
|
+
|
138
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
139
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
140
|
+
"""
|
141
|
+
return pulumi.get(self, "labels")
|
142
|
+
|
143
|
+
@labels.setter
|
144
|
+
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
145
|
+
pulumi.set(self, "labels", value)
|
146
|
+
|
147
|
+
@property
|
148
|
+
@pulumi.getter
|
149
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
150
|
+
"""
|
151
|
+
The name of the RegionalEndpoint.
|
152
|
+
"""
|
153
|
+
return pulumi.get(self, "name")
|
154
|
+
|
155
|
+
@name.setter
|
156
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
157
|
+
pulumi.set(self, "name", value)
|
158
|
+
|
159
|
+
@property
|
160
|
+
@pulumi.getter
|
161
|
+
def network(self) -> Optional[pulumi.Input[str]]:
|
162
|
+
"""
|
163
|
+
The name of the VPC network for this private regional endpoint. Format: `projects/{project}/global/networks/{network}`
|
164
|
+
"""
|
165
|
+
return pulumi.get(self, "network")
|
166
|
+
|
167
|
+
@network.setter
|
168
|
+
def network(self, value: Optional[pulumi.Input[str]]):
|
169
|
+
pulumi.set(self, "network", value)
|
170
|
+
|
171
|
+
@property
|
172
|
+
@pulumi.getter
|
173
|
+
def project(self) -> Optional[pulumi.Input[str]]:
|
174
|
+
"""
|
175
|
+
The ID of the project in which the resource belongs.
|
176
|
+
If it is not provided, the provider project is used.
|
177
|
+
"""
|
178
|
+
return pulumi.get(self, "project")
|
179
|
+
|
180
|
+
@project.setter
|
181
|
+
def project(self, value: Optional[pulumi.Input[str]]):
|
182
|
+
pulumi.set(self, "project", value)
|
183
|
+
|
184
|
+
@property
|
185
|
+
@pulumi.getter
|
186
|
+
def subnetwork(self) -> Optional[pulumi.Input[str]]:
|
187
|
+
"""
|
188
|
+
The name of the subnetwork from which the IP address will be allocated. Format: `projects/{project}/regions/{region}/subnetworks/{subnetwork}`
|
189
|
+
"""
|
190
|
+
return pulumi.get(self, "subnetwork")
|
191
|
+
|
192
|
+
@subnetwork.setter
|
193
|
+
def subnetwork(self, value: Optional[pulumi.Input[str]]):
|
194
|
+
pulumi.set(self, "subnetwork", value)
|
195
|
+
|
196
|
+
|
197
|
+
@pulumi.input_type
|
198
|
+
class _RegionalEndpointState:
|
199
|
+
def __init__(__self__, *,
|
200
|
+
access_type: Optional[pulumi.Input[str]] = None,
|
201
|
+
address: Optional[pulumi.Input[str]] = None,
|
202
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
203
|
+
description: Optional[pulumi.Input[str]] = None,
|
204
|
+
effective_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
205
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
206
|
+
location: Optional[pulumi.Input[str]] = None,
|
207
|
+
name: Optional[pulumi.Input[str]] = None,
|
208
|
+
network: Optional[pulumi.Input[str]] = None,
|
209
|
+
project: Optional[pulumi.Input[str]] = None,
|
210
|
+
psc_forwarding_rule: Optional[pulumi.Input[str]] = None,
|
211
|
+
pulumi_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
212
|
+
subnetwork: Optional[pulumi.Input[str]] = None,
|
213
|
+
target_google_api: Optional[pulumi.Input[str]] = None,
|
214
|
+
update_time: Optional[pulumi.Input[str]] = None):
|
215
|
+
"""
|
216
|
+
Input properties used for looking up and filtering RegionalEndpoint resources.
|
217
|
+
:param pulumi.Input[str] access_type: The access type of this regional endpoint. This field is reflected in the PSC Forwarding Rule configuration to enable global access.
|
218
|
+
Possible values are: `GLOBAL`, `REGIONAL`.
|
219
|
+
:param pulumi.Input[str] address: The IP Address of the Regional Endpoint. When no address is provided, an IP from the subnetwork is allocated. Use one of the following formats: * IPv4 address as in `10.0.0.1` * Address resource URI as in `projects/{project}/regions/{region}/addresses/{address_name}`
|
220
|
+
> **Note:** This field accepts both a reference to a Compute Address resource, which is the resource name of which format is given in the description, and IP literal value. If the user chooses to input a reserved address value; they need to make sure that the reserved address is in IPv4 version, its purpose is GCE_ENDPOINT, its type is INTERNAL and its status is RESERVED. If the user chooses to input an IP literal, they need to make sure that it's a valid IPv4 address (x.x.x.x) within the subnetwork.
|
221
|
+
:param pulumi.Input[str] create_time: Time when the RegionalEndpoint was created.
|
222
|
+
:param pulumi.Input[str] description: A description of this resource.
|
223
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] effective_labels: All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
|
224
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: User-defined labels.
|
225
|
+
|
226
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
227
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
228
|
+
:param pulumi.Input[str] location: The location of the RegionalEndpoint.
|
229
|
+
|
230
|
+
|
231
|
+
- - -
|
232
|
+
:param pulumi.Input[str] name: The name of the RegionalEndpoint.
|
233
|
+
:param pulumi.Input[str] network: The name of the VPC network for this private regional endpoint. Format: `projects/{project}/global/networks/{network}`
|
234
|
+
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
235
|
+
If it is not provided, the provider project is used.
|
236
|
+
:param pulumi.Input[str] psc_forwarding_rule: The resource reference of the PSC Forwarding Rule created on behalf of the customer. Format: `//compute.googleapis.com/projects/{project}/regions/{region}/forwardingRules/{forwarding_rule_name}`
|
237
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] pulumi_labels: The combination of labels configured directly on the resource
|
238
|
+
and default labels configured on the provider.
|
239
|
+
:param pulumi.Input[str] subnetwork: The name of the subnetwork from which the IP address will be allocated. Format: `projects/{project}/regions/{region}/subnetworks/{subnetwork}`
|
240
|
+
:param pulumi.Input[str] target_google_api: The service endpoint this private regional endpoint connects to. Format: `{apiname}.{region}.p.rep.googleapis.com` Example: \\"cloudkms.us-central1.p.rep.googleapis.com\\".
|
241
|
+
:param pulumi.Input[str] update_time: Time when the RegionalEndpoint was updated.
|
242
|
+
"""
|
243
|
+
if access_type is not None:
|
244
|
+
pulumi.set(__self__, "access_type", access_type)
|
245
|
+
if address is not None:
|
246
|
+
pulumi.set(__self__, "address", address)
|
247
|
+
if create_time is not None:
|
248
|
+
pulumi.set(__self__, "create_time", create_time)
|
249
|
+
if description is not None:
|
250
|
+
pulumi.set(__self__, "description", description)
|
251
|
+
if effective_labels is not None:
|
252
|
+
pulumi.set(__self__, "effective_labels", effective_labels)
|
253
|
+
if labels is not None:
|
254
|
+
pulumi.set(__self__, "labels", labels)
|
255
|
+
if location is not None:
|
256
|
+
pulumi.set(__self__, "location", location)
|
257
|
+
if name is not None:
|
258
|
+
pulumi.set(__self__, "name", name)
|
259
|
+
if network is not None:
|
260
|
+
pulumi.set(__self__, "network", network)
|
261
|
+
if project is not None:
|
262
|
+
pulumi.set(__self__, "project", project)
|
263
|
+
if psc_forwarding_rule is not None:
|
264
|
+
pulumi.set(__self__, "psc_forwarding_rule", psc_forwarding_rule)
|
265
|
+
if pulumi_labels is not None:
|
266
|
+
pulumi.set(__self__, "pulumi_labels", pulumi_labels)
|
267
|
+
if subnetwork is not None:
|
268
|
+
pulumi.set(__self__, "subnetwork", subnetwork)
|
269
|
+
if target_google_api is not None:
|
270
|
+
pulumi.set(__self__, "target_google_api", target_google_api)
|
271
|
+
if update_time is not None:
|
272
|
+
pulumi.set(__self__, "update_time", update_time)
|
273
|
+
|
274
|
+
@property
|
275
|
+
@pulumi.getter(name="accessType")
|
276
|
+
def access_type(self) -> Optional[pulumi.Input[str]]:
|
277
|
+
"""
|
278
|
+
The access type of this regional endpoint. This field is reflected in the PSC Forwarding Rule configuration to enable global access.
|
279
|
+
Possible values are: `GLOBAL`, `REGIONAL`.
|
280
|
+
"""
|
281
|
+
return pulumi.get(self, "access_type")
|
282
|
+
|
283
|
+
@access_type.setter
|
284
|
+
def access_type(self, value: Optional[pulumi.Input[str]]):
|
285
|
+
pulumi.set(self, "access_type", value)
|
286
|
+
|
287
|
+
@property
|
288
|
+
@pulumi.getter
|
289
|
+
def address(self) -> Optional[pulumi.Input[str]]:
|
290
|
+
"""
|
291
|
+
The IP Address of the Regional Endpoint. When no address is provided, an IP from the subnetwork is allocated. Use one of the following formats: * IPv4 address as in `10.0.0.1` * Address resource URI as in `projects/{project}/regions/{region}/addresses/{address_name}`
|
292
|
+
> **Note:** This field accepts both a reference to a Compute Address resource, which is the resource name of which format is given in the description, and IP literal value. If the user chooses to input a reserved address value; they need to make sure that the reserved address is in IPv4 version, its purpose is GCE_ENDPOINT, its type is INTERNAL and its status is RESERVED. If the user chooses to input an IP literal, they need to make sure that it's a valid IPv4 address (x.x.x.x) within the subnetwork.
|
293
|
+
"""
|
294
|
+
return pulumi.get(self, "address")
|
295
|
+
|
296
|
+
@address.setter
|
297
|
+
def address(self, value: Optional[pulumi.Input[str]]):
|
298
|
+
pulumi.set(self, "address", value)
|
299
|
+
|
300
|
+
@property
|
301
|
+
@pulumi.getter(name="createTime")
|
302
|
+
def create_time(self) -> Optional[pulumi.Input[str]]:
|
303
|
+
"""
|
304
|
+
Time when the RegionalEndpoint was created.
|
305
|
+
"""
|
306
|
+
return pulumi.get(self, "create_time")
|
307
|
+
|
308
|
+
@create_time.setter
|
309
|
+
def create_time(self, value: Optional[pulumi.Input[str]]):
|
310
|
+
pulumi.set(self, "create_time", value)
|
311
|
+
|
312
|
+
@property
|
313
|
+
@pulumi.getter
|
314
|
+
def description(self) -> Optional[pulumi.Input[str]]:
|
315
|
+
"""
|
316
|
+
A description of this resource.
|
317
|
+
"""
|
318
|
+
return pulumi.get(self, "description")
|
319
|
+
|
320
|
+
@description.setter
|
321
|
+
def description(self, value: Optional[pulumi.Input[str]]):
|
322
|
+
pulumi.set(self, "description", value)
|
323
|
+
|
324
|
+
@property
|
325
|
+
@pulumi.getter(name="effectiveLabels")
|
326
|
+
def effective_labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
327
|
+
"""
|
328
|
+
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
|
329
|
+
"""
|
330
|
+
return pulumi.get(self, "effective_labels")
|
331
|
+
|
332
|
+
@effective_labels.setter
|
333
|
+
def effective_labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
334
|
+
pulumi.set(self, "effective_labels", value)
|
335
|
+
|
336
|
+
@property
|
337
|
+
@pulumi.getter
|
338
|
+
def labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
339
|
+
"""
|
340
|
+
User-defined labels.
|
341
|
+
|
342
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
343
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
344
|
+
"""
|
345
|
+
return pulumi.get(self, "labels")
|
346
|
+
|
347
|
+
@labels.setter
|
348
|
+
def labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
349
|
+
pulumi.set(self, "labels", value)
|
350
|
+
|
351
|
+
@property
|
352
|
+
@pulumi.getter
|
353
|
+
def location(self) -> Optional[pulumi.Input[str]]:
|
354
|
+
"""
|
355
|
+
The location of the RegionalEndpoint.
|
356
|
+
|
357
|
+
|
358
|
+
- - -
|
359
|
+
"""
|
360
|
+
return pulumi.get(self, "location")
|
361
|
+
|
362
|
+
@location.setter
|
363
|
+
def location(self, value: Optional[pulumi.Input[str]]):
|
364
|
+
pulumi.set(self, "location", value)
|
365
|
+
|
366
|
+
@property
|
367
|
+
@pulumi.getter
|
368
|
+
def name(self) -> Optional[pulumi.Input[str]]:
|
369
|
+
"""
|
370
|
+
The name of the RegionalEndpoint.
|
371
|
+
"""
|
372
|
+
return pulumi.get(self, "name")
|
373
|
+
|
374
|
+
@name.setter
|
375
|
+
def name(self, value: Optional[pulumi.Input[str]]):
|
376
|
+
pulumi.set(self, "name", value)
|
377
|
+
|
378
|
+
@property
|
379
|
+
@pulumi.getter
|
380
|
+
def network(self) -> Optional[pulumi.Input[str]]:
|
381
|
+
"""
|
382
|
+
The name of the VPC network for this private regional endpoint. Format: `projects/{project}/global/networks/{network}`
|
383
|
+
"""
|
384
|
+
return pulumi.get(self, "network")
|
385
|
+
|
386
|
+
@network.setter
|
387
|
+
def network(self, value: Optional[pulumi.Input[str]]):
|
388
|
+
pulumi.set(self, "network", value)
|
389
|
+
|
390
|
+
@property
|
391
|
+
@pulumi.getter
|
392
|
+
def project(self) -> Optional[pulumi.Input[str]]:
|
393
|
+
"""
|
394
|
+
The ID of the project in which the resource belongs.
|
395
|
+
If it is not provided, the provider project is used.
|
396
|
+
"""
|
397
|
+
return pulumi.get(self, "project")
|
398
|
+
|
399
|
+
@project.setter
|
400
|
+
def project(self, value: Optional[pulumi.Input[str]]):
|
401
|
+
pulumi.set(self, "project", value)
|
402
|
+
|
403
|
+
@property
|
404
|
+
@pulumi.getter(name="pscForwardingRule")
|
405
|
+
def psc_forwarding_rule(self) -> Optional[pulumi.Input[str]]:
|
406
|
+
"""
|
407
|
+
The resource reference of the PSC Forwarding Rule created on behalf of the customer. Format: `//compute.googleapis.com/projects/{project}/regions/{region}/forwardingRules/{forwarding_rule_name}`
|
408
|
+
"""
|
409
|
+
return pulumi.get(self, "psc_forwarding_rule")
|
410
|
+
|
411
|
+
@psc_forwarding_rule.setter
|
412
|
+
def psc_forwarding_rule(self, value: Optional[pulumi.Input[str]]):
|
413
|
+
pulumi.set(self, "psc_forwarding_rule", value)
|
414
|
+
|
415
|
+
@property
|
416
|
+
@pulumi.getter(name="pulumiLabels")
|
417
|
+
def pulumi_labels(self) -> Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]:
|
418
|
+
"""
|
419
|
+
The combination of labels configured directly on the resource
|
420
|
+
and default labels configured on the provider.
|
421
|
+
"""
|
422
|
+
return pulumi.get(self, "pulumi_labels")
|
423
|
+
|
424
|
+
@pulumi_labels.setter
|
425
|
+
def pulumi_labels(self, value: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]]):
|
426
|
+
pulumi.set(self, "pulumi_labels", value)
|
427
|
+
|
428
|
+
@property
|
429
|
+
@pulumi.getter
|
430
|
+
def subnetwork(self) -> Optional[pulumi.Input[str]]:
|
431
|
+
"""
|
432
|
+
The name of the subnetwork from which the IP address will be allocated. Format: `projects/{project}/regions/{region}/subnetworks/{subnetwork}`
|
433
|
+
"""
|
434
|
+
return pulumi.get(self, "subnetwork")
|
435
|
+
|
436
|
+
@subnetwork.setter
|
437
|
+
def subnetwork(self, value: Optional[pulumi.Input[str]]):
|
438
|
+
pulumi.set(self, "subnetwork", value)
|
439
|
+
|
440
|
+
@property
|
441
|
+
@pulumi.getter(name="targetGoogleApi")
|
442
|
+
def target_google_api(self) -> Optional[pulumi.Input[str]]:
|
443
|
+
"""
|
444
|
+
The service endpoint this private regional endpoint connects to. Format: `{apiname}.{region}.p.rep.googleapis.com` Example: \\"cloudkms.us-central1.p.rep.googleapis.com\\".
|
445
|
+
"""
|
446
|
+
return pulumi.get(self, "target_google_api")
|
447
|
+
|
448
|
+
@target_google_api.setter
|
449
|
+
def target_google_api(self, value: Optional[pulumi.Input[str]]):
|
450
|
+
pulumi.set(self, "target_google_api", value)
|
451
|
+
|
452
|
+
@property
|
453
|
+
@pulumi.getter(name="updateTime")
|
454
|
+
def update_time(self) -> Optional[pulumi.Input[str]]:
|
455
|
+
"""
|
456
|
+
Time when the RegionalEndpoint was updated.
|
457
|
+
"""
|
458
|
+
return pulumi.get(self, "update_time")
|
459
|
+
|
460
|
+
@update_time.setter
|
461
|
+
def update_time(self, value: Optional[pulumi.Input[str]]):
|
462
|
+
pulumi.set(self, "update_time", value)
|
463
|
+
|
464
|
+
|
465
|
+
class RegionalEndpoint(pulumi.CustomResource):
|
466
|
+
@overload
|
467
|
+
def __init__(__self__,
|
468
|
+
resource_name: str,
|
469
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
470
|
+
access_type: Optional[pulumi.Input[str]] = None,
|
471
|
+
address: Optional[pulumi.Input[str]] = None,
|
472
|
+
description: Optional[pulumi.Input[str]] = None,
|
473
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
474
|
+
location: Optional[pulumi.Input[str]] = None,
|
475
|
+
name: Optional[pulumi.Input[str]] = None,
|
476
|
+
network: Optional[pulumi.Input[str]] = None,
|
477
|
+
project: Optional[pulumi.Input[str]] = None,
|
478
|
+
subnetwork: Optional[pulumi.Input[str]] = None,
|
479
|
+
target_google_api: Optional[pulumi.Input[str]] = None,
|
480
|
+
__props__=None):
|
481
|
+
"""
|
482
|
+
Regional Private Service Connect (PSC) endpoint resource.
|
483
|
+
|
484
|
+
To get more information about RegionalEndpoint, see:
|
485
|
+
|
486
|
+
* [API documentation](https://cloud.google.com/network-connectivity/docs/reference/networkconnectivity/rest/v1/projects.locations.regionalEndpoints)
|
487
|
+
* How-to Guides
|
488
|
+
* [Access regional Google APIs through endpoints](https://cloud.google.com/vpc/docs/access-regional-google-apis-endpoints)
|
489
|
+
|
490
|
+
## Example Usage
|
491
|
+
|
492
|
+
### Network Connectivity Regional Endpoint Regional Access
|
493
|
+
|
494
|
+
```python
|
495
|
+
import pulumi
|
496
|
+
import pulumi_gcp as gcp
|
497
|
+
|
498
|
+
my_network = gcp.compute.Network("my_network",
|
499
|
+
name="my-network",
|
500
|
+
auto_create_subnetworks=False)
|
501
|
+
my_subnetwork = gcp.compute.Subnetwork("my_subnetwork",
|
502
|
+
name="my-subnetwork",
|
503
|
+
ip_cidr_range="192.168.0.0/24",
|
504
|
+
region="us-central1",
|
505
|
+
network=my_network.id)
|
506
|
+
default = gcp.networkconnectivity.RegionalEndpoint("default",
|
507
|
+
name="my-rep",
|
508
|
+
location="us-central1",
|
509
|
+
target_google_api="boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com",
|
510
|
+
access_type="REGIONAL",
|
511
|
+
address="192.168.0.5",
|
512
|
+
network=my_network.id,
|
513
|
+
subnetwork=my_subnetwork.id,
|
514
|
+
description="My RegionalEndpoint targeting Google API boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com",
|
515
|
+
labels={
|
516
|
+
"env": "default",
|
517
|
+
})
|
518
|
+
```
|
519
|
+
### Network Connectivity Regional Endpoint Global Access
|
520
|
+
|
521
|
+
```python
|
522
|
+
import pulumi
|
523
|
+
import pulumi_gcp as gcp
|
524
|
+
|
525
|
+
my_network = gcp.compute.Network("my_network",
|
526
|
+
name="my-network",
|
527
|
+
auto_create_subnetworks=False)
|
528
|
+
my_subnetwork = gcp.compute.Subnetwork("my_subnetwork",
|
529
|
+
name="my-subnetwork",
|
530
|
+
ip_cidr_range="192.168.0.0/24",
|
531
|
+
region="us-central1",
|
532
|
+
network=my_network.id)
|
533
|
+
default = gcp.networkconnectivity.RegionalEndpoint("default",
|
534
|
+
name="my-rep",
|
535
|
+
location="us-central1",
|
536
|
+
target_google_api="boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com",
|
537
|
+
access_type="GLOBAL",
|
538
|
+
address="192.168.0.4",
|
539
|
+
network=my_network.id,
|
540
|
+
subnetwork=my_subnetwork.id)
|
541
|
+
```
|
542
|
+
|
543
|
+
## Import
|
544
|
+
|
545
|
+
RegionalEndpoint can be imported using any of these accepted formats:
|
546
|
+
|
547
|
+
* `projects/{{project}}/locations/{{location}}/regionalEndpoints/{{name}}`
|
548
|
+
|
549
|
+
* `{{project}}/{{location}}/{{name}}`
|
550
|
+
|
551
|
+
* `{{location}}/{{name}}`
|
552
|
+
|
553
|
+
When using the `pulumi import` command, RegionalEndpoint can be imported using one of the formats above. For example:
|
554
|
+
|
555
|
+
```sh
|
556
|
+
$ pulumi import gcp:networkconnectivity/regionalEndpoint:RegionalEndpoint default projects/{{project}}/locations/{{location}}/regionalEndpoints/{{name}}
|
557
|
+
```
|
558
|
+
|
559
|
+
```sh
|
560
|
+
$ pulumi import gcp:networkconnectivity/regionalEndpoint:RegionalEndpoint default {{project}}/{{location}}/{{name}}
|
561
|
+
```
|
562
|
+
|
563
|
+
```sh
|
564
|
+
$ pulumi import gcp:networkconnectivity/regionalEndpoint:RegionalEndpoint default {{location}}/{{name}}
|
565
|
+
```
|
566
|
+
|
567
|
+
:param str resource_name: The name of the resource.
|
568
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
569
|
+
:param pulumi.Input[str] access_type: The access type of this regional endpoint. This field is reflected in the PSC Forwarding Rule configuration to enable global access.
|
570
|
+
Possible values are: `GLOBAL`, `REGIONAL`.
|
571
|
+
:param pulumi.Input[str] address: The IP Address of the Regional Endpoint. When no address is provided, an IP from the subnetwork is allocated. Use one of the following formats: * IPv4 address as in `10.0.0.1` * Address resource URI as in `projects/{project}/regions/{region}/addresses/{address_name}`
|
572
|
+
> **Note:** This field accepts both a reference to a Compute Address resource, which is the resource name of which format is given in the description, and IP literal value. If the user chooses to input a reserved address value; they need to make sure that the reserved address is in IPv4 version, its purpose is GCE_ENDPOINT, its type is INTERNAL and its status is RESERVED. If the user chooses to input an IP literal, they need to make sure that it's a valid IPv4 address (x.x.x.x) within the subnetwork.
|
573
|
+
:param pulumi.Input[str] description: A description of this resource.
|
574
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: User-defined labels.
|
575
|
+
|
576
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
577
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
578
|
+
:param pulumi.Input[str] location: The location of the RegionalEndpoint.
|
579
|
+
|
580
|
+
|
581
|
+
- - -
|
582
|
+
:param pulumi.Input[str] name: The name of the RegionalEndpoint.
|
583
|
+
:param pulumi.Input[str] network: The name of the VPC network for this private regional endpoint. Format: `projects/{project}/global/networks/{network}`
|
584
|
+
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
585
|
+
If it is not provided, the provider project is used.
|
586
|
+
:param pulumi.Input[str] subnetwork: The name of the subnetwork from which the IP address will be allocated. Format: `projects/{project}/regions/{region}/subnetworks/{subnetwork}`
|
587
|
+
:param pulumi.Input[str] target_google_api: The service endpoint this private regional endpoint connects to. Format: `{apiname}.{region}.p.rep.googleapis.com` Example: \\"cloudkms.us-central1.p.rep.googleapis.com\\".
|
588
|
+
"""
|
589
|
+
...
|
590
|
+
@overload
|
591
|
+
def __init__(__self__,
|
592
|
+
resource_name: str,
|
593
|
+
args: RegionalEndpointArgs,
|
594
|
+
opts: Optional[pulumi.ResourceOptions] = None):
|
595
|
+
"""
|
596
|
+
Regional Private Service Connect (PSC) endpoint resource.
|
597
|
+
|
598
|
+
To get more information about RegionalEndpoint, see:
|
599
|
+
|
600
|
+
* [API documentation](https://cloud.google.com/network-connectivity/docs/reference/networkconnectivity/rest/v1/projects.locations.regionalEndpoints)
|
601
|
+
* How-to Guides
|
602
|
+
* [Access regional Google APIs through endpoints](https://cloud.google.com/vpc/docs/access-regional-google-apis-endpoints)
|
603
|
+
|
604
|
+
## Example Usage
|
605
|
+
|
606
|
+
### Network Connectivity Regional Endpoint Regional Access
|
607
|
+
|
608
|
+
```python
|
609
|
+
import pulumi
|
610
|
+
import pulumi_gcp as gcp
|
611
|
+
|
612
|
+
my_network = gcp.compute.Network("my_network",
|
613
|
+
name="my-network",
|
614
|
+
auto_create_subnetworks=False)
|
615
|
+
my_subnetwork = gcp.compute.Subnetwork("my_subnetwork",
|
616
|
+
name="my-subnetwork",
|
617
|
+
ip_cidr_range="192.168.0.0/24",
|
618
|
+
region="us-central1",
|
619
|
+
network=my_network.id)
|
620
|
+
default = gcp.networkconnectivity.RegionalEndpoint("default",
|
621
|
+
name="my-rep",
|
622
|
+
location="us-central1",
|
623
|
+
target_google_api="boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com",
|
624
|
+
access_type="REGIONAL",
|
625
|
+
address="192.168.0.5",
|
626
|
+
network=my_network.id,
|
627
|
+
subnetwork=my_subnetwork.id,
|
628
|
+
description="My RegionalEndpoint targeting Google API boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com",
|
629
|
+
labels={
|
630
|
+
"env": "default",
|
631
|
+
})
|
632
|
+
```
|
633
|
+
### Network Connectivity Regional Endpoint Global Access
|
634
|
+
|
635
|
+
```python
|
636
|
+
import pulumi
|
637
|
+
import pulumi_gcp as gcp
|
638
|
+
|
639
|
+
my_network = gcp.compute.Network("my_network",
|
640
|
+
name="my-network",
|
641
|
+
auto_create_subnetworks=False)
|
642
|
+
my_subnetwork = gcp.compute.Subnetwork("my_subnetwork",
|
643
|
+
name="my-subnetwork",
|
644
|
+
ip_cidr_range="192.168.0.0/24",
|
645
|
+
region="us-central1",
|
646
|
+
network=my_network.id)
|
647
|
+
default = gcp.networkconnectivity.RegionalEndpoint("default",
|
648
|
+
name="my-rep",
|
649
|
+
location="us-central1",
|
650
|
+
target_google_api="boqcodelabjaimin-pa.us-central1.p.rep.googleapis.com",
|
651
|
+
access_type="GLOBAL",
|
652
|
+
address="192.168.0.4",
|
653
|
+
network=my_network.id,
|
654
|
+
subnetwork=my_subnetwork.id)
|
655
|
+
```
|
656
|
+
|
657
|
+
## Import
|
658
|
+
|
659
|
+
RegionalEndpoint can be imported using any of these accepted formats:
|
660
|
+
|
661
|
+
* `projects/{{project}}/locations/{{location}}/regionalEndpoints/{{name}}`
|
662
|
+
|
663
|
+
* `{{project}}/{{location}}/{{name}}`
|
664
|
+
|
665
|
+
* `{{location}}/{{name}}`
|
666
|
+
|
667
|
+
When using the `pulumi import` command, RegionalEndpoint can be imported using one of the formats above. For example:
|
668
|
+
|
669
|
+
```sh
|
670
|
+
$ pulumi import gcp:networkconnectivity/regionalEndpoint:RegionalEndpoint default projects/{{project}}/locations/{{location}}/regionalEndpoints/{{name}}
|
671
|
+
```
|
672
|
+
|
673
|
+
```sh
|
674
|
+
$ pulumi import gcp:networkconnectivity/regionalEndpoint:RegionalEndpoint default {{project}}/{{location}}/{{name}}
|
675
|
+
```
|
676
|
+
|
677
|
+
```sh
|
678
|
+
$ pulumi import gcp:networkconnectivity/regionalEndpoint:RegionalEndpoint default {{location}}/{{name}}
|
679
|
+
```
|
680
|
+
|
681
|
+
:param str resource_name: The name of the resource.
|
682
|
+
:param RegionalEndpointArgs args: The arguments to use to populate this resource's properties.
|
683
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
684
|
+
"""
|
685
|
+
...
|
686
|
+
def __init__(__self__, resource_name: str, *args, **kwargs):
|
687
|
+
resource_args, opts = _utilities.get_resource_args_opts(RegionalEndpointArgs, pulumi.ResourceOptions, *args, **kwargs)
|
688
|
+
if resource_args is not None:
|
689
|
+
__self__._internal_init(resource_name, opts, **resource_args.__dict__)
|
690
|
+
else:
|
691
|
+
__self__._internal_init(resource_name, *args, **kwargs)
|
692
|
+
|
693
|
+
def _internal_init(__self__,
|
694
|
+
resource_name: str,
|
695
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
696
|
+
access_type: Optional[pulumi.Input[str]] = None,
|
697
|
+
address: Optional[pulumi.Input[str]] = None,
|
698
|
+
description: Optional[pulumi.Input[str]] = None,
|
699
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
700
|
+
location: Optional[pulumi.Input[str]] = None,
|
701
|
+
name: Optional[pulumi.Input[str]] = None,
|
702
|
+
network: Optional[pulumi.Input[str]] = None,
|
703
|
+
project: Optional[pulumi.Input[str]] = None,
|
704
|
+
subnetwork: Optional[pulumi.Input[str]] = None,
|
705
|
+
target_google_api: Optional[pulumi.Input[str]] = None,
|
706
|
+
__props__=None):
|
707
|
+
opts = pulumi.ResourceOptions.merge(_utilities.get_resource_opts_defaults(), opts)
|
708
|
+
if not isinstance(opts, pulumi.ResourceOptions):
|
709
|
+
raise TypeError('Expected resource options to be a ResourceOptions instance')
|
710
|
+
if opts.id is None:
|
711
|
+
if __props__ is not None:
|
712
|
+
raise TypeError('__props__ is only valid when passed in combination with a valid opts.id to get an existing resource')
|
713
|
+
__props__ = RegionalEndpointArgs.__new__(RegionalEndpointArgs)
|
714
|
+
|
715
|
+
if access_type is None and not opts.urn:
|
716
|
+
raise TypeError("Missing required property 'access_type'")
|
717
|
+
__props__.__dict__["access_type"] = access_type
|
718
|
+
__props__.__dict__["address"] = address
|
719
|
+
__props__.__dict__["description"] = description
|
720
|
+
__props__.__dict__["labels"] = labels
|
721
|
+
if location is None and not opts.urn:
|
722
|
+
raise TypeError("Missing required property 'location'")
|
723
|
+
__props__.__dict__["location"] = location
|
724
|
+
__props__.__dict__["name"] = name
|
725
|
+
__props__.__dict__["network"] = network
|
726
|
+
__props__.__dict__["project"] = project
|
727
|
+
__props__.__dict__["subnetwork"] = subnetwork
|
728
|
+
if target_google_api is None and not opts.urn:
|
729
|
+
raise TypeError("Missing required property 'target_google_api'")
|
730
|
+
__props__.__dict__["target_google_api"] = target_google_api
|
731
|
+
__props__.__dict__["create_time"] = None
|
732
|
+
__props__.__dict__["effective_labels"] = None
|
733
|
+
__props__.__dict__["psc_forwarding_rule"] = None
|
734
|
+
__props__.__dict__["pulumi_labels"] = None
|
735
|
+
__props__.__dict__["update_time"] = None
|
736
|
+
secret_opts = pulumi.ResourceOptions(additional_secret_outputs=["effectiveLabels", "pulumiLabels"])
|
737
|
+
opts = pulumi.ResourceOptions.merge(opts, secret_opts)
|
738
|
+
super(RegionalEndpoint, __self__).__init__(
|
739
|
+
'gcp:networkconnectivity/regionalEndpoint:RegionalEndpoint',
|
740
|
+
resource_name,
|
741
|
+
__props__,
|
742
|
+
opts)
|
743
|
+
|
744
|
+
@staticmethod
|
745
|
+
def get(resource_name: str,
|
746
|
+
id: pulumi.Input[str],
|
747
|
+
opts: Optional[pulumi.ResourceOptions] = None,
|
748
|
+
access_type: Optional[pulumi.Input[str]] = None,
|
749
|
+
address: Optional[pulumi.Input[str]] = None,
|
750
|
+
create_time: Optional[pulumi.Input[str]] = None,
|
751
|
+
description: Optional[pulumi.Input[str]] = None,
|
752
|
+
effective_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
753
|
+
labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
754
|
+
location: Optional[pulumi.Input[str]] = None,
|
755
|
+
name: Optional[pulumi.Input[str]] = None,
|
756
|
+
network: Optional[pulumi.Input[str]] = None,
|
757
|
+
project: Optional[pulumi.Input[str]] = None,
|
758
|
+
psc_forwarding_rule: Optional[pulumi.Input[str]] = None,
|
759
|
+
pulumi_labels: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
|
760
|
+
subnetwork: Optional[pulumi.Input[str]] = None,
|
761
|
+
target_google_api: Optional[pulumi.Input[str]] = None,
|
762
|
+
update_time: Optional[pulumi.Input[str]] = None) -> 'RegionalEndpoint':
|
763
|
+
"""
|
764
|
+
Get an existing RegionalEndpoint resource's state with the given name, id, and optional extra
|
765
|
+
properties used to qualify the lookup.
|
766
|
+
|
767
|
+
:param str resource_name: The unique name of the resulting resource.
|
768
|
+
:param pulumi.Input[str] id: The unique provider ID of the resource to lookup.
|
769
|
+
:param pulumi.ResourceOptions opts: Options for the resource.
|
770
|
+
:param pulumi.Input[str] access_type: The access type of this regional endpoint. This field is reflected in the PSC Forwarding Rule configuration to enable global access.
|
771
|
+
Possible values are: `GLOBAL`, `REGIONAL`.
|
772
|
+
:param pulumi.Input[str] address: The IP Address of the Regional Endpoint. When no address is provided, an IP from the subnetwork is allocated. Use one of the following formats: * IPv4 address as in `10.0.0.1` * Address resource URI as in `projects/{project}/regions/{region}/addresses/{address_name}`
|
773
|
+
> **Note:** This field accepts both a reference to a Compute Address resource, which is the resource name of which format is given in the description, and IP literal value. If the user chooses to input a reserved address value; they need to make sure that the reserved address is in IPv4 version, its purpose is GCE_ENDPOINT, its type is INTERNAL and its status is RESERVED. If the user chooses to input an IP literal, they need to make sure that it's a valid IPv4 address (x.x.x.x) within the subnetwork.
|
774
|
+
:param pulumi.Input[str] create_time: Time when the RegionalEndpoint was created.
|
775
|
+
:param pulumi.Input[str] description: A description of this resource.
|
776
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] effective_labels: All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
|
777
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] labels: User-defined labels.
|
778
|
+
|
779
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
780
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
781
|
+
:param pulumi.Input[str] location: The location of the RegionalEndpoint.
|
782
|
+
|
783
|
+
|
784
|
+
- - -
|
785
|
+
:param pulumi.Input[str] name: The name of the RegionalEndpoint.
|
786
|
+
:param pulumi.Input[str] network: The name of the VPC network for this private regional endpoint. Format: `projects/{project}/global/networks/{network}`
|
787
|
+
:param pulumi.Input[str] project: The ID of the project in which the resource belongs.
|
788
|
+
If it is not provided, the provider project is used.
|
789
|
+
:param pulumi.Input[str] psc_forwarding_rule: The resource reference of the PSC Forwarding Rule created on behalf of the customer. Format: `//compute.googleapis.com/projects/{project}/regions/{region}/forwardingRules/{forwarding_rule_name}`
|
790
|
+
:param pulumi.Input[Mapping[str, pulumi.Input[str]]] pulumi_labels: The combination of labels configured directly on the resource
|
791
|
+
and default labels configured on the provider.
|
792
|
+
:param pulumi.Input[str] subnetwork: The name of the subnetwork from which the IP address will be allocated. Format: `projects/{project}/regions/{region}/subnetworks/{subnetwork}`
|
793
|
+
:param pulumi.Input[str] target_google_api: The service endpoint this private regional endpoint connects to. Format: `{apiname}.{region}.p.rep.googleapis.com` Example: \\"cloudkms.us-central1.p.rep.googleapis.com\\".
|
794
|
+
:param pulumi.Input[str] update_time: Time when the RegionalEndpoint was updated.
|
795
|
+
"""
|
796
|
+
opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id))
|
797
|
+
|
798
|
+
__props__ = _RegionalEndpointState.__new__(_RegionalEndpointState)
|
799
|
+
|
800
|
+
__props__.__dict__["access_type"] = access_type
|
801
|
+
__props__.__dict__["address"] = address
|
802
|
+
__props__.__dict__["create_time"] = create_time
|
803
|
+
__props__.__dict__["description"] = description
|
804
|
+
__props__.__dict__["effective_labels"] = effective_labels
|
805
|
+
__props__.__dict__["labels"] = labels
|
806
|
+
__props__.__dict__["location"] = location
|
807
|
+
__props__.__dict__["name"] = name
|
808
|
+
__props__.__dict__["network"] = network
|
809
|
+
__props__.__dict__["project"] = project
|
810
|
+
__props__.__dict__["psc_forwarding_rule"] = psc_forwarding_rule
|
811
|
+
__props__.__dict__["pulumi_labels"] = pulumi_labels
|
812
|
+
__props__.__dict__["subnetwork"] = subnetwork
|
813
|
+
__props__.__dict__["target_google_api"] = target_google_api
|
814
|
+
__props__.__dict__["update_time"] = update_time
|
815
|
+
return RegionalEndpoint(resource_name, opts=opts, __props__=__props__)
|
816
|
+
|
817
|
+
@property
|
818
|
+
@pulumi.getter(name="accessType")
|
819
|
+
def access_type(self) -> pulumi.Output[str]:
|
820
|
+
"""
|
821
|
+
The access type of this regional endpoint. This field is reflected in the PSC Forwarding Rule configuration to enable global access.
|
822
|
+
Possible values are: `GLOBAL`, `REGIONAL`.
|
823
|
+
"""
|
824
|
+
return pulumi.get(self, "access_type")
|
825
|
+
|
826
|
+
@property
|
827
|
+
@pulumi.getter
|
828
|
+
def address(self) -> pulumi.Output[str]:
|
829
|
+
"""
|
830
|
+
The IP Address of the Regional Endpoint. When no address is provided, an IP from the subnetwork is allocated. Use one of the following formats: * IPv4 address as in `10.0.0.1` * Address resource URI as in `projects/{project}/regions/{region}/addresses/{address_name}`
|
831
|
+
> **Note:** This field accepts both a reference to a Compute Address resource, which is the resource name of which format is given in the description, and IP literal value. If the user chooses to input a reserved address value; they need to make sure that the reserved address is in IPv4 version, its purpose is GCE_ENDPOINT, its type is INTERNAL and its status is RESERVED. If the user chooses to input an IP literal, they need to make sure that it's a valid IPv4 address (x.x.x.x) within the subnetwork.
|
832
|
+
"""
|
833
|
+
return pulumi.get(self, "address")
|
834
|
+
|
835
|
+
@property
|
836
|
+
@pulumi.getter(name="createTime")
|
837
|
+
def create_time(self) -> pulumi.Output[str]:
|
838
|
+
"""
|
839
|
+
Time when the RegionalEndpoint was created.
|
840
|
+
"""
|
841
|
+
return pulumi.get(self, "create_time")
|
842
|
+
|
843
|
+
@property
|
844
|
+
@pulumi.getter
|
845
|
+
def description(self) -> pulumi.Output[Optional[str]]:
|
846
|
+
"""
|
847
|
+
A description of this resource.
|
848
|
+
"""
|
849
|
+
return pulumi.get(self, "description")
|
850
|
+
|
851
|
+
@property
|
852
|
+
@pulumi.getter(name="effectiveLabels")
|
853
|
+
def effective_labels(self) -> pulumi.Output[Mapping[str, str]]:
|
854
|
+
"""
|
855
|
+
All of labels (key/value pairs) present on the resource in GCP, including the labels configured through Pulumi, other clients and services.
|
856
|
+
"""
|
857
|
+
return pulumi.get(self, "effective_labels")
|
858
|
+
|
859
|
+
@property
|
860
|
+
@pulumi.getter
|
861
|
+
def labels(self) -> pulumi.Output[Optional[Mapping[str, str]]]:
|
862
|
+
"""
|
863
|
+
User-defined labels.
|
864
|
+
|
865
|
+
**Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
|
866
|
+
Please refer to the field `effective_labels` for all of the labels present on the resource.
|
867
|
+
"""
|
868
|
+
return pulumi.get(self, "labels")
|
869
|
+
|
870
|
+
@property
|
871
|
+
@pulumi.getter
|
872
|
+
def location(self) -> pulumi.Output[str]:
|
873
|
+
"""
|
874
|
+
The location of the RegionalEndpoint.
|
875
|
+
|
876
|
+
|
877
|
+
- - -
|
878
|
+
"""
|
879
|
+
return pulumi.get(self, "location")
|
880
|
+
|
881
|
+
@property
|
882
|
+
@pulumi.getter
|
883
|
+
def name(self) -> pulumi.Output[str]:
|
884
|
+
"""
|
885
|
+
The name of the RegionalEndpoint.
|
886
|
+
"""
|
887
|
+
return pulumi.get(self, "name")
|
888
|
+
|
889
|
+
@property
|
890
|
+
@pulumi.getter
|
891
|
+
def network(self) -> pulumi.Output[str]:
|
892
|
+
"""
|
893
|
+
The name of the VPC network for this private regional endpoint. Format: `projects/{project}/global/networks/{network}`
|
894
|
+
"""
|
895
|
+
return pulumi.get(self, "network")
|
896
|
+
|
897
|
+
@property
|
898
|
+
@pulumi.getter
|
899
|
+
def project(self) -> pulumi.Output[str]:
|
900
|
+
"""
|
901
|
+
The ID of the project in which the resource belongs.
|
902
|
+
If it is not provided, the provider project is used.
|
903
|
+
"""
|
904
|
+
return pulumi.get(self, "project")
|
905
|
+
|
906
|
+
@property
|
907
|
+
@pulumi.getter(name="pscForwardingRule")
|
908
|
+
def psc_forwarding_rule(self) -> pulumi.Output[str]:
|
909
|
+
"""
|
910
|
+
The resource reference of the PSC Forwarding Rule created on behalf of the customer. Format: `//compute.googleapis.com/projects/{project}/regions/{region}/forwardingRules/{forwarding_rule_name}`
|
911
|
+
"""
|
912
|
+
return pulumi.get(self, "psc_forwarding_rule")
|
913
|
+
|
914
|
+
@property
|
915
|
+
@pulumi.getter(name="pulumiLabels")
|
916
|
+
def pulumi_labels(self) -> pulumi.Output[Mapping[str, str]]:
|
917
|
+
"""
|
918
|
+
The combination of labels configured directly on the resource
|
919
|
+
and default labels configured on the provider.
|
920
|
+
"""
|
921
|
+
return pulumi.get(self, "pulumi_labels")
|
922
|
+
|
923
|
+
@property
|
924
|
+
@pulumi.getter
|
925
|
+
def subnetwork(self) -> pulumi.Output[str]:
|
926
|
+
"""
|
927
|
+
The name of the subnetwork from which the IP address will be allocated. Format: `projects/{project}/regions/{region}/subnetworks/{subnetwork}`
|
928
|
+
"""
|
929
|
+
return pulumi.get(self, "subnetwork")
|
930
|
+
|
931
|
+
@property
|
932
|
+
@pulumi.getter(name="targetGoogleApi")
|
933
|
+
def target_google_api(self) -> pulumi.Output[str]:
|
934
|
+
"""
|
935
|
+
The service endpoint this private regional endpoint connects to. Format: `{apiname}.{region}.p.rep.googleapis.com` Example: \\"cloudkms.us-central1.p.rep.googleapis.com\\".
|
936
|
+
"""
|
937
|
+
return pulumi.get(self, "target_google_api")
|
938
|
+
|
939
|
+
@property
|
940
|
+
@pulumi.getter(name="updateTime")
|
941
|
+
def update_time(self) -> pulumi.Output[str]:
|
942
|
+
"""
|
943
|
+
Time when the RegionalEndpoint was updated.
|
944
|
+
"""
|
945
|
+
return pulumi.get(self, "update_time")
|
946
|
+
|